/* ============================================================
   Field Station — site-wide chrome (posts, archives, pages).
   The homepage template has its own stylesheet; this file loads
   everywhere else. Everything is scoped to body.fs-site so it
   coexists with Elementor's kit styles on Elementor-built pages.
   ============================================================ */

:root {
  --pine: #0e1f17;
  --pine-2: #16291f;
  --moss: #1e3a2f;
  --cream: #ede6d6;
  --paper: #f3edde;
  --gold: #c9a84c;
  --gold-hot: #e3bd52;
  --gold-ink: #8a6d1f;
  --signal: #e8863a;
  --hairline: rgba(201, 168, 76, 0.22);
  --hairline-dark: rgba(30, 58, 47, 0.16);
}

/* doubled class beats Elementor kit's body-level globals */
body.fs-site.fs-site {
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--pine);
  color: var(--cream);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  margin: 0;
}

body.fs-site ::selection { background: var(--gold); color: var(--pine); }
body.fs-site a:focus-visible,
body.fs-site button:focus-visible { outline: 2px solid var(--gold-hot); outline-offset: 3px; }

body.fs-site .mono {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.fs-site .wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ---------- topo canvas ---------- */
body.fs-site #topo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}
body.fs-site .fs-main,
body.fs-site .fs-header,
body.fs-site .fs-footer { position: relative; z-index: 1; }

/* ---------- header ---------- */
body.fs-site .fs-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(14,31,23,0.92), rgba(14,31,23,0.75) 70%, transparent);
  backdrop-filter: blur(6px);
}
body.fs-site .fs-header .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  max-width: 1400px;
  margin: 0 auto;
}
body.fs-site .fs-header .brand {
  text-decoration: none;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
body.fs-site .fs-header .b1 { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.2em; }
body.fs-site .fs-header .b2 { font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; letter-spacing: 0.18em; color: var(--gold); }
body.fs-site .fs-header nav ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
body.fs-site .fs-header nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.8;
  transition: color .15s, opacity .15s;
}
body.fs-site .fs-header nav a:hover { opacity: 1; color: var(--gold-hot); }

body.fs-site .nav-toggle {
  display: none;
  width: 34px; height: 26px;
  position: relative;
  z-index: 41;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
body.fs-site .nav-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--cream);
  transition: transform .2s, opacity .2s, top .2s;
}
body.fs-site .nav-toggle span:nth-child(1) { top: 2px; }
body.fs-site .nav-toggle span:nth-child(2) { top: 12px; }
body.fs-site .nav-toggle span:nth-child(3) { top: 22px; }
body.fs-site .nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 12px; transform: rotate(45deg); }
body.fs-site .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
body.fs-site .nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

/* ---------- main / entry head ---------- */
body.fs-site .fs-main { padding: 150px 0 110px; min-height: 60vh; }
body.fs-site .fs-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
body.fs-site .fs-kicker::before {
  content: "";
  width: 42px; height: 1px;
  background: var(--gold);
}
body.fs-site .fs-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--cream);
  max-width: 24ch;
  margin: 0;
}
body.fs-site .fs-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: rgba(237,230,214,0.6);
  margin-top: 18px;
}

/* ---------- paper article panel ---------- */
body.fs-site .fs-article {
  background: var(--paper);
  color: var(--moss);
  border-radius: 2px;
  padding: clamp(30px, 5.5vw, 64px);
  margin-top: 44px;
  max-width: 860px;
}
body.fs-site .fs-article--page { max-width: 1040px; }

body.fs-site .fs-thumb { margin: 0 0 32px; }
body.fs-site .fs-thumb img { width: 100%; height: auto; border-radius: 2px; display: block; }

body.fs-site .fs-article p,
body.fs-site .fs-article li {
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--moss);
}
body.fs-site .fs-article p { margin: 0 0 1.4em; }
body.fs-site .fs-article h2,
body.fs-site .fs-article h3,
body.fs-site .fs-article h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--moss);
  line-height: 1.2;
  margin: 1.8em 0 0.6em;
}
body.fs-site .fs-article h2 { font-size: 1.75rem; }
body.fs-site .fs-article h3 { font-size: 1.35rem; }
body.fs-site .fs-article h4 { font-size: 1.1rem; }
body.fs-site .fs-article a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
body.fs-site .fs-article a:hover { color: var(--moss); }
body.fs-site .fs-article img { max-width: 100%; height: auto; border-radius: 2px; }
body.fs-site .fs-article figure { margin: 2em 0; }
body.fs-site .fs-article figcaption,
body.fs-site .fs-article .wp-caption-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(30,58,47,0.6);
  margin-top: 10px;
}
body.fs-site .fs-article blockquote {
  border-left: 2px solid var(--gold);
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.15rem;
}
body.fs-site .fs-article code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88em;
  background: rgba(30,58,47,0.08);
  padding: 2px 6px;
  border-radius: 2px;
}
body.fs-site .fs-article pre {
  background: var(--pine);
  color: var(--cream);
  padding: 22px;
  border-radius: 2px;
  overflow-x: auto;
  margin: 2em 0;
}
body.fs-site .fs-article pre code { background: none; padding: 0; color: inherit; }
body.fs-site .fs-article hr {
  border: 0;
  border-top: 1px dashed var(--hairline-dark);
  margin: 2.5em 0;
}
body.fs-site .fs-article table { border-collapse: collapse; width: 100%; margin: 2em 0; }
body.fs-site .fs-article th,
body.fs-site .fs-article td { border: 1px solid var(--hairline-dark); padding: 10px 14px; text-align: left; }

/* ---------- prev / next ---------- */
body.fs-site .fs-entry-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 860px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}
body.fs-site .fs-entry-nav a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-hot);
  text-decoration: none;
  max-width: 34ch;
}
body.fs-site .fs-entry-nav a:hover { color: var(--cream); }
body.fs-site .fs-next { text-align: right; margin-left: auto; }

/* ---------- log list (blog index / archives) ---------- */
body.fs-site .fs-loglist {
  background: var(--paper);
  border-radius: 2px;
  padding: 10px clamp(20px, 4vw, 44px);
  margin-top: 44px;
}
body.fs-site .fs-loglist .entry {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 30px;
  align-items: baseline;
  padding: 28px 6px;
  border-bottom: 1px solid var(--hairline-dark);
  text-decoration: none;
  color: var(--moss);
  transition: background .15s, padding-left .2s;
}
body.fs-site .fs-loglist .entry:last-child { border-bottom: 0; }
body.fs-site .fs-loglist .entry:hover { background: rgba(201,168,76,0.1); padding-left: 16px; }
body.fs-site .fs-loglist .stamp {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(30,58,47,0.6);
}
body.fs-site .fs-loglist h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--moss);
  margin: 0;
}
body.fs-site .fs-loglist .dir {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  color: var(--signal);
}
body.fs-site .fs-empty { color: rgba(30,58,47,0.6); padding: 28px 6px; }

/* ---------- pagination ---------- */
body.fs-site .fs-pagination { margin-top: 36px; }
body.fs-site .fs-pagination .nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
body.fs-site .fs-pagination .page-numbers {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.75;
}
body.fs-site .fs-pagination .page-numbers:hover { opacity: 1; color: var(--gold-hot); }
body.fs-site .fs-pagination .page-numbers.current { color: var(--gold-hot); opacity: 1; }

/* ---------- footer ---------- */
body.fs-site .fs-footer {
  border-top: 1px solid var(--hairline);
  padding: 44px 0;
}
body.fs-site .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237,230,214,0.6);
}
body.fs-site .foot a { color: rgba(237,230,214,0.7); text-decoration: none; }
body.fs-site .foot a:hover { color: var(--gold-hot); }
body.fs-site .foot .links { display: flex; gap: 26px; }

/* ---------- admin bar ---------- */
body.fs-site.admin-bar .fs-header { top: 32px; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  body.fs-site .nav-toggle { display: block; }
  body.fs-site .fs-header nav {
    position: fixed;
    top: 0; right: 0;
    height: 100svh;
    width: min(78vw, 320px);
    background: var(--pine-2);
    border-left: 1px solid var(--hairline);
    padding: 100px 34px 34px;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.2,.7,.2,1);
    z-index: 39;
  }
  body.fs-site .fs-header nav.open { transform: translateX(0); }
  body.fs-site .fs-header nav ul { flex-direction: column; gap: 26px; }
  body.fs-site .fs-header nav ul a { font-size: 0.85rem; }
  body.fs-site .fs-loglist .entry { grid-template-columns: 1fr; gap: 6px; }
  body.fs-site .fs-loglist .dir { display: none; }
}
@media (max-width: 782px) {
  body.fs-site.admin-bar .fs-header { top: 46px; }
}
@media (max-width: 560px) {
  body.fs-site .fs-main { padding-top: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  body.fs-site .fs-header nav { transition: none; }
}

/* ---------- 404 ---------- */
body.fs-site .fs-404 {
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.fs-site .fs-404 .fs-title { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
body.fs-site .fs-404-sub {
  max-width: 52ch;
  margin-top: 26px;
  color: rgba(237,230,214,0.78);
  font-size: 1.06rem;
}
body.fs-site .fs-404-cta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 38px;
}
body.fs-site .fs-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 2px;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
body.fs-site .fs-btn-solid { background: var(--gold); color: var(--pine); font-weight: 600; }
body.fs-site .fs-btn-solid:hover { background: var(--gold-hot); transform: translateY(-2px); }
body.fs-site .fs-btn-line { border: 1px solid rgba(237,230,214,0.35); color: var(--cream); }
body.fs-site .fs-btn-line:hover { border-color: var(--gold-hot); color: var(--gold-hot); }
body.fs-site .fs-404-coord {
  margin-top: 56px;
  font-size: 0.68rem;
  color: rgba(237,230,214,0.45);
}
