/* bodyboard — bodyboard.net on PixelGlass.
   Brand cream and ink, the logo yellow, a warm coral for small pops.
   Space Grotesk for everything read, Space Mono for labels, Zen Tokyo Zoo
   for the wordmark alone. Cards are vintage print: a hard ink border and
   a hard offset shadow, which goes away in the dark, where the border
   carries the card. No motion: nothing drifts, slides or loops. */

:root {
  color-scheme: light dark;
  --brand: #ffff3c;
  --brand-ink: #0a0a0b;
  --coral: #ff7a85;
  --ink: #14151a;
  --night: #0a0a0b;

  --canvas: #f3f3ec;
  --surface: #ffffff;
  --fg: #14151a;
  --muted: #5d5f66;
  --line: #e2e1da;
  --card-line: #14151a;
  --card-pop: 4px 4px 0 0 #14151a;
  --accent: var(--pixel-accent, #14151a);
  --link-mark: #ffff3c;

  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display: "Zen Tokyo Zoo", "Space Grotesk", system-ui, sans-serif;

  --frame: 76rem;
  --column: 42rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 14px;
  --radius-small: 6px;
  --logo-height: 30px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0a0a0b;
    --surface: #14151a;
    --fg: #f3f3ec;
    --muted: #8a8c94;
    --line: #23252d;
    --card-line: #2c2e36;
    --card-pop: none;
    --link-mark: rgba(255, 255, 60, 0.28);
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--fg);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.main { overflow-x: clip; }
.frame { width: 100%; max-width: var(--frame); margin-inline: auto; padding-inline: var(--gutter); }
.canvas { width: 100%; max-width: calc(var(--column) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: var(--brand); color: var(--brand-ink);
  font-weight: 700; text-decoration: none; border-radius: var(--radius-small);
}
.skip-link:focus { top: 1rem; }

.label, .kicker, .meta, .pagination-page {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.label { font-weight: 700; color: var(--muted); }
.kicker {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  color: var(--fg);
}
.kicker:hover { background: var(--brand); color: var(--brand-ink); }

.empty { padding: 4rem 0; color: var(--muted); }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.9rem; padding: 0 1.25rem;
  border: 2px solid transparent; border-radius: var(--radius-small);
  font-family: var(--mono); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; white-space: nowrap;
}
.button--small { min-height: 2.2rem; padding: 0 .9rem; font-size: .72rem; }
.button--brand { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.button--brand:hover { background: #fff; border-color: #fff; }
.button--ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.button--ghost:hover { background: #fff; color: var(--brand-ink); border-color: #fff; }
.button--ink { background: var(--ink); color: #f3f3ec; border-color: var(--ink); }
.button--ink:hover { background: #2a2c33; border-color: #2a2c33; }
.button--ghost-ink { color: var(--fg); border-color: var(--fg); }
.button--ghost-ink:hover { background: var(--fg); color: var(--canvas); }

/* ---------- Masthead (always ink) ---------- */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: #f3f3ec;
  border-bottom: 1px solid #1e2027;
}
.masthead-inner { display: flex; align-items: center; gap: 1.25rem; min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: inherit; }
.site-logo { width: auto; height: var(--logo-height); }
.site-logo--wide { height: calc(var(--logo-height) * 0.9); }
.site-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.masthead-brand:hover .site-name { color: var(--brand); }

.masthead-nav {
  display: flex; gap: 1.1rem; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.masthead-nav::-webkit-scrollbar { display: none; }
.masthead-nav a {
  flex: none; padding: .35rem 0;
  color: #b7b9bf; text-decoration: none; font-weight: 500; font-size: .95rem;
  border-bottom: 2px solid transparent;
}
.masthead-nav a:hover { color: #fff; }
.masthead-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--brand); }

.masthead-end { display: flex; align-items: center; gap: .9rem; margin-left: auto; flex: none; }
.masthead-languages { display: flex; gap: .5rem; font-family: var(--mono); font-size: .72rem; }
.masthead-languages a { color: #8a8c94; text-decoration: none; }
.masthead-languages a[aria-current="page"] { color: var(--brand); }
.masthead-search { display: inline-flex; color: #b7b9bf; padding: .3rem; }
.masthead-search:hover { color: #fff; }
.masthead-doors { display: flex; align-items: center; gap: .9rem; }
.masthead-signin { color: #d6d7da; text-decoration: none; font-weight: 600; font-size: .95rem; }
.masthead-signin:hover { color: #fff; }
.masthead-account {
  display: inline-flex; align-items: center; gap: .5rem;
  color: #f3f3ec; text-decoration: none; font-weight: 600; font-size: .95rem;
}
.masthead-account img { width: 30px; height: 30px; border-radius: 50%; background: #1e2027; }

@media (max-width: 40rem) {
  .masthead-inner { flex-wrap: wrap; row-gap: 0; padding-block: .4rem; }
  .masthead-nav { order: 3; flex-basis: 100%; padding-bottom: .35rem; }
  .site-name { font-size: .98rem; }
  .masthead-signin { display: none; }
}

/* ---------- Hero (front page, page one) ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night); color: #fff;
  min-height: min(78vh, 46rem);
  display: flex; align-items: flex-end;
}
.hero-picture { position: absolute; inset: 0; z-index: -2; }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, rgba(6, 18, 32, .78) 0%, rgba(6, 18, 32, .35) 50%, rgba(6, 18, 32, .1) 75%),
    linear-gradient(to top, rgba(6, 18, 32, .65) 0%, transparent 45%);
}
.hero-inner { padding-block: clamp(3rem, 9vw, 6rem); }
.hero-content { max-width: 44rem; }
.hero-wordmark {
  display: flex; flex-direction: column;
  font-family: var(--display); font-weight: 400;
  color: var(--brand);
  font-size: clamp(3.4rem, 13vw, 8.5rem);
  line-height: .86; letter-spacing: .01em; text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero-kicker {
  display: block; margin-top: .9rem;
  font-family: var(--mono); font-size: .8rem; font-weight: 700;
  letter-spacing: .32em; color: #fff;
}
.hero-title {
  margin-top: 1.75rem; max-width: 30rem;
  font-size: clamp(1.5rem, 4.4vw, 2.5rem); line-height: 1.08;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}
.hero-title a { text-decoration-color: var(--brand); }
.hero-line {
  margin-top: .9rem; max-width: 30rem;
  color: rgba(255, 255, 255, .86); font-size: 1.05rem; line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Front page blocks ---------- */

.block { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.block-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.4rem; padding-bottom: .7rem;
  border-bottom: 2px solid var(--fg);
}
.block-title { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.block-title a { text-decoration: none; }
.block-title a:hover { box-shadow: inset 0 -.4em 0 var(--link-mark); }
.block-more {
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
}
.block-more:hover { background: var(--brand); color: var(--brand-ink); }

.grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.grid--feature { grid-template-columns: 1fr; }
@media (min-width: 52rem) {
  .grid--feature { grid-template-columns: repeat(3, 1fr); }
  .grid--feature .card--lead { grid-column: span 2; grid-row: span 2; }
}

/* ---------- Cards (vintage print) ---------- */

.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--card-line);
  border-radius: var(--radius);
  box-shadow: var(--card-pop);
  overflow: hidden;
}
.card:hover { box-shadow: 6px 6px 0 0 var(--card-line); }
@media (prefers-color-scheme: dark) {
  .card:hover { box-shadow: none; border-color: var(--muted); }
}
.card-picture { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 2px solid var(--card-line); background: var(--line); }
.card-picture img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.1rem 1.2rem 1.25rem; flex: 1 1 auto; }
.card-title { font-size: 1.25rem; line-height: 1.18; }
.card-title a { text-decoration: none; }
.card-title a:hover { box-shadow: inset 0 -.4em 0 var(--link-mark); }
.card-excerpt { color: var(--muted); font-size: .97rem; line-height: 1.55; }
.card .meta { margin-top: auto; padding-top: .35rem; }
.card--lead .card-picture { aspect-ratio: 16 / 9; }
.card--lead .card-body { padding: 1.4rem 1.5rem 1.6rem; gap: .7rem; }
.card--lead .card-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.card--lead .card-excerpt { font-size: 1.05rem; }
.card--small .card-picture { aspect-ratio: 16 / 9; }
.card--small .card-title { font-size: 1.08rem; }

.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .9rem;
  color: var(--muted); font-size: .68rem;
}
.meta-author { color: var(--fg); font-weight: 700; }
.meta a { text-decoration: none; }
.meta a:hover { color: var(--fg); }

/* ---------- Rows ---------- */

.rows { display: grid; }
.rows--columns { column-gap: 2.5rem; }
@media (min-width: 52rem) { .rows--columns { grid-template-columns: 1fr 1fr; } }
.row {
  display: flex; gap: 1.1rem; align-items: flex-start; justify-content: space-between;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.row-body { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.row-title { font-size: 1.15rem; line-height: 1.22; }
.row-title a { text-decoration: none; }
.row-title a:hover { box-shadow: inset 0 -.4em 0 var(--link-mark); }
.row-picture { flex: none; width: 5.5rem; aspect-ratio: 1; border: 2px solid var(--card-line); border-radius: 10px; overflow: hidden; }
.row-picture img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- The digest (brand yellow) ---------- */

.digest {
  display: grid; gap: 1.5rem; align-items: center;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--brand); color: var(--brand-ink);
  border: 2px solid var(--brand-ink); border-radius: var(--radius);
  box-shadow: 4px 4px 0 0 var(--brand-ink);
}
@media (min-width: 52rem) { .digest { grid-template-columns: 1.1fr 1fr; gap: 2.5rem; } }
.digest .label { color: var(--brand-ink); opacity: .75; }
.digest-heading { margin-top: .4rem; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.digest-line { margin-top: .6rem; font-size: 1.05rem; max-width: 30rem; }
.digest-fields { display: flex; flex-wrap: wrap; gap: .6rem; }
.digest-input {
  flex: 1 1 14rem; min-height: 2.9rem; padding: 0 1rem;
  background: #fff; color: var(--brand-ink);
  border: 2px solid var(--brand-ink); border-radius: var(--radius-small);
}
.digest-input::placeholder { color: #6b6d73; }
.digest-lists { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0; padding: 0; border: 0; font-size: .95rem; }
.digest-error { flex-basis: 100%; font-weight: 600; }
.digest-sent { font-weight: 700; font-size: 1.1rem; }
.digest-form[data-pixel-subscribe-state="sending"] button { opacity: .6; }

/* ---------- Archive heads (tag, author, search, error, pages past one) ---------- */

.archive-head { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: 1.5rem; }
.archive-title { margin-top: .5rem; font-size: clamp(2.2rem, 6vw, 3.8rem); }
.archive-description { margin-top: .9rem; max-width: 40rem; color: var(--muted); font-size: 1.1rem; }
.archive-description p + p { margin-top: .6rem; }
.archive-facts { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.archive-head .search-form { margin-top: 1.5rem; max-width: 34rem; }

.rider { display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; align-items: flex-start; }
.rider-cover { flex-basis: 100%; aspect-ratio: 3 / 1; border: 2px solid var(--card-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-pop); }
.rider-cover img { width: 100%; height: 100%; object-fit: cover; }
.rider-words { flex: 1 1 20rem; }

.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; overflow: hidden;
  background: var(--brand); color: var(--brand-ink);
  font-family: var(--mono); font-weight: 700; text-transform: uppercase;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--xl { width: 6.5rem; height: 6.5rem; font-size: 2rem; border: 2px solid var(--card-line); }

/* ---------- Pagination ---------- */

.pagination {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem;
}
.pagination-page { color: var(--muted); font-size: .72rem; }

/* ---------- Search form ---------- */

.search-form { display: flex; gap: .5rem; }
.search-input {
  flex: 1 1 auto; min-width: 0; min-height: 2.9rem; padding: 0 1rem;
  background: var(--surface); color: var(--fg);
  border: 2px solid var(--card-line); border-radius: var(--radius-small);
}
.search-button {
  min-height: 2.9rem; padding: 0 1.1rem; cursor: pointer;
  background: var(--fg); color: var(--canvas); border: 2px solid var(--fg); border-radius: var(--radius-small);
  font-family: var(--mono); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- A story ---------- */

.story-head { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.story-title { margin-top: .75rem; font-size: clamp(2.1rem, 5.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.03em; }
.story-subtitle { margin-top: 1rem; color: var(--muted); font-size: clamp(1.15rem, 2.4vw, 1.35rem); line-height: 1.45; }
.story-subtitle a { color: var(--fg); }
.story--page .story-title { margin-top: 0; }

.byline { display: flex; align-items: center; gap: .85rem; margin-top: 1.6rem; }
.byline .avatar { text-decoration: none; }
.byline-words { display: flex; flex-direction: column; gap: .2rem; }
.byline-names { font-weight: 700; }
.byline-names a { text-decoration: none; }
.byline-names a:hover { box-shadow: inset 0 -.4em 0 var(--link-mark); }

.story-picture { margin: 2.25rem auto 0; padding-inline: var(--gutter); max-width: calc(60rem + 2 * var(--gutter)); }
.story-picture img {
  width: 100%; border: 2px solid var(--card-line); border-radius: var(--radius);
  box-shadow: var(--card-pop); background: var(--line);
}
.story-picture--full { max-width: none; padding: 0; margin-top: 0; }
.story-picture--full img { max-height: 78vh; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; }
.story-picture figcaption, .content figcaption {
  margin-top: .7rem; color: var(--muted);
  font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; text-align: center;
}

.story-foot { margin-top: 2.5rem; }
.story-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  display: inline-flex; align-items: center; min-height: 2rem; padding: 0 .85rem;
  border: 2px solid var(--card-line); border-radius: 999px;
  font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; background: var(--surface);
}
.pill:hover { background: var(--brand); color: var(--brand-ink); border-color: var(--brand-ink); }
.story-translations { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; }

.story-authors { display: grid; gap: 1rem; margin-top: 2.5rem; }
.author-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.25rem; background: var(--surface);
  border: 2px solid var(--card-line); border-radius: var(--radius); box-shadow: var(--card-pop);
}
.avatar--large { width: 3.75rem; height: 3.75rem; font-size: 1.4rem; text-decoration: none; }
.author-card-name { margin-top: .25rem; font-weight: 700; font-size: 1.15rem; }
.author-card-name a { text-decoration: none; }
.author-card-place { margin-left: .4rem; color: var(--muted); font-weight: 400; font-size: .95rem; }
.author-card-bio { margin-top: .4rem; color: var(--muted); }
.author-card-bio p + p { margin-top: .5rem; }

.story-conversation:has(iframe) { margin-top: 3rem; }
.pixel-comments-frame { display: block; width: 100%; border: 0; }

/* ---------- The words (post.content) ---------- */

.content { margin-top: 2.25rem; font-size: 1.125rem; line-height: 1.72; }
.content > * + * { margin-top: 1.3rem; }
.content h2 { margin-top: 2.6rem; font-size: 1.75rem; }
.content h3 { margin-top: 2.2rem; font-size: 1.35rem; }
.content h4 { margin-top: 1.8rem; font-size: 1.1rem; }
.content a { text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--fg); }
.content a:hover { background: var(--brand); color: var(--brand-ink); text-decoration-color: var(--brand-ink); }
.content strong { font-weight: 700; }
.content ul, .content ol { padding-left: 1.4rem; }
.content li + li { margin-top: .45rem; }
.content li::marker { color: var(--muted); }
.content blockquote {
  margin-inline: 0; padding: .3rem 0 .3rem 1.25rem;
  border-left: 5px solid var(--brand);
  font-size: 1.3rem; line-height: 1.5; font-weight: 500;
}
@media (prefers-color-scheme: light) { .content blockquote { border-left-color: var(--fg); box-shadow: inset 5px 0 0 var(--brand); } }
.content hr { margin-block: 2.5rem; border: 0; text-align: center; }
.content hr::after { content: "~ ~ ~"; color: var(--muted); font-family: var(--mono); letter-spacing: .5em; }
.content code { font-family: var(--mono); font-size: .88em; padding: .1em .35em; background: var(--line); border-radius: 4px; }
.content pre {
  overflow-x: auto; padding: 1rem 1.2rem; font-size: .9rem; line-height: 1.55;
  background: var(--ink); color: #f3f3ec; border-radius: var(--radius-small);
}
.content pre code { padding: 0; background: none; font-size: inherit; }
.content table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.content th, .content td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
.content th { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.content figure { margin-inline: 0; }
.content .post-media img, .content .post-media video {
  width: 100%; border: 2px solid var(--card-line); border-radius: var(--radius-small); background: var(--line);
}
.content .post-media > a:hover { background: none; }
.content .post-media--wide { width: min(60rem, calc(100vw - 2 * var(--gutter))); margin-left: 50%; transform: translateX(-50%); }
.content .post-media--full { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.content .post-media--full img, .content .post-media--full video { border-radius: 0; border-inline: 0; }
.content .attachment-gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.content .attachment-gallery .post-media { margin: 0; }
.content .attachment-gallery img { height: 100%; object-fit: cover; }
.content figure[data-video] iframe { border-radius: var(--radius-small); }
.content aside[data-callout] { border-radius: var(--radius-small); }
.content p[data-button] a { font-family: var(--mono); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.content p[data-button] a:hover { background: var(--pixel-button-bg); color: var(--pixel-button-ink); }

/* The paywall in place of the words, in brand clothes. */
.content .pixel-paywall { border: 2px solid var(--card-line); border-radius: var(--radius); box-shadow: var(--card-pop); background: var(--surface); }
.content .pixel-paywall-button { background: var(--brand); color: var(--brand-ink); }

/* ---------- Member posts (what readers share) ---------- */

.feed { width: 100%; max-width: calc(38rem + 2 * var(--gutter)); margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem) var(--gutter) 0; }
.feed-compose {
  display: flex; align-items: center; gap: .85rem;
  padding: .85rem 1rem; margin-bottom: 1.25rem;
  background: var(--surface); color: var(--muted); text-decoration: none;
  border: 2px solid var(--card-line); border-radius: var(--radius); box-shadow: var(--card-pop);
}
.feed-compose .avatar { background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.feed-compose-field { flex: 1 1 auto; min-width: 0; font-size: 1.02rem; }
.feed-compose:hover .feed-compose-field { color: var(--fg); }
.feed-empty { padding: 2rem 0; color: var(--muted); text-align: center; }

.notes {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--card-line); border-radius: var(--radius); box-shadow: var(--card-pop);
  overflow: hidden;
}
.notes .note + .note { border-top: 1px solid var(--line); }

.note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .85rem; padding: 1rem 1.1rem .8rem; }
.note-main { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.note-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .4rem; line-height: 1.3; }
.note-avatar { width: 2.75rem; height: 2.75rem; font-size: 1.05rem; }
.note-name { font-weight: 700; }
.note-dot { color: var(--muted); }
.note-badge { width: 18px; height: 18px; object-fit: contain; align-self: center; }
.note-badge-word {
  padding: .05rem .4rem; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink);
  font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.note-time { font-size: .9rem; color: var(--muted); text-decoration: none; }
.note-time:hover { color: var(--fg); text-decoration: underline; }
.note-body { font-size: 1.02rem; line-height: 1.55; overflow-wrap: anywhere; }
.note-body p + p { margin-top: .7rem; }
.note-body a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.note-body a:hover { background: var(--brand); color: var(--brand-ink); }
.note-body--long { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 9; overflow: hidden; }

/* A post's photos: one at its own shape, kept from growing too tall; two
   to four in a grid of squares, three with the first one tall. */
.note-photos {
  display: grid; gap: 3px; margin-top: .75rem;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--line);
}
.note-photo { display: block; min-height: 0; }
.note-photo img { width: 100%; height: 100%; object-fit: cover; }
.note-photos--1 .note-photo img { max-height: 34rem; }
.note-photos--2, .note-photos--3, .note-photos--4 { grid-template-columns: 1fr 1fr; }
.note-photos--2 .note-photo, .note-photos--4 .note-photo { aspect-ratio: 1; }
.note-photos--3 { grid-template-rows: 1fr 1fr; aspect-ratio: 1; }
.note-photos--3 .note-photo:first-child { grid-row: span 2; }
.note--full .note-photos--1 .note-photo img { max-height: none; }
.note-more { align-self: flex-start; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.note-more:hover { background: var(--brand); color: var(--brand-ink); }
.note-actions {
  display: flex; gap: 2.25rem; margin-top: .2rem; padding: .25rem 0;
  color: var(--muted); text-decoration: none; font-size: .9rem;
}
.note-actions:hover { color: var(--fg); }
.note-count { display: inline-flex; align-items: center; gap: .4rem; min-height: 1.5rem; }

.notes-empty {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem; border: 2px dashed var(--card-line); border-radius: var(--radius);
  font-size: 1.05rem;
}
.community .notes { max-width: var(--column); }

.member-post { padding-top: clamp(2rem, 5vw, 3.5rem); }
.member-post-back { margin-bottom: 1.25rem; }
.member-post-back a { font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.member-post-back a:hover { background: var(--brand); color: var(--brand-ink); }
.note--full {
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: 2px solid var(--card-line); border-radius: var(--radius); box-shadow: var(--card-pop);
}
.note--full .note-avatar { width: 3.25rem; height: 3.25rem; font-size: 1.3rem; }
.note--full .note-name { font-size: 1.15rem; }
.note--full .note-body { font-size: 1.2rem; line-height: 1.6; }
.template-member-post .story-conversation { margin-top: 1.5rem; }

.masthead-compose { gap: .3rem; }

/* ---------- Boards (the directory: brands and their boards) ---------- */

.board-card-picture {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; padding: 1.25rem;
  background: #fff; border-bottom: 2px solid var(--card-line);
}
.board-card-picture img { width: 100%; height: 100%; object-fit: contain; }
.board-trail a { color: var(--fg); text-decoration: none; }
.board-trail a:hover { background: var(--brand); color: var(--brand-ink); }
.board-brand .story-title, .board-model .story-title { margin-top: .75rem; }
.board-logo {
  margin-top: 1.25rem; width: auto; max-width: 12rem; max-height: 5.5rem;
  padding: .75rem 1rem; object-fit: contain;
  background: #fff; border: 2px solid var(--card-line); border-radius: var(--radius-small);
}
.board-photo { margin-top: 2.25rem; margin-bottom: 0; }
.board-photo img {
  width: 100%; max-height: 34rem; padding: 1.5rem; object-fit: contain;
  background: #fff; border: 2px solid var(--card-line); border-radius: var(--radius); box-shadow: var(--card-pop);
}

/* ---------- Spots (the guide: countries, regions and spots) ---------- */

.spot-flag { font-size: 2.25rem; line-height: 1; }
.spot-country .archive-title { margin-top: .75rem; }
.spot-country .archive-title .spot-flag { font-size: .9em; }
.spot-region .story-title, .spot .story-title { margin-top: .75rem; }
.spot-country-card .meta, .spot-card .meta { gap: .2rem .9rem; }
.spot-rows .row { flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; }
.spot-facts {
  display: grid; gap: 0; margin: 2rem 0 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  background: var(--surface);
  border: 2px solid var(--card-line); border-radius: var(--radius); box-shadow: var(--card-pop);
  overflow: hidden;
}
.spot-fact { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.spot-fact dd { margin: .3rem 0 0; font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.spot-fact a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.spot-fact a:hover { background: var(--brand); color: var(--brand-ink); }
.spot-hazards { margin-top: 1.5rem; }
.spot-hazards .story-tags { margin: .6rem 0 0; padding: 0; list-style: none; }

/* ---------- 404 ---------- */

.error-page .archive-title { font-family: var(--display); font-weight: 400; color: var(--fg); text-transform: uppercase; letter-spacing: .01em; }
.error-home { margin-top: 1.5rem; }

/* ---------- Footer (always ink) ---------- */

.site-footer {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding: 3rem 0 2rem;
  background: var(--ink); color: #c9cacd;
}
.site-footer a { color: #f3f3ec; text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer-top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.site-footer-identity { max-width: 26rem; }
.site-footer-brand { --logo-height: 36px; font-size: 1.15rem; }
.site-footer-tagline { margin-top: .75rem; color: #8a8c94; }
.site-footer .search-form { flex: 0 1 24rem; }
.site-footer .search-input { background: #1e2027; color: #f3f3ec; border-color: #2c2e36; }
.site-footer .search-button { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.site-footer-index { display: flex; flex-wrap: wrap; gap: 2rem 4rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid #23252d; }
.site-footer-menu { display: flex; flex-direction: column; gap: .5rem; min-width: 9rem; }
.site-footer-menu .label { color: #8a8c94; margin-bottom: .2rem; }
.site-footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #23252d;
  font-family: var(--mono); font-size: .72rem; color: #8a8c94;
}
