/* ============================================================
   OSWOL — Design Direction Stylesheet
   Calm intelligence. Signal over noise.
   ============================================================ */

:root {
  /* Brand foundation (from logo) */
  --slate-950: #0B1316;
  --slate-900: #11191D;
  --slate-850: #161F24;
  --slate-800: #1B262C;
  --slate-700: #243239;
  --slate-600: #2F3E46;
  --slate-500: #3D4F58;
  --slate-400: #566A70;
  --slate-300: #7C8C92;
  --slate-200: #A8B4B8;
  --slate-100: #CFD6D8;

  --sand-700: #8C7548;
  --sand-600: #A48F61;
  --sand-500: #C8AE7D;
  --sand-400: #D9C49A;
  --sand-300: #E5D5B5;
  --beige-200: #E8DFCA;
  --beige-100: #EFE8D6;
  --ivory: #F4F6F7;
  --ivory-warm: #F6F2EA;
  --paper: #FAF8F3;

  /* Signal accents */
  --emerald: #10B981;
  --emerald-soft: #064E3B;
  --coral: #FB7185;
  --coral-soft: #4C1D24;
  --amber: #F59E0B;
  --amber-soft: #4A2E08;
  --cyan: #22D3EE;
  --cyan-soft: #083F4B;
  --violet: #8B5CF6;
  --violet-soft: #2A1A55;

  /* Type */
  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-sans: "Manrope", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(8, 14, 17, 0.45);
  --shadow-md: 0 8px 24px -8px rgba(8, 14, 17, 0.55);
  --shadow-lg: 0 24px 60px -20px rgba(8, 14, 17, 0.65);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--slate-600);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Section bands ----------------------------------------------- */
.band { width: 100%; padding: 96px 0; position: relative; }
.band--ivory   { background: var(--ivory); color: var(--slate-600); }
.band--paper   { background: var(--paper); color: var(--slate-600); }
.band--beige   { background: var(--beige-100); color: var(--slate-600); }
.band--slate   { background: var(--slate-900); color: var(--slate-100); }
.band--midnight{ background: var(--slate-950); color: var(--slate-100); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 48px; }
.wrap--wide { max-width: 1480px; }

/* Type --------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--sand-600);
  margin: 0 0 16px 0;
  font-weight: 500;
}
.band--slate .eyebrow, .band--midnight .eyebrow { color: var(--sand-500); }

h1.display, h2.display, h3.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  font-style: normal;
}
h1.display { font-size: clamp(56px, 7vw, 112px); }
h2.display { font-size: clamp(40px, 4.6vw, 72px); }
h3.display { font-size: clamp(28px, 3vw, 44px); }

h2.headline, h3.headline {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}
h2.headline { font-size: 32px; }
h3.headline { font-size: 22px; }

p.lede {
  font-size: 20px; line-height: 1.55; max-width: 64ch;
  color: var(--slate-500); font-weight: 400;
}
.band--slate p.lede, .band--midnight p.lede { color: var(--slate-200); }

p, li { font-size: 15.5px; line-height: 1.65; }
.band--slate p, .band--midnight p, .band--slate li, .band--midnight li { color: var(--slate-200); }

.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }

/* Hero --------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; padding: 64px 0 96px 0;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(200, 174, 125, 0.10), transparent 50%),
    radial-gradient(ellipse at 0% 90%, rgba(34, 211, 238, 0.06), transparent 55%),
    var(--slate-950);
  color: var(--slate-100);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.hero-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
}
.hero-mark { display:flex; align-items:center; gap:14px; }
.hero-mark img { width: 36px; height: 36px; border-radius: 50%; background: var(--ivory); padding: 2px; }
.hero-mark .name { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.04em; }
.hero-nav .meta { font-family: var(--font-mono); font-size: 11px; color: var(--slate-300); letter-spacing: 0.14em; text-transform: uppercase; }
.hero-body {
  flex: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: end;
  padding: 48px 48px 0 48px; max-width: 1480px; margin: auto auto 0 auto; width: 100%;
}
.hero-title { color: var(--ivory); }
.hero-title em { font-style: italic; color: var(--sand-400); }
.hero-sub { color: var(--slate-200); margin-top: 28px; max-width: 52ch; font-size: 18px; }
.hero-stamp {
  border: 1px solid var(--slate-700); border-radius: var(--radius-md);
  padding: 24px; background: rgba(255,255,255,0.02);
}
.hero-stamp dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-300); margin-bottom: 4px; }
.hero-stamp dd { margin: 0 0 16px 0; font-size: 14px; color: var(--slate-100); }
.hero-stamp dd:last-child { margin-bottom: 0; }

/* Grid utilities */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* Cards --------------------------------------------------------- */
.card {
  border-radius: var(--radius-lg); padding: 24px; background: white;
  border: 1px solid rgba(47, 62, 70, 0.10);
}
.card--dark {
  background: var(--slate-850); border-color: rgba(255,255,255,0.06); color: var(--slate-100);
}
.card--bare { background: transparent; border: none; padding: 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-head .left { max-width: 64ch; }
.section-head .num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--sand-600); text-transform: uppercase;
}
.band--slate .section-head .num, .band--midnight .section-head .num { color: var(--sand-500); }

hr.rule { border: 0; border-top: 1px solid rgba(47,62,70, 0.12); margin: 64px 0; }
.band--slate hr.rule, .band--midnight hr.rule { border-color: rgba(255,255,255, 0.08); }

/* Pill / tag */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; color: var(--slate-400);
}

/* Swatch ------------------------------------------------------- */
.swatch {
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid rgba(255,255,255,0.05);
  display: flex; flex-direction: column;
}
.swatch .chip { height: 140px; display:flex; align-items: flex-end; padding: 14px; }
.swatch .chip .role { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; }
.swatch .meta { background: var(--slate-850); padding: 14px 16px; }
.swatch .meta .name { font-size: 14px; color: var(--slate-100); font-weight: 500; }
.swatch .meta .hex { font-family: var(--font-mono); font-size: 11px; color: var(--slate-300); letter-spacing: 0.12em; }

/* Mockup chrome ------------------------------------------------ */
.mock {
  background: var(--slate-950); border-radius: var(--radius-xl);
  overflow: hidden; border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow-lg);
}
.mock-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--slate-900); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-700); }
.mock-bar .url { font-family: var(--font-mono); font-size: 11px; color: var(--slate-300); margin-left: 16px; letter-spacing: 0.08em; }

/* Do / Don't grids */
.do-list, .dont-list { display: grid; gap: 12px; }
.do-item, .dont-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid rgba(47,62,70, 0.12); }
.band--slate .do-item, .band--slate .dont-item { border-color: rgba(255,255,255,0.06); background: var(--slate-850); }
.do-item .marker { width: 24px; height: 24px; border-radius: 50%; background: var(--emerald); flex-shrink: 0; display: grid; place-items: center; color: white; font-weight: 700; font-size: 13px; }
.dont-item .marker { width: 24px; height: 24px; border-radius: 50%; background: var(--coral); flex-shrink: 0; display: grid; place-items: center; color: white; font-weight: 700; font-size: 13px; }

/* Footer */
.foot {
  background: var(--slate-950); color: var(--slate-300);
  padding: 64px 48px; border-top: 1px solid rgba(255,255,255,0.06);
}
.foot .disclaim { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate-400); }

/* Smooth scroll TOC */
.toc {
  position: fixed; top: 24px; right: 24px; z-index: 50;
  background: rgba(11, 19, 22, 0.85); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md);
  padding: 10px 14px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-200);
  display: flex; gap: 14px; align-items: center;
}
.toc a { color: var(--slate-300); text-decoration: none; }
.toc a:hover { color: var(--sand-400); }

@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; }
  .wrap, .hero-nav, .hero-body, .foot { padding-left: 24px; padding-right: 24px; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .toc { display: none; }
}
