/* style.css — Eze Institute design tokens + components */

:root {
  /* ===== Type Scale ===== */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  --text-hero: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  /* ===== Spacing (4px system) ===== */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ===== Radius ===== */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  /* ===== Transitions ===== */
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ===== Content widths ===== */
  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1180px;
  --content-full: 100%;

  /* ===== Fonts ===== */
  --font-display: 'Cormorant', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Light mode (default) — Navy / Bronze / warm ivory ===== */
:root,
[data-theme='light'] {
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-surface-2: #fdfcfa;
  --color-surface-offset: #f2eee7;
  --color-surface-offset-2: #ebe5da;
  --color-surface-dynamic: #e3dccc;
  --color-divider: #e2ddd2;
  --color-border: #d8d0c0;

  --color-text: #16233a;
  --color-text-muted: #5b6b80;
  --color-text-faint: #9aa5b3;
  --color-text-inverse: #faf8f5;

  /* Primary — Navy */
  --color-primary: #22416c;
  --color-primary-hover: #1a3255;
  --color-primary-active: #142640;
  --color-primary-highlight: #dbe3ec;

  /* Accent — Bronze */
  --color-accent: #a06a2c;
  --color-accent-hover: #855824;
  --color-accent-active: #6b461d;
  --color-accent-highlight: #ecdfca;

  --color-success: #3f6b3f;
  --color-error: #8a3a3a;

  --shadow-sm: 0 1px 2px rgba(22, 35, 58, 0.06);
  --shadow-md: 0 6px 20px rgba(22, 35, 58, 0.08);
  --shadow-lg: 0 16px 40px rgba(22, 35, 58, 0.14);
}

/* ===== Dark mode ===== */
[data-theme='dark'] {
  --color-bg: #101826;
  --color-surface: #16213443;
  --color-surface: #16213a;
  --color-surface-2: #1b2740;
  --color-surface-offset: #1c2942;
  --color-surface-offset-2: #22304c;
  --color-surface-dynamic: #2a3a58;
  --color-divider: #263452;
  --color-border: #33456a;

  --color-text: #eae6dc;
  --color-text-muted: #a9b3c4;
  --color-text-faint: #6d7a90;
  --color-text-inverse: #16233a;

  --color-primary: #7ea1cc;
  --color-primary-hover: #9ab6da;
  --color-primary-active: #b3c8e2;
  --color-primary-highlight: #24344f;

  --color-accent: #cd9a58;
  --color-accent-hover: #dcae74;
  --color-accent-active: #e6c090;
  --color-accent-highlight: #3a2f1e;

  --color-success: #7fae7f;
  --color-error: #c17a7a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #101826;
    --color-surface: #16213a;
    --color-surface-2: #1b2740;
    --color-surface-offset: #1c2942;
    --color-surface-offset-2: #22304c;
    --color-surface-dynamic: #2a3a58;
    --color-divider: #263452;
    --color-border: #33456a;

    --color-text: #eae6dc;
    --color-text-muted: #a9b3c4;
    --color-text-faint: #6d7a90;
    --color-text-inverse: #16233a;

    --color-primary: #7ea1cc;
    --color-primary-hover: #9ab6da;
    --color-primary-active: #b3c8e2;
    --color-primary-highlight: #24344f;

    --color-accent: #cd9a58;
    --color-accent-hover: #dcae74;
    --color-accent-active: #e6c090;
    --color-accent-highlight: #3a2f1e;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  }
}

/* ===================== Layout ===================== */

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--wide {
  max-width: var(--content-wide);
}
.container--narrow {
  max-width: var(--content-narrow);
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

/* ===================== Header / Nav ===================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
  color: var(--color-text);
}

.brand-mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  border-radius: 50%;
}

/* The crest artwork is fine linework designed for a light backdrop; on navy
   surfaces (footer, dark mode header) give it a soft light disc so the
   engraving reads crisply instead of ghosting into the dark background. */
.site-footer .brand-mark,
[data-theme='dark'] .site-header .brand-mark,
[data-theme='dark'] .mobile-menu .brand-mark {
  background: radial-gradient(circle, rgba(250, 247, 240, 0.96) 58%, rgba(250, 247, 240, 0) 82%);
  padding: 3px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.2rem);
  letter-spacing: 0.008em;
  line-height: 1.15;
}
.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  padding-block: var(--space-1);
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--color-primary);
}
.nav-links a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 200;
  background: var(--color-bg);
  padding: var(--space-6);
  flex-direction: column;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-12);
}
.mobile-menu-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-decoration: none;
}
.mobile-menu .btn {
  margin-top: var(--space-8);
  width: 100%;
  justify-content: center;
}

@media (max-width: 860px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ===================== Buttons ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}
.btn--primary:active {
  background: var(--color-accent-active);
}

.btn--outline {
  background: transparent;
  border-color: color-mix(in oklab, var(--color-text) 20%, transparent);
  color: var(--color-text);
}
.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--ghost-inverse {
  background: transparent;
  border-color: color-mix(in oklab, #fff 30%, transparent);
  color: #fff;
}
.btn--ghost-inverse:hover {
  background: color-mix(in oklab, #fff 12%, transparent);
  border-color: #fff;
}

/* ===================== Typography Components ===================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--color-accent);
}

h1,
.h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-hero);
  letter-spacing: -0.01em;
  color: var(--color-text);
}
h2,
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  letter-spacing: -0.005em;
  color: var(--color-text);
}
h3,
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  color: var(--color-text);
}

.lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 46ch;
}

.body-copy p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 68ch;
}
.body-copy p + p {
  margin-top: var(--space-5);
}

/* ===================== Hero ===================== */

.hero {
  position: relative;
  padding-block: clamp(var(--space-20), 10vw, var(--space-32)) clamp(var(--space-16), 8vw, var(--space-24));
  overflow: hidden;
  background: var(--color-surface);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 0%, color-mix(in oklab, var(--color-primary) 10%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 40% at 5% 100%, color-mix(in oklab, var(--color-accent) 8%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero h1 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-6);
}
.hero .lede {
  max-width: 52ch;
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ===================== Cards ===================== */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  box-shadow: var(--shadow-md);
}

/* Crest/seal artwork: clean transparent linework + a soft ambient glow
   (CSS-driven, not baked into the raster) so it reads crisp in both themes. */
.crest-card {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.crest-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary-highlight) 0%, transparent 68%);
  opacity: 0.9;
  filter: blur(1px);
  z-index: 0;
}
[data-theme='dark'] .crest-card::before {
  background: radial-gradient(circle, rgba(170, 189, 222, 0.55) 0%, rgba(170, 189, 222, 0.08) 55%, transparent 75%);
}
.crest-card img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 18px rgba(22, 35, 58, 0.12));
}
[data-theme='dark'] .crest-card img {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--space-8);
}

.service-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.service-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.service-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}

/* ===================== Section helpers ===================== */

.section-head {
  max-width: 620px;
  margin-bottom: var(--space-12);
}
.section-head h2 {
  margin-top: var(--space-3);
}

.section--offset {
  background: var(--color-surface-offset);
}

.divider {
  height: 1px;
  background: var(--color-divider);
  border: none;
}

/* ===================== CTA band ===================== */

.cta-band {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  text-align: center;
}
[data-theme='dark'] .cta-band {
  background: var(--color-primary-highlight);
  color: var(--color-text);
}
.cta-band h2 {
  color: #fff;
  margin-bottom: var(--space-4);
}
[data-theme='dark'] .cta-band h2 {
  color: var(--color-text);
}
.cta-band p {
  color: color-mix(in oklab, #fff 78%, transparent);
  max-width: 50ch;
  margin: 0 auto var(--space-8);
  font-size: var(--text-base);
}
[data-theme='dark'] .cta-band p {
  color: var(--color-text-muted);
}

/* ===================== Pricing Table ===================== */

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pricing-table th {
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  background: var(--color-surface-offset);
  padding: var(--space-4) var(--space-6);
}
.pricing-table td {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  vertical-align: top;
}
.pricing-table td.service-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}
.pricing-table td.service-desc {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  margin-top: var(--space-1);
  display: block;
}
.pricing-table td.duration {
  color: var(--color-text-muted);
  white-space: nowrap;
}
.pricing-table td.price {
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
  text-align: right;
}
.pricing-table th:last-child,
.pricing-table td.price {
  text-align: right;
}

.pricing-note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .pricing-table thead {
    display: none;
  }
  .pricing-table tr {
    display: block;
    border-top: 1px solid var(--color-divider);
    padding: var(--space-5) var(--space-2);
  }
  .pricing-table td {
    display: block;
    border-top: none;
    padding: var(--space-1) var(--space-2);
  }
  .pricing-table td.price {
    text-align: left;
    font-size: var(--text-lg);
  }
}

/* ===================== Services — Pathways ===================== */

.pathway {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.pathway-head {
  max-width: 700px;
  margin-bottom: var(--space-12);
}
.pathway-head h2 {
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
}
.pathway-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.pathway-head .lede {
  max-width: 62ch;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid currentColor;
  white-space: nowrap;
}
.tag--insurance {
  color: var(--color-primary);
}
.tag--private {
  color: var(--color-accent);
}

.offering-grid {
  display: grid;
  gap: var(--space-6);
}

.offering-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(var(--space-6), 3vw, var(--space-8));
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: var(--space-8);
}
.offering-card:hover {
  box-shadow: var(--shadow-md);
}
@media (max-width: 780px) {
  .offering-card {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
}

.offering-meta h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.offering-meta .offering-terms {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.offering-meta .offering-price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-4);
}

.offering-body dt {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
[data-theme='dark'] .offering-body dt {
  color: var(--color-primary);
}
.offering-body dd {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}
.offering-body dt + dd {
  margin-bottom: var(--space-5);
}
.offering-body dt.action-label {
  color: var(--color-accent);
}

/* Retainer / concierge */
.retainer-card {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}
[data-theme='dark'] .retainer-card {
  background: var(--color-primary-highlight);
  color: var(--color-text);
}
@media (max-width: 780px) {
  .retainer-card {
    grid-template-columns: 1fr;
  }
}
.retainer-card .eyebrow {
  color: var(--color-accent-hover);
}
[data-theme='dark'] .retainer-card .eyebrow {
  color: var(--color-accent);
}
.retainer-card h2 {
  color: #fff;
  margin-top: var(--space-3);
}
[data-theme='dark'] .retainer-card h2 {
  color: var(--color-text);
}
.retainer-price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-top: var(--space-4);
  display: block;
}
.retainer-card p {
  color: color-mix(in oklab, #fff 82%, transparent);
  line-height: 1.7;
  margin-top: var(--space-4);
}
[data-theme='dark'] .retainer-card p {
  color: var(--color-text-muted);
}
.retainer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.retainer-list li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: color-mix(in oklab, #fff 92%, transparent);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid color-mix(in oklab, #fff 14%, transparent);
}
[data-theme='dark'] .retainer-list li {
  color: var(--color-text);
  border-bottom-color: var(--color-divider);
}
.retainer-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.retainer-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  border-radius: var(--radius-full);
  background: var(--color-accent-hover);
}
[data-theme='dark'] .retainer-list li::before {
  background: var(--color-accent);
}

/* Roadmap */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--space-6);
}
.roadmap-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--color-surface-2);
}
.roadmap-card .tag {
  color: var(--color-text-faint);
  border-color: var(--color-border);
  margin-bottom: var(--space-3);
}
.roadmap-card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}
.roadmap-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* What we are / are not */
.position-block {
  background: var(--color-surface-offset);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 6vw, var(--space-14));
}
.position-block .eyebrow {
  margin-bottom: var(--space-4);
}
.position-block p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--color-text);
  max-width: 74ch;
}
.position-block p + p {
  margin-top: var(--space-5);
}

.fine-print {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 68ch;
  line-height: 1.6;
  margin-top: var(--space-10);
}

/* ===================== About page ===================== */

.about-hero {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24)) var(--space-8);
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 300px);
  gap: var(--space-12);
  align-items: start;
}
@media (max-width: 860px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-photo-wrap {
    max-width: 260px;
  }
}
.about-photo-wrap {
  position: relative;
}
@media (min-width: 861px) {
  .about-photo-wrap {
    position: sticky;
    top: calc(88px + var(--space-10));
  }
}
.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}
.about-photo-wrap::after {
  content: '';
  position: absolute;
  inset: var(--space-3);
  z-index: -1;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-lg);
  opacity: 0.5;
  transform: translate(10px, 10px);
}
.credentials-line {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-6);
  margin-top: var(--space-10);
  max-width: 68ch;
}
.credentials-line strong {
  color: var(--color-text);
  font-weight: 600;
}

.signature {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-primary);
  margin-top: var(--space-8);
}

/* ===================== Book page ===================== */

.book-panel {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.book-panel .btn {
  margin-top: var(--space-8);
}
.book-note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.book-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-16);
  text-align: left;
}
@media (max-width: 720px) {
  .book-steps {
    grid-template-columns: 1fr;
  }
}
.book-step .step-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-3);
}

/* ===================== Footer ===================== */

.site-footer {
  background: var(--color-primary);
  color: color-mix(in oklab, #fff 88%, transparent);
  padding-block: var(--space-16) var(--space-10);
}
[data-theme='dark'] .site-footer {
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid color-mix(in oklab, #fff 15%, transparent);
}
[data-theme='dark'] .footer-grid {
  border-bottom-color: var(--color-divider);
}
.footer-brand {
  max-width: 320px;
}
.footer-brand .brand {
  color: #fff;
  margin-bottom: var(--space-4);
}
[data-theme='dark'] .footer-brand .brand {
  color: var(--color-text);
}
.footer-brand .brand-mark {
  color: #fff;
}
[data-theme='dark'] .footer-brand .brand-mark {
  color: var(--color-accent);
}
.footer-brand .brand-name span {
  color: color-mix(in oklab, #fff 70%, transparent);
}
[data-theme='dark'] .footer-brand .brand-name span {
  color: var(--color-accent);
}
.footer-tagline {
  font-size: var(--text-sm);
  color: color-mix(in oklab, #fff 72%, transparent);
  line-height: 1.6;
}
[data-theme='dark'] .footer-tagline {
  color: var(--color-text-muted);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in oklab, #fff 60%, transparent);
  margin-bottom: var(--space-4);
}
[data-theme='dark'] .footer-col h4 {
  color: var(--color-text-faint);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col a {
  color: #fff;
  text-decoration: none;
  font-size: var(--text-sm);
}
[data-theme='dark'] .footer-col a {
  color: var(--color-text);
}
.footer-col a:hover {
  color: var(--color-accent);
}
.footer-col p {
  color: color-mix(in oklab, #fff 88%, transparent);
  font-size: var(--text-sm);
}
[data-theme='dark'] .footer-col p {
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-8);
  font-size: var(--text-xs);
  color: color-mix(in oklab, #fff 55%, transparent);
}
[data-theme='dark'] .footer-bottom {
  color: var(--color-text-faint);
}
.footer-signoff {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  color: color-mix(in oklab, #fff 75%, transparent);
}
[data-theme='dark'] .footer-signoff {
  color: var(--color-text-muted);
}

/* ===================== Theme toggle ===================== */

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ===================== Responsive section paddings ===================== */

@media (max-width: 640px) {
  section {
    padding-block: var(--space-12);
  }
  .hero {
    padding-block: var(--space-16) var(--space-10);
  }
}
