:root {
  --ink: #1c1612;
  --ink-soft: #4a3d34;
  --night: #14181f;
  --night-2: #1e2530;
  --paper: #f3ecdf;
  --paper-2: #e7dcc8;
  --card: #fffaf3;
  --ember: #e24b22;
  --ember-deep: #b43312;
  --gold: #e6c27a;
  --gold-deep: #8d6830;
  --moss: #23483d;
  --line: rgba(28, 22, 18, 0.14);
  --shadow: 0 18px 40px rgba(20, 24, 31, 0.12);
  --serif: "Literata", "Iowan Old Style", Palatino, serif;
  --display: "Source Serif 4", Palatino, "Palatino Linotype", serif;
  --ui: "Manrope", "Segoe UI", sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(226, 75, 34, 0.16), transparent 55%),
    linear-gradient(180deg, #f7f1e6 0%, var(--paper) 28%, #efe6d6 100%);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ember-deep); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }
::selection { background: var(--ember); color: #fff8f3; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.ticker {
  background: var(--night);
  color: var(--gold);
  overflow: hidden;
  border-bottom: 3px solid var(--ember);
  font-family: var(--ui);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  padding: 0.55rem 0;
  animation: marquee 42s linear infinite;
}
.ticker span { white-space: nowrap; }
.ticker strong { color: #fff; font-weight: 700; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mast {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 4vw;
  background: rgba(243, 236, 223, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 46px; height: 46px; border-radius: 12px; }
.brand b {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  display: block;
  line-height: 1.1;
}
.brand small {
  font-family: var(--ui);
  color: var(--ink-soft);
  font-size: 0.75rem;
}
.nav {
  display: flex;
  gap: 1rem;
  font-family: var(--ui);
  font-size: 0.92rem;
  font-weight: 700;
}
.nav a { text-decoration: none; color: var(--ink); }
.actions { display: flex; gap: 0.55rem; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn-fill { background: var(--ember); color: #fffaf6; }
.btn-fill:hover { background: var(--ember-deep); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--gold); color: var(--night); }
.btn-light:hover { color: var(--night); background: #f3d7a1; }

.wrap { width: min(var(--max), calc(100% - 8vw)); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.2rem;
  align-items: end;
  padding: 2.4rem 0 1rem;
}
.kicker {
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ember-deep);
  margin: 0 0 0.6rem;
}
h1, h2, h3 { font-family: var(--display); font-weight: 650; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.05rem, 4.6vw, 4.05rem); max-width: 16ch; }
.lede {
  font-size: 1.22rem;
  max-width: 38rem;
  color: var(--ink-soft);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.2rem 0 0.4rem; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  font-family: var(--ui);
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 1rem;
}
.cover-frame {
  background: var(--night);
  padding: 0.7rem;
  border-radius: 22px 22px 8px 22px;
  box-shadow: var(--shadow);
  transform: rotate(1.1deg);
}
.cover-frame img { border-radius: 16px 16px 4px 16px; width: 100%; height: auto; }
.stamp {
  margin-top: -1.4rem;
  margin-left: auto;
  width: 92px;
  height: 92px;
  border: 2px dashed var(--ember);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ember-deep);
  background: rgba(243, 236, 223, 0.92);
  animation: tilt 3.6s ease-in-out infinite alternate;
}
@keyframes tilt {
  from { transform: rotate(6deg); }
  to { transform: rotate(12deg); }
}

.crumb {
  font-family: var(--ui);
  font-size: 0.88rem;
  padding: 0.4rem 0 0.2rem;
  color: var(--ink-soft);
}
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.reel-head, .section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 1.4rem 0 0.8rem;
}
.reel-head h2, .section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.reel-btns { display: flex; gap: 0.4rem; }
.reel-btns button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  font-family: var(--display);
  font-size: 1.2rem;
  cursor: pointer;
}
.reel {
  position: relative;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.4rem;
}
.reel::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 min(82%, 360px);
  scroll-snap-align: start;
  background: var(--card);
  border-radius: 18px;
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.slide em {
  font-family: var(--ui);
  font-style: normal;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
}
.slide h3 { font-size: 1.55rem; margin: 0.45rem 0; }
.slide p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }

.address {
  margin: 1.6rem 0;
  background: var(--night);
  color: var(--paper);
  border-radius: 24px;
  padding: 1.3rem 1.3rem 1.4rem;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
}
.address::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(226, 75, 34, 0.25);
  right: -40px;
  bottom: -60px;
}
.address h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: white; }
.address p { color: #d9d0c4; margin: 0.5rem 0 0.8rem; }
.address code {
  display: block;
  font-family: var(--ui);
  font-size: 1rem;
  background: #0d1016;
  color: var(--gold);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  word-break: break-all;
  position: relative;
  z-index: 1;
}
.address .btn { position: relative; z-index: 1; margin-top: 0.8rem; }

.layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 0.5rem;
}
.rail {
  position: sticky;
  top: 92px;
  font-family: var(--ui);
  font-size: 0.92rem;
  display: grid;
  gap: 0.45rem;
  padding-top: 0.4rem;
}
.rail a {
  text-decoration: none;
  color: var(--ink);
  border-left: 2px solid var(--line);
  padding: 0.2rem 0 0.2rem 0.7rem;
}
.rail a:hover { border-color: var(--ember); color: var(--ember-deep); }

article.sheet {
  background: var(--card);
  border-radius: 28px;
  padding: 1.5rem 1.4rem 1.7rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 1px 0 rgba(28, 22, 18, 0.05);
}
article.sheet h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 0.8rem; }
article.sheet h3 {
  font-size: 1.35rem;
  margin: 1.3rem 0 0.4rem;
}
article.sheet p { margin: 0 0 0.9rem; }
.drop::first-letter {
  font-family: var(--display);
  font-weight: 800;
  float: left;
  font-size: 3.3rem;
  line-height: 0.8;
  padding-right: 0.45rem;
  color: var(--ember);
}
.pull {
  margin: 1rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 4px solid var(--gold-deep);
  font-size: 1.28rem;
  line-height: 1.45;
  font-style: italic;
}
figure { margin: 1rem 0 1.2rem; }
figcaption {
  font-family: var(--ui);
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.45rem;
}
.table-wrap { overflow-x: auto; }
article.sheet, .address, .score, .event, .faq, .hero { scroll-margin-top: 96px; }
.jump {
  display: none;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.8rem;
  font-family: var(--ui);
  font-size: 0.88rem;
  font-weight: 700;
  scrollbar-width: none;
}
.jump::-webkit-scrollbar { display: none; }
.jump a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}
.langs a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
ol.steps, ul.clean { margin: 0.3rem 0 1rem; padding-left: 1.2rem; }
ol.steps li, ul.clean li { margin: 0.35rem 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ui);
  font-size: 0.98rem;
  margin: 0.6rem 0 1rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

.score {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  background: #f6f0e6;
  border-radius: 24px;
  padding: 1.2rem;
  margin-bottom: 1.1rem;
}
.big-score {
  font-family: var(--display);
  font-size: 4.5rem;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.big-score span { display: block; font-size: 1rem; letter-spacing: 0; color: var(--ink-soft); font-family: var(--ui); }
.bar { height: 8px; background: #ddd2c2; border-radius: 99px; margin-top: 0.25rem; }
.bar i { display: block; height: 100%; background: var(--moss); border-radius: inherit; }
.score-row { margin: 0.55rem 0; font-family: var(--ui); font-size: 0.95rem; }

.event {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  background: var(--moss);
  color: #f3ecdf;
  border-radius: 24px;
  padding: 1.1rem;
  margin-bottom: 1.1rem;
}
.event time {
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
  display: block;
}
.event h2 { color: white; font-size: 1.8rem; margin-bottom: 0.4rem; }
.event p { margin: 0.3rem 0; color: #e4efe9; }

.faq details {
  background: var(--card);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.55rem;
}
.faq summary {
  font-family: var(--display);
  font-size: 1.15rem;
  cursor: pointer;
  letter-spacing: -0.03em;
}
.faq details p { margin: 0.7rem 0 0.2rem; }

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-family: var(--ui);
  font-size: 0.92rem;
  margin: 0.4rem 0 1rem;
}
.langs a {
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--ink);
}

footer.colophon {
  margin-top: 1rem;
  padding: 1.4rem 0 6.5rem;
  color: var(--ink-soft);
  font-family: var(--ui);
  font-size: 0.92rem;
}
footer.colophon strong { color: var(--ink); }

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(20, 24, 31, 0.96);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}
.dock .btn { flex: 1; }

@media (max-width: 900px) {
  .nav { display: none; }
  .jump { display: flex; }
  .hero, .address, .layout, .score, .event { grid-template-columns: 1fr; }
  .rail { display: none; }
  .cover-frame { transform: none; }
  h1 { max-width: none; }
  .dock { display: flex; }
  .mast { padding: 0.55rem 3vw; gap: 0.45rem; }
  .mast .actions { display: flex; }
  .mast .btn { min-height: 44px; padding: 0.45rem 0.72rem; font-size: 0.88rem; }
  .brand small { display: none; }
  .brand img { width: 36px; height: 36px; }
  .brand b { font-size: 1.02rem; }
  article.sheet { padding: 1.15rem 1rem 1.3rem; }
  body { font-size: 1.05rem; }
  .event time { font-size: 1.35rem; }
  .hero-cta .btn, .address .btn { flex: 1 1 140px; }
  .brand { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .stamp { animation: none; }
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
