@font-face {
  font-family: "Cebateau Sans KR";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/NotoSansKR[wght].ttf") format("truetype");
}

:root {
  --ink: #241727;
  --paper: #f6e8df;
  --paper-soft: #fff3ec;
  --cream: #fff9f2;
  --mist: #bd7162;
  --muted: #76524e;
  --line: #e7c4b8;
  --warm: #b6463c;
  --moss: #536a61;
  --deep-blue: #334c5f;
  --gold: #a97844;
  --shadow: 0 24px 80px rgba(36, 23, 39, 0.12);
  --sans: "Cebateau Sans KR", "Noto Sans KR", "Helvetica Neue", Helvetica,
    Arial, "Apple SD Gothic Neo", sans-serif;
  --serif: "Noto Serif KR", "AppleMyungjo", "Nanum Myeongjo", Georgia,
    "Times New Roman", serif;
  --sans-body: 140;
  --sans-medium: 210;
  --sans-strong: 245;
  --sans-heavy: 280;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: var(--sans-body);
  text-rendering: optimizeLegibility;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 5px;
}

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

.wrap {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: var(--sans-strong);
}

.brand-mark {
  width: 38px;
  height: auto;
}

.top-links,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.top-links a,
.quiet-link {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: var(--sans-strong);
}

.button-link,
.ghost-button,
.word-button,
.fragment-button,
.page-tab {
  min-height: 42px;
  border: 1px solid rgba(106, 54, 60, 0.24);
  border-radius: 8px;
  background: rgba(255, 249, 242, 0.7);
  color: var(--ink);
  font-weight: var(--sans-heavy);
}

.button-link,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.ghost-button {
  background: rgba(255, 249, 242, 0.42);
}

.interaction-hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(
      90deg,
      rgba(255, 249, 242, 0.95) 0%,
      rgba(255, 249, 242, 0.78) 43%,
      rgba(246, 232, 223, 0.28) 100%
    ),
    var(--paper);
}

.interaction-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 249, 242, 0.18) 0%,
      rgba(246, 232, 223, 0.6) 100%
    ),
    var(--hero-image, url("hero-archive-paper.jpg")) center / cover no-repeat;
  content: "";
  filter: saturate(0.92) contrast(0.98);
  mix-blend-mode: multiply;
  opacity: 0.46;
  pointer-events: none;
}

.hero-body {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: end;
  min-height: 54svh;
  padding: 64px 0 96px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: var(--sans-heavy);
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.display-title {
  max-width: 1040px;
  margin-bottom: 30px;
  font-family: var(--serif);
  font-size: 4.15rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
  word-break: keep-all;
}

.hero-lead {
  max-width: 680px;
  margin: 0 0 42px;
  color: var(--muted);
  font-size: 1.18rem;
  font-weight: var(--sans-medium);
  line-height: 1.9;
}

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

.section.alt {
  background: var(--paper-soft);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: end;
  gap: 48px;
  margin-bottom: 54px;
}

.section-title {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 3.3rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.16;
  word-break: keep-all;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: var(--sans-medium);
  line-height: 1.75;
}

.interaction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.interaction-card {
  display: grid;
  min-height: 360px;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  border: 1px solid rgba(231, 196, 184, 0.88);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 249, 242, 0.58);
  box-shadow: 0 18px 42px rgba(36, 23, 39, 0.06);
}

.interaction-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.card-kicker,
.label {
  color: var(--moss);
  font-size: 0.78rem;
  font-weight: var(--sans-heavy);
  letter-spacing: 0.06em;
}

.interaction-card h2,
.interaction-card h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.35;
}

.interaction-card p,
.body-copy {
  color: var(--muted);
  font-weight: var(--sans-medium);
  line-height: 1.8;
}

.quote-band {
  background: var(--ink);
  color: var(--paper-soft);
}

.quote-band .section-note,
.quote-band .body-copy {
  color: rgba(255, 243, 236, 0.72);
}

.quote-line {
  max-width: 900px;
  margin: 0;
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 1.35;
}

.audio-layout,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 48px;
  align-items: center;
}

.audio-panel,
.image-panel,
.memo-panel,
.field-panel {
  border: 1px solid rgba(231, 196, 184, 0.88);
  border-radius: 8px;
  background: rgba(255, 249, 242, 0.68);
  box-shadow: var(--shadow);
}

.audio-panel {
  padding: 28px;
}

.audio-panel audio {
  width: 100%;
  margin-top: 24px;
}

.audio-sentence {
  margin: 0;
  color: var(--audio-color, var(--muted));
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.45;
  transition: color 220ms ease;
}

.audio-panel.is-playing .audio-sentence {
  text-shadow: 0 0 24px rgba(182, 70, 60, 0.22);
}

.image-panel {
  overflow: hidden;
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.reveal-stage {
  display: grid;
  gap: 28px;
  padding: 32px;
  border: 1px solid rgba(231, 196, 184, 0.88);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 249, 242, 0.84), rgba(255, 249, 242, 0.84)),
    url("hero-archive-paper.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.reveal-line {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1.55;
}

.reveal-line span {
  display: inline-block;
  opacity: 0.18;
  transform: translateY(14px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal-line span.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.word-field {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
}

.word-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.word-button {
  width: 100%;
  padding: 0 14px;
  text-align: left;
}

.word-button[aria-pressed="true"],
.page-tab[aria-selected="true"] {
  border-color: rgba(83, 106, 97, 0.72);
  background: rgba(83, 106, 97, 0.13);
  color: var(--moss);
}

.word-response {
  min-height: 260px;
  border-left: 1px solid rgba(231, 196, 184, 0.88);
  padding-left: 30px;
}

.word-response h3 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.memo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
}

.memo-panel,
.field-panel {
  padding: 28px;
}

.fragment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.fragment-button {
  padding: 0 14px;
}

.draft-line {
  min-height: 136px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1.55;
}

.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(231, 196, 184, 0.66);
}

.progress-fill {
  width: var(--progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--moss), var(--warm));
  transition: width 220ms ease;
}

.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.page-tab {
  padding: 0 14px;
}

.sheet {
  display: none;
  min-height: 330px;
  border: 1px solid rgba(231, 196, 184, 0.88);
  border-radius: 8px;
  padding: 32px;
  background:
    linear-gradient(rgba(255, 249, 242, 0.82), rgba(255, 249, 242, 0.82)),
    url("hero-archive-paper.jpg") center / cover no-repeat;
}

.sheet.is-active {
  display: grid;
  align-content: center;
}

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

.solitude-stage {
  --solitude-alpha: 0.16;
  --ring-one: 290px;
  --ring-two: 460px;
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(231, 196, 184, 0.88);
  border-radius: 8px;
  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(83, 106, 97, var(--solitude-alpha)),
      rgba(83, 106, 97, 0) 36%
    ),
    linear-gradient(135deg, var(--cream), var(--paper));
  box-shadow: var(--shadow);
}

.solitude-stage::before,
.solitude-stage::after {
  position: absolute;
  border: 1px solid rgba(51, 76, 95, 0.22);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.solitude-stage::before {
  width: var(--ring-one);
  height: var(--ring-one);
}

.solitude-stage::after {
  width: var(--ring-two);
  height: var(--ring-two);
  opacity: 0.62;
}

.solitude-text {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 42px;
  text-align: center;
}

.solitude-text p {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 1.34;
}

.solitude-control {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.solitude-control input {
  width: 100%;
  accent-color: var(--moss);
}

.state-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: var(--sans-strong);
}

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

.notes-list li {
  border-top: 1px solid rgba(231, 196, 184, 0.88);
  padding-top: 18px;
  color: var(--muted);
  font-weight: var(--sans-medium);
  line-height: 1.8;
}

.footer {
  background: var(--paper-soft);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 920px) {
  .interaction-grid,
  .audio-layout,
  .two-column,
  .word-field,
  .memo-layout {
    grid-template-columns: 1fr;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .word-response {
    border-left: 0;
    border-top: 1px solid rgba(231, 196, 184, 0.88);
    padding: 28px 0 0;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: min(100% - 32px, 1120px);
  }

  .topbar {
    display: grid;
    gap: 22px;
    padding: 28px 0 20px;
  }

  .hero-body {
    min-height: auto;
    padding: 72px 0 86px;
  }

  h1,
  .display-title {
    font-size: 3.6rem;
  }

  .hero-lead {
    font-size: 1.05rem;
  }

  .section {
    padding: 70px 0;
  }

  .section-title,
  .quote-line {
    font-size: 2.5rem;
  }

  .interaction-card {
    min-height: auto;
    padding: 20px;
  }

  .reveal-stage,
  .memo-panel,
  .field-panel,
  .audio-panel,
  .sheet {
    padding: 22px;
  }

  .reveal-line,
  .solitude-text p {
    font-size: 2.1rem;
  }

  .audio-sentence,
  .draft-line,
  .sheet p {
    font-size: 1.6rem;
  }

  .solitude-text {
    padding: 28px 18px;
  }

  .footer-inner {
    display: grid;
  }
}
