@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/Newsreader-Italic-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  font-family: Inter, "IBM Plex Sans", system-ui, sans-serif;
  color: #23231F;
  background: linear-gradient(145deg, #1E3A2F 0%, #2a4d3f 40%, #cfc4a6 100%);
  overflow: hidden;
  --page-bg: linear-gradient(145deg, #1E3A2F 0%, #2a4d3f 40%, #cfc4a6 100%);
  --sidebar: #1E3A2F;
  --sidebar-text: #F1EBDD;
  --sidebar-muted: #C9B895;
  --sidebar-active: rgba(241,235,221,.12);
  --shell: #F3EFE6;
  --card: #FBF8F0;
  --ink: #23231F;
  --muted: #6b6558;
  --accent: #7A5A1E;
  --accent-soft: #efe4cb;
  --accent-deep: #1E3A2F;
  --line: #e2d8c2;
  --chip: #EFE8D8;
  --shadow: 0 10px 28px rgba(30,58,47,.10);
  --serif: Newsreader, Georgia, serif;
  --sans: Inter, "IBM Plex Sans", system-ui, sans-serif;
}

.app {
  display: grid;
  grid-template-columns: 248px 1fr;
  height: 100vh;
  padding: 18px;
  gap: 14px;
}

.sidebar {
  background: var(--sidebar);
  color: var(--sidebar-text);
  border-radius: 22px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 6px;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: #C9B895; color: #1E3A2F;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 600; font-size: 16px;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 520;
  line-height: 1.2;
  color: var(--sidebar-text);
}
.handle {
  font-size: 11px; color: var(--sidebar-muted);
  padding: 0 8px 14px; letter-spacing: .01em;
  border-bottom: 1px solid rgba(201,184,149,.22);
  margin-bottom: 8px;
}
.nav-label {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sidebar-muted); padding: 12px 10px 6px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 12px;
  color: var(--sidebar-text); text-decoration: none;
  font-size: 13px; font-weight: 500; cursor: pointer;
  border: none; background: transparent; width: 100%; text-align: left;
  font-family: inherit;
}
.nav-item:hover { background: var(--sidebar-active); }
.nav-item.active { background: var(--sidebar-active); font-weight: 600; }

.main {
  background: var(--shell);
  border-radius: 22px;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.topbar {
  padding: 20px 28px 8px;
  flex-shrink: 0;
}
.crumb {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 6px;
}
h1 {
  font-family: var(--serif);
  font-weight: 520; font-size: 34px; letter-spacing: -.02em;
  color: var(--ink); line-height: 1.1;
}
.gold-line {
  height: 2px; width: 48px; background: #C9B895; margin: 10px 0 0; border-radius: 2px;
}
.sub {
  color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 640px; line-height: 1.5;
}
.content {
  padding: 8px 28px 40px;
  overflow: auto;
  flex: 1;
}

.section {
  margin-top: 28px;
  scroll-margin-top: 24px;
}
.section > h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 520;
  letter-spacing: -.015em;
  margin-bottom: 4px;
}
.section .gold-line { margin-bottom: 16px; }
.section > h3,
.card-block > h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 520;
  margin: 20px 0 10px;
  color: var(--ink);
}
.section p,
.card-block p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 12px;
  max-width: 720px;
}

.card-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.props {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.props dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.props dd {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 16px;
}
.swatch {
  width: 104px;
}
.swatch .chip {
  height: 64px;
  border-radius: 10px;
  border: 1px solid rgba(35,35,31,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.swatch .name {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.swatch .hex {
  font-size: 12px;
  color: var(--muted);
  font-family: "IBM Plex Sans", monospace;
  letter-spacing: .02em;
}

.table-wrap {
  overflow-x: auto;
  margin: 8px 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}
th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #F3EFE6;
  white-space: nowrap;
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink);
}
tr:last-child td { border-bottom: none; }
.cell-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cell-swatch i {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(35,35,31,.15);
  flex-shrink: 0;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 16px;
}
.steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 28px; height: 28px;
  border-radius: 8px;
  background: #1E3A2F;
  color: #F1EBDD;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  font-family: var(--serif);
}
.steps strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.steps span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 16px;
}
.bullets li {
  position: relative;
  padding: 10px 14px 10px 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 14px; top: 16px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #C9B895;
}
.bullets.con li::before {
  background: #7A5A1E;
  border-radius: 2px;
  width: 8px; height: 8px;
}

.callout {
  background: #1E3A2F;
  color: #F1EBDD;
  border-radius: 16px;
  padding: 16px 18px;
  margin: 12px 0 16px;
  box-shadow: var(--shadow);
}
.callout .lead {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #C9B895;
  margin-bottom: 6px;
}
.callout p {
  color: #F1EBDD;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: none;
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.4;
}
.checklist .mark {
  width: 18px; height: 18px;
  border-radius: 5px;
  background: #1E3A2F;
  color: #F1EBDD;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}
.checklist .meta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 600;
}

.footnote {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 720px;
}

.menu-btn,
.sidebar-backdrop { display: none; }
.menu-btn {
  width: 42px; height: 42px; border: none; border-radius: 12px;
  background: #1E3A2F; color: #F1EBDD;
  place-items: center; gap: 5px; padding: 0;
  box-shadow: var(--shadow); cursor: pointer;
}
.menu-btn span {
  display: block; width: 16px; height: 1.5px; border-radius: 2px;
  background: #F1EBDD;
}

@media (max-width: 900px) {
  html, body { height: auto; min-height: 100%; }
  body { overflow: auto; }
  .app {
    grid-template-columns: 1fr;
    padding: 10px;
    min-height: 100dvh;
    height: auto;
  }
  .menu-btn {
    display: grid;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 60;
  }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 10, 0.45);
    z-index: 40;
    border: 0;
  }
  body.nav-open .sidebar-backdrop { display: block; }
  .sidebar {
    position: fixed;
    top: 10px; left: 10px; bottom: 10px;
    width: min(280px, 86vw);
    z-index: 50;
    transform: translateX(calc(-100% - 24px));
    transition: transform 0.2s ease;
    overflow: auto;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .main {
    min-height: calc(100dvh - 20px);
    border-radius: 18px;
  }
  .topbar {
    padding: 16px 16px 8px 62px;
  }
  h1 { font-size: 26px; }
  .content { padding: 4px 16px 36px; overflow: visible; }
  .props { grid-template-columns: 1fr; gap: 2px 0; }
  .props dt { margin-top: 8px; }
  .checklist li { grid-template-columns: 22px 1fr; }
  .checklist .meta { grid-column: 2; }
  .swatch { width: 88px; }
  .swatch .chip { height: 52px; }
}
