:root {
  --bg: #e7ebf0;
  --ink: #16181d;
  --muted: #5b6470;
  --card: #ffffff;
  --line: #d5dbe3;
  --dark: #12151a;
  --lime: #d6f25c;
  --sky: #d7e4ff;
  --violet: #e4d9ff;
  --display: "Do Hyeon", "Apple SD Gothic Neo", sans-serif;
  --sans: "Nanum Gothic", "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; display: block; }
a { color: #1d4ed8; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}
::selection { background: #d6f25c; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--lime);
  color: var(--dark);
  padding: 8px 12px;
  z-index: 20;
  font-weight: 700;
}
.skip:focus { top: 8px; }

.wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.mast {
  background: var(--dark);
  color: #f4f6f8;
  border-bottom: 3px solid var(--lime);
}
.mast-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background:
    linear-gradient(var(--lime), var(--lime)) 0 0 / 12px 12px no-repeat,
    linear-gradient(#f4f6f8, #f4f6f8) 10px 10px / 12px 12px no-repeat;
}
.brand strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.mast nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mast nav a {
  color: #f4f6f8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: #2a2f38;
}
.mast nav a:hover { background: #3a4150; }
.mast nav a[aria-current="page"] {
  background: var(--lime);
  color: var(--dark);
}

.hero {
  background: var(--dark);
  color: #f7f8fa;
  padding: 18px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: end;
}
.edition {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 8px;
  background: var(--lime);
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
}
.hero h1 {
  margin: 0;
  max-width: 11em;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.standfirst {
  max-width: 38em;
  margin: 16px 0 0;
  color: #c5ccd6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}
.act {
  display: inline-block;
  background: var(--lime);
  color: var(--dark);
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.3;
}
.act:hover { background: #e4ff7a; }
.act-line {
  color: #f4f6f8;
  font-weight: 700;
  text-underline-offset: 4px;
}
.limit-line {
  margin: 22px auto 0;
  color: #9aa3b2;
  font-size: 0.92rem;
}
.lane {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.lane a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 14px;
  border-radius: 14px;
  background: #1c2129;
  color: #f4f6f8;
  text-decoration: none;
}
.lane a:hover { background: #262c36; }
.lane b {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--lime);
  font-weight: 400;
}
.lane em {
  font-style: normal;
  font-weight: 700;
  color: var(--lime);
}

.block { padding: 28px 0 4px; scroll-margin-top: 24px; }
.block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.block h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.folio {
  color: #7b8796;
  font-size: 12px;
  font-weight: 700;
}
.preface p { margin: 0 0 12px; }
.sign { color: var(--muted); font-size: 0.92rem; }

.volume {
  display: block;
  margin: 16px 0;
  padding: 22px 22px 18px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(18, 21, 26, 0.05);
  scroll-margin-top: 20px;
}
.volume-spine { display: none; }
.volume-a { box-shadow: inset 6px 0 0 #d6f25c, 0 10px 30px rgba(18, 21, 26, 0.05); }
.volume-b { box-shadow: inset 6px 0 0 #8eb0ff, 0 10px 30px rgba(18, 21, 26, 0.05); }
.volume-c { box-shadow: inset 6px 0 0 #b89bff, 0 10px 30px rgba(18, 21, 26, 0.05); }
.cat-no {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6b7583;
}
.volume h2,
.volume h3 {
  margin: 4px 0 8px;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.3;
}
.volume h2 { font-size: 1.7rem; }
.volume h3 { margin-top: 16px; font-size: 1.25rem; }
.specs { margin: 0 0 12px; color: var(--muted); }
.specs b { color: var(--ink); }
.toc { margin: 0 0 14px; padding: 0; list-style: none; }
.toc li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.toc span:first-child { font-weight: 700; color: #3d4654; }
.leaf {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f3f6fa;
}
.leaf p { margin: 0 0 10px; }
.leaf p:last-child { margin: 0; }
.pg { font-size: 12px; font-weight: 700; color: #6b7583; }
.choose {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  color: var(--ink);
}

.index-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
}
.index-table caption {
  text-align: left;
  font-family: var(--display);
  font-size: 1.35rem;
  padding: 8px 2px 10px;
}
.index-table th,
.index-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--card);
}

.weeks {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.weeks li {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
}
.week-no {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--dark);
  color: var(--lime);
  font-family: var(--display);
  font-size: 1.2rem;
}
.weeks h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.weeks p { margin: 0; }

.reader-note,
.policy,
.asks {
  margin-top: 14px;
}
.reader-note {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--sky);
}
.reader-note h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
}

.boundary { display: block; }
.seal {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--dark);
  color: var(--lime);
  font-weight: 700;
  width: auto;
  height: auto;
  border: 0;
  transform: none;
  text-align: left;
}
.refuse {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.refuse li {
  background: var(--card);
  border-radius: 12px;
  padding: 12px 14px;
}

.counter {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 16px;
  align-items: stretch;
}
.fine {
  display: flex;
  flex-direction: column;
  background: var(--dark);
  color: #e8edf3;
  border-radius: 22px;
  padding: 22px;
}
.fine .edition { align-self: flex-start; margin-bottom: 0; }
.fine-lead {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: #f7f8fa;
}
.fine-points {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.fine-points { margin-bottom: 18px; }
.fine-points li {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid #343b46;
  color: #c5ccd6;
  font-size: 0.92rem;
}
.summary {
  margin: auto 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #1c2129;
  color: var(--lime);
  font-weight: 700;
}
#order-form {
  background: var(--card);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(18, 21, 26, 0.05);
}
.field .hint { margin-top: 6px; }
.field { display: block; margin: 0 0 12px; }
.field span, .consent span { font-weight: 700; font-size: 0.92rem; }
.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  background-color: #f6f8fb;
  color: inherit;
  font: inherit;
  resize: vertical;
}
.field select {
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.2 7 9l4-3.8' fill='none' stroke='%2316181d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field select:invalid { color: #6b7380; }
.field select option { color: var(--ink); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  background-color: #fff;
  border-color: #c6e24a;
}
.hint, .miss { display: block; }
.hint { margin: 0; color: var(--muted); font-size: 0.85rem; font-weight: 400; }
.miss {
  margin: 6px 0 0;
  color: #b42318;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.4;
}
.miss:empty { display: none; }
.agree {
  margin-top: 2px;
  padding: 12px 14px;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  background: #f6f8fb;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
}
.consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #5c7a00;
  flex: none;
}
.policy-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}
#order-form .act {
  display: block;
  width: 100%;
  margin-top: 14px;
  text-align: center;
  padding: 14px 18px;
}
#order-form .act + .hint { margin-top: 10px; }

.asks details {
  background: var(--card);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 8px;
}
.asks summary { cursor: pointer; font-weight: 700; }
.asks details p { margin: 8px 0 0; }

.policy {
  background: var(--card);
  border-radius: 18px;
  padding: 8px 22px 22px;
}
.policy h3 {
  margin: 18px 0 6px;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 400;
}
.policy p, .policy ul { margin: 0 0 8px; }
.policy ul { padding-left: 1.2em; }

.colophon {
  margin-top: 28px;
  padding: 22px 0 32px;
  color: var(--muted);
  font-size: 0.92rem;
}
.colophon p { margin: 0 0 6px; }
.colophon a { color: var(--ink); font-weight: 700; }

dialog {
  border: 0;
  padding: 0;
  border-radius: 18px;
  max-width: min(460px, calc(100vw - 32px));
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(18, 21, 26, 0.35);
  overflow: hidden;
}
dialog::backdrop { background: rgba(18, 21, 26, 0.62); }
dialog .edition { display: block; margin: 0; border-radius: 0; }
dialog h2 {
  margin: 16px 22px 8px;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.3;
}
dialog #order-done-text { margin: 0 22px; }
dialog .act { margin: 16px 22px 22px; }

.page-hero {
  background: var(--dark);
  color: #f7f8fa;
  padding: 32px 0 36px;
}
.page-hero h1 {
  margin: 0;
  max-width: 14em;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.page-hero .lede {
  max-width: 40em;
  margin: 14px 0 0;
  color: #c5ccd6;
}
.page-hero .hero-actions { margin-top: 18px; }

.facts {
  width: min(1040px, calc(100% - 32px));
  margin: -34px auto 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}
.fact {
  background: var(--card);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 12px 28px rgba(18, 21, 26, 0.08);
}
.fact b {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.fact span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.steps,
.trio,
.split {
  display: grid;
  gap: 12px;
}
.steps {
  grid-template-columns: repeat(4, 1fr);
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.trio { grid-template-columns: repeat(3, 1fr); }
.split { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
.split > .steps { grid-template-columns: 1fr; }
.split.stack { margin-top: 16px; grid-template-columns: 1fr 1fr; }
.table-scroll { overflow-x: auto; }
.panel.dark .act-line { margin-left: 14px; }

.step,
.card,
.session,
.sheet,
.panel {
  background: var(--card);
  border-radius: 16px;
}
.step { padding: 16px; }
.step i {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: var(--dark);
  color: var(--lime);
  font-family: var(--display);
  font-style: normal;
  font-size: 1.15rem;
}
.step h3,
.card h3,
.session h3,
.panel h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}
.step p,
.card p,
.session p,
.panel p { margin: 0; }
.panel p + p,
.session p + p { margin-top: 10px; }

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(18, 21, 26, 0.05);
}
.card:hover { transform: translateY(-2px); }
.cap {
  padding: 16px 16px 12px;
  color: var(--dark);
}
.cap b {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.25;
}
.cap em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-weight: 700;
}
.cap-a { background: var(--lime); }
.cap-b { background: var(--sky); }
.cap-c { background: var(--violet); }
.card .body { padding: 14px 16px 16px; }
.card .body ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.card .body li {
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.card .more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--ink);
}

.session { padding: 16px; }
.session + .session { margin-top: 10px; }
.chip {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef1f6;
  font-size: 12px;
  font-weight: 700;
  color: #3d4654;
}

.sheet { padding: 16px 16px 12px; }
.sheet table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}
.sheet th,
.sheet td {
  text-align: left;
  padding: 10px 8px;
  border-top: 1px solid var(--line);
}
.sheet th { font-size: 0.86rem; color: #3d4654; }

.panel { padding: 18px; }
.panel.dark {
  background: var(--dark);
  color: #f4f6f8;
}
.panel.dark a.act { margin-top: 14px; }
.panel .act-line { color: #f4f6f8; }

.band {
  margin-top: 28px;
  padding: 28px 0;
  background: var(--dark);
  color: #f4f6f8;
}
.band h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 400;
}
.band p { margin: 0; color: #c5ccd6; }
.band-act { margin-top: 16px; }
.mini {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mini li {
  background: #1c2129;
  border-radius: 14px;
  padding: 14px;
}
.mini strong {
  display: block;
  margin-bottom: 4px;
  color: var(--lime);
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 8px 0;
}
.foot-nav a { font-weight: 700; color: var(--ink); }

@media (max-width: 800px) {
  .hero-grid,
  .counter,
  .weeks,
  .refuse,
  .steps,
  .trio,
  .split,
  .mini { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 16px; }
  .split.stack { grid-template-columns: 1fr; }
  .hero { padding-bottom: 22px; }
  .lane a { grid-template-columns: 36px 1fr; }
  .lane em { grid-column: 2; }
  .card:hover { transform: none; }
}

@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
}
