@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

:root {
  --paper: #ffffff;
  --mist: #f5f5f5;
  --ink: #1f1f1f;
  --line: #e3e3e3;
  --dim: #6b6b6b;
  --r: 4px;
  --sh: 0 4px 6px rgba(0, 0, 0, 0.05);
  --sh-hi: 0 10px 24px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 17px/1.75 'Cormorant Infant', 'Songti SC', 'Source Han Serif SC', 'Noto Serif CJK SC', Georgia, serif;
  letter-spacing: 0.01em;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 {
  margin: 0 0 0.4em;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1em; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 0 22px;
}

.ticker {
  margin: 0;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-align: center;
}

.masthead { position: relative; }

.barwrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 16px 0;
}

.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--sh);
}

.brand {
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: 0.16em;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
}

.dock { position: relative; }
.dock--r { justify-self: end; }

.dock summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 12px;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--dim);
  list-style: none;
  cursor: pointer;
  border-radius: var(--r);
}

.dock summary::-webkit-details-marker { display: none; }
.dock summary:hover { color: var(--ink); background: var(--mist); }

.dock__menu {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dock__menu a {
  display: inline-flex;
  align-items: center;
  padding: 11px 9px;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--r);
}

.dock__menu a:hover { background: var(--mist); }

.wrap {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px;
}

.wrap > * { min-width: 0; }

.hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: center;
  min-height: 70vh;
  padding: clamp(20px, 3vw, 42px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--sh);
  transition: box-shadow 0.35s ease;
}

.hero:hover { box-shadow: var(--sh-hi); }

.hero__txt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.hero h1 { font-size: clamp(28px, 4.6vw, 52px); margin: 0; }

.lede {
  max-width: 34ch;
  margin: 0;
  color: var(--dim);
  font-size: clamp(16px, 1.3vw, 19px);
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  font-size: 14px;
  letter-spacing: 0.2em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transform: rotate(-2deg);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 26px;
  font-size: 16px;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  transition: background 0.25s ease, color 0.25s ease;
}

.cta:hover { background: transparent; color: var(--ink); }

.hero__art {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.hero__art img { width: 100%; height: 100%; object-fit: cover; }

.hero__art--plain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border-style: dashed;
}

.hero__art--plain span {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #ededed;
}

.hero__art--plain span:nth-child(1) { grid-row: span 2; background: var(--mist); }
.hero__art--plain span:nth-child(3) { background: var(--ink); border-color: var(--ink); }

.rail {
  position: sticky;
  top: 16px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--sh);
  transition: box-shadow 0.3s ease;
}

.rail:hover { box-shadow: var(--sh-hi); }

.rail__cap {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.26em;
  color: var(--dim);
}

.rail__list {
  display: grid;
  gap: 2px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.rail__li a {
  display: block;
  padding: 11px 9px;
  font-size: 16px;
  text-decoration: none;
  border-radius: var(--r);
  border-bottom: 1px solid var(--mist);
}

.rail__li a:hover { background: var(--mist); border-bottom-color: var(--ink); }

.rail__top {
  display: inline-block;
  padding: 10px 2px;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
}

.rail__top:hover { color: var(--ink); text-decoration: underline; }

.prose { min-width: 0; }

.prose__head,
.prose > section {
  padding: clamp(16px, 2.6vw, 32px);
  margin: 0 0 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--sh);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.prose__head:hover,
.prose > section:hover { box-shadow: var(--sh-hi); transform: translateY(-2px); }

.prose section[id] { scroll-margin-top: 92px; }

.prose h2 { font-size: clamp(21px, 2.6vw, 28px); }
.prose h3 { font-size: 19px; margin-top: 1.4em; }
.prose p { font-size: 17px; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose blockquote {
  margin: 1.2em 0;
  padding: 12px 16px;
  background: var(--mist);
  border-left: 2px solid var(--ink);
  border-radius: var(--r);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: var(--r); margin: 1em 0; }
.prose hr { margin: 16px 0 22px; }
.prose > section > h2:first-child,
.prose > section > h3:first-child { margin-top: 0; }

.foot {
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 0 16px 30px;
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--sh);
}

.foot__cap {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  letter-spacing: 0.26em;
  color: var(--dim);
}

.foot__brand {
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: 0.14em;
}

.foot address { font-style: normal; font-size: 16px; line-height: 1.9; }
.foot__line { margin: 0; word-break: break-all; }

.foot__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot__list a {
  display: inline-block;
  padding: 10px 0;
  font-size: 16px;
  text-decoration: none;
}

.foot__list a:hover { text-decoration: underline; }

.sub { display: flex; gap: 8px; }

.sub__in {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  font: inherit;
  font-size: 16px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.sub__in:focus { outline: 2px solid var(--ink); outline-offset: 1px; }

.sub__btn {
  padding: 11px 16px;
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--r);
  cursor: pointer;
}

.sub__btn:hover { background: transparent; color: var(--ink); }

.foot__copy {
  margin: 14px 0 0;
  font-size: 14px;
  text-align: center;
  color: var(--dim);
}

.reveal { opacity: 0; transform: translateY(10px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (max-width: 880px) {
  .bar { grid-template-columns: auto 1fr auto; padding: 5px 8px; }
  .brand { font-size: 17px; letter-spacing: 0.1em; }

  .dock__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    z-index: 40;
    flex-direction: column;
    min-width: 200px;
    padding: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.1);
  }

  .dock--r .dock__menu { left: auto; right: 0; }
  .dock__menu a { padding: 12px; }

  .wrap { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; }

  .hero {
    order: 1;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero__art { aspect-ratio: 16 / 10; }

  .rail {
    order: 2;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    overflow-x: auto;
    border-radius: 0 var(--r) var(--r) 0;
  }

  .rail__cap { flex: 0 0 auto; margin: 0 6px 0 2px; }
  .rail__list { display: flex; gap: 6px; margin: 0; }
  .rail__li { flex: 0 0 auto; }

  .rail__li a {
    padding: 10px 14px;
    min-height: 42px;
    white-space: nowrap;
    background: var(--mist);
    border-bottom: 0;
  }

  .rail__top { flex: 0 0 auto; padding: 10px 12px; white-space: nowrap; }

  .col { order: 3; }

  .prose section[id] { scroll-margin-top: 76px; }
  .prose__head:hover,
  .prose > section:hover { transform: none; }

  .foot { padding: 0 12px 24px; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .prose__head:hover,
  .prose > section:hover { transform: none; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
