/* TownTalk. The app's own paper, ink, brick and teal, laid out like fencingday.app (owner, 2026-10-26). Both fonts
   are the app's and are served from this site: nothing loads from other sites. */

/* Fraunces (SIL Open Font License), bold: the app's headings. */
@font-face {
  font-family: 'Fraunces';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/fraunces-700.ttf') format('truetype');
}
/* Atkinson Hyperlegible (Braille Institute): the app's body text. */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/atkinson-400.ttf') format('truetype');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/atkinson-700.ttf') format('truetype');
}

:root {
  --paper: #F4EEE3; --card: #FFFDF8; --ink: #1E2B2F; --mute: #56615F; --line: #DDD3C2;
  --brick: #B4472A; --teal: #1D6B66; --teal-soft: #DCEBE8; --gold: #B7791F; --dark: #1E2B2F;
  --head: 'Fraunces', Georgia, serif;
  --cjk-ko: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --cjk-zh: 'PingFang SC', 'Noto Sans SC', sans-serif;
  --cjk-ja: 'Hiragino Sans', 'Noto Sans JP', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 16px; }
h1 { font-size: clamp(40px, 6.6vw, 70px); }
h2 { font-size: clamp(30px, 4.2vw, 44px); }
h3 { font-size: 22px; margin-bottom: 6px; }
p { margin: 0 0 16px; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.kicker { font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; color: var(--mute); margin-bottom: 14px; }
.ko { font-family: var(--cjk-ko); } .zh { font-family: var(--cjk-zh); } .ja { font-family: var(--cjk-ja); }

/* top bar */
header { padding: 22px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--head); font-weight: 700; font-size: 22px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 8px; }
nav a { text-decoration: none; margin-left: 22px; font-size: 16px; color: var(--mute); }
nav a.btn { color: #fff; }

/* buttons */
.btn { display: inline-block; background: var(--brick); color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit; }
.btn.white { background: #fff; color: var(--ink); }
.btn:hover { opacity: 0.9; }

/* hero */
.hero { padding: 40px 0 64px; border-top: 0; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.lead { font-size: 21px; color: var(--mute); max-width: 540px; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--ink); border-radius: 12px; padding: 10px 16px; text-decoration: none; background: var(--card); line-height: 1.1; }
.store small { display: block; font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em; }
.store b { font-size: 17px; }
.store svg { width: 26px; height: 26px; }
.free { font-size: 15px; color: var(--mute); }

/* phone mockup: the app's talk screen at the café (Korean). The art is laid out as the app lays it out
   (scene.tsx): 390-unit-wide art, cropped 146 units from the top, Ha-eun at x 65, y 150, 260 × 300. */
.phone { width: 320px; margin: 0 auto; background: #15191b; border-radius: 42px; padding: 12px; box-shadow: 0 30px 60px -20px rgba(30,43,47,0.45), 0 0 0 2px #2c3335 inset; }
.screen { --w: 296px; background: var(--paper); border-radius: 31px; overflow: hidden; min-height: 580px; display: flex; flex-direction: column; font: 400 13px/1.35 'Atkinson Hyperlegible', system-ui, sans-serif; }
.scene { position: relative; width: var(--w); height: calc(var(--w) * 300 / 390); overflow: hidden; }
.scene img { position: absolute; display: block; }
.scene .layer { left: 0; top: calc(var(--w) * -146 / 390); width: var(--w); height: calc(var(--w) * 560 / 390); }
.scene .who { left: calc(var(--w) * 65 / 390); top: calc(var(--w) * 4 / 390); width: calc(var(--w) * 260 / 390); height: calc(var(--w) * 300 / 390); }
.chip { position: absolute; top: 12px; background: rgba(255,253,248,0.94); border-radius: 999px; padding: 4px 11px; font-weight: 700; font-size: 13px; }
.chip.name { left: 12px; }
.chip.rom { right: 12px; background: var(--teal); color: #fff; }
.talk { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.goal { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 7px 11px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.goal::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--teal); flex: none; }
.bubble { background: var(--card); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 11px; max-width: 82%; }
.bubble.me { align-self: flex-end; background: var(--teal-soft); border-color: #c4dcd8; border-radius: 14px 14px 4px 14px; }
.bubble b { display: block; font-size: 17px; font-weight: 600; }
.bubble .r { color: var(--gold); font-weight: 700; display: block; }
.bubble .e { color: var(--mute); }
.mic { margin-top: auto; align-self: center; width: 62px; height: 62px; border-radius: 50%; background: var(--brick); display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(180,71,42,0.7); }
.mic svg { width: 26px; height: 26px; fill: #fff; }
.sample { text-align: center; font-size: 13px; color: var(--mute); margin-top: 12px; }

/* sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-lead { color: var(--mute); max-width: 640px; font-size: 19px; margin-bottom: 32px; }

.cast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.person .face { height: 150px; background: #E8DCC6; display: flex; justify-content: center; align-items: flex-end; overflow: hidden; }
.person .face img { width: 150px; height: 173px; display: block; margin-bottom: -12px; }
.person .body { padding: 18px 20px 20px; }
.person .lang { font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 12px; color: var(--brick); margin-bottom: 4px; }
.person .line { font-size: 24px; font-weight: 600; margin: 8px 0 2px; }
.person .r { color: var(--gold); font-weight: 700; }
.person .e { color: var(--mute); font-size: 16px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.steps div { counter-increment: s; }
.steps div::before { content: "0" counter(s); font-family: var(--head); font-size: 40px; color: var(--brick); display: block; line-height: 1; margin-bottom: 14px; }
.steps p { color: var(--mute); font-size: 17px; }

.days { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.days img { width: 100%; height: auto; max-width: 420px; display: block; margin: 0 auto; border-radius: 18px; border: 1px solid var(--line); }
.days ul { padding-left: 20px; color: var(--mute); }
.days li { margin-bottom: 8px; }

.pass { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; }
.price { font-family: var(--head); font-size: 48px; line-height: 1; margin: 6px 0 8px; }
.price small { font-family: 'Atkinson Hyperlegible', sans-serif; font-size: 18px; color: var(--mute); }
.pass .trial { display: inline-block; background: var(--teal-soft); color: var(--teal); font-weight: 700; border-radius: 999px; padding: 6px 14px; font-size: 15px; }
.pass ul { list-style: none; margin: 0; padding: 0; }
.pass li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; }
.pass li:last-child { border-bottom: 0; }
.pass li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.pass li b { display: block; }
.pass li span { color: var(--mute); font-size: 16px; }
.pass .fine { color: var(--mute); font-size: 14px; margin-top: 16px; }

.lights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.light { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.light::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--teal); margin-bottom: 14px; }
.light p { color: var(--mute); font-size: 17px; margin: 0; }

.faq dt { font-family: var(--head); font-size: 21px; margin-top: 26px; }
.faq dd { margin: 6px 0 0; color: var(--mute); }

/* get the app */
.signup { background: var(--dark); color: #f4f1ea; border-radius: 24px; padding: 56px 32px; text-align: center; }
.signup h2 { color: #fff; }
.signup p { color: #b9c2c0; max-width: 560px; margin: 0 auto 26px; }
.signup .fine { font-size: 14px; color: #8f9a98; margin: 22px auto 0; }
.signup .fine a { color: #d9e0de; }
form { display: grid; gap: 12px; max-width: 460px; margin: 0 auto; text-align: left; }
form label { font-size: 15px; font-weight: 700; }
input[type=email] { font: inherit; min-height: 54px; border-radius: 12px; border: 0; padding: 0 16px; background: #fff; color: var(--ink); }
input[type=email]:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup .msg { min-height: 1.5em; margin: 0; font-weight: 700; color: #fff; }

/* privacy, support */
.doc { padding: 24px 0 40px; border-top: 0; }
.doc .wrap { max-width: 720px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); }
.doc h2 { font-size: 26px; margin-top: 36px; margin-bottom: 8px; }
.doc p, .doc li { color: #33403f; }
.doc .muted { color: var(--mute); font-size: 15px; }

footer { padding: 40px 0 120px; font-size: 15px; color: var(--mute); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { text-decoration: none; }

/* mobile */
.bar { display: none; }
@media (max-width: 860px) {
  .hero .wrap, .days, .pass { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 16px; }
  .steps, .lights, .cast { grid-template-columns: 1fr; }
  nav a:not(.btn) { display: none; }
  .phone { width: 290px; margin-top: 12px; }
  .screen { --w: 266px; min-height: 530px; }
  .pass { padding: 24px; gap: 24px; }
  section { padding: 52px 0; }
  .bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(244,238,227,0.95); border-top: 1px solid var(--line); }
  .bar .btn { flex: 1; text-align: center; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
