/* itsmanar: editorial layout.
   Type: Charter (serif, reading and headlines) + Libre Franklin (labels, navigation). Both self-hosted in /fonts.
   Palette: ink on white, thin rules, no colour accents. Dark mode inverts. */

@font-face { font-family: "Charter"; src: url("fonts/charter_regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Charter"; src: url("fonts/charter_italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Charter"; src: url("fonts/charter_bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Charter"; src: url("fonts/charter_bold_italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("fonts/libre-franklin-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Franklin"; src: url("fonts/libre-franklin-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #ffffff;
  --fg: #121212;
  --muted: #5e5e5e;
  --line: #e2e2e2;
  --rule: #121212;
  --band-bg: #121212;
  --band-fg: #f1f1f1;
  --band-muted: #a8a8a8;
  --band-line: #333333;
  --wrap: 1240px;
  --radius: 14px;
  --radius-lg: 22px;
  --gut: 24px;
  --serif: "Charter", Georgia, serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111111; --fg: #ededed; --muted: #a3a3a3; --line: #2c2c2c; --rule: #ededed;
          --band-bg: #1b1b1b; --band-fg: #ededed; --band-muted: #a3a3a3; --band-line: #333; }
}
@media (max-width: 760px) { :root { --gut: 16px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 18px/1.6 var(--serif); font-kerning: normal; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85em; }
img { max-width: 100%; display: block; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--bg); padding: .5rem; }

/* Labels */
.kicker, .status, .meta, .section-label, .more, .soon, .byline-name, nav, .lang, .site-footer, table, dl, .small, .contact h3 { font-family: var(--sans); }
.kicker, .status, .meta { font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding-top: .7rem; border-top: 2px solid var(--rule); margin-bottom: 1.6rem; }
.dek { color: var(--muted); font-size: 1.02rem; line-height: 1.5; margin: .5rem 0 0; }
.soon { font-size: .8rem; color: var(--muted); margin: .7rem 0 0; }
.soon::before { content: "— "; }
.more { display: inline-block; margin-top: 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.more::after, .open::after { content: " →"; }
.empty { color: var(--muted); font-style: italic; }
h3 a { text-decoration: none; }
h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* Masthead */
.masthead { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--rule); }
.masthead-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 2.5rem; min-height: 64px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.55rem; letter-spacing: -.02em; text-decoration: none; }
nav.primary { display: flex; gap: 1.8rem; font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
nav.primary a { text-decoration: none; color: var(--muted); padding: .3rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
nav.primary a:hover { color: var(--fg); }
nav.primary a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--rule); }
.lang { margin-left: auto; font-size: .75rem; font-weight: 600; letter-spacing: .06em; }
.lang a { text-decoration: none; color: var(--muted); }
.lang a:hover { color: var(--fg); }
.lang .sep { color: var(--line); margin: 0 .35rem; }
@media (max-width: 760px) {
  .masthead-inner { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: .7rem; }
  .brand { font-size: 1.35rem; }
  nav.primary { order: 3; width: 100%; gap: 1.3rem; overflow-x: auto; padding: .5rem 0 .4rem; scrollbar-width: none; }
}

/* Page frame */
main { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut) 4rem; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }

/* Front page: intro */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: calc(var(--gut) * 2); padding: 4.5rem 0 4rem; border-bottom: 1px solid var(--line); }
.intro-text { grid-column: 1 / span 8; }
.display { font-size: clamp(2.5rem, 5.4vw, 4.9rem); line-height: 1.02; letter-spacing: -.025em; }
.byline { grid-column: 9 / span 4; border-left: 1px solid var(--line); padding-left: calc(var(--gut) * 1.2); font-size: .98rem; line-height: 1.55; align-self: end; }
.byline .portrait { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; }
.byline-name { font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: .5rem; }
.pronouns { font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--muted); margin-left: .35rem; }

/* Front page: featured */
.featured { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: calc(var(--gut) * 2); padding-top: 3.5rem; }
.featured > .section-label { grid-column: 1 / -1; }
.lead { grid-column: 1 / span 7; }
.lead h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: .2rem; }
.lead .dek { font-size: 1.2rem; max-width: 34rem; }
.side { grid-column: 8 / span 5; border-left: 1px solid var(--line); padding-left: calc(var(--gut) * 1.2); }
.teaser { padding-bottom: 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.teaser:last-child { border-bottom: 0; margin-bottom: 0; }
.teaser .cover { aspect-ratio: 2.2 / 1; margin: 0 0 .9rem; }
.teaser .credit { margin: .5rem 0 0; }
.teaser h3 { font-size: 1.3rem; }
.teaser .dek { font-size: .95rem; }

/* Covers: typographic panels until real images exist */
.cover { display: flex; align-items: flex-end; aspect-ratio: 16 / 10; margin-bottom: 1.1rem; padding: 1rem 1.1rem; text-decoration: none; overflow: hidden; border-radius: var(--radius); }
.cover span { font-family: var(--serif); line-height: .95; }
.cover-map { background-color: #121212; color: #f1f1f1;
  background-image: radial-gradient(circle, rgba(255,255,255,.32) 1px, transparent 1.6px); background-size: 14px 14px; }
.cover-map span { font-size: clamp(4rem, 11vw, 9rem); font-weight: 700; letter-spacing: -.04em; }
.cover-video { background: #e8e3db; color: #121212; }
.cover-video span { font-style: italic; font-size: 1.35rem; }
.cover-explainer { background: #efe8da; color: #121212; border: 1px solid #121212; }
.cover-explainer span { font-weight: 700; font-size: 1.15rem; }
@media (prefers-color-scheme: dark) {
  .cover-map { background-color: #000; }
  .cover-video { background: #2a2825; color: #ededed; }
  .cover-explainer { background: #1f1d19; color: #ededed; border-color: #555; }
}

/* Front page: strands */
.strands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--gut) * 2); padding-top: 4rem; }
.strands > .section-label { grid-column: 1 / -1; }
.strand { display: block; text-decoration: none; padding: 1.4rem 0 1.6rem; border-top: 1px solid var(--line); }
.strand h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: .6rem; }
.strand p:not(.status) { color: var(--muted); max-width: 30rem; }
.strand:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Section pages */
.page-head { padding: 4rem 0 3rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.3rem, 4.8vw, 4.2rem); line-height: 1.04; letter-spacing: -.025em; max-width: 18ch; }
.page-head .lede { font-size: 1.25rem; color: var(--muted); max-width: 40rem; margin: 1.2rem 0 0; }
main > section:not(.intro):not(.featured):not(.strands) { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: calc(var(--gut) * 2); padding: 3rem 0 1rem; border-bottom: 1px solid var(--line); }
main > section:not(.intro):not(.featured):not(.strands) > h2 { grid-column: 1; grid-row: 1 / span 20; align-self: start; position: sticky; top: 88px;
  font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding-top: .7rem; border-top: 2px solid var(--rule); }
main > section:not(.intro):not(.featured):not(.strands) > :not(h2) { grid-column: 2; max-width: 46rem; }
main > section:last-of-type { border-bottom: 0; }
.project, .item { padding: 0 0 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.project:last-of-type, .item:last-of-type { border-bottom: 0; }
.project h3, .item h3 { font-size: 1.55rem; margin-bottom: .4rem; }
.project p, .item p { margin: .4rem 0; }
.links { list-style: none; padding: 0; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.open { font-family: var(--sans); font-size: .82rem; font-weight: 600; text-decoration: none; }
.open:hover { text-decoration: underline; }

/* Contact band */
.contact { background: var(--band-bg); color: var(--band-fg); max-width: calc(var(--wrap) - 2 * var(--gut)); margin: 2rem auto 0; border-radius: var(--radius-lg); }
@media (max-width: 1288px) { .contact { margin-left: var(--gut); margin-right: var(--gut); } }
.contact-inner { margin: 0 auto; padding: 4rem clamp(20px, 4vw, 56px) 3.5rem; }
.contact .kicker { color: var(--band-muted); }
.contact h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.02em; margin-bottom: 2.5rem; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2.5rem calc(var(--gut) * 2); }
.contact h3 { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--band-muted); padding-top: .7rem; border-top: 1px solid var(--band-line); margin-bottom: 1rem; }
.rates { border-collapse: collapse; width: 100%; font-size: .95rem; }
.rates th, .rates td { text-align: left; font-weight: 400; padding: .6rem 0; border-bottom: 1px solid var(--band-line); vertical-align: top; }
.rates td { text-align: right; padding-left: 1rem; font-weight: 600; white-space: nowrap; }
dl { margin: 0; font-size: .95rem; display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.4rem; }
dt { color: var(--band-muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.contact a { color: var(--band-fg); }
.fpr { word-spacing: .3em; }
.small { font-size: .8rem; color: var(--band-muted); margin-top: 1.2rem; }
@media (max-width: 480px) { dl { grid-template-columns: 1fr; gap: .1rem; } dd { margin-bottom: .6rem; } }

/* Footer */
.site-footer { max-width: var(--wrap); margin: 0 auto; padding: 1.4rem var(--gut) 2.5rem; font-size: .75rem; color: var(--muted); }
.site-footer p { margin: 0; }

/* Tablet and phone */
@media (max-width: 960px) {
  .intro-text, .byline, .lead, .side { grid-column: 1 / -1; }
  .byline { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 2.5rem; display: grid; grid-template-columns: 96px 1fr; column-gap: 1.2rem; }
  .side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.6rem; margin-top: 2rem; }
  .strands { grid-template-columns: 1fr; }
  main > section:not(.intro):not(.featured):not(.strands) { grid-template-columns: 1fr; }
  main > section:not(.intro):not(.featured):not(.strands) > h2 { position: static; grid-row: auto; margin-bottom: 1.5rem; }
  main > section:not(.intro):not(.featured):not(.strands) > :not(h2) { grid-column: 1; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .intro { padding: 2.5rem 0 2.5rem; }
  .byline { grid-template-columns: 72px 1fr; }
  .byline .portrait { width: 72px; height: 72px; }
  .page-head { padding: 2.5rem 0 2rem; }
}

/* Highlighter: reserved for short display lines such as the tagline */
.hl { background: linear-gradient(transparent 62%, rgba(255, 214, 0, .45) 0); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (prefers-color-scheme: dark) { .hl { background: linear-gradient(transparent 62%, rgba(255, 214, 0, .28) 0); } }
/* Draft copy is not styled; build.py --check still blocks publishing while any remains */

/* Images in covers, photo credits */
.cover-img { padding: 0; background: var(--line); }
.cover-img img { width: 100%; height: 100%; object-fit: cover; }
.cover-paper { background: #efe8da; }
.cover-paper img { object-fit: contain; }
.credit { font-family: var(--sans); font-size: .68rem; color: var(--muted); margin: .4rem 0 0; }

/* Embedded map on the Reporting page */
.map-embed { margin: 0; padding: 3rem 0 3rem; border-bottom: 1px solid var(--line); }
.map-embed figcaption { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: calc(var(--gut) * 2); margin-bottom: 1.5rem; }
.map-embed figcaption > * { grid-column: 2; max-width: 46rem; }
.map-embed figcaption .kicker { grid-column: 1; grid-row: 1 / span 4; padding-top: .7rem; border-top: 2px solid var(--rule); align-self: start; }
.map-embed h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: .4rem; }
.map-embed iframe { display: block; width: 100%; height: 860px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
@media (max-width: 960px) {
  .map-embed figcaption { grid-template-columns: 1fr; }
  .map-embed figcaption > *, .map-embed figcaption .kicker { grid-column: 1; grid-row: auto; }
  .map-embed iframe { height: 720px; }
}

/* Request a quote */
.contact .quote { display: inline-block; margin-top: 1.4rem; padding: .75rem 1.3rem; border-radius: 999px; background: var(--band-fg); color: var(--band-bg); font-family: var(--sans); font-size: .85rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; }
.contact .quote::after { content: " →"; }
.contact .quote:hover { opacity: .88; }

/* ===== No separator lines: the page flows on spacing alone ===== */
.masthead { border-bottom: 0; }
.section-label, main > section:not(.intro):not(.featured):not(.strands) > h2, .map-embed figcaption .kicker { border-top: 0; padding-top: 0; }
.intro, .page-head, .map-embed, main > section:not(.intro):not(.featured):not(.strands) { border-bottom: 0; }
.byline, .side { border-left: 0; }
.teaser, .project, .item { border-bottom: 0; }
.strand { border-top: 0; }
.site-footer { border-top: 0; }
.contact h3 { border-top: 0; padding-top: 0; }
.rates th, .rates td { border-bottom: 0; padding: .35rem 0; }
@media (max-width: 960px) { .byline, .side { border-top: 0; } }
.intro { padding-bottom: 3rem; }
.featured { padding-top: 2rem; }
.strands { padding-top: 5rem; }
main > section:not(.intro):not(.featured):not(.strands) { padding: 2.5rem 0 1.5rem; }

/* ===== Featured: the map leads, full width ===== */
.lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: calc(var(--gut) * 2); align-items: start; margin-bottom: 3.5rem; }
.lead > :not(.lead-map) { grid-column: 1; }
.lead-map { grid-column: 2; grid-row: 1 / span 6; }
.lead-map iframe { display: block; width: 100%; height: 760px; border: 0; border-radius: var(--radius); background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.side { grid-column: 1 / -1; padding-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--gut) * 2); }
.teaser { margin-bottom: 0; }
@media (max-width: 960px) {
  .lead { grid-template-columns: 1fr; }
  .lead-map { grid-column: 1; grid-row: auto; margin-top: 1.2rem; }
  .lead-map iframe { height: 680px; }
  .side { grid-template-columns: 1fr; margin-top: 0; padding-top: 0; }
}
