:root {
  --paper: #f3ece2; --ink: #272220; --mute: #6b6058; --rule: #cfc3b3;
  --act: #a93a24; --act-d: #8a2d1a; --fert: #2c6f5a; --ov: #272220; --start: #a93a24;
  --serif: "Gowun Batang", "Noto Serif KR", serif;
  --sans: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.7 var(--sans); }
a { color: var(--act-d); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
h1, h2, h3, .brand { font-family: var(--serif); font-weight: 700; line-height: 1.3; margin: 0; }
h1, .lede { word-break: keep-all; }
h1 { font-size: clamp(27px, 4.4vw, 42px); letter-spacing: -0.01em; }
h2 { font-size: clamp(21px, 2.6vw, 27px); margin-bottom: 10px; }
h3 { font-size: 18px; margin: 0 0 8px; }
p { margin: 0 0 12px; }

.top { border-bottom: 2px solid var(--ink); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; gap: 20px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.brand { font-size: 24px; text-decoration: none; color: var(--ink); }
.brand i { font-style: normal; color: var(--act); }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.top nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.top nav a[aria-current="page"], .top nav a:hover { border-bottom-color: var(--act); }

.jump { max-width: 1180px; margin: 0 auto; padding: 10px 20px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.jump a { flex: 1 1 0; min-width: 0; text-align: center; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 3px; }
.jump a:hover { border-color: var(--act); color: var(--act); }
.read { margin-top: 10px; }
main { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.hero { align-content: start; display: grid; grid-template-columns: 7fr 5fr; grid-template-columns: 7fr 5fr; grid-template-rows: auto auto 1fr; grid-template-areas: "h r" "ex r" "x r"; gap: 8px 56px; padding: 36px 0 44px; align-items: start; }
.hero-h { grid-area: h; }
.hero-r { grid-area: r; border-left: 6px solid var(--act); padding-left: 24px; }
.hero-ex { grid-area: ex; }
.lede { font-size: 18px; margin-top: 14px; max-width: 34em; }
.fact { font-weight: 600; border-top: 1px solid var(--rule); padding-top: 10px; max-width: 34em; }
.ex-cap { font-size: 14px; color: var(--mute); margin: 8px 0 6px; }

label { display: block; font-weight: 600; font-size: 15px; margin: 16px 0 2px; }
label small { font-weight: 400; color: var(--mute); }
input { display: block; width: 100%; font: 600 22px/1.3 var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 6px 2px; min-height: 46px; }
input[type=number] { max-width: 8em; }
button { font: 600 17px/1.2 var(--sans); cursor: pointer; border-radius: 0; min-height: 48px; }
.go { display: block; width: 100%; margin-top: 20px; background: var(--act); color: #fff; border: 0; padding: 14px 16px; }
.go:hover { background: var(--act-d); }
.sec { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 10px 14px; margin-top: 14px; border-radius: 3px; }
.err { color: var(--act-d); font-weight: 600; margin: 12px 0 0; }
.note { font-size: 14px; color: var(--mute); margin-top: 14px; }
.disc { font-size: 14px; border-top: 1px dashed var(--mute); padding-top: 10px; margin-top: 16px; }
.out { margin-top: 24px; border-top: 2px solid var(--ink); padding-top: 14px; }

.facts { margin: 0 0 14px; }
.facts > div { display: grid; grid-template-columns: 11em 1fr; gap: 4px 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--mute); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; }
.facts .big { display: block; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.facts .big dt { font-size: 15px; }
.facts .big dd { font: 700 clamp(24px, 3.4vw, 32px)/1.3 var(--serif); }
.facts.static { margin-top: 18px; }

.strip { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; counter-reset: none; }
.cell { min-height: 54px; padding: 3px 2px; text-align: center; border: 1px solid var(--rule); background: #fbf8f2; display: flex; flex-direction: column; justify-content: space-between; border-radius: 2px; }
.cell b { font-size: 16px; line-height: 1.2; }
.cell .dt { font-size: 11px; color: var(--mute); line-height: 1; }
.cell .tg { word-break: keep-all; overflow-wrap: normal; font-size: 11px; line-height: 1.1; min-height: 12px; font-weight: 600; }
.cell.fert { background: var(--fert); border-color: var(--fert); color: #fff; }
.cell.fert .dt { color: #e2f1ea; }
.cell.ov { background: var(--ov); border-color: var(--ov); color: #fff; }
.cell.ov .dt { color: #ddd; }
.cell.start { border: 2px solid var(--start); }
.cell.start .tg, .cell.next .tg { color: var(--start); }
.cell.next { border-style: dashed; border-color: var(--start); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; margin: 6px 0 0; }
.legend .k::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.legend .k.fert::before { background: var(--fert); }
.legend .k.ov::before { background: var(--ov); }
.legend .k.start::before { border: 2px solid var(--start); }

.series { width: 100%; border-collapse: collapse; margin: 16px 0 0; font-size: 15px; }
.series caption { text-align: left; font-size: 14px; color: var(--mute); padding-bottom: 6px; }
.series th, .series td { text-align: left; padding: 7px 8px 7px 0; border-bottom: 1px solid var(--rule); }
.series th { font-weight: 600; }
.series.wide th[scope=row] { font-family: var(--serif); font-size: 17px; }

.bar { position: relative; display: flex; margin: 14px 0 8px; height: 34px; border: 2px solid var(--ink); }
.bar .seg { flex: 14; font-size: 12px; display: flex; align-items: center; justify-content: center; border-right: 2px solid var(--ink); }
.bar .seg.s3 { flex: 12; border-right: 0; }
.bar .s2 { background: #e5d8c4; }
.bar .mark { position: absolute; top: -9px; bottom: -9px; width: 4px; margin-left: -2px; background: var(--act); }
.go-week { display: inline-block; margin-top: 6px; font-weight: 600; }

.blk { display: grid; grid-template-columns: 5fr 7fr; gap: 28px 56px; padding: 36px 0; border-top: 2px solid var(--ink); }
.blk-l p { max-width: 28em; }
.blk-r { max-width: 520px; }
.how .blk-r { max-width: 640px; }
.steps { margin: 0; padding-left: 1.3em; }
.steps li { margin-bottom: 12px; }
.wgrp h3 { font-size: 15px; font-family: var(--sans); color: var(--mute); margin: 0 0 2px; }
.wgrp p { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.wgrp a { min-width: 2.6em; padding: 4px 0; }
.blk.weeks .blk-r { max-width: 640px; }

.page { padding: 28px 20px 20px; }
.page article { max-width: 720px; }
.page h2 { margin-top: 30px; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 8px; }
.pn { margin-top: 24px; display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; }
.page #wk-form { max-width: 440px; }

footer { margin-top: 40px; border-top: 2px solid var(--ink); }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 18px 20px 28px; font-size: 14px; color: var(--mute); }
.foot-in p { margin-bottom: 4px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "h" "r" "ex"; gap: 18px; padding-top: 24px; }
  .hero-r { padding-left: 16px; }
  .blk { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .facts > div { grid-template-columns: 1fr; }
  .cell { min-height: 50px; }
}
