/* =====================================================================
   usatoaustria theme — screen.css
   Calm, editorial, text-forward. Tokens + homepage + article styles.
   Homepage design is identical to homepage/index.html (the reference).
   ===================================================================== */

/* ---------- design tokens ---------- */
:root {
  --paper:      #faf8f4;  /* warm off-white background */
  --surface:    #ffffff;
  --tint:       #f3efe7;  /* band / card-zone tint */
  --ink:        #1f1d1a;  /* near-black, warm */
  --muted:      #5c574e;  /* secondary text */
  --faint:      #8a8378;  /* eyebrows, captions */
  --line:       #e6e0d5;  /* hairlines, borders */
  --accent:     #9a3328;  /* deep brick red, calm nod to Austria */
  --accent-ink: #7d281f;  /* accent, hover/active */
  --measure:    42rem;    /* prose column ~672px */
  --wide:       64rem;    /* header / grid / footer ~1024px */
  --radius:     6px;
  --pad-x:      clamp(1.25rem, 5vw, 2rem);
  --section-y:  clamp(3.25rem, 8vw, 5.5rem);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}
p { margin: 0 0 1.1rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--pad-x); }
.measure  { max-width: var(--measure); margin-inline: auto; }
.section  { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }
[id] { scroll-margin-top: 5.5rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); /* fallback */
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.1) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; min-height: 4rem; padding-block: .6rem;
}
.wordmark {
  font-family: "Iowan Old Style", Georgia, serif;
  font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.wordmark b { color: var(--accent); font-weight: 600; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: center; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: .95rem;
  padding: .25rem 0; white-space: nowrap; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- buttons / pills ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: 1rem; font-weight: 600; line-height: 1; cursor: pointer;
  padding: .8rem 1.25rem; border-radius: var(--radius);
  text-decoration: none; border: 1.5px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn:active { transform: translateY(1px); }

.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--tint); /* fallback */
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  padding: .3rem .65rem; border-radius: 999px;
}
.pill::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--accent); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3.5rem, 11vw, 7rem); text-align: center; }
.hero__kicker { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.05rem); margin: 0 0 1.3rem; }
.hero__lead { font-size: clamp(1.1rem, 2.2vw, 1.28rem); line-height: 1.6; color: var(--muted); margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.25rem; }
.hero__cta-secondary { color: var(--muted); font-size: 1rem; }
.hero__cta-secondary a { font-style: italic; }

/* ---------- prose sections ---------- */
.prose h2 { font-size: clamp(1.55rem, 3.2vw, 2.05rem); margin: 0 0 1.2rem; }
.prose p { color: var(--ink); }
.prose p:last-child { margin-bottom: 0; }
.band__lead { color: var(--muted); max-width: 34rem; }

/* ---------- credibility block ---------- */
.who__fig { margin: 0; }
.who { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 46rem) {
  .who { grid-template-columns: 9.5rem minmax(0, 1fr); gap: 2.5rem; }
}
.headshot {
  width: 9.5rem; height: 9.5rem; border-radius: 50%;
  background: var(--tint); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--faint);
  font-family: "Iowan Old Style", Georgia, serif; font-size: 2.4rem; overflow: hidden;
  object-fit: cover;
}
.headshot__cap { font-size: .78rem; color: var(--faint); margin-top: .6rem; text-align: center; }

/* ---------- start-here grid ---------- */
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 40rem) { .grid { grid-template-columns: 1fr 1fr; } }
.card {
  display: flex; flex-direction: column; gap: .55rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 6px 20px -12px rgba(31,29,26,.35); transform: translateY(-2px); }
.card--feature { grid-column: 1 / -1; background: var(--tint); }
.card__eyebrow { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.card__title { font-size: 1.18rem; margin: 0; line-height: 1.3; }
.card--feature .card__title { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.card__excerpt { color: var(--muted); font-size: .96rem; margin: 0; }
.card__more { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .95rem; }
.start-here__foot { margin-top: 1.75rem; }

/* ---------- tinted bands (capture + coming soon) ---------- */
.band { background: var(--tint); }
.band--accent { background: linear-gradient(180deg, var(--tint), color-mix(in srgb, var(--accent) 6%, var(--paper))); }
.band__head { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.band__head h2 { margin: 0; }
.band__cta { margin-top: 1.4rem; }

/* ---------- signup form ---------- */
.signup { margin-top: 1.6rem; max-width: 34rem; }
.signup__row { display: flex; flex-wrap: wrap; gap: .7rem; }
.signup__label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .45rem; }
.signup__input {
  flex: 1 1 16rem; min-width: 0; font-size: 1rem; padding: .8rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink);
}
.signup__input:focus { border-color: var(--accent); outline: none; }

/* ---------- articles / pages ---------- */
.post { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.post__header { margin-bottom: 2rem; }
.post__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 1rem; }
.post__excerpt { font-size: 1.2rem; line-height: 1.55; color: var(--muted); margin: 0 0 1rem; }
.post__meta { font-size: .85rem; color: var(--faint); margin: 0; }
.post__feature { margin: 0 0 2rem; }
.post__feature img { border-radius: var(--radius); }

.gh-content { font-size: 1.0625rem; }
.gh-content > * { margin-bottom: 1.25rem; }
.gh-content h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 2.4rem; }
.gh-content h3 { font-size: 1.25rem; margin-top: 1.8rem; }
.gh-content a { color: var(--accent); }
.gh-content ul, .gh-content ol { padding-left: 1.4rem; }
.gh-content li { margin-bottom: .4rem; }
.gh-content blockquote {
  margin: 1.5rem 0; padding: .5rem 0 .5rem 1.3rem;
  border-left: 3px solid var(--accent); color: var(--muted); font-style: italic;
}
.gh-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.gh-content em { font-style: italic; }

/* Koenig card widths — let images/embeds break out of the text column */
.gh-content :where(figure, img, .kg-card) { margin-inline: auto; }
.kg-width-wide { max-width: var(--wide); width: min(100%, var(--wide)); margin-inline: auto; }
.kg-width-full { max-width: 100vw; margin-inline: calc(50% - 50vw); }
.kg-width-full img { width: 100vw; max-width: none; border-radius: 0; }

/* footnote markers in body (converter emits sup.footnote-ref / a[href^="#fn"]) */
.gh-content sup, .footnote-ref { font-size: .72em; line-height: 0; }
.footnote-ref a, .gh-content sup a { text-decoration: none; padding: 0 .1em; }

/* two-tier sources block + quick-reference box (reference/citations-and-styling.md) */
.quickref {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 0 0 2rem;
}
.quickref h2, .quickref h3 { margin-top: 0; font-size: 1.05rem; }
.sources {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .92rem; color: var(--muted);
}
.sources h2, .sources h3 { font-size: 1rem; }
.sources li { margin-bottom: .5rem; }
.sources a { word-break: break-word; }
.footer-note { font-size: .92rem; color: var(--muted); }

/* pagination */
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; font-size: .95rem; }
.pagination a { font-weight: 600; text-decoration: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d7d2c8; padding-block: clamp(2.5rem, 6vw, 3.5rem); flex-shrink: 0; }
.site-footer a { color: #efe9dd; }
.footer-disclaimer { font-size: .92rem; line-height: 1.65; color: #c4beb2; max-width: var(--measure); margin: 0 0 1.6rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; font-size: .92rem; align-items: center; }
.footer-nav .sep { color: #6f6a60; }
.footer-meta { margin-top: 1.4rem; font-size: .82rem; color: #8a857a; }

/* ---------- motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
