/* ==========================================================================
   Father of the Blog — core stylesheet
   Brand hexes sampled directly from fotb-logo.png. Do not alter the three
   brand values (--navy, --rust, --cream); everything else is derived.
   ========================================================================== */

:root {
  /* Brand — sampled from the logo */
  --navy:       #0D2C49;
  --rust:       #B44F24;
  --cream:      #FEFAEF;

  /* Derived */
  --navy-soft:  #3E5670;
  --navy-faint: #7A8CA0;
  --navy-deep:  #071B2E;
  --rust-deep:  #8A3A19;
  --rust-tint:  #F7E9E1;
  --cream-deep: #F7F0DF;
  --line:       #E3DAC7;
  --line-soft:  #EFE9DB;
  --white:      #FFFFFF;

  /* Type */
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --gutter: 1.5rem;
  --maxw:   1120px;
  --readw:  38rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rust); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rust-deep); }

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 .5em;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem; z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- Layout primitives ---------- */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 44rem; }
.wrap--read   { max-width: var(--readw); }

.section { padding-block: clamp(3rem, 6vw, 5rem); }
.section--tint { background: var(--cream-deep); }
.section--navy { background: var(--navy); color: rgba(254,250,239,.86); }
.section--navy h2, .section--navy h3 { color: var(--cream); }
.section--navy a { color: #E8A57F; }

/* Standing head: the site's structural device. Mono, ruled, with a rust tick.
   Encodes who wrote a thing and when — the two facts that matter here. */
.standing-head {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy-soft);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  margin: 0 0 1.1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}
.standing-head::before {
  content: "";
  width: 1.5rem; height: 3px;
  background: var(--rust);
  flex: none;
}
.standing-head__sep { color: var(--line); }
.standing-head--plain { border-bottom: 0; padding-bottom: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 .9rem;
}

.lede { font-size: 1.1875rem; line-height: 1.6; color: var(--navy-soft); }

/* Byline chips — navy for the editor, rust for reader-contributed entries.
   The colour is doing real editorial work, not decoration. */
.byline-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .625rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .55rem;
  border: 1px solid currentColor;
  color: var(--navy-soft);
  white-space: nowrap;
}
.byline-chip--reader { color: var(--rust); }

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

.site-header {
  background: var(--cream);
  border-bottom: 2px solid var(--navy);
  padding-block: 1.1rem;
  position: relative;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.site-logo { display: block; flex: none; }
.site-logo img { width: auto; max-height: 62px; }
.site-logo--text {
  font-family: var(--display); font-size: 1.5rem; font-weight: 600;
  color: var(--navy); text-decoration: none;
}

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1.75rem; flex-wrap: wrap;
}
.site-nav a {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding-bottom: .25rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav .current-menu-item > a {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

.nav-toggle {
  display: none;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; background: none; color: var(--navy);
  border: 1px solid var(--navy); padding: .5rem .8rem; cursor: pointer;
}

@media (max-width: 780px) {
  .site-header__inner { justify-content: space-between; }
  .site-logo img { max-height: 44px; }
  .nav-toggle { display: block; }
  .site-nav { flex-basis: 100%; display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--line); margin-top: .9rem; }
  .site-nav li { border-bottom: 1px solid var(--line-soft); }
  .site-nav a { display: block; padding: .85rem 0; border-bottom: 0; }
}

/* ---------- Hero / the letter ---------- */

.letter {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.letter__kicker {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--rust); margin: 0 0 1.25rem;
}
.letter h1 {
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  line-height: 1.08;
  margin-bottom: 1.75rem;
  max-width: 18ch;
}
.letter h1 em { font-style: italic; color: var(--rust); }

/* The photograph and the letter read as one spread on wide screens and stack
   image-first on narrow ones, so the picture is still the thing you meet. */
.letter__grid { display: grid; gap: clamp(1.75rem, 4vw, 3.25rem); }

.letter__figure { margin: 0; }
.letter__figure img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-bottom: 3px solid var(--rust);
}
.letter__figure figcaption {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em;
  color: var(--navy-faint); margin-top: .7rem;
}

@media (min-width: 900px) {
  .letter__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .72fr);
    align-items: start;
  }
  .letter__figure { grid-column: 2; grid-row: 1; position: sticky; top: 2rem; }
  .letter__col    { grid-column: 1; grid-row: 1; }
  .letter h1 { max-width: 15ch; }
}

.letter__body { max-width: var(--readw); font-size: 1.09375rem; }
.letter__body > p { margin: 0 0 1.15em; }

/* Drop cap — one flourish, echoing the wordmark's serif. */
.letter__body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: 3.6em;
  line-height: .82;
  padding: .06em .1em 0 0;
  color: var(--rust);
}

.letter__sig {
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  max-width: var(--readw);
}
.letter__sig strong {
  font-family: var(--display); font-size: 1.25rem; font-weight: 600;
  display: block; color: var(--navy);
}
.letter__sig span {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--navy-faint);
}

/* ---------- Entry cards ---------- */

.entry-grid {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.entry-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  padding: 1.5rem;
  display: flex; flex-direction: column;
  transition: border-color .18s ease, transform .18s ease;
}
.entry-card:hover { border-top-color: var(--rust); transform: translateY(-2px); }
.entry-card--reader { border-top-color: var(--rust); }

.entry-card__meta {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--navy-faint); margin: 0 0 .75rem;
}
.entry-card__title { font-size: 1.3125rem; margin: 0 0 .6rem; }
.entry-card__title a { color: var(--navy); text-decoration: none; }
.entry-card__title a:hover { color: var(--rust); }
.entry-card__excerpt { margin: 0 0 1.25rem; color: var(--navy-soft); font-size: .96875rem; }
.entry-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }

.entry-card__cat {
  font-family: var(--mono); font-size: .625rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy-soft); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.entry-card__cat:hover { color: var(--rust); border-bottom-color: var(--rust); }

.entry-card__thumb { margin: -1.5rem -1.5rem 1.25rem; }
.entry-card__thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Single entry ---------- */

.entry-header { padding-block: clamp(2rem, 5vw, 3.25rem) 0; }
.entry-header h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 22ch; }
.entry-header__lede { max-width: var(--readw); margin-top: 1rem; }

.entry-featured { margin-block: 2.25rem; }
.entry-featured img { width: 100%; }
.entry-featured figcaption {
  font-family: var(--mono); font-size: .6875rem; color: var(--navy-faint);
  margin-top: .6rem; letter-spacing: .04em;
}

.entry-content { max-width: var(--readw); font-size: 1.09375rem; }
.entry-content > * { margin-block: 0 1.15em; }
.entry-content h2 { font-size: 1.5rem; margin-top: 2.25em; }
.entry-content h3 { font-size: 1.1875rem; margin-top: 1.9em; }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; }
.entry-content li { margin-bottom: .45em; }
.entry-content img { margin-block: 1.75em; }

.entry-content blockquote {
  margin: 2em 0; padding: .25em 0 .25em 1.5rem;
  border-left: 3px solid var(--rust);
  font-family: var(--display); font-size: 1.25rem; font-style: italic;
  color: var(--navy);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

/* Reader-submitted disclosure — required context, not a decorative callout. */
.reader-note {
  max-width: var(--readw);
  background: var(--rust-tint);
  border-left: 3px solid var(--rust);
  padding: 1.1rem 1.25rem;
  margin-block: 2rem;
  font-size: .9375rem;
  color: var(--navy);
}
.reader-note strong {
  font-family: var(--mono); font-size: .625rem; letter-spacing: .12em;
  text-transform: uppercase; display: block; margin-bottom: .4rem; color: var(--rust-deep);
}
.reader-note p { margin: 0; }

.entry-footer {
  max-width: var(--readw); margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.entry-tags { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }
.entry-tags a { margin-right: .5rem; }

.post-nav {
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin-top: 2.5rem; max-width: var(--readw);
}
.post-nav a {
  display: block; padding: 1rem 1.15rem; border: 1px solid var(--line);
  background: var(--white); text-decoration: none;
}
.post-nav a:hover { border-color: var(--rust); }
.post-nav span {
  display: block; font-family: var(--mono); font-size: .625rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--navy-faint); margin-bottom: .35rem;
}
.post-nav strong { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; color: var(--navy); }

/* ---------- Page / archive headers ---------- */

.page-head { padding-block: clamp(2.25rem, 5vw, 3.5rem) 0; }
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
.page-head .lede { max-width: var(--readw); }

.page-content { max-width: var(--readw); font-size: 1.09375rem; }
.page-content > * { margin-block: 0 1.15em; }
.page-content h2 { font-size: 1.4375rem; margin-top: 2.1em; }
.page-content h3 { font-size: 1.15rem; margin-top: 1.8em; }
.page-content ul, .page-content ol { padding-left: 1.25rem; }

/* ---------- Forms ---------- */

.fotb-form { max-width: var(--readw); margin-top: 2rem; }
.fotb-form__row { margin-bottom: 1.5rem; }
.fotb-form label {
  display: block;
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--navy); margin-bottom: .45rem;
}
.fotb-form .req { color: var(--rust); }
.fotb-form__hint {
  display: block; font-family: var(--body); font-size: .875rem;
  letter-spacing: 0; text-transform: none; color: var(--navy-soft);
  margin-top: -.25rem; margin-bottom: .5rem;
}
.fotb-form input[type="text"],
.fotb-form input[type="email"],
.fotb-form input[type="url"],
.fotb-form input[type="date"],
.fotb-form select,
.fotb-form textarea {
  width: 100%;
  font-family: var(--body); font-size: 1rem;
  color: var(--navy); background: var(--white);
  border: 1px solid var(--navy-faint);
  padding: .7rem .8rem;
  border-radius: 0;
}
.fotb-form textarea { min-height: 11rem; resize: vertical; line-height: 1.6; }
.fotb-form input:focus, .fotb-form select:focus, .fotb-form textarea:focus {
  border-color: var(--rust); outline: 2px solid var(--rust); outline-offset: 1px;
}
.fotb-form__check { display: flex; gap: .65rem; align-items: flex-start; }
.fotb-form__check input { margin-top: .3rem; flex: none; }
.fotb-form__check label {
  font-family: var(--body); font-size: .9375rem; letter-spacing: 0;
  text-transform: none; color: var(--navy-soft); margin: 0;
}

/* Honeypot — visually and programmatically out of the way for real users. */
.fotb-form__hp {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.btn {
  display: inline-block; cursor: pointer;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--navy); color: var(--cream);
  border: 2px solid var(--navy);
  padding: .85rem 1.75rem;
  text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--rust); border-color: var(--rust); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }

.fotb-notice {
  max-width: var(--readw);
  padding: 1.15rem 1.35rem; margin-bottom: 2rem;
  border-left: 3px solid var(--rust); background: var(--rust-tint);
  font-size: .96875rem;
}
.fotb-notice--ok { border-left-color: #2F6B45; background: #E7F1EA; }
.fotb-notice p { margin: 0 0 .5em; }
.fotb-notice p:last-child { margin-bottom: 0; }
.fotb-notice ul { margin: .5em 0 0; padding-left: 1.15rem; }

/* ---------- Comments ---------- */

.comments-area { max-width: var(--readw); margin-top: 3.5rem; padding-top: 2rem; border-top: 2px solid var(--navy); }
.comments-area h2 { font-size: 1.375rem; }
.comment-list { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.comment-list li { margin-bottom: 1.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-soft); }
.comment-list .children { list-style: none; margin: 1.5rem 0 0 1.5rem; padding-left: 1.25rem; border-left: 2px solid var(--line); }
.comment-meta {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy-faint); margin-bottom: .6rem;
}
.comment-meta b { color: var(--navy); font-weight: 500; }
.comment-respond { background: var(--white); border: 1px solid var(--line); padding: 1.75rem; }
.comment-respond .comment-reply-title { margin-top: 0; font-size: 1.25rem; }
.comment-form label {
  display: block; font-family: var(--mono); font-size: .6875rem;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4rem;
}
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; padding: .7rem .8rem;
  border: 1px solid var(--navy-faint); background: var(--white); border-radius: 0; color: var(--navy);
}
.comment-form p { margin-bottom: 1.1rem; }
.comment-form .submit {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--navy); color: var(--cream); border: 2px solid var(--navy);
  padding: .8rem 1.6rem; cursor: pointer;
}
.comment-form .submit:hover { background: var(--rust); border-color: var(--rust); }

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

.site-footer {
  background: var(--navy); color: rgba(254,250,239,.72);
  padding-block: 3.25rem 2rem; margin-top: 4rem;
}
.site-footer a { color: #E8A57F; }
.site-footer a:hover { color: var(--cream); }
.site-footer__grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.site-footer h3 {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .14em;
  text-transform: uppercase; color: #E8A57F; margin-bottom: .9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; font-size: .9375rem; }
.site-footer p { font-size: .9375rem; margin-top: 0; }
.site-footer__base {
  margin-top: 2.5rem; padding-top: 1.35rem; border-top: 1px solid rgba(254,250,239,.16);
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em;
  color: rgba(254,250,239,.5);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ---------- Utilities ---------- */

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 3rem; flex-wrap: wrap; }
.pagination .page-numbers {
  font-family: var(--mono); font-size: .8rem; padding: .55rem .85rem;
  border: 1px solid var(--line); text-decoration: none; color: var(--navy-soft);
  background: var(--white);
}
.pagination .page-numbers.current { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.pagination .page-numbers:hover { border-color: var(--rust); color: var(--rust); }

.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
  padding-bottom: .75rem; border-bottom: 2px solid var(--navy);
}
.section-head h2 { margin: 0; font-size: 1.5rem; }
.section-head a {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .1em;
  text-transform: uppercase; text-decoration: none;
}

.cta-strip { text-align: center; }
.cta-strip h2 { font-size: clamp(1.5rem, 3.5vw, 2.125rem); max-width: 22ch; margin-inline: auto; }
.cta-strip p { max-width: 42ch; margin-inline: auto; }
.cta-strip__btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; }
.section--navy .btn { background: var(--rust); border-color: var(--rust); color: var(--cream); }
.section--navy .btn:hover { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.section--navy .btn--ghost { background: transparent; border-color: rgba(254,250,239,.5); color: var(--cream); }
.section--navy .btn--ghost:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }

.no-entries { max-width: var(--readw); }

/* Load-in: hero only, and only when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .letter__kicker, .letter h1, .letter__figure, .letter__body, .letter__sig {
    animation: rise .5s cubic-bezier(.2,.6,.3,1) backwards;
  }
  .letter h1      { animation-delay: .05s; }
  .letter__figure { animation-delay: .1s; }
  .letter__body   { animation-delay: .15s; }
  .letter__sig    { animation-delay: .2s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- WordPress core classes ---------- */

.alignleft  { float: left;  margin: .35em 1.5em 1em 0; }
.alignright { float: right; margin: .35em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption {
  font-family: var(--mono); font-size: .6875rem; color: var(--navy-faint); margin-top: .5rem;
}
.sticky .entry-card { border-top-color: var(--rust); }
