:root {
  --paper: #faf7f1;
  --paper-deep: #f6f2ea;
  --card: #e6e0d4;
  --accent: #8a5520;
  --accent-hover: #6b4118;
  --accent-light: #e0b071;
  --accent-tint: #f6eddd;
  --accent-wash: #f8f0e2;
  --ink: #221f1b;
  --ink-heading: #1e1b18;
  --ink-title: #000000;
  --ink-secondary: #4a443c;
  --ink-muted: #6f665a;
  --ink-kicker: #8a8175;
  --rule: rgba(30, 27, 24, 0.12);
  --rule-strong: rgba(30, 27, 24, 0.2);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Sans", "Noto Sans KR", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans KR", sans-serif;
  --measure: 68ch;
  --max: 1120px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-strong);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-title);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink-title);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.header-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.lang-switch select {
  appearance: none;
  background-color: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.2;
  padding: 6px 28px 6px 12px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.legal-lang-note {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.legal-lang-note[hidden] {
  display: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-tint);
  color: var(--accent-hover);
}

.btn-store {
  min-width: 200px;
  background: var(--ink-title);
  border-color: var(--ink-title);
  color: var(--paper);
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 10px 16px;
  min-height: 56px;
}

.btn-store:hover {
  background: #1a1714;
  color: var(--paper);
}

.btn-store small {
  font-size: 0.7rem;
  opacity: 0.75;
  font-weight: 400;
}

.btn-store strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-store.is-soon {
  background: transparent;
  color: var(--ink-secondary);
  border-color: var(--rule-strong);
  cursor: default;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Hero */

.hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink-title);
}

.lede {
  margin: 0 0 28px;
  max-width: 42ch;
  color: var(--ink-secondary);
  font-size: 1.15rem;
  line-height: 1.5;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

/* Phone mock */

.device {
  width: min(320px, 100%);
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  box-shadow: 18px 24px 0 var(--accent-tint);
}

.device-bar {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-kicker);
  border-bottom: 1px solid var(--rule);
}

.device-body {
  padding: 18px 16px 22px;
}

.device h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
}

.device .place {
  margin: 0 0 16px;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.entry {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.entry time {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.45;
}

.photo-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 6px;
  margin-top: 10px;
  height: 84px;
}

.photo-strip span {
  background: var(--card);
}

.photo-strip span:first-child {
  background: linear-gradient(135deg, #c4a574, #8a5520 80%);
}

.photo-strip span:last-child {
  background: linear-gradient(160deg, #e0b071, #6f665a);
}

.private-chip {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border: 1px solid var(--rule-strong);
  color: var(--ink-muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Sections */

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}

.section h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section .intro {
  margin: 0 0 36px;
  max-width: 48ch;
  color: var(--ink-secondary);
  font-size: 1.05rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.feature {
  background: var(--paper);
  padding: 28px 24px;
}

.feature h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.feature p {
  margin: 0;
  color: var(--ink-secondary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-num {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.4rem;
}

.step h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
}

.step p {
  margin: 0;
  color: var(--ink-secondary);
}

.privacy-band {
  background: var(--ink-heading);
  color: #f3eee6;
  border-bottom: 0;
}

.privacy-band h2,
.privacy-band p {
  color: inherit;
}

.privacy-band .intro {
  color: #cfc6b8;
}

.privacy-band .btn-ghost {
  border-color: var(--accent-light);
  color: var(--accent-light);
}

.privacy-band .btn-ghost:hover {
  background: rgba(224, 176, 113, 0.12);
  color: #f3eee6;
}

.download {
  text-align: left;
}

.download .btn-row {
  margin-top: 8px;
}

.site-footer {
  padding: 36px 0 48px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-strong);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink-title);
}

/* Legal */

.legal-hero {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--rule);
}

.legal-hero h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
}

.legal-hero p {
  margin: 0;
  color: var(--ink-muted);
}

.legal {
  padding: 40px 0 72px;
}

.legal-doc {
  max-width: var(--measure);
}

.legal-doc h2 {
  margin: 36px 0 12px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.legal-doc p,
.legal-doc li {
  color: var(--ink-secondary);
}

.legal-doc ul {
  padding-left: 1.2em;
}

.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.95rem;
}

.legal-doc th,
.legal-doc td {
  border: 1px solid var(--rule-strong);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-doc th {
  background: var(--accent-wash);
  font-weight: 600;
}

.notice {
  margin: 0 0 24px;
  padding: 16px 18px;
  background: var(--accent-wash);
  border: 1px solid var(--rule);
}

/* 404 */

.not-found {
  padding: 96px 0 120px;
  text-align: center;
}

.not-found h1 {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
}

@media (max-width: 860px) {
  .hero-grid,
  .features,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule-strong);
    padding: 8px 20px 16px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a,
  .nav .btn {
    min-height: 44px;
    padding: 10px 0;
  }

  .device {
    box-shadow: 10px 12px 0 var(--accent-tint);
  }
}
