/* ==========================================================================
   KCASINO FIELD JOURNAL — main.css
   Concept: editorial field journal / magazine. Warm cream paper, deep forest
   ink, copper signal. Serif display + sans body. Magazine two-column layout.
   ========================================================================== */

:root {
  --bg: #f4efe4;
  --bg-soft: #efe8d8;
  --surface: #faf7ee;
  --surface-2: #f0e9d6;
  --ink: #1a2e1a;
  --ink-soft: #2f4a33;
  --muted: #6b7a64;
  --line: #d9d0bc;
  --line-strong: #a8a088;

  --forest: #2d5a3d;
  --forest-bright: #3a7a52;
  --forest-soft: #e2ece5;
  --forest-pale: #f0f5f1;
  --copper: #b87333;
  --copper-soft: #f1e4d3;
  --rust: #a0402a;
  --rust-soft: #f3ddd7;

  --serif: "Gowun Batang", "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo,
    Consolas, monospace;

  --wrap: 1160px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 22px 60px -30px rgba(26, 46, 26, 0.35);
  --shadow-sm: 0 10px 28px -18px rgba(26, 46, 26, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--copper);
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--copper);
  color: var(--bg);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 300;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), 100% - 48px);
  margin-inline: auto;
}

/* ---------- top bar ---------- */

.topbar {
  background: var(--ink);
  color: #d6d3c4;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 9px;
}

.topbar p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar .age {
  padding: 1px 7px;
  border: 1px solid #4a5a4a;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.topbar .topbar-links {
  display: flex;
  gap: 16px;
}

.topbar a {
  color: #d6d3c4;
  text-decoration: none;
}

.topbar a:hover {
  color: #fff;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(244, 239, 228, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: var(--forest);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-text small {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--forest-soft);
  color: var(--ink);
}

.nav .nav-cta {
  margin-left: 6px;
  background: var(--forest);
  color: var(--bg);
  padding: 9px 16px;
  font-weight: 600;
}

.nav .nav-cta:hover {
  background: var(--copper);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

/* ---------- shared type ---------- */

.kicker {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  word-break: keep-all;
}

h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h1 em {
  font-style: italic;
  color: var(--forest);
}

h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}

.lead {
  margin: 0 0 24px;
  max-width: 62ch;
  font-size: 17px;
  color: var(--ink-soft);
}

.dek {
  margin: 0 0 20px;
  max-width: 58ch;
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
}

.byline {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--muted);
}

.byline strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.byline a {
  color: var(--ink-soft);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease,
    border-color 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn--solid {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--bg);
}

.btn--solid:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}

.btn--accent {
  background: var(--copper);
  border-color: var(--copper);
  color: #fff;
}

.btn--accent:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--bg);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
}

.btn--light {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

/* ---------- hero (magazine) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(800px 460px at 88% 0%, rgba(184, 115, 51, 0.14), transparent 62%),
    radial-gradient(600px 360px at 12% 100%, rgba(45, 90, 61, 0.12), transparent 60%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.32;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 80%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr;
  gap: 56px;
  align-items: end;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta strong {
  color: var(--ink-soft);
  font-weight: 600;
}

/* featured card */

.featured {
  position: relative;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.featured .feat-k {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}

.featured .feat-k::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--copper);
}

.featured h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.3;
}

.featured p {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.featured .feat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--mono);
}

.featured .feat-meta b {
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- sections ---------- */

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0 0 10px;
}

.section-sub {
  margin: 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- principles ---------- */

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--ink);
  padding-top: 32px;
}

.principle .num {
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: var(--copper);
}

.principle h3 {
  margin: 14px 0 8px;
  font-size: 19px;
}

.principle p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- journal (blog) cards ---------- */

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.journal-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.journal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.journal-card .jc-band {
  height: 110px;
  position: relative;
  overflow: hidden;
}

.jc-band--1 {
  background: linear-gradient(135deg, #2d5a3d 0%, #4a8a60 100%);
}

.jc-band--2 {
  background: linear-gradient(135deg, #b87333 0%, #d49a5a 100%);
}

.jc-band--3 {
  background: linear-gradient(135deg, #1a2e1a 0%, #3a5a3a 100%);
}

.journal-card .jc-band .jc-tag {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(250, 247, 238, 0.92);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journal-card .jc-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.journal-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.journal-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.journal-card h3 a:hover {
  color: var(--forest);
}

.journal-card p {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
  flex: 1;
}

.journal-card .jc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--mono);
}

.journal-card .jc-meta b {
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- field record ---------- */

.field-record {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.record-sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.record-sheet .rs-head {
  padding: 14px 20px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.record-sheet .rs-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.record-sheet .rs-row:last-child {
  border-bottom: 0;
}

.record-sheet .rs-row dt {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  padding-top: 2px;
}

.record-sheet .rs-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.record-sheet .rs-row dd small {
  display: block;
  font-weight: 400;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.record-sheet .rs-foot {
  padding: 13px 20px;
  background: var(--forest-pale);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
  border-top: 1px solid var(--line);
}

/* ---------- methodology / EEAT ---------- */

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

.eeat-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.eeat-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.eeat-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.eeat-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

.eeat-card li {
  margin-bottom: 6px;
}

.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--bg);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.author-box h3 {
  margin: 0 0 3px;
  font-size: 16px;
  font-weight: 700;
}

.author-box p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.author-box a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--copper);
}

.correction-log {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid var(--copper);
  background: var(--surface);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.correction-log strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- safety ---------- */

.safety {
  background: var(--ink);
  color: #e5e3d6;
  border-bottom: 1px solid var(--ink);
}

.safety .section-head h2 {
  color: #f4efe4;
}

.safety .section-sub {
  color: #a9a694;
}

.safety .kicker {
  color: #d4a96a;
}

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

.safety-card {
  padding: 22px;
  border: 1px solid #3a4a3a;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.safety-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #f4efe4;
}

.safety-card p {
  margin: 0;
  font-size: 13.5px;
  color: #a9a694;
}

.helplines {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #3a4a3a;
  font-size: 13px;
  color: #a9a694;
}

.helplines a {
  color: #f4efe4;
  text-decoration: none;
  border-bottom: 1px solid #6b7a64;
}

.helplines a:hover {
  border-color: #f4efe4;
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1;
  color: var(--copper);
}

.faq details[open] summary::after {
  content: "−";
}

.faq .answer {
  max-width: 78ch;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--ink-soft);
}

.faq .answer p {
  margin: 0;
}

/* ---------- CTA ---------- */

.cta {
  padding: 24px 0 80px;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 32px;
  align-items: center;
  padding: 48px;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--bg);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(184, 115, 51, 0.35);
}

.cta-panel h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--bg);
}

.cta-panel p {
  margin: 0;
  font-size: 14.5px;
  color: #d6d3c4;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- footer ---------- */

.footer {
  padding: 52px 0 26px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  max-width: 44ch;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.footer-license {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.8;
}

.footer h3 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 9px;
  font-size: 13.5px;
}

.footer li a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer li a:hover {
  color: var(--copper);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

/* ---------- simple content pages ---------- */

.page-hero {
  padding: 60px 0 42px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 300px at 88% -20%, rgba(184, 115, 51, 0.12), transparent 62%),
    var(--bg);
}

.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  margin-bottom: 14px;
}

.page-hero .lead {
  margin-bottom: 0;
  font-size: 16px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
  font-family: var(--mono);
}

.page-body {
  padding: 48px 0 72px;
}

.legal {
  max-width: 840px;
}

.legal h2 {
  margin: 38px 0 12px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.legal p,
.legal li {
  font-size: 14.5px;
  color: var(--ink-soft);
}

.legal p {
  margin: 0 0 14px;
}

.legal ul,
.legal ol {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal li {
  margin-bottom: 6px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13.5px;
}

.legal th,
.legal td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.note {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.legal-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- article page ---------- */

.article {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 96px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-toc .toc-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.article-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-toc li {
  margin-bottom: 8px;
  font-size: 13px;
}

.article-toc a {
  color: var(--ink-soft);
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--copper);
}

.article-body {
  max-width: 760px;
}

.article-body .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 28px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}

.article-body .article-meta b {
  color: var(--ink-soft);
  font-weight: 600;
}

.article-body h2 {
  margin: 40px 0 12px;
  font-size: 26px;
}

.article-body h2:first-of-type {
  margin-top: 8px;
}

.article-body h3 {
  margin: 28px 0 8px;
  font-size: 19px;
}

.article-body p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 15px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink-soft);
}

.article-body li {
  margin-bottom: 6px;
}

.article-body .pull-quote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--copper);
  background: var(--surface);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  font-style: italic;
}

.article-body .source-list {
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.article-body .source-list h4 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-body .source-list ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.tag {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--forest-soft);
  color: var(--forest);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  place-items: center;
  min-height: 58vh;
  padding: 72px 0;
  text-align: center;
}

.notfound .code {
  font-family: var(--serif);
  font-size: clamp(80px, 18vw, 150px);
  font-weight: 700;
  line-height: 1;
  color: var(--copper);
}

.notfound h1 {
  font-size: clamp(23px, 3.4vw, 32px);
  margin: 12px 0 10px;
}

.notfound p {
  margin: 0 0 22px;
  color: var(--muted);
}

.notfound .hero-actions {
  justify-content: center;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .featured {
    max-width: 520px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .principle-grid,
  .journal-grid,
  .eeat-grid,
  .safety-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-record {
    grid-template-columns: 1fr;
  }

  .article {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
  }

  .cta-panel {
    grid-template-columns: 1fr;
    gap: 26px;
  }

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

  .menu-toggle {
    display: grid;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: -24px;
    right: -24px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  body.nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 12px;
    border-radius: 6px;
  }

  .nav .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .topbar .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .topbar .topbar-links {
    display: none;
  }

  .hero {
    padding: 46px 0 44px;
  }

  .section {
    padding: 52px 0;
  }

  .principle-grid,
  .journal-grid,
  .eeat-grid,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .record-sheet .rs-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cta-panel {
    padding: 30px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .author-box {
    grid-template-columns: 1fr;
  }

  .faq summary {
    font-size: 14.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
