/* =========================================================
   窄門日記 — pen-name media brand layer
   Scoped to .brand-site so the professional page stays separate.
   ========================================================= */

@font-face {
  font-family: "ChenYuluoyan";
  src: url("fonts/chenyuluoyan-subset.woff2") format("woff2");
  font-display: swap;
}

html { scroll-behavior: smooth; }

body.brand-site {
  --serif: "Noto Serif TC", Georgia, serif;
  --sans: "Inter", "Noto Sans TC", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --hand: "ChenYuluoyan", "Noto Serif TC", serif;
  --brand-paper: #edf1f3;
  --brand-paper-2: #e4eaee;
  --brand-ink: #24364f;
  --brand-ink-soft: #526174;
  --brand-muted: #788594;
  --brand-line: #c9d3da;
  --brand-yellow: #e5b94f;
  --brand-yellow-soft: rgba(229, 185, 79, .32);
  --brand-night: #1f3048;
  --brand-white: #f8faf9;
  --brand-content: 1160px;
  --brand-radius: 3px;
  --bg: var(--brand-paper);
  --bg-tinted: var(--brand-paper-2);
  --ink: var(--brand-ink);
  --ink-soft: var(--brand-ink-soft);
  --muted: var(--brand-muted);
  --line: var(--brand-line);
  --accent: var(--brand-yellow);
  margin: 0;
  color: var(--brand-ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.72), transparent 28rem),
    linear-gradient(rgba(36,54,79,.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36,54,79,.023) 1px, transparent 1px),
    var(--brand-paper);
  background-size: auto, 28px 28px, 28px 28px, auto;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

:root[data-theme="dark"] body.brand-site {
  --brand-paper: #172231;
  --brand-paper-2: #1d2a3b;
  --brand-ink: #edf2f5;
  --brand-ink-soft: #c2ccd5;
  --brand-muted: #8f9daa;
  --brand-line: #36465a;
  --brand-yellow: #e5b94f;
  --brand-yellow-soft: rgba(229, 185, 79, .22);
  --brand-night: #111c2a;
  --brand-white: #edf2f5;
  color: var(--brand-ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(71,93,119,.24), transparent 28rem),
    linear-gradient(rgba(238,242,245,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238,242,245,.025) 1px, transparent 1px),
    var(--brand-paper);
  background-size: auto, 28px 28px, 28px 28px, auto;
}

body.brand-site *,
body.brand-site *::before,
body.brand-site *::after { box-sizing: border-box; }

body.brand-site img { max-width: 100%; }
body.brand-site a { color: inherit; }
body.brand-site button,
body.brand-site input { font: inherit; }
body.brand-site ul,
body.brand-site ol { margin: 0; padding: 0; list-style: none; }

body.brand-site :focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--brand-paper) !important;
  background: var(--brand-ink);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.brand-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-line) 78%, transparent);
  background: color-mix(in srgb, var(--brand-paper) 88%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.brand-header-inner {
  width: min(calc(100% - 48px), var(--brand-content));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.brand-lockup,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
}

.brand-lockup > span:last-child { display: grid; line-height: 1; }
.brand-lockup strong,
.footer-brand strong {
  font-family: var(--hand, var(--serif));
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .08em;
}
.brand-lockup small {
  margin-top: 7px;
  color: var(--brand-muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .16em;
}

.door-signet {
  position: relative;
  width: 31px;
  height: 39px;
  flex: 0 0 auto;
  border: 2px solid var(--brand-ink);
  border-bottom: 0;
  border-radius: 17px 17px 1px 1px;
  transform: rotate(-1deg);
}
.door-signet::before {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 0;
  left: 6px;
  border: 1px solid var(--brand-ink);
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
}
.door-signet span {
  position: absolute;
  right: 8px;
  bottom: 11px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--brand-yellow);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-yellow) 30%, transparent);
}

.brand-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(22px, 3vw, 38px);
}
.brand-nav a {
  position: relative;
  padding: 9px 0;
  color: var(--brand-ink-soft);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  text-decoration: none;
}
.brand-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--brand-yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.brand-nav a:hover::after,
.brand-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.letter-link {
  padding: 7px 13px;
  border: 1px solid var(--brand-ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  transition: color .2s, background .2s, transform .2s;
}
.letter-link:hover {
  color: var(--brand-paper);
  background: var(--brand-ink);
  transform: translateY(-1px);
}

.brand-theme-toggle {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid var(--brand-line);
  border-radius: 50%;
  color: var(--brand-ink);
  background: transparent;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.brand-theme-toggle:hover { border-color: var(--brand-ink); transform: rotate(18deg); }
.brand-theme-toggle .theme-icon-light,
.brand-theme-toggle .theme-icon-dark { position: absolute; line-height: 1; transition: opacity .2s, transform .2s; }
.brand-theme-toggle .theme-icon-light { opacity: 1; transform: scale(1); }
.brand-theme-toggle .theme-icon-dark { opacity: 0; transform: scale(.6); }
:root[data-theme="dark"] .brand-theme-toggle .theme-icon-light { opacity: 0; transform: scale(.6); }
:root[data-theme="dark"] .brand-theme-toggle .theme-icon-dark { opacity: 1; transform: scale(1); }

.brand-menu { display: none; position: relative; }
.brand-menu summary {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  list-style: none;
  border: 1px solid var(--brand-line);
  border-radius: 50%;
}
.brand-menu summary::-webkit-details-marker { display: none; }
.brand-menu summary span,
.brand-menu summary span::before,
.brand-menu summary span::after {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--brand-ink);
  transition: transform .2s, opacity .2s;
}
.brand-menu summary span { position: relative; }
.brand-menu summary span::before,
.brand-menu summary span::after { content: ""; position: absolute; left: 0; }
.brand-menu summary span::before { top: -5px; }
.brand-menu summary span::after { top: 5px; }
.brand-menu[open] summary span { background: transparent; }
.brand-menu[open] summary span::before { top: 0; transform: rotate(45deg); }
.brand-menu[open] summary span::after { top: 0; transform: rotate(-45deg); }
.brand-menu nav {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(280px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  background: var(--brand-paper);
  box-shadow: 0 18px 50px rgba(15,29,45,.18);
}
.brand-menu nav a {
  display: block;
  padding: 10px 12px;
  border-bottom: 1px dashed var(--brand-line);
  text-decoration: none;
}
.brand-menu nav a:last-child { border: 0; color: var(--brand-yellow); }

/* Hero */
.brand-hero {
  position: relative;
  width: min(calc(100% - 48px), var(--brand-content));
  min-height: min(760px, calc(100svh - 76px));
  margin: 0 auto;
  padding: clamp(72px, 10vh, 112px) 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  align-items: center;
  gap: clamp(56px, 8vw, 110px);
}
.brand-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-line), var(--brand-line) 68%, transparent 68%);
  background-size: 13px 1px;
}
.hero-copy { position: relative; z-index: 2; }
.brand-kicker,
.section-index {
  margin: 0 0 18px;
  color: var(--brand-muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.brand-kicker::before,
.section-index::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 10px 3px 0;
  background: var(--brand-yellow);
}
.brand-hero h1 {
  position: relative;
  width: fit-content;
  margin: 0 0 26px;
  font-family: var(--hand, var(--serif));
  font-size: clamp(64px, 8vw, 108px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: .06em;
}
.brand-hero h1::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: -12px;
  width: 70%;
  height: 8px;
  border-top: 2px solid var(--brand-yellow);
  border-radius: 50%;
  transform: rotate(-1.5deg);
}
.hero-promise {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(27px, 3.1vw, 42px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .015em;
}
.hero-promise mark {
  position: relative;
  z-index: 0;
  padding: 0 .08em;
  color: inherit;
  background: transparent;
}
.hero-promise mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -.1em;
  bottom: .08em;
  left: -.1em;
  height: .43em;
  border-radius: 54% 46% 42% 58%;
  background: var(--brand-yellow-soft);
  transform: rotate(-1deg);
}
.hero-description {
  margin: 0;
  color: var(--brand-ink-soft);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.9;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.brand-button {
  min-height: 50px;
  padding: 12px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1.5px solid var(--brand-ink);
  border-radius: 16px 4px 18px 5px / 5px 16px 4px 17px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, color .2s, background .2s;
}
.brand-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--brand-yellow);
}
.brand-button-primary { color: var(--brand-paper) !important; background: var(--brand-ink); }
.brand-button-secondary { background: transparent; }
.brand-button-light { color: var(--brand-night) !important; background: var(--brand-white); border-color: var(--brand-white); }
.hero-note {
  margin: 22px 0 0;
  color: var(--brand-muted);
  font-size: 12px;
  letter-spacing: .04em;
}
.hero-note span { color: var(--brand-yellow); margin-right: 7px; }

.hero-character {
  position: relative;
  min-height: 530px;
  margin: 0;
  display: grid;
  place-items: center;
}
.hero-character::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(100%, 390px);
  aspect-ratio: .73;
  border: 1.5px solid var(--brand-line);
  border-bottom-color: transparent;
  border-radius: 50% 50% 0 0 / 31% 31% 0 0;
  transform: rotate(.8deg);
}
.hero-character::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(84%, 320px);
  aspect-ratio: .69;
  border: 1px dashed color-mix(in srgb, var(--brand-ink) 42%, transparent);
  border-bottom-color: transparent;
  border-radius: 50% 50% 0 0 / 29% 29% 0 0;
  transform: rotate(-1deg);
}
.hero-character img {
  width: min(86%, 350px);
  max-height: 535px;
  object-fit: contain;
  filter: drop-shadow(10px 14px 0 rgba(35,52,75,.05));
}
:root[data-theme="dark"] .hero-character img,
:root[data-theme="dark"] body.brand-site .ink,
:root[data-theme="dark"] body.brand-site .card-art img,
:root[data-theme="dark"] body.brand-site .latest-art img,
:root[data-theme="dark"] body.brand-site .path-card img {
  filter: invert(.9) hue-rotate(180deg) brightness(1.08);
}
.hero-character figcaption {
  position: absolute;
  right: 2%;
  bottom: 20px;
  padding: 5px 10px;
  color: var(--brand-ink-soft);
  background: color-mix(in srgb, var(--brand-paper) 88%, transparent);
  font-family: var(--hand, var(--serif));
  font-size: 17px;
  transform: rotate(-2deg);
}
.hero-moon {
  position: absolute;
  top: 8%;
  right: 4%;
  width: 48px;
  height: 48px;
  border: 1px solid var(--brand-yellow);
  border-radius: 50%;
  opacity: .7;
}
.hero-moon::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 11px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-paper);
}
.hero-door-line {
  position: absolute;
  top: 18%;
  left: 0;
  width: 46px;
  height: 43px;
}
.hero-door-line::before,
.hero-door-line::after {
  content: "";
  position: absolute;
  background: var(--brand-yellow);
  transform-origin: right center;
}
.hero-door-line::before { top: 20px; width: 46px; height: 1px; transform: rotate(8deg); }
.hero-door-line::after { top: 2px; right: 2px; width: 1px; height: 36px; transform: rotate(-9deg); }

/* Sections */
.brand-section {
  width: min(calc(100% - 48px), var(--brand-content));
  margin: 0 auto;
  padding: clamp(78px, 10vw, 128px) 0;
  opacity: 1;
  transform: none;
}
.brand-section + .brand-section { border-top: 1px solid var(--brand-line); }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading h2,
.about-brief h2,
.letters-copy h2,
.brand-page-hero h1 {
  margin: 0 0 13px;
  font-family: var(--hand, var(--serif));
  font-size: clamp(39px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .035em;
}
.section-heading > p:last-child,
.section-heading > div > p:last-child {
  margin: 0;
  color: var(--brand-muted);
  font-size: 15px;
}
.heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}
.all-link {
  flex: 0 0 auto;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--brand-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.all-link:hover { color: var(--brand-yellow); border-color: var(--brand-yellow); }

/* Reader paths */
.reader-paths { padding-top: 92px; }
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.path-card {
  position: relative;
  min-height: 390px;
  padding: 28px 27px 25px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid var(--brand-ink);
  border-radius: 19px 4px 21px 6px / 5px 18px 4px 20px;
  background: color-mix(in srgb, var(--brand-paper) 88%, white 12%);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
:root[data-theme="dark"] .path-card { background: color-mix(in srgb, var(--brand-paper) 92%, white 8%); }
.path-card:nth-child(2) { transform: translateY(18px) rotate(.25deg); }
.path-card:nth-child(3) { transform: rotate(-.25deg); }
.path-card:hover { transform: translateY(-6px) rotate(-.3deg); box-shadow: 7px 8px 0 var(--brand-yellow-soft); }
.path-card:nth-child(2):hover { transform: translateY(10px) rotate(.3deg); }
.path-number {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--brand-muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
}
.path-card img {
  width: 112px;
  height: 116px;
  margin: 4px auto 15px;
  object-fit: contain;
}
.path-card h3 {
  margin: 0 0 12px;
  font-family: var(--hand, var(--serif));
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 400;
  line-height: 1.25;
}
.path-card p { margin: 0 0 18px; color: var(--brand-ink-soft); font-size: 14px; line-height: 1.75; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
}
.text-link b { color: var(--brand-yellow); font-size: 16px; transition: transform .2s; }
a:hover .text-link b,
.text-link:hover b { transform: translateX(5px); }

/* Editorial cards */
.start-here { width: 100%; max-width: none; padding-right: max(24px, calc((100vw - var(--brand-content))/2)); padding-left: max(24px, calc((100vw - var(--brand-content))/2)); background: color-mix(in srgb, var(--brand-paper-2) 72%, transparent); }
.start-here .section-heading { width: min(100%, var(--brand-content)); margin-right: auto; margin-left: auto; }
.editorial-grid { width: min(100%, var(--brand-content)); margin: 0 auto; display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 18px; }
.editorial-card { min-width: 0; }
.editorial-card > a {
  height: 100%;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--brand-line);
  background: var(--brand-paper);
  text-decoration: none;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.editorial-card > a:hover { border-color: var(--brand-ink); transform: translateY(-5px); box-shadow: 0 15px 40px rgba(26,42,61,.08); }
.card-art {
  min-height: 190px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--brand-line);
  background:
    linear-gradient(135deg, transparent 48%, color-mix(in srgb, var(--brand-line) 40%, transparent) 49%, transparent 50%) 0 0 / 18px 18px,
    color-mix(in srgb, var(--brand-paper-2) 70%, transparent);
}
.editorial-card-featured .card-art { min-height: 225px; }
.card-art img { width: 135px; height: 150px; object-fit: contain; transition: transform .35s ease; }
.editorial-card-featured .card-art img { width: 175px; height: 180px; }
.editorial-card a:hover .card-art img { transform: rotate(-2deg) scale(1.04); }
.card-copy { padding: 24px 24px 22px; display: flex; flex: 1; flex-direction: column; }
.series-tag { margin: 0 0 10px; color: var(--brand-muted); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.card-copy h3,
.latest-copy h3,
.night-row h3,
.collection-card h2,
.collection-card h3 {
  margin: 0 0 12px;
  font-family: var(--hand, var(--serif));
  font-size: 29px;
  font-weight: 400;
  line-height: 1.28;
}
.card-copy > p:not(.series-tag) { margin: 0; color: var(--brand-ink-soft); font-size: 14px; line-height: 1.8; }
.card-meta { margin-top: auto; padding-top: 23px; color: var(--brand-muted); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; }

/* Latest */
.latest-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 54px; align-items: stretch; }
.latest-feature { border: 1px solid var(--brand-line); }
.latest-feature > a { min-height: 420px; display: grid; grid-template-columns: .78fr 1.22fr; text-decoration: none; }
.latest-art { position: relative; min-height: 100%; display: grid; place-items: center; overflow: hidden; border-right: 1px solid var(--brand-line); background: var(--brand-paper-2); }
.latest-art::before { content: ""; position: absolute; inset: 18px; border: 1px dashed color-mix(in srgb, var(--brand-ink) 28%, transparent); border-radius: 50% 50% 2px 2px; }
.latest-art img { position: relative; width: 78%; max-height: 300px; object-fit: contain; transition: transform .35s; }
.latest-feature a:hover .latest-art img { transform: scale(1.04) rotate(-1deg); }
.vertical-label { position: absolute; z-index: 2; top: 24px; left: 15px; color: var(--brand-muted); font-family: var(--mono); font-size: 8px; letter-spacing: .13em; writing-mode: vertical-rl; }
.latest-copy { padding: clamp(30px, 4vw, 48px); align-self: center; }
.latest-copy h3 { font-size: clamp(35px, 4vw, 52px); }
.latest-copy > p:not(.series-tag) { margin: 0 0 26px; color: var(--brand-ink-soft); font-size: 15px; line-height: 1.9; }
.night-list { border-top: 2px solid var(--brand-ink); border-bottom: 1px solid var(--brand-line); }
.night-list-head { min-height: 60px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--brand-line); }
.night-list-head .series-tag { margin: 0; }
.night-list-head a { color: var(--brand-muted); font-size: 11px; text-decoration: none; }
.night-row { min-height: 112px; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 15px; border-bottom: 1px dashed var(--brand-line); text-decoration: none; transition: padding .2s, background .2s; }
.night-row:last-child { border-bottom: 0; }
.night-row:hover { padding-right: 10px; padding-left: 10px; background: var(--brand-paper-2); }
.night-row time { color: var(--brand-yellow); font-family: var(--mono); font-size: 11px; }
.night-row h3 { margin: 0 0 3px; font-size: 23px; }
.night-row p { margin: 0; color: var(--brand-muted); font-size: 12px; line-height: 1.6; }
.night-row > span { color: var(--brand-yellow); }

/* Newsletter */
.letters-section { position: relative; overflow: hidden; color: var(--brand-white); background: var(--brand-night); }
.letters-section::before { content: ""; position: absolute; inset: 0; opacity: .12; background: radial-gradient(circle at 2px 2px, var(--brand-white) 1px, transparent 1.5px); background-size: 22px 22px; }
.letters-inner { position: relative; width: min(calc(100% - 48px), var(--brand-content)); min-height: 365px; margin: 0 auto; padding: 72px 0; display: grid; grid-template-columns: 150px 1.35fr .8fr; align-items: center; gap: 55px; }
.letter-stamp { width: 132px; height: 132px; display: grid; place-content: center; border: 2px solid var(--brand-yellow); border-radius: 50%; color: var(--brand-yellow); text-align: center; transform: rotate(-7deg); }
.letter-stamp::before { content: ""; position: absolute; width: 112px; height: 112px; margin: -1px 0 0 -1px; border: 1px dashed var(--brand-yellow); border-radius: 50%; opacity: .7; }
.letter-stamp span { font-family: var(--hand, var(--serif)); font-size: 29px; line-height: 1; letter-spacing: .08em; }
.letter-stamp small { font-family: var(--mono); font-size: 9px; letter-spacing: .24em; margin-top: 8px; }
.letters-section .section-index { color: #a9b5c2; }
.letters-copy h2 { color: var(--brand-white); font-size: clamp(38px, 4.5vw, 59px); }
.letters-copy > p:last-child { max-width: 680px; margin: 0; color: #b9c4cf; font-size: 15px; line-height: 1.9; }
.letters-action { display: grid; justify-items: start; gap: 13px; }
.letters-action > span { color: var(--brand-yellow); font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.letters-action small { color: #8796a6; font-size: 10px; line-height: 1.55; }

/* About brief and footer */
.about-brief-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(55px, 9vw, 120px); align-items: start; }
.about-brief h2 { font-size: clamp(39px, 5vw, 59px); }
.about-brief-copy { padding-top: 15px; border-top: 2px solid var(--brand-ink); }
.about-brief-copy p { margin: 0 0 20px; color: var(--brand-ink-soft); line-height: 1.9; }

.brand-footer { color: #dbe3ea; background: #101b29; }
.brand-footer-inner { width: min(calc(100% - 48px), var(--brand-content)); min-height: 280px; margin: 0 auto; padding: 60px 0 38px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr; gap: 22px 50px; align-items: start; }
.brand-footer .door-signet { border-color: #dbe3ea; }
.brand-footer .door-signet::before { border-color: #dbe3ea; }
.brand-footer p { max-width: 540px; margin: 0; color: #91a1b1; font-size: 14px; }
.brand-footer nav { display: flex; gap: 24px; grid-row: 1 / 3; grid-column: 2; }
.brand-footer nav a { color: #b9c6d1; font-size: 13px; text-decoration: none; }
.brand-footer nav a:hover { color: var(--brand-yellow); }
.brand-footer-inner > small { align-self: end; color: #6f8192; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }

/* Interior brand pages */
.brand-page-main { min-height: 70vh; }
.brand-page-hero {
  width: min(calc(100% - 48px), var(--brand-content));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 118px) 0 68px;
  border-bottom: 1px solid var(--brand-line);
}
.brand-page-hero .section-index { margin-bottom: 18px; }
.brand-page-hero h1 { font-size: clamp(56px, 8vw, 92px); }
.brand-page-hero > p:last-child { max-width: 670px; margin: 20px 0 0; color: var(--brand-ink-soft); font-size: 18px; line-height: 1.9; }
.brand-page-content { width: min(calc(100% - 48px), 900px); margin: 0 auto; padding: 72px 0 120px; }
.brand-prose { max-width: 720px; }
.brand-prose h2 { margin: 62px 0 18px; font-family: var(--hand, var(--serif)); font-size: 37px; font-weight: 400; }
.brand-prose h2:first-child { margin-top: 0; }
.brand-prose p { margin: 0 0 23px; color: var(--brand-ink-soft); font-size: 17px; line-height: 2; }
.brand-prose .brand-lede { color: var(--brand-ink); font-family: var(--serif); font-size: clamp(22px, 3vw, 29px); line-height: 1.75; }
.privacy-note { margin: 40px 0; padding: 22px 25px; border-left: 3px solid var(--brand-yellow); background: var(--brand-paper-2); color: var(--brand-ink-soft); }
.series-list { margin: 28px 0 44px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--brand-line); }
.series-list li { padding: 20px 0; border-bottom: 1px solid var(--brand-line); }
.series-list li:nth-child(odd) { padding-right: 25px; }
.series-list li:nth-child(even) { padding-left: 25px; border-left: 1px solid var(--brand-line); }
.series-list strong { display: block; font-family: var(--hand, var(--serif)); font-size: 25px; font-weight: 400; }
.series-list span { color: var(--brand-muted); font-size: 13px; }
.brand-callout { margin-top: 70px; padding: 32px; border: 1px solid var(--brand-line); border-radius: 18px 4px 21px 6px / 5px 18px 4px 20px; }
.brand-callout h2 { margin-top: 0; }

.collection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.collection-card > a { height: 100%; padding: 28px; display: grid; grid-template-columns: 125px 1fr; gap: 24px; align-items: center; border: 1px solid var(--brand-line); background: color-mix(in srgb, var(--brand-paper) 90%, white 10%); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; }
.collection-card > a:hover { transform: translateY(-4px); border-color: var(--brand-ink); box-shadow: 5px 6px 0 var(--brand-yellow-soft); }
.collection-card img { width: 125px; height: 125px; object-fit: contain; }
.collection-card h2,
.collection-card h3 { margin-bottom: 8px; font-size: 28px; }
.collection-card p { margin: 0; color: var(--brand-muted); font-size: 13px; line-height: 1.7; }
.collection-card time { display: block; margin-bottom: 7px; color: var(--brand-yellow); font-family: var(--mono); font-size: 10px; }

/* Article shell */
body.brand-site .article-nav {
  min-height: 64px;
  padding: 12px max(24px, calc((100vw - 1160px)/2));
  color: var(--brand-ink);
  background: color-mix(in srgb, var(--brand-paper) 92%, transparent);
  border-color: var(--brand-line);
}
body.brand-site .article-nav .back-link { font-family: var(--hand, var(--serif)); font-size: 18px; }
body.brand-site .article-nav .crumb { color: var(--brand-muted); font-size: 10px; }
body.brand-site .article-index-link {
  margin-left: auto;
  color: var(--brand-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
}
body.brand-site .article-index-link:hover { color: var(--brand-yellow); }
body.brand-site .article-nav .brand-theme-toggle { width: 32px; height: 32px; margin-left: 4px; flex: 0 0 auto; }
body.brand-site .article-ink { width: 145px; max-height: 145px; margin: 48px auto -20px; object-fit: contain; }
body.brand-site .article { padding-top: 46px; }
body.brand-site .article-head h1 { color: var(--brand-ink); font-family: var(--hand, var(--serif)); font-weight: 400; letter-spacing: .03em; }
body.brand-site .article-head .story-num { color: var(--brand-yellow); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
body.brand-site .article-meta,
body.brand-site .article-dek { color: var(--brand-muted); }
body.brand-site .article-body { color: var(--brand-ink); }
body.brand-site .article-body p { color: var(--brand-ink-soft); }
body.brand-site .article-body h2,
body.brand-site .article-body h3 { color: var(--brand-ink); font-family: var(--hand, var(--serif)); font-weight: 400; }
body.brand-site .article-body strong { color: var(--brand-ink); background: linear-gradient(transparent 62%, var(--brand-yellow-soft) 62%, var(--brand-yellow-soft) 95%, transparent 95%); }
body.brand-site .article-body blockquote { color: var(--brand-ink); border-color: var(--brand-yellow); background: var(--brand-paper-2); }
body.brand-site .brand-article-cover {
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--brand-line);
  background:
    linear-gradient(135deg, transparent 48%, color-mix(in srgb, var(--brand-line) 42%, transparent) 49%, transparent 50%) 0 0 / 22px 22px,
    var(--brand-paper-2);
}
body.brand-site .brand-article-cover img {
  width: min(50%, 290px);
  max-height: 290px;
  object-fit: contain;
  border: 0;
  filter: drop-shadow(7px 8px 0 rgba(35,52,75,.05));
}
body.brand-site .article-foot { border-color: var(--brand-line); }
body.brand-site .next-prev a:hover { color: var(--brand-yellow); border-color: var(--brand-yellow); }
body.brand-site .diary-list-page h1 { color: var(--brand-ink); font-family: var(--hand, var(--serif)); font-weight: 400; }
body.brand-site .diary-list-page .intro { color: var(--brand-muted); }
body.brand-site .diary-entry { border-color: var(--brand-line); }

/* Content stays visible without JavaScript; interaction never gates reading. */
.reveal { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .brand-header-inner { gap: 22px; }
  .brand-nav { gap: 20px; }
  .brand-hero { grid-template-columns: 1.05fr .8fr; gap: 35px; }
  .hero-character { min-height: 450px; }
  .path-grid { gap: 13px; }
  .path-card { min-height: 370px; padding: 23px 20px; }
  .editorial-grid { grid-template-columns: 1.15fr 1fr; }
  .editorial-card:last-child { grid-column: 1 / -1; }
  .editorial-card:last-child > a { min-height: 285px; display: grid; grid-template-columns: .75fr 1.25fr; }
  .editorial-card:last-child .card-art { border-right: 1px solid var(--brand-line); border-bottom: 0; }
  .latest-grid { grid-template-columns: 1fr; gap: 42px; }
  .letters-inner { grid-template-columns: 120px 1fr; }
  .letters-action { grid-column: 2; }
}

@media (max-width: 820px) {
  .brand-header-inner { min-height: 68px; grid-template-columns: 1fr auto; }
  .brand-nav,
  .letter-link { display: none; }
  .brand-menu { display: block; }
  .brand-hero { min-height: auto; padding-top: 70px; grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .hero-character { width: min(100%, 440px); min-height: 500px; margin: -35px auto 0; }
  .path-grid { grid-template-columns: 1fr; }
  .path-card,
  .path-card:nth-child(2),
  .path-card:nth-child(3) { min-height: 250px; display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 20px; transform: none; }
  .path-card img { margin: 0; width: 120px; height: 130px; }
  .editorial-grid { grid-template-columns: 1fr 1fr; }
  .editorial-card-featured { grid-column: 1 / -1; }
  .editorial-card-featured > a { min-height: 330px; display: grid; grid-template-columns: .85fr 1.15fr; }
  .editorial-card-featured .card-art { border-right: 1px solid var(--brand-line); border-bottom: 0; }
  .editorial-card:last-child { grid-column: auto; }
  .editorial-card:last-child > a { min-height: 440px; display: flex; }
  .editorial-card:last-child .card-art { border-right: 0; border-bottom: 1px solid var(--brand-line); }
  .letters-inner { grid-template-columns: 100px 1fr; gap: 35px; }
  .letter-stamp { width: 96px; height: 96px; }
  .letter-stamp::before { width: 80px; height: 80px; }
  .letter-stamp span { font-size: 22px; }
  .about-brief-grid { grid-template-columns: 1fr; gap: 38px; }
  .brand-footer-inner { grid-template-columns: 1fr; }
  .brand-footer nav { grid-row: auto; grid-column: auto; }
  .collection-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body.brand-site { background-size: auto, 22px 22px, 22px 22px, auto; }
  .brand-header-inner,
  .brand-hero,
  .brand-section,
  .letters-inner,
  .brand-footer-inner,
  .brand-page-hero,
  .brand-page-content { width: min(calc(100% - 32px), var(--brand-content)); }
  .brand-lockup strong { font-size: 20px; }
  .brand-lockup small { display: none; }
  .brand-hero { padding-top: 55px; gap: 25px; }
  .brand-kicker { font-size: 9px; }
  .brand-hero h1 { font-size: clamp(56px, 19vw, 82px); }
  .hero-promise { font-size: clamp(25px, 8vw, 33px); }
  .hero-description br { display: none; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .brand-button { width: 100%; }
  .hero-character { min-height: 420px; }
  .hero-character img { max-height: 420px; }
  .brand-section { padding-top: 78px; padding-bottom: 78px; }
  .section-heading h2,
  .about-brief h2,
  .letters-copy h2,
  .brand-page-hero h1 { font-size: clamp(36px, 11vw, 48px); }
  .heading-row { align-items: start; flex-direction: column; }
  .path-card,
  .path-card:nth-child(2),
  .path-card:nth-child(3) { min-height: 0; padding: 22px; grid-template-columns: 90px 1fr; gap: 15px; }
  .path-card img { width: 86px; height: 100px; }
  .path-card h3 { font-size: 25px; }
  .path-card p { font-size: 12.5px; }
  .start-here { padding-right: 16px; padding-left: 16px; }
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-card-featured,
  .editorial-card:last-child { grid-column: auto; }
  .editorial-card-featured > a,
  .editorial-card:last-child > a { min-height: 0; display: flex; }
  .editorial-card-featured .card-art,
  .editorial-card:last-child .card-art { min-height: 185px; border-right: 0; border-bottom: 1px solid var(--brand-line); }
  .latest-feature > a { grid-template-columns: 1fr; }
  .latest-art { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--brand-line); }
  .night-row { grid-template-columns: 38px 1fr auto; gap: 10px; }
  .letters-inner { padding: 64px 0; grid-template-columns: 1fr; }
  .letter-stamp { margin: 0 auto; }
  .letters-action { grid-column: auto; }
  .about-brief h2 br { display: none; }
  .brand-footer nav { flex-wrap: wrap; }
  .series-list { grid-template-columns: 1fr; }
  .series-list li:nth-child(odd),
  .series-list li:nth-child(even) { padding: 18px 0; border-left: 0; }
  .collection-card > a { padding: 22px; grid-template-columns: 90px 1fr; gap: 17px; }
  .collection-card img { width: 90px; height: 95px; }
  body.brand-site .article-nav { padding-right: 16px; padding-left: 16px; flex-wrap: wrap; }
  body.brand-site .article-nav .crumb:last-child { display: none; }
  body.brand-site .article-index-link { display: none; }
  body.brand-site .brand-article-cover { min-height: 260px; margin-right: -12px; margin-left: -12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.brand-site *,
  body.brand-site *::before,
  body.brand-site *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .brand-header,
  .brand-footer,
  .hero-actions,
  .letters-section { display: none !important; }
  body.brand-site { color: #111; background: #fff; }
}
