:root {
  color-scheme: light;
  --paper: #f3efe6;
  --paper-deep: #eae3d6;
  --card: #fbf8f1;
  --ink: #1d2a24;
  --muted: #5e685f;
  --line: #d7cebf;
  --forest: #1e5a49;
  --forest-dark: #143d32;
  --coral: #c9523a;
  --coral-ink: #b84732;
  --gold: #b68a3c;
  --display: 'Batang', '바탕', 'AppleMyungjo', 'Nanum Myeongjo', Georgia, serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(29, 42, 36, .055) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.2px;
  line-height: 1.82;
  -webkit-font-smoothing: antialiased;
  text-rendering: auto;
}
::selection { background: var(--forest); color: var(--paper); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.035em;
}
h1 em, h2 em { font-style: normal; color: var(--coral); }
p { margin: 0; }
ul, ol { margin: 0; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--card);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--ink);
}
.skip:focus { left: 12px; top: 12px; }
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(243, 239, 230, .98);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--forest);
  flex: none;
}
.brand-mark svg { width: 100%; height: 100%; }
.mark-handle { fill: var(--coral); }
.brand-name { display: grid; line-height: 1; }
.brand-name b {
  font-family: var(--display);
  font-size: 1.48rem;
  letter-spacing: -.07em;
}
.brand-name small {
  margin-top: 5px;
  color: var(--muted);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .22em;
}
.nav {
  display: flex;
  gap: 25px;
  margin-left: auto;
  font-size: .89rem;
  font-weight: 500;
}
.nav a {
  position: relative;
  padding: 4px 0;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--coral);
}
.head-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex: none;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .7rem;
  text-decoration: none;
}
.head-count b {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--forest);
  line-height: 1;
}
.head-count:hover { border-color: var(--forest); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--coral); }
.lead { color: var(--muted); font-size: 1.06rem; line-height: 1.78; max-width: 64ch; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.btn-primary:hover { background: var(--forest-dark); }
.btn-light { background: var(--paper); border-color: var(--paper); color: var(--forest); }
.btn-ghost:hover { background: var(--card); }

.hero { padding: 82px 0 68px; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 {
  font-size: clamp(2.45rem, 5.3vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -.06em;
}
.hero h1 em { display: block; }
.h1-line { white-space: nowrap; }
.hero .lead { max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--muted);
  font-size: .74rem;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.hero-meta b { color: var(--ink); font-weight: 700; }
.hero-art { min-width: 0; }
.catalog { width: 100%; height: auto; }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 570px;
  padding: 5px 5px 5px 15px;
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(30, 90, 73, .12);
}
.search svg { width: 19px; height: 19px; flex: none; stroke: var(--muted); fill: none; stroke-width: 1.8; }
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: .95rem;
}
.search input::placeholder { color: #6b726b; }
.search button {
  flex: none;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--paper);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}
.search button:hover { background: var(--forest-dark); }
.search-note { min-height: 1.5em; color: var(--muted); font-size: .74rem; margin-top: -12px; }

.draw-card {
  display: grid;
  gap: 7px;
  max-width: 430px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--coral);
  background: var(--card);
}
.draw-tag { color: var(--coral-ink); font-size: .6rem; font-weight: 700; letter-spacing: .18em; }
.draw-card p { font-family: var(--display); font-size: 1.1rem; line-height: 1.35; }
.draw-card a {
  color: var(--forest);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.draw-card a[hidden] { display: none; }

.section { padding: 78px 0; border-bottom: 1px solid var(--line); }
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  margin-bottom: 32px;
}
.section-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--coral-ink);
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .13em;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3.05rem); }
.section-side { max-width: 42ch; color: var(--muted); font-size: .88rem; line-height: 1.7; text-align: right; }

.index-list { border-top: 1px solid var(--ink); }
.index-row {
  display: grid;
  grid-template-columns: 56px 1fr auto 20px;
  gap: 20px;
  align-items: center;
  padding: 22px 12px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .15s, padding .15s;
}
.index-row:hover { background: var(--card); padding-left: 18px; }
.index-row[hidden], .quick-card[hidden] { display: none; }
.index-no {
  color: var(--coral-ink);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
}
.index-main { display: grid; gap: 3px; min-width: 0; }
.index-main h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.52rem;
}
.index-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--cat, var(--forest));
}
.index-main p { color: var(--muted); font-size: .84rem; }
.index-count { color: var(--muted); font-family: var(--mono); font-size: .7rem; white-space: nowrap; }
.index-arrow { color: var(--forest); font-size: 1.1rem; text-align: right; }
.no-results {
  padding: 26px 0;
  color: var(--muted);
  font-size: .9rem;
  border-bottom: 1px solid var(--line);
}

.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick-card {
  display: grid;
  gap: 8px;
  min-height: 136px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--cat, var(--forest));
  background: var(--card);
  text-decoration: none;
  transition: transform .15s, border-color .15s;
}
.quick-card:hover { transform: translateY(-3px); border-color: var(--forest); }
.quick-cat {
  color: var(--coral-ink);
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.quick-card h3 { font-size: 1.28rem; }
.quick-domain { color: var(--muted); font-family: var(--mono); font-size: .68rem; }
.quick-arrow { margin-top: auto; color: var(--forest); font-size: .9rem; }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.principle { display: grid; gap: 8px; align-content: start; padding-top: 17px; border-top: 1px solid var(--ink); }
.principle b { color: var(--forest); font-family: var(--display); font-size: 2.1rem; line-height: 1; }
.principle h3 { font-size: 1.3rem; }
.principle p { color: var(--muted); font-size: .9rem; }

.longform { display: grid; gap: 20px; max-width: 820px; }
.longform h2 { margin-top: 8px; font-size: clamp(1.72rem, 3.5vw, 2.6rem); }
.longform h3 { margin-top: 14px; font-size: 1.3rem; }
.longform p { color: var(--muted); line-height: 1.88; }
.longform strong { color: var(--ink); }
.longform a { color: var(--forest); text-underline-offset: 3px; }
.answer {
  padding: 19px 22px;
  border-left: 4px solid var(--coral);
  background: var(--card);
  color: var(--ink) !important;
  font-size: 1.04rem;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--card); }
.data-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .86rem; }
.data-table th, .data-table td { padding: 12px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); background: var(--paper-deep); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { color: var(--ink); font-weight: 700; }

.faq { display: grid; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 0 3px; }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 17px 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral-ink); font-family: var(--display); font-size: 1.35rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq p { max-width: 78ch; padding: 0 0 18px; color: var(--muted); font-size: .92rem; }
.faq-more { margin-top: 18px; font-size: .86rem; }
.faq-more a { color: var(--forest); }

.band { padding: 48px 0; background: var(--forest); color: var(--paper); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.band h2 { color: var(--paper); font-size: clamp(1.8rem, 3.6vw, 2.65rem); }
.band p { max-width: 52ch; margin-top: 8px; color: rgba(243, 239, 230, .74); font-size: .88rem; }

.page-hero { padding: 58px 0 42px; border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: .75rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--forest); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); }
.page-hero .lead { max-width: 66ch; }
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 5px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
}
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid var(--line);
  color: var(--forest);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .08em;
}
.cat-tab::before { content: ""; width: 8px; height: 8px; background: var(--cat, var(--forest)); }

.link-list { max-width: 900px; border-top: 1px solid var(--ink); }
.link-row {
  display: grid;
  grid-template-columns: 48px 1fr 20px;
  gap: 15px;
  align-items: center;
  padding: 19px 10px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .15s, padding .15s;
}
.link-row:hover { background: var(--card); padding-left: 16px; }
.link-no { color: var(--coral-ink); font-family: var(--mono); font-size: .7rem; }
.link-main { display: grid; gap: 1px; min-width: 0; }
.link-main b { font-family: var(--display); font-size: 1.25rem; letter-spacing: -.03em; }
.link-main span { display: block; color: var(--muted); font-family: var(--mono); font-size: .72rem; line-height: 1.4; }
.link-arrow { color: var(--forest); text-align: right; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; }
.pager a {
  display: grid;
  gap: 4px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  background: var(--card);
  text-decoration: none;
}
.pager a:hover { border-color: var(--forest); }
.pager small { color: var(--muted); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; }
.pager b { font-family: var(--display); font-size: 1.1rem; }
.pager .next { text-align: right; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--card);
}
.step-num { color: var(--coral-ink); font-family: var(--mono); font-size: .68rem; font-weight: 700; }
.step h2, .step h3 { font-size: 1.28rem; }
.step p { color: var(--muted); font-size: .88rem; }
.rule-list { display: grid; gap: 10px; padding-left: 19px; color: var(--muted); }
.rule-list li::marker { color: var(--coral); }
.rule-list strong { color: var(--ink); }
.contact-box {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--ink);
  background: var(--card);
}
.contact-box .label { color: var(--coral); font-family: var(--mono); font-size: .6rem; font-weight: 700; letter-spacing: .14em; }
.contact-box .contact-email { color: var(--forest); font-family: var(--display); font-size: 1.55rem; line-height: 1.3; overflow-wrap: anywhere; text-decoration: none; }
.template {
  overflow-x: auto;
  padding: 17px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.8;
  white-space: pre-wrap;
}
.notice { padding: 15px 17px; border: 1px solid var(--line); background: var(--paper-deep); color: var(--muted); font-size: .86rem; }
.notfound { display: grid; gap: 20px; max-width: 720px; padding: 28px 0 10px; }
.notfound .big { color: var(--forest); font-family: var(--display); font-size: clamp(5rem, 16vw, 10rem); line-height: .8; letter-spacing: -.08em; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.notfound .hero-actions { margin-top: 6px; }

/* Journal */
.section-foot { display: flex; justify-content: flex-end; margin-top: 24px; }
.text-link {
  color: var(--forest);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 90, 73, .35);
  padding-bottom: 2px;
}
.text-link:hover { border-color: var(--forest); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: #9caf9f;
  box-shadow: 0 16px 30px rgba(29, 42, 36, .09);
}
.post-card-media {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}
.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.post-card:hover .post-card-media img { transform: scale(1.025); }
.post-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 18px 20px; }
.post-card-kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--coral-ink);
  font-family: var(--mono);
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.post-card-kicker time { color: var(--muted); font-weight: 400; letter-spacing: 0; }
.post-card h3 {
  font-size: 1.23rem;
  line-height: 1.3;
  letter-spacing: -.045em;
}
.post-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.65;
}
.post-card-more { margin-top: auto; padding-top: 4px; color: var(--forest); font-size: .76rem; font-weight: 700; }
.post-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.blog-hero .section-kicker { margin-bottom: 2px; }
.blog-hero h1 { max-width: 17ch; }
.post-hero h1 { max-width: 23ch; font-size: clamp(2.4rem, 5.2vw, 4.35rem); line-height: 1.12; }
.post-cat {
  width: fit-content;
  color: var(--coral-ink);
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.post-meta { margin-top: 0; }

.post-cover {
  margin: 32px auto 0;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  box-shadow: 0 18px 42px rgba(29, 42, 36, .1);
}
.post-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.post-cover figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.5;
}

.post-section { padding-top: 58px; }
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  gap: 56px;
  align-items: start;
  max-width: 1060px;
}
.post-body { min-width: 0; color: #435149; font-size: 1rem; line-height: 1.9; }
.post-body .answer { margin-bottom: 0; color: var(--ink) !important; font-size: 1.06rem; line-height: 1.78; }
.post-body p { margin: 0 0 1.15em; }
.post-body a { color: var(--forest); text-underline-offset: 3px; }
.post-body strong { color: var(--ink); }
.post-takeaways {
  display: grid;
  gap: 8px;
  margin: 4px 0 8px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: var(--card);
  list-style: none;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
}
.post-takeaways li { position: relative; padding-left: 18px; }
.post-takeaways li::before { content: "—"; position: absolute; left: 0; color: var(--coral); }
.post-chapter { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.post-chapter h2 { margin-bottom: 15px; font-size: clamp(1.55rem, 3vw, 1.92rem); line-height: 1.25; }
.post-chapter ul { display: grid; gap: 8px; margin: 0 0 1.2em; padding-left: 20px; color: var(--muted); }
.post-chapter li::marker { color: var(--coral); }
.post-faq { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--ink); }
.post-faq h2 { margin-bottom: 8px; font-size: 1.62rem; }
.post-credit {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.7;
}

.post-aside { position: sticky; top: 98px; display: grid; gap: 22px; align-self: start; }
.aside-kicker { display: block; margin-bottom: 7px; color: var(--coral-ink); font-family: var(--mono); font-size: .56rem; font-weight: 700; letter-spacing: .12em; }
.toc { padding-top: 13px; border-top: 1px solid var(--ink); }
.toc h2, .aside-box h2 { margin-bottom: 10px; font-size: 1.08rem; line-height: 1.3; }
.toc ol { display: grid; gap: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.toc a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 6px;
  padding: 8px 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
  text-decoration: none;
}
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--coral-ink); font-family: var(--mono); font-size: .6rem; }
.toc a:hover { color: var(--forest); }
.aside-box { padding: 16px; border: 1px solid var(--line); background: var(--card); }
.aside-box ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.aside-box li a { display: grid; gap: 2px; color: var(--ink); font-size: .76rem; line-height: 1.45; text-decoration: none; }
.aside-box li a span { color: var(--coral-ink); font-family: var(--mono); font-size: .52rem; letter-spacing: .05em; }
.aside-box li a:hover { color: var(--forest); }
.aside-index p { color: var(--muted); font-size: .76rem; line-height: 1.6; }
.aside-link { display: inline-block; margin-top: 10px; color: var(--forest); font-size: .76rem; font-weight: 700; text-decoration: none; }
.aside-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-related { background: rgba(251, 248, 241, .5); }

.site-foot { padding: 48px 0 26px; background: var(--forest-dark); color: rgba(243, 239, 230, .76); font-size: .82rem; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand .brand { color: var(--paper); }
.foot-brand .brand-mark { color: var(--paper); }
.foot-brand .brand-name small { color: rgba(243, 239, 230, .7); }
.foot-brand p { max-width: 40ch; margin-top: 14px; }
.foot-brand a { color: var(--paper); }
.foot-col h2 { margin-bottom: 12px; color: var(--paper); font-family: var(--body); font-size: .69rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.foot-col ul { display: grid; gap: 7px; padding: 0; list-style: none; }
.foot-col a { color: rgba(243, 239, 230, .76); text-decoration: none; }
.foot-col a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.foot-stamp { margin-top: 14px; color: rgba(243, 239, 230, .7); font-family: var(--mono); font-size: .62rem; letter-spacing: .04em; }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(243, 239, 230, .17);
  color: rgba(243, 239, 230, .7);
  font-size: .68rem;
}
.foot-bottom b { color: rgba(243, 239, 230, .78); font-weight: 500; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-art { max-width: 560px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles, .steps { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 10px; }
  .section-side { max-width: 64ch; text-align: left; }
  .band-inner { align-items: flex-start; flex-direction: column; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: 1fr; gap: 38px; }
  .post-aside { position: static; grid-template-columns: 1fr 1fr; }
  .toc { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 126px; }
  .wrap { width: calc(100% - 32px); }
  .head-inner { flex-wrap: wrap; gap: 9px 14px; padding: 9px 0 8px; }
  .brand-name b { font-size: 1.34rem; }
  .brand-mark { width: 33px; height: 33px; }
  .head-count { margin-left: auto; padding: 6px 9px; }
  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 0 4px;
    font-size: .79rem;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .hero { padding: 50px 0 44px; }
  .hero h1 { font-size: clamp(2.2rem, 10.2vw, 3.5rem); }
  .hero-copy { gap: 19px; }
  .search button { padding: 0 12px; }
  .search input { font-size: .88rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .draw-card { max-width: none; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 1.95rem; }
  .index-row { grid-template-columns: 34px 1fr 18px; gap: 12px; padding: 18px 4px; }
  .index-main h3 { font-size: 1.32rem; }
  .index-main p { font-size: .79rem; }
  .index-count { display: none; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-card { min-height: 110px; padding: 17px; }
  .page-hero { padding: 38px 0 32px; }
  .page-hero h1 { font-size: clamp(2rem, 8.5vw, 3rem); }
  .link-list { max-width: none; }
  .link-row { grid-template-columns: 34px 1fr 18px; gap: 11px; padding: 16px 4px; }
  .link-main b { font-size: 1.14rem; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-foot { padding-top: 38px; }
  .foot-bottom { margin-top: 26px; }
  .data-table { min-width: 560px; }
  .post-grid, .post-grid-2 { grid-template-columns: 1fr; }
  .post-card-body { padding: 16px; }
  .post-card h3 { font-size: 1.18rem; }
  .post-cover { margin-top: 24px; }
  .post-cover figcaption { padding: 9px 12px; font-size: .67rem; }
  .post-section { padding-top: 42px; }
  .post-hero h1 { font-size: clamp(2.1rem, 8.2vw, 3rem); }
  .post-cat { font-size: .6rem; }
  .post-layout { gap: 30px; }
  .post-body { font-size: .98rem; line-height: 1.86; }
  .post-body .answer { font-size: 1rem; }
  .post-takeaways { padding: 16px 17px; font-size: .84rem; }
  .post-chapter { margin-top: 32px; padding-top: 17px; }
  .post-chapter h2 { font-size: 1.5rem; }
  .post-chapter ul { padding-left: 18px; }
  .post-faq { margin-top: 42px; padding-top: 20px; }
  .post-faq h2 { font-size: 1.45rem; }
  .post-aside { grid-template-columns: 1fr; gap: 18px; }
  .toc { grid-column: auto; }
  .post-related .section-side { max-width: 100%; }
}

@media (max-width: 380px) {
  .h1-line { white-space: normal; }
  .hero-actions .btn { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
