/* ============================================
   Field Notes for Middle School — shared stylesheet
   Edit colors/fonts here once; every page updates.
   ============================================ */

:root {
  /* Color */
  --paper: #EFEAE0;
  --paper-line: #DDD5C4;
  --ink: #2B3A4A;
  --ink-soft: #52626F;
  --gold: #C6922B;
  --sage: #6E8763;
  --brick: #B5533C;
  --card: #FBF9F4;
  --white: #FFFFFF;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --max-width: 780px;
  --radius: 3px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--paper-line) 1px, transparent 1px);
  background-size: 100% 2.1em;
  background-position: 0 7.4em;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brick); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

img { max-width: 100%; display: block; border-radius: var(--radius); }

/* ---------- Header ---------- */

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.6em 1.25em 1.4em;
  border-bottom: 2px solid var(--ink);
}

.site-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.1rem;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}

.site-tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 0.5em 0 1.1em;
}

.site-nav {
  display: flex;
  gap: 1.4em;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-nav a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--brick); color: var(--brick); }

/* ---------- Main content shell ---------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.4em 1.25em 5em;
}

main > p:first-child,
.lede {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink-soft);
  max-width: 34em;
}

h1.page-title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1.15;
  margin: 0 0 0.3em;
  max-width: 20ch;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 1.8em 0 0.6em;
}

/* ---------- The "field-tested" stamp: signature element ---------- */

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--sage);
  border: 1.5px solid var(--sage);
  border-radius: 50%;
  width: 5.6em;
  height: 5.6em;
  justify-content: center;
  text-align: center;
  transform: rotate(-7deg);
  padding: 0.4em;
  line-height: 1.25;
  float: right;
  margin: 0 0 0.5em 1em;
}

/* ---------- Post index cards ---------- */

.post-list {
  list-style: none;
  margin: 2em 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.3em 1.4em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(43, 58, 74, 0.08);
}

.post-card .kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brick);
}

.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0.25em 0 0.35em;
}

.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--brick); }

.post-card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Verdict / pick boxes (used inside posts) ---------- */

.verdict {
  background: var(--card);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 1.3em 1.5em;
  margin: 1.6em 0;
}

.verdict .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4em;
}

.verdict .price {
  font-family: var(--font-mono);
  color: var(--ink-soft);
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  background: var(--brick);
  color: var(--white) !important;
  padding: 0.65em 1.1em;
  border-radius: var(--radius);
  margin-top: 0.6em;
}

.btn:hover { background: var(--ink); }

/* ---------- Comparison table ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.92rem;
}

th, td {
  text-align: left;
  padding: 0.6em 0.7em;
  border-bottom: 1px solid var(--paper-line);
}

th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ---------- Disclosure banner (drop into any post) ---------- */

.disclosure-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--paper-line);
  border-bottom: 1px dashed var(--paper-line);
  padding: 0.9em 0;
  margin: 2em 0;
}

.disclosure-note a { color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2em 1.25em 3em;
  border-top: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6em;
}

.site-footer a { color: var(--ink-soft); }

/* ---------- Legal pages ---------- */

.legal-page h1 { margin-bottom: 0.2em; }
.legal-page .updated { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 2em; }
.legal-page h2 { font-size: 1.15rem; }

@media (max-width: 560px) {
  .stamp { float: none; margin: 0 0 1em; }
  h1.page-title { font-size: 1.9rem; }
}
