/* Inner pages — "the logbook and the chart plate".
   Shares the night-chart language of study A (gold lines on navy paper)
   and study E's type: Instrument Serif for headings, Geist for reading, Geist Mono for labels.
   No WebGL, no animation required for reading. */

@import url('./interiors.css');

:root {
  --paper: #0a1426;
  --blue: #102544;
  --line: #c6a35e;
  --line-hot: #f0cf8c;
  --ink: #f5efe3;
  --mist: #c8d2df;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --gutter: clamp(1.25rem, 6vw, 6.5rem);
  --measure: 38.5rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 1.04rem/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, pre { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--line-hot); outline-offset: 3px; }
::selection { background: var(--line); color: var(--paper); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- shared header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem var(--gutter);
  border-bottom: 1px solid rgba(198, 163, 94, .22);
}
.brand {
  display: flex; align-items: center; gap: .7rem;
  text-decoration: none; font: 400 1.16rem/1 var(--serif); letter-spacing: .01em;
  color: var(--ink);
}
.brand svg { width: 1.35rem; height: auto; display: block; }
.brand b { font-weight: 400; color: var(--line); }
.top nav { display: flex; gap: clamp(.9rem, 2.2vw, 2rem); }
.top nav a {
  font: 400 .68rem/1 var(--mono); font-stretch: 87.5%; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; padding: .55rem 0;
  border-bottom: 1px solid transparent; transition: border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.top nav a:hover { border-bottom-color: var(--line); color: var(--line-hot); }
.top nav a[aria-current="page"] { color: var(--line-hot); border-bottom-color: rgba(198, 163, 94, .55); }

/* ---------- shared type + actions ---------- */
.eyebrow {
  font: 500 .7rem/1.3 var(--mono); font-stretch: 87.5%; letter-spacing: .15em;
  text-transform: uppercase; color: var(--line); margin-bottom: 1.1rem;
}
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.08; }
h3 { font: 400 1.5rem/1.2 var(--serif); }
.lede { color: var(--mist); }
.btn {
  display: inline-block; background: var(--line); color: var(--paper);
  text-decoration: none; padding: .9rem 1.35rem; border: 0; cursor: pointer;
  font: 500 .72rem/1 var(--mono); font-stretch: 87.5%; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .25s ease;
}
.btn:hover { background: var(--line-hot); }
.link {
  font: 500 .72rem/1 var(--mono); font-stretch: 87.5%; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px;
  text-underline-offset: .45em; color: var(--ink);
  transition: color .25s ease, text-decoration-color .25s ease;
}
.link:hover { color: var(--line-hot); text-decoration-color: currentColor; }
.actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }

/* soundings list: the chart's ruled list with dash leads */
.soundings { margin-top: 1.1rem; border-top: 1px solid rgba(198, 163, 94, .34); }
.soundings li {
  padding: .62rem 0 .62rem 1.4rem; position: relative;
  border-bottom: 1px solid rgba(198, 163, 94, .2); font-size: .98rem; line-height: 1.45;
}
.soundings li:last-child { border-bottom: 0; }
.soundings li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: .9rem; height: 1px; background: var(--line);
}

/* cartouche: the chart's note panel */
.note {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border: 1px solid rgba(198, 163, 94, .34);
  padding: 1.5rem 1.6rem 1.6rem;
}

/* ---------- shared footer ---------- */
footer.site {
  border-top: 1px solid rgba(198, 163, 94, .22);
  margin-top: 4.5rem;
  padding: 1.6rem var(--gutter) 2.4rem;
  display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between;
  font: 400 .64rem/1.7 var(--mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mist);
}
footer.site a { color: var(--line); text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
footer.site a:hover { color: var(--line-hot); }

/* ---------- page shells ---------- */
.hero { padding: clamp(3rem, 7vh, 5.5rem) var(--gutter) clamp(2rem, 5vh, 3.5rem); }
.hero h1 { max-width: 15em; }
.hero .lede { max-width: 46rem; margin-top: 1.4rem; }
.hero .actions { margin-top: 2rem; }

/* ---------- engagements: the chart plate ---------- */
.plate-wrap { padding: 0 var(--gutter); }
.plate { border: 1px solid rgba(198, 163, 94, .32); }
.plate svg { display: block; width: 100%; height: auto; }
.plate-cap {
  margin-top: .7rem;
  font: 400 .62rem/1.6 var(--mono); font-stretch: 87.5%; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mist);
}
.plate svg text { font-family: var(--mono); }
.plate .mark a, .plate a.mark { outline: none; }
.plate a.mark:focus-visible { outline: 1.5px solid var(--line-hot); outline-offset: 4px; }
.plate .mark circle.ring { transition: stroke .25s ease; }
.plate a.mark:hover circle.ring, .plate a.mark:focus-visible circle.ring { stroke: var(--line-hot); }
.plate a.mark:hover text, .plate a.mark:focus-visible text { fill: var(--line-hot); }

/* ---------- engagements: report positions ---------- */
.reports { padding: 1.5rem var(--gutter) 0; max-width: 78rem; }
.report {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17.5rem);
  gap: 1.5rem 3rem;
  padding: 3rem 0 3.2rem;
  border-top: 1px solid rgba(198, 163, 94, .3);
  scroll-margin-top: 4.5rem;
}
.report:first-of-type { margin-top: 2.5rem; }
.pos-kicker {
  font: 500 .66rem/1.5 var(--mono); font-stretch: 87.5%; letter-spacing: .14em;
  text-transform: uppercase; color: var(--line); margin-bottom: 1rem;
}
.pos-kicker span { color: var(--mist); }
.report h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.report .subtitle { font-style: italic; color: color-mix(in srgb, var(--mist) 78%, transparent); margin-top: .5rem; }
.report .desc { margin-top: 1.2rem; max-width: 40rem; color: color-mix(in srgb, var(--ink) 88%, transparent); }
.report h3 { font-size: 1.05rem; margin-top: 2rem; }
.report-body { grid-column: 1; min-width: 0; }
.report .sheets { grid-column: 2; grid-row: 1; align-self: start; }
.sheets { display: grid; gap: .9rem; }
.sheets figure { border: 1px solid rgba(198, 163, 94, .35); }
.sheets a { display: block; }
.sheets img { display: block; width: 100%; height: auto; }
.sheets figcaption {
  border-top: 1px solid rgba(198, 163, 94, .25);
  padding: .32rem .5rem;
  font: 400 .58rem/1.4 var(--mono); font-stretch: 87.5%; letter-spacing: .12em; text-transform: uppercase;
  color: var(--line);
}
.report .actions { margin-top: 2.1rem; }

/* ---------- engagements: closing call ---------- */
.contact-box { margin: 1rem var(--gutter) 0; }
.contact-box .note { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center; padding: 2rem 2.2rem; }
.contact-box .lede { max-width: 38rem; margin-top: .8rem; }

/* ---------- post: logbook ---------- */
.log { max-width: 78rem; margin: 0 auto; padding: clamp(2.5rem, 6vh, 4.5rem) var(--gutter) 0; }
.log-head { max-width: var(--measure); }
.log-head h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.log-head .lede { margin-top: 1.2rem; font-size: 1.06rem; }
.meta-row {
  display: flex; flex-wrap: wrap; gap: .45rem .6rem; align-items: baseline;
  margin-top: 1.5rem;
  font: 400 .64rem/1.6 var(--mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mist);
}
.meta-row .dot { color: var(--line); margin: 0 .1rem; }
.meta-row .tag {
  color: var(--line); border: 1px solid rgba(198, 163, 94, .45);
  padding: .18rem .45rem; text-transform: none; letter-spacing: .06em;
}
.log-mark { margin: 2.2rem 0 0; border: 1px solid rgba(198, 163, 94, .32); }
.log-mark svg { display: block; width: 100%; height: auto; }
.log-mark figcaption {
  border-top: 1px solid rgba(198, 163, 94, .25);
  padding: .4rem .6rem;
  font: 400 .6rem/1.6 var(--mono); font-stretch: 87.5%; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mist);
}
.log-mark figcaption span { color: var(--line); }

/* body: quiet measure, nothing moving behind the words */
.post-body { max-width: var(--measure); margin-top: 2.8rem; }
.post-body p { margin-top: 1.15rem; font-size: 1.05rem; line-height: 1.66; }
.post-body > section:first-of-type > p:first-of-type { margin-top: 0; }
.post-body h2 {
  font-size: 1.72rem; line-height: 1.22; margin: 3rem 0 .2rem; text-wrap: balance;
}
.post-body h2::before {
  content: ""; display: block; width: 1.6rem; height: 1px;
  background: var(--line); margin-bottom: 1.1rem;
}
.post-body ul { margin-top: 1.15rem; }
.post-body blockquote {
  margin: 1.6rem 0 0; padding-left: 1.2rem; border-left: 1px solid rgba(198, 163, 94, .55);
  font-style: italic; color: var(--mist);
}
.post-body code { font: 400 .82em var(--mono); color: var(--line-hot); }
.post-body pre {
  margin: 1.4rem 0 0; padding: 1rem 1.2rem; overflow-x: auto;
  border: 1px solid rgba(198, 163, 94, .3); background: color-mix(in srgb, var(--blue) 45%, transparent);
  font: 400 .78rem/1.6 var(--mono); color: var(--mist);
}
.lantern { animation: lantern 6s ease-in-out infinite; }
@keyframes lantern { 50% { opacity: .35; } }

/* subscribe + cta (mock, inert) */
.subscribe { max-width: 78rem; margin: 3.6rem auto 0; padding: 0 var(--gutter); }
.subscribe .note h2, .contact-box .note h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.subscribe form { margin-top: 1.3rem; display: grid; gap: 1rem; max-width: 34rem; }
.subscribe label { display: grid; gap: .35rem; font: 400 .64rem/1.4 var(--mono); font-stretch: 87.5%; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.subscribe label .optional { color: color-mix(in srgb, var(--mist) 60%, transparent); text-transform: none; letter-spacing: .06em; }
.subscribe input[type="email"], .subscribe input[type="text"] {
  font: 400 1rem/1.4 var(--serif); color: var(--ink);
  background: color-mix(in srgb, var(--blue) 55%, transparent);
  border: 1px solid rgba(198, 163, 94, .4); border-radius: 0; padding: .7rem .8rem;
}
.subscribe input:focus-visible { outline: 2px solid var(--line-hot); outline-offset: 1px; }
.subscribe .consent { display: flex; gap: .6rem; align-items: start; font: 400 .78rem/1.5 var(--serif); color: var(--mist); text-transform: none; letter-spacing: 0; }
.subscribe .consent input { margin-top: .3rem; accent-color: var(--line); }
.subscribe .btn { justify-self: start; }

.article-cta { max-width: 78rem; margin: 3.6rem auto 0; padding: 0 var(--gutter); }
.article-cta .note { padding: 2rem 2.2rem; }
.article-cta .lede { max-width: 38rem; margin-top: .8rem; }
.article-cta .btn { margin-top: 1.6rem; }
.article-footer {
  max-width: 78rem; margin: 2.6rem auto 0; padding: 0 var(--gutter);
  display: flex; gap: 1.8rem; flex-wrap: wrap;
}

/* more from the log */
.more { max-width: 78rem; margin: 4rem auto 0; padding: 0 var(--gutter); }
.more-kicker {
  font: 500 .7rem/1.3 var(--mono); font-stretch: 87.5%; letter-spacing: .15em; text-transform: uppercase;
  color: var(--mist); padding-bottom: .8rem; border-bottom: 1px solid rgba(198, 163, 94, .4);
}
.more ul { margin-top: 0; }
.more li { border-bottom: 1px solid rgba(198, 163, 94, .2); }
.more a {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .6rem 2.4rem;
  padding: 1.6rem 0; text-decoration: none; align-items: start;
}
.more a:hover .entry-title, .more a:focus-visible .entry-title { color: var(--line-hot); }
.more .entry-mark { border: 1px solid rgba(198, 163, 94, .3); }
.more .entry-mark svg { display: block; width: 100%; height: auto; }
.more .entry-title { font: 400 1.35rem/1.2 var(--serif); transition: color .25s ease; }
.more .entry-meta {
  display: block; margin-top: .5rem;
  font: 400 .62rem/1.6 var(--mono); font-stretch: 87.5%; letter-spacing: .1em; text-transform: uppercase;
  color: var(--line);
}
.more .entry-desc { display: block; margin-top: .5rem; color: var(--mist); font-size: .96rem; }

/* ---------- phone ---------- */
@media (max-width: 767px) {
  body { font-size: 1rem; }
  .top { padding: .9rem var(--gutter) .9rem; flex-wrap: wrap; }
  .brand { font-size: 1.02rem; }
  .top nav { gap: 1rem; }
  .top nav a { font-size: .6rem; }
  .top nav a.hide-phone { display: none; }
  .report { grid-template-columns: minmax(0, 1fr); padding: 2.2rem 0 2.4rem; }
  .report .sheets { grid-column: 1; grid-row: auto; margin-top: 1.6rem; }
  .report-body { grid-column: 1; }
  .sheets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
  .sheets figcaption { padding: .22rem .35rem; font-size: .52rem; }
  .contact-box .note, .article-cta .note { display: block; padding: 1.4rem 1.3rem; }
  .contact-box, .article-cta, .subscribe, .more { padding-left: var(--gutter); padding-right: var(--gutter); }
  .reports, .log { padding-left: var(--gutter); padding-right: var(--gutter); }
  .more a { grid-template-columns: minmax(0, 1fr); }
  .post-body h2 { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lantern { animation: none; }
  .top nav a, .btn, .link, .more .entry-title, .plate .mark circle.ring { transition: none; }
}
