:root {
  --ink: #2d2722;
  --muted: #766d63;
  --paper: #fffaf0;
  --paper-soft: #fbf3e4;
  --rice: #f7ead6;
  --line: #dfd0bb;
  --coral: #be6a57;
  --tea: #667b5a;
  --sage: #dce5d4;
  --blue: #e5edf4;
  --lilac: #eee7f0;
  --gold: #d3a84d;
  --shadow: 0 18px 54px rgba(45, 39, 34, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(211, 168, 77, 0.09), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(190, 106, 87, 0.08), transparent 24%),
    var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.68;
  overflow-wrap: break-word;
  word-break: keep-all;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 250, 240, 0.9);
  border-bottom: 1px solid rgba(223, 208, 187, 0.72);
  backdrop-filter: blur(18px);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 15px clamp(20px, 4vw, 58px);
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 11px;
  font-weight: 700;
}

.brand-mark {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: inline-flex;
  font-family: "Gowun Batang", serif;
  font-size: 17px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(16px, 2.2vw, 30px);
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

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

.hero {
  display: grid;
  min-height: 88vh;
  overflow: hidden;
  padding: 132px clamp(22px, 6vw, 86px) 58px;
  position: relative;
}

.hero-media,
.hero-paper {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    url("https://images.pexels.com/photos/1791747/pexels-photo-1791747.jpeg?auto=compress&cs=tinysrgb&w=1800")
      center right / cover no-repeat;
  filter: saturate(0.7) sepia(0.12) brightness(1.12);
  transform: scale(1.02);
}

.hero-paper {
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.98), rgba(255, 250, 240, 0.82) 48%, rgba(255, 250, 240, 0.28)),
    linear-gradient(0deg, rgba(255, 250, 240, 0.94), rgba(255, 250, 240, 0.08) 38%, rgba(255, 250, 240, 0.82)),
    repeating-linear-gradient(0deg, rgba(45, 39, 34, 0.04) 0 1px, transparent 1px 34px);
}

.hero-content {
  align-self: center;
  max-width: 770px;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  color: var(--tea);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 18px;
}

.hero h1,
.section h2 {
  font-family: "Gowun Batang", "Nanum Myeongjo", serif;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(68px, 10vw, 138px);
  line-height: 0.96;
  margin: 0;
}

.hero-copy {
  color: #4d453e;
  font-family: "Gowun Batang", "Nanum Myeongjo", serif;
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.72;
  margin: 28px 0 0;
  max-width: 690px;
  text-wrap: balance;
}

.hero-copy span {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 50px;
  padding: 12px 23px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: #161310;
}

.button-secondary {
  background: rgba(255, 250, 240, 0.68);
  border-color: rgba(45, 39, 34, 0.25);
  color: var(--ink);
}

.hero-caption {
  align-self: end;
  border-top: 1px solid rgba(45, 39, 34, 0.24);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 360px);
  max-width: 470px;
  padding-top: 16px;
  position: relative;
  z-index: 2;
}

.hero-caption span {
  color: var(--coral);
  font-weight: 700;
}

.hero-caption p {
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

.quiet-line {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.quiet-line p {
  margin: 0;
  min-height: 104px;
  padding: 28px clamp(18px, 4vw, 58px);
  position: relative;
  white-space: nowrap;
}

.quiet-line p + p {
  border-left: 1px solid var(--line);
}

.section {
  padding: clamp(76px, 9vw, 126px) clamp(22px, 6vw, 86px);
}

.section h2 {
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.16;
  margin: 12px 0 0;
  max-width: 980px;
}

.section h3 {
  font-family: "Gowun Batang", "Nanum Myeongjo", serif;
  font-size: 25px;
  line-height: 1.25;
  margin: 10px 0 0;
}

.section p {
  color: var(--muted);
  font-size: 18px;
  text-wrap: pretty;
}

.intro {
  max-width: 1120px;
}

.intro p {
  max-width: 790px;
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  margin-bottom: 36px;
}

.section-heading p {
  margin: 0;
  text-wrap: pretty;
}

.books-section {
  background: var(--rice);
}

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

.book-card {
  background: rgba(255, 250, 240, 0.84);
  border: 1px solid rgba(45, 39, 34, 0.15);
  border-radius: 8px;
  box-shadow: 0 12px 38px rgba(45, 39, 34, 0.06);
  display: grid;
  grid-template-rows: 244px 1fr;
  min-height: 570px;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.book-card:hover,
.book-card.selected {
  border-color: rgba(190, 106, 87, 0.66);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.book-cover {
  color: rgba(45, 39, 34, 0.86);
  display: flex;
  flex-direction: column;
  font-family: "Gowun Batang", "Nanum Myeongjo", serif;
  justify-content: space-between;
  padding: 26px;
}

.book-cover span {
  font-size: 32px;
  font-weight: 700;
}

.book-cover em {
  font-size: 15px;
  font-style: normal;
}

.cover-coral {
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.88), rgba(255, 250, 240, 0.12)),
    repeating-linear-gradient(90deg, rgba(45, 39, 34, 0.1) 0 1px, transparent 1px 32px),
    #e6bab0;
}

.cover-jade {
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.88), rgba(255, 250, 240, 0.12)),
    repeating-linear-gradient(90deg, rgba(45, 39, 34, 0.1) 0 1px, transparent 1px 32px),
    #c4d8c0;
}

.cover-gold {
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.88), rgba(255, 250, 240, 0.12)),
    repeating-linear-gradient(90deg, rgba(45, 39, 34, 0.1) 0 1px, transparent 1px 32px),
    #ead28e;
}

.book-card-content {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.book-meta {
  color: var(--coral);
  font-size: 14px !important;
  font-weight: 700;
  margin: 0;
}

.book-card-content p:not(.book-meta) {
  font-size: 16px;
  margin: 18px 0 24px;
  text-wrap: pretty;
}

.select-book {
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  margin-top: auto;
  min-height: 44px;
  padding: 10px 16px;
  white-space: nowrap;
}

.book-card.selected .select-book {
  background: var(--ink);
  color: var(--paper);
}

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

.flow-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 38px;
}

.flow-grid article {
  border-top: 1px solid var(--ink);
  min-height: 250px;
  padding: 24px 0 0;
}

.flow-grid span {
  color: var(--coral);
  font-weight: 700;
}

.flow-grid p {
  font-size: 16px;
}

.safety-section {
  background: var(--lilac);
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.safety-copy p {
  max-width: 600px;
}

.safety-list {
  display: grid;
  gap: 14px;
}

.safety-list div {
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(45, 39, 34, 0.12);
  border-radius: 8px;
  min-height: 120px;
  padding: 22px;
}

.safety-list strong,
.safety-list span {
  display: block;
}

.safety-list strong {
  font-family: "Gowun Batang", "Nanum Myeongjo", serif;
  font-size: 22px;
}

.safety-list span {
  color: var(--muted);
  margin-top: 8px;
  text-wrap: pretty;
}

.pricing-section {
  align-items: center;
  background: #344138;
  color: var(--paper);
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
}

.pricing-section .section-kicker {
  color: #efd6a0;
}

.pricing-section p {
  color: rgba(255, 250, 240, 0.78);
  max-width: 720px;
}

.price-box {
  background: var(--paper);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 16px;
  padding: 30px;
}

.price-label {
  color: var(--tea);
  font-weight: 700;
}

.price-box strong {
  font-family: "Gowun Batang", "Nanum Myeongjo", serif;
  font-size: 56px;
  line-height: 1;
}

.price-box span:not(.price-label) {
  color: var(--muted);
  text-wrap: pretty;
}

.join-section {
  background: var(--blue);
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
}

.selected-book-preview {
  border-bottom: 1px solid rgba(45, 39, 34, 0.28);
  display: inline-flex;
  margin-top: 20px;
  padding: 0 0 10px;
  text-wrap: pretty;
}

.waitlist-form {
  background: rgba(255, 250, 240, 0.82);
  border: 1px solid rgba(45, 39, 34, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(22px, 4vw, 34px);
}

.waitlist-form label {
  color: var(--ink);
  display: grid;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
  text-wrap: pretty;
}

.waitlist-form input,
.waitlist-form select,
.waitlist-form textarea {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #d0c1ae;
  border-radius: 8px;
  color: var(--ink);
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

.waitlist-form textarea {
  min-height: 124px;
  resize: vertical;
}

.waitlist-form input:focus,
.waitlist-form select:focus,
.waitlist-form textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(190, 106, 87, 0.14);
  outline: 0;
}

.full {
  grid-column: 1 / -1;
}

.checkbox {
  align-items: start;
  display: flex !important;
  gap: 10px !important;
}

.checkbox input {
  flex: 0 0 auto;
  height: 18px;
  margin-top: 3px;
  min-height: 18px;
  width: 18px;
}

.submit-button {
  width: 100%;
}

.form-status {
  color: var(--tea);
  font-size: 15px !important;
  font-weight: 700;
  margin: 0;
}

.faq-section {
  max-width: 980px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

summary {
  cursor: pointer;
  font-family: "Gowun Batang", "Nanum Myeongjo", serif;
  font-size: 22px;
  font-weight: 700;
}

details p {
  font-size: 16px !important;
  margin-bottom: 0;
  max-width: 760px;
  text-wrap: pretty;
}

.site-footer {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 32px clamp(22px, 6vw, 86px);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--ink);
  font-family: "Gowun Batang", "Nanum Myeongjo", serif;
  font-size: 22px;
}

.footer-actions {
  align-items: center;
  display: flex;
  gap: 16px;
}

.footer-actions a,
.text-button {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  padding: 0;
}

.credit {
  color: #81766b;
  font-size: 13px;
  grid-column: 1 / -1;
  margin: 0;
}

.call-page {
  min-height: 100vh;
  padding: 132px clamp(22px, 6vw, 86px) 72px;
}

.call-hero {
  margin: 0 auto 34px;
  max-width: 920px;
  text-align: center;
}

.call-hero h1 {
  font-family: "Gowun Batang", serif;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1.03;
  margin: 12px 0 18px;
}

.call-hero p:last-child {
  color: var(--muted);
  font-size: 18px;
  margin: 0 auto;
  max-width: 680px;
  text-wrap: pretty;
}

.call-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  margin: 0 auto;
  max-width: 1120px;
}

.call-layout:has(.call-room[hidden]) {
  grid-template-columns: minmax(320px, 560px);
  justify-content: center;
}

.call-panel {
  background: rgba(255, 250, 240, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.call-panel h2 {
  font-family: "Gowun Batang", serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  margin: 6px 0 0;
}

.call-panel label {
  color: var(--ink);
  display: grid;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
}

.call-panel input {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 48px;
  outline: 0;
  padding: 12px 14px;
}

.call-panel input:focus {
  border-color: var(--tea);
  box-shadow: 0 0 0 4px rgba(102, 123, 90, 0.14);
}

.call-choice {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.call-choice label {
  align-items: center;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 50px;
  padding: 12px 14px;
}

.call-choice input,
.call-panel .checkbox input {
  accent-color: var(--tea);
  height: 18px;
  min-height: auto;
  padding: 0;
  width: 18px;
}

.call-room {
  min-height: 520px;
}

.call-meter {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(220, 229, 212, 0.68), rgba(238, 231, 240, 0.72)),
    var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: center;
  min-height: 168px;
}

.call-meter span {
  animation: callPulse 1.5s ease-in-out infinite;
  background: var(--tea);
  border-radius: 999px;
  display: block;
  height: 76px;
  opacity: 0.72;
  width: 12px;
}

.call-meter span:nth-child(2) {
  animation-delay: 140ms;
  height: 118px;
}

.call-meter span:nth-child(3) {
  animation-delay: 280ms;
  height: 92px;
}

@keyframes callPulse {
  0%,
  100% {
    transform: scaleY(0.58);
  }

  50% {
    transform: scaleY(1);
  }
}

.call-details {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  margin: 0;
}

.call-details div {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 110px 1fr;
  padding: 14px 0;
}

.call-details div + div {
  border-top: 1px solid rgba(223, 208, 187, 0.7);
}

.call-details dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.call-details dd {
  margin: 0;
}

.call-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.call-actions .button {
  min-height: 46px;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-paper {
    background:
      linear-gradient(0deg, rgba(255, 250, 240, 0.98), rgba(255, 250, 240, 0.58)),
      linear-gradient(90deg, rgba(255, 250, 240, 0.96), rgba(255, 250, 240, 0.32));
  }

  .quiet-line,
  .book-grid,
  .flow-grid,
  .section-heading,
  .safety-section,
  .pricing-section,
  .join-section,
  .call-layout {
    grid-template-columns: 1fr;
  }

  .quiet-line p + p {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .book-card {
    grid-template-columns: 150px 1fr;
    grid-template-rows: auto;
    min-height: 288px;
  }

  .book-cover {
    min-height: 100%;
  }

  .flow-grid article {
    min-height: 168px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
  }

  .hero {
    min-height: 86vh;
    padding: 104px 20px 36px;
  }

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

  .hero-copy {
    font-size: 18px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-caption {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .quiet-line p {
    min-height: 88px;
    padding: 22px 20px;
  }

  .section {
    padding: 66px 20px;
  }

  .section h2 {
    font-size: 36px;
  }

  .book-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .book-cover {
    min-height: 176px;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-actions {
    align-items: start;
    flex-direction: column;
  }

  .call-page {
    padding: 104px 20px 56px;
  }

  .call-choice {
    grid-template-columns: 1fr;
  }

  .call-details div {
    grid-template-columns: 1fr;
  }
}
