:root {
  --paper: #F5EFE3;
  --paper-deep: #ECE3D1;
  --card: #FBF8F1;
  --ink: #2B2622;
  --ink-soft: #6A5F55;
  --line: #DCCFB9;
  --lemon: #F2C74B;
  --stamp: #C8553A;
  --blue: #3F5E8C;
  --wood: #D9B98C;
  --wood-edge: #CBA676;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "PingFang TC", "Noto Sans TC", sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;

  --gutter: clamp(16px, 5vw, 56px);
  --max: 1160px;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--paper);
  /* faint dot grid, like a Hobonichi page */
  background-image: radial-gradient(circle at 1px 1px, rgba(43, 38, 34, .09) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 10; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

section, .nav, .footer { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--stamp); margin-bottom: 14px;
}

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--paper);
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: #000; transform: translateY(-1px); }
.btn--small { padding: 10px 16px; font-size: 14px; }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--lemon); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.link:hover { text-decoration-color: var(--stamp); }

/* Nav */
.nav { display: flex; align-items: center; gap: 24px; padding-block: 22px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 19px; margin-right: auto; }
.wordmark__mark { width: 28px; height: 28px; fill: var(--ink); }
.wordmark__mark rect { fill: var(--wood); stroke: var(--ink); stroke-width: 1.6; }
.nav__links { display: flex; gap: 22px; font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--ink-soft); }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav__links { display: none; } .wordmark span { font-size: 17px; } }
@media (max-width: 400px) { .nav { gap: 12px; } .wordmark { gap: 8px; } .wordmark span { font-size: 15.5px; white-space: nowrap; } .wordmark__mark { width: 24px; height: 24px; } .btn--small { padding: 9px 13px; font-size: 13px; } }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding-block: clamp(32px, 7vw, 96px) clamp(56px, 8vw, 112px);
}
.hero h1 { font-size: clamp(44px, 6vw, 76px); font-weight: 350; font-variation-settings: "opsz" 144; }
.hero h1 em { font-style: italic; color: var(--stamp); }
.lede { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }

.hero__table { margin: 0; position: relative; }
.hero__table svg { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(60, 40, 20, .12)); }
.chair rect { fill: var(--paper-deep); stroke: var(--ink); stroke-width: 2; }
.chair .chair--open { fill: var(--lemon); }
.tabletop { fill: var(--wood); stroke: var(--ink); stroke-width: 2.5; }
.tabletop__edge { fill: none; stroke: var(--wood-edge); stroke-width: 2; }
.page { fill: #FFFDF8; stroke: var(--ink); stroke-width: 1.6; }
.page--grid { fill: #FFFDF8; }
.spine { stroke: var(--ink); stroke-width: 1.6; }
.rule line { stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; opacity: .55; }
.sticker { fill: var(--lemon); stroke: var(--ink); stroke-width: 1.4; }
.tape { fill: var(--stamp); opacity: .75; }
.stamp-dot { fill: none; stroke: var(--stamp); stroke-width: 2.4; stroke-dasharray: 3 3; }
.cover { fill: var(--blue); stroke: var(--ink); stroke-width: 2; }
.cover__band { fill: var(--ink); opacity: .35; }
.lemon { fill: var(--lemon); }
.washi { fill: var(--stamp); stroke: var(--ink); stroke-width: 1.6; }
.washi--blue { fill: #9DB4D6; }
.washi__hole { fill: var(--wood); stroke: var(--ink); stroke-width: 1.4; }
.cup { fill: #FFFDF8; stroke: var(--ink); stroke-width: 2; }
.coffee { fill: #7A4E2D; }
.pen { fill: var(--ink); }
.pen--red { fill: var(--stamp); }

.note { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; padding-inline: 4%; }
.note__hand { font-family: var(--hand); font-size: 24px; color: var(--stamp); line-height: 1; }
.note__meta { white-space: nowrap; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .hero__table { max-width: 520px; }
}

/* About */
.about { padding-block: clamp(56px, 8vw, 104px); border-top: 1.5px solid var(--ink); }
.about__title { font-size: clamp(30px, 4.2vw, 52px); max-width: 17em; font-style: italic; font-weight: 350; }
.about__list { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.about__list .num { font-family: var(--hand); font-size: 26px; color: var(--stamp); }
.about__list h3 { font-size: 24px; margin: 6px 0 10px; }
.about__list p { color: var(--ink-soft); }
@media (max-width: 800px) { .about__list { grid-template-columns: 1fr; } }

/* Section head */
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 350; }

/* Tables */
.tables { padding-block: clamp(56px, 8vw, 104px); }
.tables__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.table-card {
  position: relative; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: clamp(24px, 3.4vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.table-card__label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.table-card h3 { font-size: clamp(30px, 3.4vw, 42px); }
.table-card h3 span { display: block; font-family: var(--sans); font-size: 17px; color: var(--ink-soft); margin-top: 8px; letter-spacing: .04em; }
.table-card__meta { margin: 0; display: grid; gap: 10px; width: 100%; }
.table-card__meta div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.table-card__meta dt { font-size: 14px; color: var(--ink-soft); }
.table-card__meta dd { margin: 0; }
.table-card .btn { margin-top: 6px; }
.table-card__stamp { position: absolute; top: 20px; right: 20px; width: clamp(84px, 11vw, 116px); transform: rotate(-12deg); }
.table-card__stamp svg circle { fill: none; stroke: var(--stamp); stroke-width: 2.4; }
.table-card__stamp svg circle + circle { stroke-width: 1.4; }
.table-card__stamp text { fill: var(--stamp); font: 600 10.5px/1 var(--sans); letter-spacing: 0; }
.table-card__stamp .stamp-num { font-family: var(--serif); font-size: 30px; letter-spacing: 0; }
.table-card--next h3 { padding-right: 96px; }
.table-card--ghost { background: transparent; border-style: dashed; justify-content: center; }
.table-card--ghost p:not(.table-card__label) { color: var(--ink-soft); }
.tables__past { margin-top: 28px; color: var(--ink-soft); }
.tables__past .note__hand { font-size: 26px; margin-right: 6px; }
@media (max-width: 800px) { .tables__grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .table-card__meta div { grid-template-columns: 1fr; gap: 2px; } }

/* How */
.how { padding-block: clamp(56px, 8vw, 104px); }
.agenda { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.agenda li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.agenda time { font-family: var(--serif); font-size: 30px; color: var(--stamp); font-variant-numeric: tabular-nums; }
.agenda h3 { font-size: 24px; margin-bottom: 6px; }
.agenda p { color: var(--ink-soft); max-width: 40em; }
@media (max-width: 640px) { .agenda li { grid-template-columns: 1fr; gap: 4px; } .agenda time { font-size: 24px; } }

/* Waitlist */
.waitlist { padding-block: clamp(40px, 6vw, 80px); }
.waitlist__card {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  background: var(--lemon); border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: clamp(28px, 5vw, 64px);
  box-shadow: 8px 8px 0 var(--ink);
}
.waitlist .eyebrow { color: var(--ink); }
.waitlist h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 350; margin-bottom: 16px; }
.waitlist__form { display: grid; gap: 14px; }
.waitlist__form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.waitlist__form input {
  font: 400 17px/1.2 var(--sans); color: var(--ink);
  padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--ink); background: var(--card);
}
.waitlist__form input::placeholder { color: #A0948A; }
.waitlist__form .btn { justify-self: start; margin-top: 4px; }
.waitlist__status { min-height: 1.6em; font-weight: 500; }
@media (max-width: 800px) { .waitlist__card { grid-template-columns: 1fr; box-shadow: 5px 5px 0 var(--ink); } }

/* FAQ */
.faq { padding-block: clamp(56px, 8vw, 104px); }
.faq__list { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: clamp(20px, 2.2vw, 24px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--sans); font-size: 26px; color: var(--stamp); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-soft); max-width: 44em; }
.faq details a { color: var(--ink); }

/* Footer */
.footer { padding-block: clamp(56px, 8vw, 96px) 40px; border-top: 1.5px solid var(--ink); text-align: center; }
.footer__sign { font-family: var(--hand); font-size: clamp(34px, 5vw, 52px); color: var(--stamp); line-height: 1.1; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 28px; }
.footer__links a { text-decoration: none; border-bottom: 1.5px solid var(--line); }
.footer__links a:hover { border-color: var(--ink); }
.footer__small { margin-top: 36px; font-size: 13px; color: var(--ink-soft); }
