/* bookrawr.com — values from dev-hub 디자인시스템 (asia tokens): colours, the 9 type sizes, 4px spacing, 0 radius. */
@font-face {
  font-family: 'Do Hyeon';
  src: url('/fonts/dohyeon-subset.woff2') format('woff2');
  font-display: swap;
}

:root {
  --ink: #1e1830;
  --ink-muted: #5b5470;
  --ink-faint: #8e86a8;
  --paper: #ede7ff;
  --surface: #ffffff;
  --stage: #d8f7e8;
  --stage-floor: #bfebd6;
  --accent: #ff5a3c;
  --highlight: #ffd23f;
  --highlight-soft: #fff6cc;
  --marker: #ffe873;
  --rule: #c9bfea;
  --track: #d6ccf5;
  --book-ink: #1f1f1f;
  --book-muted: #5e5e5e;
  --book-red: #c2394a;
  --on-ink: #ffffff;
  --border-game: 3px solid var(--ink);
  --border-game-sm: 2px solid var(--ink);
  --shadow-hard: 4px 4px 0 var(--ink);
  --shadow-paper: 0 1px 2px rgba(30, 24, 48, 0.2), 0 10px 24px rgba(30, 24, 48, 0.22);
  --font-display: 'Do Hyeon', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  --font-ui:
    'IBM Plex Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR',
    'Segoe UI', sans-serif;
  --gutter: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--surface);
  border: var(--border-game-sm);
}

/* ---------- header / footer ---------- */

.top {
  border-bottom: var(--border-game);
  background: var(--paper);
}

.top-row {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 24px;
}

.brand img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
  border: var(--border-game-sm);
}

.foot {
  margin-top: 40px;
  border-top: var(--border-game);
  padding: 24px 0 32px;
  color: var(--ink-muted);
  font-size: 13px;
}

.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.foot-links a {
  display: inline-block;
  padding: 12px 0;
  color: var(--ink);
}

.maker {
  margin: 8px 0 0;
}

/* ---------- landing ---------- */

.monster {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hero {
  display: grid;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--ink-muted);
}

.hero h1 {
  font-size: 36px;
}

.pitch {
  margin: 12px 0 0;
  font-size: 19px;
  line-height: 1.6;
}

.soon-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 8px 0 0;
  padding: 4px 16px;
  text-decoration: none;
  background: var(--highlight);
  border: var(--border-game-sm);
  font-family: var(--font-display);
  font-size: 19px;
}

.stage {
  position: relative;
  background: var(--stage);
  border: var(--border-game);
  box-shadow: var(--shadow-hard);
  padding: 72px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stage .monster {
  width: 192px;
  position: relative;
  z-index: 1;
  margin-bottom: -20px;
}

.stage .floor {
  align-self: stretch;
  margin: 0 -16px;
  height: 40px;
  background: var(--stage-floor);
  border-top: var(--border-game-sm);
}

.bubble {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 12px;
  white-space: nowrap;
  background: var(--surface);
  border: var(--border-game-sm);
  font-family: var(--font-display);
  font-size: 19px;
}

section > h2,
.features h2,
.loop h2,
.promises h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

.features,
.loop,
.promises,
.soon {
  padding-top: 32px;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: var(--border-game);
  box-shadow: var(--shadow-hard);
  padding: 16px;
}

.card .monster {
  width: 88px;
  background: var(--stage);
  border: var(--border-game-sm);
  image-rendering: pixelated;
}

.card h3 {
  font-size: 21px;
}

.card p {
  margin: 8px 0 0;
}

.quote {
  margin: 12px 0 0;
  padding: 8px 12px;
  background: var(--highlight-soft);
  border-left: 4px solid var(--marker);
  font-family: 'Noto Serif KR', 'AppleMyungjo', 'Batang', serif;
  color: var(--book-ink);
}

.quote p {
  margin: 0;
  background: linear-gradient(transparent 55%, var(--marker) 55%);
  display: inline;
}

.quote footer {
  margin-top: 4px;
  font-size: 12px;
  color: var(--book-muted);
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--highlight);
  border: var(--border-game-sm);
  font-family: var(--font-display);
  font-size: 21px;
}

.promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.promise-list li {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}

.promise-list h3 {
  font-size: 19px;
}

.promise-list p {
  margin: 4px 0 0;
  color: var(--ink-muted);
}

.soon-box {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--highlight-soft);
  border: var(--border-game);
  box-shadow: var(--shadow-hard);
  padding: 20px 16px;
}

.monster.small {
  width: 72px;
}

.soon-box h2 {
  font-size: 30px;
  margin: 0;
}

.soon-box p {
  margin: 8px 0 0;
}

.store-slot {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--ink-faint);
  color: var(--ink-muted);
  font-size: 13px;
}

.store-slot p {
  margin: 0;
}

/* ---------- terms / privacy ---------- */

.doc {
  max-width: 760px;
  padding-top: 24px;
}

.banner {
  margin: 0 0 24px;
  padding: 12px 16px;
  background: var(--highlight);
  border: var(--border-game-sm);
  font-weight: 600;
}

.doc h1 {
  font-size: 30px;
}

.edition {
  margin: 4px 0 24px;
  color: var(--ink-muted);
  font-size: 13px;
}

.doc h2 {
  font-size: 21px;
  margin: 32px 0 8px;
}

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

.doc ol,
.doc ul {
  padding-left: 24px;
  margin: 8px 0;
}

.doc li + li {
  margin-top: 4px;
}

.blank {
  display: inline-block;
  padding: 0 4px;
  background: var(--marker);
  border-bottom: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

.note {
  padding: 8px 12px;
  border-left: 4px solid var(--rule);
  background: var(--surface);
}

.table {
  overflow-x: auto;
  margin: 12px 0;
  background: var(--surface);
  border: 1px solid var(--rule);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.6;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px;
  border-bottom: 1px solid var(--rule);
}

th {
  background: var(--track);
  font-weight: 600;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- 404 ---------- */

.lost-box {
  padding-top: 40px;
  text-align: center;
}

.lost-box .monster {
  margin: 0 auto 16px;
  width: 128px;
}

.lost-box h1 {
  font-size: 30px;
}

.link-btn {
  display: inline-block;
  min-height: 44px;
  padding: 8px 20px;
  background: var(--surface);
  border: var(--border-game);
  box-shadow: var(--shadow-hard);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 19px;
}

/* ---------- wider screens ---------- */

@media (min-width: 760px) {
  :root {
    --gutter: 24px;
  }

  .hero {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    padding-top: 52px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .stage .monster {
    width: 256px;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .card {
    grid-template-columns: 104px 1fr;
  }

  .card .monster {
    width: 104px;
  }

  .promise-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
  }

  .soon-box {
    grid-template-columns: 104px 1fr;
    padding: 24px;
  }

  .soon-box .monster.small {
    width: 104px;
  }
}
