/* Rizzado Design System v2 — styles.css */

:root {
  /* Base / Structure */
  --parchment:       oklch(96.5% 0.018 70);
  --parchment-deep:  oklch(94% 0.022 65);
  --bone:            oklch(99% 0.006 70);
  --ink:             oklch(20% 0.02 30);
  --ink-soft:        oklch(38% 0.025 30);
  --ink-mute:        oklch(55% 0.02 30);
  --hairline:        oklch(82% 0.02 50);
  --hairline-soft:   oklch(88% 0.018 55);

  /* Primary accent */
  --claret:          oklch(40% 0.13 22);
  --claret-deep:     oklch(30% 0.11 22);

  /* Functional */
  --terracotta:      oklch(58% 0.13 32);
  --blush:           oklch(92% 0.035 28);
  --blush-deep:      oklch(86% 0.05 28);
  --sage:            oklch(68% 0.045 135);
  --sage-bg:         oklch(95% 0.02 135);
  --gold:            oklch(70% 0.09 75);

  /* Typography */
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter Tight', sans-serif;
  --mono:  'JetBrains Mono', monospace;

  /* Spacing (8pt grid) */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;
  --s-4: 16px;  --s-5: 24px;  --s-6: 32px;
  --s-7: 48px;  --s-8: 64px;  --s-9: 96px;
  --s-10: 128px; --s-11: 160px;

  /* Layout */
  --col-content: 700px;
  --col-wide:    920px;
  --col-full:    1280px;
}

/* ── Reset ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--parchment);
  min-height: 100vh;
}

/* ── Typography ── */

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; text-wrap: pretty; }

/* Display — max one per page, the typographic moment */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--ink);
}

/* Section heading — chapter-level authority */
.section-heading {
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 60;
  color: var(--ink);
}

/* Result / profile names — personal, expressive */
.profile-name {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
  color: var(--ink);
}

/* Subsection */
h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: var(--claret-deep);
}

p { max-width: 72ch; }

/* Lead paragraph */
.lead {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
}

/* Editorial italic — for next-step prompts, soft emphasis */
.editorial-italic {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "SOFT" 80, "opsz" 60;
}

/* Eyebrows */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--claret);
  line-height: 1;
}
.eyebrow-soft {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1;
}

.kicker {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

a {
  color: var(--claret);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--claret-deep); }

/* ── Section Markers ── */

.section-marker {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
.marker-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--claret);
}
.marker-line {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.marker-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ── Pull Quotes ── */

.pullquote {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: var(--s-7) 0;
  text-align: center;
}
.pullquote-mark {
  display: block;
  font-family: var(--serif);
  font-size: 48px;
  color: var(--claret);
  line-height: 1;
  margin-bottom: var(--s-3);
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.pullquote q {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.5;
  color: var(--ink);
  font-variation-settings: "SOFT" 40;
  quotes: none;
  max-width: 36ch;
  display: inline-block;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 18px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--parchment);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover {
  transform: translateY(-1px);
  background: var(--claret);
  color: var(--parchment);
}
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--parchment);
  transform: translateY(-1px);
}

.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-xs { padding: 8px 16px; font-size: 12px; }

/* ── Forms ── */

.field { display: flex; flex-direction: column; gap: var(--s-2); }

.field label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}

.field input {
  font-family: var(--sans);
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--bone);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}
.field input:focus { border-color: var(--claret); }
.field input::placeholder { color: var(--ink-mute); }

/* ── Segmented Controls ── */

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px;
  background: var(--bone);
}

.seg-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1.2;
  text-align: center;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--parchment);
}

/* ── Layout ── */

.content-col { max-width: var(--col-content); margin: 0 auto; padding: 0 var(--s-5); }
.wide-col    { max-width: var(--col-wide); margin: 0 auto; padding: 0 var(--s-5); }
.full-col    { max-width: var(--col-full); margin: 0 auto; padding: 0 var(--s-5); }

/* ── Navigation ── */

.rz-nav-wrapper {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklch, var(--parchment) 88%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--hairline-soft);
}
.rz-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-3) var(--s-5);
  max-width: var(--col-full); margin: 0 auto;
}
.rz-nav-brand {
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  font-style: italic; color: var(--ink); text-decoration: none;
  font-variation-settings: 'SOFT' 50, 'WONK' 1; flex-shrink: 0;
}
.rz-nav-brand:hover { color: var(--claret); }
.rz-nav-right { display: flex; align-items: center; }
.rz-nav-app-links { display: flex; align-items: center; gap: var(--s-5); }
.rz-nav-link {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  color: var(--ink-soft); text-decoration: none; background: none;
  border: none; cursor: pointer; padding: 0; transition: color 0.2s ease;
}
.rz-nav-link:hover { color: var(--claret); }
.rz-nav-logout { font: inherit; }

/* ── Auth page layout ── */

.auth-page {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  min-height: calc(100vh - 56px);
  padding: var(--s-8) var(--s-5);
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 {
  font-family: var(--serif);
  font-size: 32px; font-weight: 400; font-style: italic;
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
  margin-bottom: var(--s-2);
}
.auth-sub {
  font-size: 16px; color: var(--ink-mute);
  margin-bottom: var(--s-7);
}
.auth-form {
  display: flex; flex-direction: column; gap: var(--s-5);
}
.auth-form .btn { width: 100%; margin-top: var(--s-2); }
.auth-links {
  display: flex; flex-direction: column; gap: var(--s-3);
  margin-top: var(--s-6);
  font-family: var(--sans); font-size: 14px; text-align: center;
}
.auth-error {
  font-family: var(--sans); font-size: 14px; color: var(--terracotta);
  background: color-mix(in oklch, var(--terracotta) 8%, var(--parchment));
  padding: var(--s-3) var(--s-4); border-radius: 8px; text-align: center;
}
.auth-success { text-align: center; }
.auth-success .check-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: oklch(95% 0.02 135); margin-bottom: var(--s-5);
}
.auth-success .check-icon svg { width: 28px; height: 28px; color: var(--sage); }
.auth-success h2 {
  font-family: var(--serif); font-size: 24px; font-weight: 400;
  font-style: italic; margin-bottom: var(--s-3);
}

/* ── Shared page footer ── */

.site-footer {
  padding: var(--s-7) var(--s-5);
  text-align: center;
  border-top: 1px solid var(--hairline-soft);
  margin-top: var(--s-9);
}
.site-footer p {
  font-family: var(--sans); font-size: 13px;
  color: var(--ink-mute); max-width: none;
}

@media (max-width: 600px) {
  .rz-nav-app-links { gap: var(--s-3); flex-wrap: wrap; justify-content: flex-end; }
}

/* ── Motion ── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
