
/* Root variables for easy theming */
:root {
  --bg: #f5f4f2;
  --paper: #ffffff;
  --ink: #121212;
  --muted: #5b5b5b;
  --red: #8b1e2d;
  --red-2: #b1323f;
  --link: #0a66c2;
  --maxw: 980px;
  --side: clamp(56px, 8vw, 96px);
  --radius: 14px;
}

/* Reset and base styles */
html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.62 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.6));
  border-bottom: 1px solid #eaeaea;
  padding: 1rem;
  text-align: center;
}
header h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
}
header .tagline {
  color: var(--muted);
  font-size: 14px;
}

/* Main layout */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem;
}

/* Sections */
section {
  margin-bottom: 2rem;
}
h2 {
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 0.5rem;
}
p, ul {
  margin: 0.5rem 0;
}
ul {
  padding-left: 1.2rem;
}

/* Buttons */
.button, .btn {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid color-mix(in oklab, var(--red) 40%, #ddd);
  background: color-mix(in oklab, var(--red) 10%, #fff);
  color: #2b2b2b;
  text-decoration: none;
}
.button:hover, .btn:hover {
  background: color-mix(in oklab, var(--red) 20%, #fff);
}
.btn.primary {
  background: var(--red);
  border-color: color-mix(in oklab, var(--red) 80%, black 10%);
  color: #fff;
}
.btn.primary:hover {
  background: var(--red-2);
}

/* Footer */
footer {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin: 2rem 0 1rem;
}

/* Responsive grid for details */
.grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Optional: Animate gutters if you keep JS */
.gutter {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.1));
}
.gutter .note {
  font-size: clamp(24px, 4vw, 40px);
  color: #dc2626;
  text-shadow: 0 2px 4px rgba(0,0,0,.3);
  font-weight: bold;
  background: rgba(255,255,255,0.9);
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.1);
}
