:root {
  color-scheme: light;
  --paper: #f9f5eb;
  --ink: #233c35;
  --muted: #54625a;
  --accent: #bb573c;
  --border: #ded8c8;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, .button, .nav-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  padding: 13px 19px; border-radius: 6px; border: 1px solid var(--ink);
  background: var(--ink); color: white; font-weight: 700; cursor: pointer;
}
button:disabled { opacity: .5; cursor: default; }
button:not(:disabled):hover, .button:hover { background: #36574b; }
.secondary, .nav-action, .reader button { background: transparent; color: var(--ink); }
.secondary:not(:disabled):hover, .reader button:not(:disabled):hover, .nav-action:hover { background: #e9e9dc; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.site-header, footer {
  padding: 17px max(5vw, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { font-family: Georgia, "Batang", serif; font-weight: 800; font-size: 25px; white-space: nowrap; }
.brand span { color: var(--accent); }
nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 34px); font-size: 14px; font-weight: 700; }
.nav-action { padding: 9px 12px; }
.hero {
  max-width: 1320px; margin: 0 auto; padding: 64px 40px 76px;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 7vw, 104px); align-items: center;
}
.eyebrow { color: #a14933; font-size: 13px; font-weight: 800; letter-spacing: .11em; }
h1, h2 { font-family: Georgia, "Batang", "AppleMyungjo", serif; letter-spacing: -.055em; margin: 13px 0; }
h1 { font-size: clamp(48px, 7vw, 100px); line-height: 1.08; }
h2 { font-size: clamp(33px, 5vw, 55px); }
.intro { color: var(--muted); font-size: clamp(15px, 1.5vw, 19px); line-height: 1.8; margin: 25px 0; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.text-link { font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--ink); padding: 4px 0; }
.spec { color: var(--muted); font-size: 13px; margin: 24px 0 0; }
.spec b { color: var(--ink); margin-left: 9px; }
.hero-visual { background: #eaddca; padding: clamp(18px, 5vw, 64px); border-radius: 8px; }
.hero-visual canvas { width: 100%; display: block; box-shadow: 8px 14px 23px #463d3366; transform: rotate(-5deg); border-radius: 1px 6px 6px 1px; }
.section { border-top: 1px solid var(--border); max-width: 1320px; margin: 0 auto; padding: 64px 40px; scroll-margin-top: 12px; }
.section-heading { margin-bottom: 26px; }
.section-heading > p:not(.eyebrow), #guidance, .hint, footer p { color: var(--muted); }
.reader { padding: clamp(10px, 3vw, 28px); background: #eae3d4; border-radius: 8px; }
.spread { display: flex; justify-content: center; min-height: 0; margin: 0 auto; max-width: 760px; }
.leaf { appearance: none; display: block; width: 50%; padding: 0; border: 2px solid transparent; border-radius: 1px; box-shadow: 0 3px 8px #52483737; }
.leaf.selected { border-color: var(--accent); }
.leaf canvas { display: block; width: 100%; height: auto; background: var(--paper); }
.reader-controls { margin-top: 16px; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; }
.reader-controls button { padding: 8px 12px; }
.reader-controls select { max-width: 100%; }
select { color: var(--ink); padding: 8px; background: var(--paper); border: 1px solid #a1a090; border-radius: 5px; }
.panel { background: #fffdf6; border: 1px solid var(--border); padding: clamp(16px, 3vw, 30px); border-radius: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 7px; font-weight: 700; margin-bottom: 17px; }
.hint { font-size: 13px; font-weight: 400; }
input:not([type=checkbox]), textarea { width: 100%; padding: 10px; background: white; color: var(--ink); border: 1px solid #a9ac9e; border-radius: 5px; }
textarea { resize: vertical; }
.check { display: flex; align-items: flex-start; font-size: 14px; }
#controls { margin-top: 16px; }
#revision { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
#notice:not(:empty) { padding: 13px 16px; border-left: 3px solid var(--accent); background: #f3e8d7; }
.steps { display: flex; gap: 12px; padding: 0; list-style: none; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.steps li { padding: 6px 10px; border-bottom: 2px solid var(--border); }
.steps [aria-current] { color: var(--ink); font-weight: 800; border-color: var(--accent); }
footer { border-top: 1px solid var(--border); border-bottom: 0; }
footer p { font-size: 13px; }
@media (max-width: 760px) {
  .hero, .section { padding: 35px 20px; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { padding: 11vw; }
  .two { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 370px) { nav { font-size: 12px; } .brand { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
