:root {
  --bg: #f7f1e8;
  --surface: #fffaf2;
  --surface-alt: #f2e8da;
  --text: #2b2118;
  --muted: #615244;
  --primary: #a63d20;
  --primary-hover: #863018;
  --accent: #c88722;
  --border: #dfd1bd;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(43, 33, 24, .06);
  --shadow-md: 0 8px 24px rgba(43, 33, 24, .08);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 12px;
}

h1 { font-size: 36px; }
h2 { font-size: 26px; margin-top: 32px; }
h3 { font-size: 20px; margin-top: 20px; }
p { margin: 0 0 14px; max-width: 70ch; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nc-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.nc-skip:focus-visible {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  clip-path: none;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius);
  z-index: 200;
}

.nc-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.nc-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nc-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}
.nc-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  flex-shrink: 0;
}
.nc-brand:hover { text-decoration: none; color: var(--primary); }
.nc-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nc-nav-link {
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: background .15s, color .15s;
}
.nc-nav-link:hover, .nc-nav-link.is-cur {
  background: var(--surface-alt);
  color: var(--primary);
  text-decoration: none;
}

.nc-main { padding: 20px 0 56px; }
.nc-hero { margin-bottom: 16px; }
.nc-crumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.nc-lead { font-size: 16px; color: var(--muted); margin: 0; }

.nc-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}

.nc-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 32px;
}
.nc-article h2:first-child { margin-top: 0; }
.nc-article ul, .nc-article ol { padding-left: 20px; margin: 0 0 16px; max-width: 70ch; }
.nc-article li { margin-bottom: 6px; }
.nc-article table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.nc-article th, .nc-article td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.nc-article th { background: var(--surface-alt); font-weight: 600; }

.nc-faq { margin-bottom: 36px; }
.nc-faq h2 { margin-top: 0; margin-bottom: 16px; }
.nc-faq-list { display: flex; flex-direction: column; gap: 10px; }
.nc-faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.nc-faq-item summary { font-weight: 600; cursor: pointer; list-style: none; }
.nc-faq-item p { margin: 10px 0 0; color: var(--muted); }

.nc-related h2 { margin-top: 0; margin-bottom: 16px; }
.nc-rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nc-rel-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.nc-rel-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); text-decoration: none; }
.nc-rel-card strong { color: var(--text); font-size: 15px; }
.nc-rel-card span { color: var(--muted); font-size: 13px; }

.nc-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.nc-footer-grid { display: flex; flex-direction: column; gap: 12px; }
.nc-tagline { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.nc-footer-nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.nc-copy { color: var(--muted); font-size: 13px; margin: 0; }

@media (max-width: 640px) {
  h1 { font-size: 24px; margin-bottom: 4px; }
  h2 { font-size: 22px; }
  .nc-wrap { padding: 0 14px; }
  .nc-header-row { min-height: 48px; gap: 8px; }
  .nc-brand { font-size: 16px; }
  .nc-nav { gap: 2px; overflow-x: auto; flex-wrap: nowrap; }
  .nc-nav-link { padding: 6px 8px; font-size: 13px; min-height: 36px; white-space: nowrap; }
  .nc-main { padding: 12px 0 40px; }
  .nc-hero { margin-bottom: 10px; }
  .nc-lead { font-size: 14px; line-height: 1.4; }
  .nc-stage { padding: 14px; margin-bottom: 24px; }
  .nc-article { padding: 18px 16px; }
  .nc-rel-grid { grid-template-columns: 1fr; }
}