/* Santa Canna — design tokens extracted from original design canvas */
:root {
  --paper: oklch(97.2% 0.008 90);
  --paper-alt: oklch(94.5% 0.018 140);
  --ink: oklch(20% 0.012 90);
  --ink-soft: oklch(46% 0.018 90);
  --line: oklch(83% 0.02 90);
  --pine: oklch(34% 0.075 152);
  --pine-dark: oklch(24% 0.06 152);
  --pine-tint: oklch(92% 0.03 152);
  --teal: oklch(34% 0.075 200);
  --teal-tint: oklch(92% 0.02 200);
  --sand: oklch(90% 0.03 75);
  --white: oklch(99% 0.002 90);
  --warn: oklch(40% 0.09 30);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

::selection { background: oklch(80% 0.06 152); }

h1, h2, h3 { font-family: 'Source Serif 4', serif; font-weight: 600; margin: 0; }

a { color: inherit; }

.mono {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.layout { display: flex; align-items: flex-start; min-height: 100vh; }

/* left rail */
.rail {
  width: 288px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background: var(--paper-alt);
}

.rail-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.rail-brand span { font-family: 'Source Serif 4', serif; font-weight: 600; font-size: 18px; }
.rail-tag { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin: 10px 0 0; }

.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail nav a {
  display: flex; align-items: baseline; gap: 12px; padding: 9px 0;
  text-decoration: none; color: var(--ink); border-top: 1px solid var(--line);
}
.rail nav a:last-child { border-bottom: 1px solid var(--line); }
.rail nav a .idx { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--ink-soft); }
.rail nav a .lbl { font-size: 13.5px; font-weight: 500; }

.rail-status { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.rail-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pine); flex-shrink: 0; }
.rail-status span.label { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-soft); }
.rail-foot { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--ink-soft); margin: 0; line-height: 1.7; }

/* main content */
.main { flex: 1; min-width: 0; }

.section { padding: 64px 72px; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--paper-alt); }
.section.dark { background: var(--ink); padding: 56px 72px; }
.section.sand { background: var(--sand); padding: 56px 72px 40px; }

.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 48px; }
.section-head .num { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: 0.1em; color: var(--ink-soft); }
.section-head .rule { flex: 1; height: 1px; background: var(--line); }
.section-head .label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--ink-soft); text-transform: uppercase; }
.section-head.on-dark .num, .section-head.on-dark .label { color: oklch(60% 0.01 90); }
.section-head.on-dark .rule { background: oklch(35% 0.01 90); }

.image-slot {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-alt); border: 1px dashed var(--line);
  color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  text-align: center; padding: 12px;
}

.btn {
  display: inline-block; padding: 15px 26px; border-radius: 2px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600; text-decoration: none; border: none; cursor: pointer;
}
.btn-primary { background: var(--pine); color: var(--white); }
.btn-outline { background: transparent; border: 1px solid var(--ink); color: var(--ink); }

.field {
  padding: 10px 2px; border: none; border-bottom: 1.5px solid var(--line);
  font-size: 15px; font-family: inherit; background: transparent; outline: none; width: 100%;
}

.prose h2 { font-size: 26px; margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 16px; }
.prose ul { font-size: 14.5px; color: var(--ink-soft); }

.notice {
  border: 1px solid var(--line); background: var(--white); padding: 18px 22px;
  font-size: 13.5px; color: var(--ink-soft); margin-bottom: 32px;
}

footer.colofao p { margin: 0; }

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .rail { position: static; width: 100%; height: auto; }
  .section, .section.dark, .section.sand { padding: 40px 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
}
