@font-face {
  font-family: Inter;
  src: url("/fonts/inter-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Shippori Mincho";
  src: url("/fonts/shippori-mincho-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Shippori Mincho";
  src: url("/fonts/shippori-mincho-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --washi: #f7f4ee;
  --paper: #ffffff;
  --sumi: #2b2b2b;
  --mist: #8a8580;
  --quiet: #6f6a64;
  --line: #e4ded3;
  --shu: #c8442f;
  --ai: #2e4a62;
  --sakura: #e38a7a;
  --serif: "Shippori Mincho", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--washi);
  color: var(--sumi);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; color: inherit; }
button { touch-action: manipulation; }
::selection { background: #f0d2cb; color: var(--sumi); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--sumi);
  color: var(--washi);
  padding: 8px 12px;
  z-index: 20;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}
.bar, .site-footer .wrap { width: min(1200px, calc(100% - 48px)); }

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.display {
  font-weight: 400;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.08;
  margin: 18px 0 20px;
}
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 400; margin: 8px 0 12px; }
h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 400; margin: 0 0 12px; }
h3 { font-size: 22px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
a { color: inherit; }

.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}
.dot { color: var(--shu); }
.lede { color: var(--quiet); font-size: 17px; max-width: 440px; }
.quiet { color: var(--quiet); }
.num { font-variant-numeric: tabular-nums; font-weight: 500; }

.site-header { padding: 28px 0 8px; }
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
}
.brand img { width: 22px; height: 22px; }
.nav { display: none; align-items: center; gap: 32px; }
.nav a, .nav-drawer a {
  color: var(--mist);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
}
.nav a[aria-current="page"], .nav a.strong, .nav-drawer a[aria-current="page"], .nav-drawer a.strong { color: var(--sumi); }
.nav-drawer { position: relative; }
.nav-drawer summary {
  list-style: none;
  cursor: pointer;
  letter-spacing: 0.14em;
  font-size: 12px;
  text-transform: uppercase;
}
.nav-drawer summary::-webkit-details-marker { display: none; }
.nav-drawer nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--paper);
  border: 1px solid var(--line);
  min-width: 200px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 6;
}
.hanko {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--shu);
  color: #fff;
  border-radius: 4px;
  font-family: var(--serif);
  font-size: 16px;
  flex: none;
}
.hanko-lg { width: 48px; height: 48px; font-size: 26px; }

.hero {
  display: grid;
  gap: 36px;
  align-items: center;
  padding: 36px 0 12px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  background: var(--sumi);
  color: var(--washi);
  text-decoration: none;
  border: 1px solid var(--sumi);
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--sumi); }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: default; }
.text-btn {
  background: none;
  border: 0;
  padding: 8px 0;
  color: var(--quiet);
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
}

.stage {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.enso {
  border-radius: 50%;
  border: 14px solid var(--sumi);
  border-right-color: transparent;
  transform: rotate(-30deg);
}
.stage .enso {
  position: absolute;
  width: min(420px, 92%);
  aspect-ratio: 1;
  height: auto;
  opacity: 0.12;
}
.stage-flower {
  position: absolute;
  width: min(520px, 140%);
  left: -12%;
  top: -8%;
  opacity: 0.06;
  pointer-events: none;
}
.phone {
  position: relative;
  z-index: 1;
  width: min(240px, 78vw);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 42px 18px 24px;
  box-shadow: 0 30px 60px rgba(43, 43, 43, 0.06);
}
.phone h2 { font-size: 24px; margin: 8px 0 22px; }
.phone-kicker { margin-bottom: 0; }
.mini-row { display: flex; gap: 4px; justify-content: center; }
.mini-card {
  width: 36px;
  height: 52px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3px;
  font-family: var(--serif);
  font-size: 12px;
}
.mini-card.red { color: var(--shu); }
.mini-card span:last-child { align-self: flex-end; }
.mini-note { text-align: center; color: var(--quiet); font-size: 13px; margin: 16px 0 0; }
.mini-race { list-style: none; padding: 8px 12px; margin: 0; }
.mini-race li { display: flex; gap: 10px; padding: 4px 0; font-family: var(--serif); }
.phone .btn { margin-top: 28px; }
.stage-seal { position: absolute; right: 6%; bottom: 28px; z-index: 2; }
.switcher { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.switcher button, .type-btn, .week-chip {
  min-height: 36px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--quiet);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.switcher button[aria-pressed="true"], .type-btn[aria-pressed="true"], .week-chip[aria-pressed="true"] {
  border-color: var(--sumi);
  color: var(--sumi);
}

.rule { display: flex; align-items: center; gap: 10px; margin: 28px 0; }
.rule.loose { margin: 64px 0 36px; }
.rule span { flex: 1; border-top: 1px solid var(--line); }
.rule img { width: 14px; height: 14px; }

.trio, .tiles, .split, .labs, .footer-grid {
  display: grid;
  gap: 22px;
}
.pillar, .tile, .note, .lab, .paper {
  background: transparent;
  color: inherit;
  text-decoration: none;
}
.pillar p, .tile p, .note p, .lab p { color: var(--quiet); }
.kicker { color: var(--shu); font-family: var(--serif); display: inline-flex; align-items: center; gap: 8px; }
.tile, .note, .lab, .paper {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px;
  min-height: 160px;
}
.tile:hover, .pillar:hover h3 { color: var(--shu); }
.section { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 28px; }

.form, .stack { display: grid; gap: 8px; max-width: 480px; }
.form label, .stack label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--quiet);
  margin-top: 8px;
}
.form input, .form select, .form textarea, .stack input, .stack textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 400;
}
.form textarea, .stack textarea { min-height: 120px; resize: vertical; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status { min-height: 1.4em; color: var(--shu); }

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 64px; }
.footer-grid a { display: block; text-decoration: none; color: var(--quiet); padding: 4px 0; }
.footer-grid h2 { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--sans); font-weight: 500; }
address { font-style: normal; color: var(--quiet); }
.fine { color: var(--quiet); font-size: 13px; }
.principles p { font-family: var(--serif); font-size: 18px; }

.prose { max-width: 68ch; }
.prose h2 { font-size: 28px; margin: 32px 0 8px; }
.prose li { margin: 6px 0; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.2em; }

.steps { list-style: none; padding: 0; margin: 18px 0; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.steps strong { font-weight: 500; }

.stationery {
  background: var(--paper);
  border: 1px solid var(--line);
  min-height: 220px;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 18px 40px rgba(43, 43, 43, 0.04);
}
.stationery .note-copy, .stationery .sign {
  font-family: var(--serif);
  font-size: 20px;
  white-space: pre-wrap;
}
.stationery .sakura { position: absolute; right: 18px; bottom: 18px; width: 42px; height: 42px; }
.composer { display: grid; gap: 8px; }

.trip {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px;
}
.trip-title { font-family: var(--serif); font-size: 28px; margin: 8px 0; }
.countdown { font-family: var(--serif); font-size: 22px; }
.day { margin: 16px 0; }
.day h3 { font-size: 18px; }
.day ul { list-style: none; padding: 0; margin: 0; }
.day li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.vote {
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
}
.vote.leading { border-color: var(--ai); color: var(--ai); }
.balance { margin: 0; color: var(--quiet); display: flex; gap: 12px; align-items: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 800px) {
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  .tiles.two, .split, .labs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
  .product-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
}
@media (min-width: 860px) {
  .nav { display: flex; }
  .nav-drawer { display: none; }
}
@media (min-width: 1040px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 88px; gap: 24px; }
  .section { padding: 96px 0; }
  .tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { min-height: 520px; }
}
@media (max-width: 859px) {
  .hanko-header { display: none; }
  .stage-seal { position: static; margin-top: 16px; }
  .stage { min-height: 0; padding-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
