/* Waymark. Warm paper, ink, and one colour for each section of the magazine. */
:root {
  --page: #fbf9f5;
  --band: #f6f1e8;
  --paper: #ffffff;
  --ink: #1a1918;
  --muted: #6b655d;
  --faint: #a39b8f;
  --line: #e5dfd5;
  --line-strong: #d8cfc1;
  --accent: #c85a32;
  --accent-dark: #9e3e1c;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1180px;
  --column: 720px;
  --lift: 0 34px 60px -30px rgba(74, 48, 22, .5), 0 14px 26px -16px rgba(74, 48, 22, .28), 0 1px 2px rgba(74, 48, 22, .08);
  --soft: 0 16px 30px -18px rgba(74, 48, 22, .38), 0 2px 6px rgba(74, 48, 22, .06);
  --c: var(--accent);
}
.c-story { --c: #c85a32; } .c-destination { --c: #1f7a7a; } .c-attraction { --c: #8e3b6e; } .c-project { --c: #4f7f52; } .c-all { --c: var(--ink); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 60; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.column { max-width: calc(var(--column) + 64px); margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted); }

/* masthead */
#top { position: sticky; top: 0; z-index: 40; background: rgba(250, 247, 240, .93); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; padding: 14px 32px; max-width: var(--wrap); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; color: var(--ink); line-height: 1.1; }
.brand-text { display: flex; flex-direction: column; }
.logo { display: inline-flex; height: 44px; flex: none; }
.logo svg, .logo img { height: 100%; width: auto; max-width: 150px; object-fit: contain; display: block; }
.logo.big { height: 64px; }
.logo-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tnote { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; padding: 10px 14px; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--paper); font-size: .86rem; color: var(--muted); }
body.noscroll { overflow: hidden; }
.brand b { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; text-transform: uppercase; }
.brand i { font-family: var(--serif); font-size: .8rem; color: var(--muted); margin-top: 2px; }
.seg { display: inline-flex; gap: 2px; background: #efe9de; border: 1px solid var(--line); border-radius: 12px; padding: 4px; flex-wrap: wrap; }
.seg a, .seg button { font: inherit; font-size: .8rem; font-weight: 500; color: var(--muted); text-decoration: none; padding: 7px 14px; border-radius: 8px; border: 0; background: none; cursor: pointer; }
.seg a:hover, .seg button:hover { background: rgba(255, 255, 255, .6); }
.seg a.on, .seg button.on { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.acct { display: flex; align-items: center; gap: 12px; font-size: .84rem; }
.who { font-weight: 600; }
.link { font: inherit; font-weight: 600; color: var(--accent); background: none; border: 0; cursor: pointer; text-decoration: none; padding: 0; }
.link:hover { color: var(--accent-dark); text-decoration: underline; }
.langs { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.langs button { font-family: var(--mono); font-size: .68rem; padding: 5px 8px; background: none; border: 0; cursor: pointer; color: var(--muted); }
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.notice { background: #fbe9c9; border-top: 1px solid #ecd296; padding: 9px 20px; text-align: center; font-size: .9rem; font-weight: 500; }

/* small parts */
.tag { display: inline-block; font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c) 26%, #fff); white-space: nowrap; }
.meta { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; font-family: var(--mono); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.meta > span:not(.tag)::before { content: "\2022"; margin-right: 12px; color: var(--line-strong); }
.credit { font-size: .8rem; color: var(--muted); display: flex; gap: 4px 14px; flex-wrap: wrap; }
.credit b { font-weight: 600; color: var(--ink); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #ece5d8; color: var(--muted); font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.avatar.small { width: 28px; height: 28px; font-size: .64rem; }
.band-title { font-size: 1.7rem; margin: 0 0 20px; }

/* pictures, and the Waymark plate for stories without a photo */
.frame { position: relative; overflow: hidden; background: #ece5d8; border-radius: 14px; }
.frame > img { width: 100%; height: 100%; object-fit: cover; }
.plate { position: relative; width: 100%; height: 100%; min-height: 100%; overflow: hidden; background: var(--c); }
.plate svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plate-mark, .plate-no { position: absolute; top: 12px; font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: rgba(255, 255, 255, .78); padding: 3px 7px; border-radius: 5px; }
.plate-mark { left: 12px; } .plate-no { right: 12px; }
.badge { position: absolute; left: 12px; bottom: 12px; z-index: 1; font-family: var(--mono); font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .94); color: var(--ink); padding: 4px 8px; border-radius: 6px; }
.plate-card { margin: 0; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden; box-shadow: var(--lift); }
.plate-card > img { width: 100%; max-height: 620px; object-fit: cover; }
.plate-card > .plate { aspect-ratio: 16 / 8; min-height: 0; }
.plate-card figcaption, .hero-caption figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 24px; flex-wrap: wrap; padding: 12px 18px; background: var(--page); border-top: 1px solid var(--line); }
.cap { font-family: var(--serif); font-style: italic; font-size: .95rem; color: #4d4841; }
.by { font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; color: var(--muted); margin-left: auto; }

/* front page: cover story */
.feature { position: relative; display: block; height: min(70vh, 620px); min-height: 430px; margin-top: 28px; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; box-shadow: var(--lift); border: 1px solid var(--line-strong); }
.feature .frame { position: absolute; inset: 0; border-radius: 0; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20, 14, 8, 0) 32%, rgba(20, 14, 8, .84)); pointer-events: none; }
.feature-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(22px, 4vw, 44px); }
.feature-text h1 { font-size: clamp(2rem, 4.6vw, 3.9rem); max-width: 20ch; margin: 14px 0 0; }
.feature-text .standfirst { font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.4; max-width: 56ch; margin: 12px 0 0; color: rgba(255, 255, 255, .92); }
.feature .meta, .feature .credit, .feature .credit b { color: rgba(255, 255, 255, .9); }
.feature .credit { margin-top: 16px; }
.feature .tag { background: rgba(255, 255, 255, .94); border-color: transparent; }
a.feature:hover h1 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }

/* front page: section cards that cycle through their newest stories */
#shelf:not(:empty) { margin-top: 56px; }
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shelf-card { position: relative; height: 300px; padding: 0; border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; cursor: pointer; text-align: left; font: inherit; color: #fff; background: var(--c); box-shadow: var(--soft); transition: transform .25s ease, box-shadow .25s ease; }
.shelf-card:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide .plate-mark, .slide .plate-no, .slide .trail { display: none; }
.shelf-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20, 14, 8, 0) 30%, rgba(20, 14, 8, .82)); }
.shelf-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.shelf-text .tag { background: rgba(255, 255, 255, .94); border-color: transparent; }
.shelf-title { font-family: var(--serif); font-weight: 500; font-size: 1.12rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.dots { display: flex; gap: 5px; }
.dots i { width: 14px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .4); transition: background .4s; }
.dots i.on { background: #fff; }

/* front page: filters and story tiles */
.rail { display: flex; gap: 14px 28px; flex-wrap: wrap; align-items: center; padding: 22px 0 18px; margin: 56px 0 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.showing { display: flex; align-items: center; gap: 14px; margin-right: auto; font-family: var(--serif); font-size: 1.5rem; }
.showing b { font-weight: 400; } .showing .link { font-family: var(--sans); font-size: .84rem; }
.shelf-card[aria-pressed="true"] { outline: 3px solid var(--c); outline-offset: 3px; }
.tools { display: flex; gap: 10px; }
.tools input { width: 230px; } .tools select { width: auto; }
.spread { display: grid; grid-template-columns: 1.65fr 1fr; gap: 40px 44px; margin-bottom: 56px; }
.spread .lead { grid-row: span 2; display: flex; flex-direction: column; }
.spread .lead .frame { flex: 1; min-height: 360px; aspect-ratio: auto; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 34px; padding-bottom: 72px; }
.tile { display: block; color: inherit; text-decoration: none; }
.tile .frame { aspect-ratio: 4 / 3; box-shadow: var(--soft); border: 1px solid var(--line-strong); transition: transform .3s ease, box-shadow .3s ease; }
.tile:hover .frame { transform: translateY(-5px); box-shadow: var(--lift); }
.tile-text { padding-top: 16px; }
.tile h3 { font-size: 1.5rem; margin: 10px 0 0; }
.spread .lead h3 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
.tile:hover h3 { color: var(--accent-dark); }
.tile p { font-family: var(--serif); font-size: 1.05rem; line-height: 1.45; color: var(--muted); margin: 8px 0 0; }
.tile .credit { margin-top: 12px; }
.empty { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 52px 24px; text-align: center; margin-bottom: 72px; }
.empty h2 { font-size: 1.9rem; margin-bottom: 8px; }
.empty p { color: var(--muted); margin: 0 0 20px; }
.more { text-align: center; padding-bottom: 72px; margin: -24px 0 0; }

/* forms and buttons */
label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 13px; }
input.big { font-family: var(--serif); font-size: 1.5rem; padding: 12px 14px; }
input[type=file] { font: inherit; font-size: .88rem; max-width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(200, 90, 50, .18); }
.field { margin-bottom: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.row.three { grid-template-columns: repeat(3, 1fr); }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.label-row label { margin: 0; } .label-row select { width: auto; font-size: .84rem; padding: 7px 10px; }
.pw { position: relative; }
.pw input { padding-right: 46px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; cursor: pointer; border-radius: 8px; color: var(--faint); display: flex; align-items: center; justify-content: center; }
.eye:hover { background: var(--band); color: var(--ink); }
.eye.on { color: var(--accent); }
.eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; border-radius: 10px; padding: 10px 18px; border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; }
.btn:hover { background: #34312e; }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--band); }
.btn.warn { border-color: #e4b9a8; background: var(--paper); color: var(--accent-dark); }
.btn.warn:hover { background: #fbeee8; }
.btn.small { padding: 6px 12px; font-size: .8rem; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 34px; margin: 36px auto 56px; box-shadow: var(--soft); }
.narrow { max-width: 470px; }
.mid { max-width: 820px; }
.panel h1 { font-size: 2.3rem; margin-bottom: 8px; }
.panel h2 { font-size: 1.5rem; margin: 34px 0 14px; padding-top: 26px; border-top: 1px solid var(--line); }
.lead-text { color: var(--muted); margin: 0 0 24px; }
.status { display: inline-block; font-family: var(--mono); font-size: .64rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: #ece5d8; color: var(--ink); white-space: nowrap; }
.status.published, .status.approved { background: #dcebdc; color: #2c5e31; }
.status.pending { background: #fbe9c9; color: #7a5200; }
.status.rejected, .status.blocked { background: #f8dcd2; color: #8f2f12; }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; background: var(--page); font-size: .92rem; }
.box.alert { border-color: #ecd296; background: #fdf5e2; }
.box.bad { border-color: #e4b9a8; background: #fbeee8; }

/* a story */
.story-head { max-width: 980px; padding-top: 44px; }
.story-head.slim { padding-top: 28px; }
.story-head h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); margin: 18px 0 0; }
.story-head .standfirst, .hero .standfirst { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.9vw, 1.42rem); line-height: 1.45; color: #4d4841; max-width: 60ch; margin: 18px 0 0; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.byline b { display: block; font-size: .9rem; } .byline small { display: block; color: var(--muted); font-size: .78rem; }
.byline .mono { margin-left: auto; text-align: right; }
.desk { margin-bottom: 24px; }
.plate-card.cover { margin-top: 32px; }
.hero { position: relative; height: min(84vh, 780px); min-height: 480px; color: #fff; background: var(--ink); overflow: hidden; }
.hero > img, .hero > .plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20, 14, 8, 0) 30%, rgba(20, 14, 8, .86)); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding-bottom: clamp(28px, 6vh, 60px); }
.hero-text h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); max-width: 18ch; margin: 16px 0 0; }
.hero .standfirst { color: rgba(255, 255, 255, .92); }
.hero .meta { color: rgba(255, 255, 255, .9); } .hero .tag { background: rgba(255, 255, 255, .94); border-color: transparent; }
.hero-caption { margin: 0; } .hero-caption figcaption { border: 0; border-bottom: 1px solid var(--line); padding-left: 0; padding-right: 0; }

.prose { font-family: var(--serif); font-size: 1.24rem; line-height: 1.72; padding-top: 44px; padding-bottom: 20px; color: #2b2927; }
.prose > p { margin: 0 0 1.15em; }
.story .prose > p:first-child::first-letter { float: left; font-size: 4.9em; line-height: .84; padding: .05em .1em 0 0; color: var(--c); }
.story .prose > p:first-child::after { content: ""; display: block; clear: both; }
.prose h2 { font-size: 2rem; margin: 1.6em 0 .5em; color: var(--ink); }
.prose h3 { font-size: 1.45rem; font-weight: 600; margin: 1.5em 0 .4em; color: var(--ink); }
.prose ul { padding-left: 1.15em; margin: 0 0 1.15em; }
.prose li { margin-bottom: .35em; } .prose li::marker { color: var(--c); }
.prose a { color: var(--accent-dark); text-underline-offset: 3px; }
.prose blockquote { margin: 1.7em 0; padding: 1em 1.3em; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 7%, #fff); border-radius: 0 12px 12px 0; font-style: italic; font-size: 1.42rem; line-height: 1.42; color: var(--ink); }
.prose hr { border: 0; height: 22px; margin: 2em 0; background: radial-gradient(circle, var(--line-strong) 2.5px, transparent 3px) center / 26px 22px repeat-x; background-size: 26px 22px; max-width: 110px; margin-left: auto; margin-right: auto; }
.prose figure.plate-card { margin: 2.4em 0; width: min(960px, 100vw - 40px); position: relative; left: 50%; transform: translateX(-50%); }
.embed { margin: 2.4em 0; background: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: var(--lift); width: min(880px, 100vw - 40px); position: relative; left: 50%; transform: translateX(-50%); }
.embed-bar { display: flex; justify-content: space-between; padding: 10px 16px; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.embed-frame { aspect-ratio: 16 / 9; background: #000; }
.embed-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed.vertical { width: min(380px, 100vw - 40px); }
.embed.vertical .embed-frame { aspect-ratio: auto; height: 650px; background: #fff; }
.embed.tiktok .embed-frame { height: 740px; }
.embed.youtube.vertical .embed-frame { aspect-ratio: 9 / 16; height: auto; background: #000; }

.pdf { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 52px 0 56px; margin-top: 36px; }
.pdf .inner { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.pdf h2 { font-size: 2rem; margin: 12px 0 22px; }
.flipbook { background: var(--paper); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--lift); overflow: hidden; }
.fb-stage { min-height: 380px; padding: 28px; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #f3ede2, #e4dccd); border-radius: 18px; }
.flipbook .fb-stage { border-radius: 0; }
#fbBook { margin: 0 auto; }
.fb-page { background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.fb-page canvas { width: 100%; height: 100%; display: block; }
.fb-loading { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; color: var(--muted); }
.fb-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--page); }
.fb-bar .spacer { flex: 1; }
.fb-fallback { width: 100%; height: min(80vh, 780px); border: 0; background: #fff; }
.fb-stage { touch-action: pan-y; }
.flipbook:fullscreen, .flipbook.fb-max { display: flex; flex-direction: column; border-radius: 0; }
.flipbook:fullscreen .fb-stage, .flipbook.fb-max .fb-stage { flex: 1; }
.flipbook.fb-max { position: fixed; inset: 0; z-index: 100; border: 0; }

.engage { display: flex; gap: 12px 22px; align-items: center; flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; }
.love { font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; padding: 10px 20px; border-radius: 99px; border: 1px solid var(--accent); background: var(--paper); color: var(--accent); box-shadow: var(--soft); }
.love svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.love[aria-pressed="true"] { background: var(--accent); color: #fff; }
.love[aria-pressed="true"] svg { fill: currentColor; animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.45); } }
.related { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0 0; }
.related .grid { padding-bottom: 52px; }
.comments { padding-top: 44px; padding-bottom: 72px; }
.comments > h2 { font-size: 1.8rem; margin-bottom: 14px; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.comment header b { color: var(--ink); font-size: .92rem; }
.comment p { margin: 8px 0 0 38px; font-family: var(--serif); font-size: 1.1rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-form { margin-top: 24px; }

/* the writing studio */
.studio { max-width: 1040px; padding-top: 34px; }
.studio-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.studio-top h1 { font-size: 2.2rem; }
.studio .panel { margin-top: 20px; }
.rte { border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; }
.rte:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200, 90, 50, .14); }
.rte-bar { position: sticky; top: 74px; z-index: 5; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; padding: 8px; background: var(--page); border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.rte-bar button { font: inherit; font-size: .8rem; font-weight: 500; border: 1px solid transparent; background: none; border-radius: 8px; padding: 6px 10px; cursor: pointer; color: var(--ink); }
.rte-bar button:hover { background: #fff; border-color: var(--line-strong); }
.rte-bar button.strong { background: var(--ink); color: #fff; }
.rte-bar button.strong:hover { background: #34312e; }
.rte-bar button[disabled] { opacity: .4; cursor: not-allowed; }
.rte-bar .sep { width: 1px; height: 20px; background: var(--line-strong); margin: 0 4px; }
.rte-body { min-height: 420px; padding: 26px 30px 30px; outline: none; font-size: 1.16rem; }
.rte-body figure.plate-card, .rte-body .embed { width: 100%; left: 0; transform: none; margin: 1.4em 0; box-shadow: var(--soft); }
.rte-body .embed.vertical { width: min(360px, 100%); }
.fig-edit { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 12px; background: var(--page); border-top: 1px solid var(--line); font-family: var(--sans); }
.fig-edit input { flex: 1 1 180px; font-size: .86rem; padding: 7px 10px; }
.fig-edit .by-in { flex: 0 1 190px; }
.fig-edit .hint { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-actions { position: sticky; bottom: 0; background: var(--paper); padding: 16px 0 4px; margin-top: 10px; border-top: 1px solid var(--line); z-index: 4; }
.pv-top { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin: 20px 0 18px; }
.pv-stage { display: flex; justify-content: center; padding-bottom: 60px; }
.desktop { width: 100%; background: #dcd4c6; border-radius: 16px; padding: 0 0 8px; box-shadow: var(--lift); border: 1px solid var(--line-strong); overflow: hidden; }
.chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: #b9ae9d; }
.chrome span { margin-left: 12px; flex: 1; background: var(--page); border-radius: 6px; padding: 3px 12px; font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.screen { margin: 0 8px; overflow: hidden; border-radius: 8px; background: var(--page); }
.screen iframe { width: 1280px; height: 820px; border: 0; transform-origin: 0 0; display: block; }
.phone-fit { flex: none; }
.phone { transform-origin: 0 0; position: relative; width: 414px; height: 820px; background: #1a1918; border-radius: 52px; padding: 13px; box-shadow: var(--lift), inset 0 0 0 2px #3a3733; }
.phone .notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; background: #1a1918; border-radius: 14px; z-index: 2; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 40px; background: var(--page); display: block; }
body.preview a, body.preview button, body.preview #top .seg { pointer-events: none; }
body.preview #top { position: static; }

/* admin and lists */
.tabs { display: flex; gap: 4px 22px; flex-wrap: wrap; margin: 20px 0 8px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 0; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 20px 0; }
.figures div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); }
.figures b { display: block; font-family: var(--serif); font-weight: 500; font-size: 2.1rem; line-height: 1.1; }
.figures span { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list .grow { flex: 1 1 260px; min-width: 0; }
.list .grow a { font-weight: 600; color: var(--ink); }
.list small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.steps { padding-left: 20px; } .steps li { margin-bottom: 8px; }
code { font-family: var(--mono); background: var(--band); padding: 2px 6px; border-radius: 5px; font-size: .82em; overflow-wrap: anywhere; }

#foot { border-top: 1px solid var(--line); background: #faf7f0; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 26px 32px 30px; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.foot-in b { font-family: var(--serif); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; color: var(--ink); margin-right: 10px; font-size: .95rem; }
.foot-in nav { display: flex; gap: 18px; } .foot-in nav a { color: var(--muted); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); z-index: 70; box-shadow: var(--lift); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: #8f2f12; }

/* tablets */
@media (max-width: 980px) {
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .spread { grid-template-columns: 1fr; gap: 40px; }
  .spread .lead .frame { flex: none; min-height: 0; aspect-ratio: 16 / 10; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .row.three { grid-template-columns: 1fr 1fr; }
}
/* phones */
@media (max-width: 640px) {
  .wrap, .bar, .column, .pdf .inner, .foot-in { padding-left: 18px; padding-right: 18px; }
  .bar { padding-top: 10px; padding-bottom: 10px; gap: 8px 12px; }
  .brand b { font-size: 1.4rem; } .brand i { display: none; } .logo { height: 36px; }
  .seg a, .seg button { padding: 6px 10px; font-size: .76rem; }
  .feature { height: 68vh; min-height: 400px; margin-top: 16px; border-radius: 18px; }
  .shelf { gap: 12px; } .shelf-card { height: 220px; } .shelf-title { font-size: 1rem; }
  .rail { margin: 40px 0 28px; }
  .tools { width: 100%; flex-wrap: wrap; } .tools input { width: 100%; }
  .row, .row.three, .grid { grid-template-columns: 1fr; }
  .panel { padding: 20px; margin-top: 20px; border-radius: 16px; }
  .story-head { padding-top: 28px; }
  .byline { flex-wrap: wrap; } .byline .mono { margin-left: 52px; text-align: left; width: 100%; }
  .plate-card { border-radius: 14px; } .plate-card.cover { margin-top: 22px; }
  .plate-card > .plate { aspect-ratio: 4 / 3; }
  .hero { height: 78vh; }
  .prose { font-size: 1.13rem; padding-top: 30px; }
  .prose blockquote { font-size: 1.22rem; padding: .9em 1em; }
  .prose figure.plate-card, .embed { width: calc(100vw - 24px); }
  .embed.vertical { width: min(360px, calc(100vw - 24px)); }
  .fb-stage { padding: 12px; min-height: 300px; }
  .rte-body { padding: 18px 16px 22px; } .rte-bar { top: 58px; }
  .comment p { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
