/* ============================================================
   ARENA LINK — design tokens
   ============================================================ */
:root {
  --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.5rem);
  --text-hero: clamp(2.75rem, 1rem + 6.5vw, 7rem);

  --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-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1rem;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-default: 1120px;
  --content-narrow: 700px;

  --font-display: 'Switzer', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

/* ---- Light (default) : warm graphite on parchment ---- */
:root, [data-theme='light'] {
  --color-bg: #f6f4ef;
  --color-surface: #fbfaf7;
  --color-surface-offset: #eeebe3;
  --color-divider: #dcd7cc;
  --color-border: #cfc9bb;

  --color-text: #171a1f;
  --color-text-muted: #565b63;
  --color-text-faint: #9a978d;
  --color-text-inverse: #f6f4ef;

  --color-primary: #7c6224;      /* muted gold, deeper for AA on light */
  --color-primary-strong: #171a1f;

  --shadow-sm: 0 1px 2px rgba(23, 26, 31, 0.06);
  --shadow-md: 0 8px 24px rgba(23, 26, 31, 0.08);
}

/* ---- Dark : deep navy/graphite, gold accent (default feel for this brand) ---- */
[data-theme='dark'] {
  --color-bg: #10131a;
  --color-surface: #151922;
  --color-surface-offset: #191d27;
  --color-divider: #262b36;
  --color-border: #2e3441;

  --color-text: #e9e7de;
  --color-text-muted: #9a9fab;
  --color-text-faint: #5d6270;
  --color-text-inverse: #10131a;

  --color-primary: #c9a24d;
  --color-primary-strong: #e9e7de;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
}

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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color var(--transition-interactive), color var(--transition-interactive);
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 { text-wrap: balance; line-height: 1.12; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
p, li { text-wrap: pretty; max-width: 68ch; }

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

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

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

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-divider);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-text); }
.logo__mark { color: var(--color-primary); flex-shrink: 0; }
.logo__word { font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); letter-spacing: -0.01em; }

.nav { display: flex; gap: var(--space-8); }
.nav a {
  font-size: var(--text-sm); color: var(--color-text-muted);
  transition: color var(--transition-interactive);
}
.nav a:hover { color: var(--color-text); }

.theme-toggle {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: var(--radius-full, 999px); color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-primary); }

@media (max-width: 720px) {
  .nav { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(var(--space-24), 16vw, 9.5rem) clamp(var(--space-16), 10vw, var(--space-24));
  overflow: hidden;
  border-bottom: 1px solid var(--color-divider);
}
.hero__inner { position: relative; text-align: center; }
.hero__content { position: relative; z-index: 2; }

.hero__emblem {
  position: absolute;
  top: 50%; left: 50%;
  width: min(64vw, 620px);
  height: min(64vw, 620px);
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}
.hero__emblem { color: var(--color-primary); opacity: 0.35; }
.hero__emblem-ring { fill: none; stroke: currentColor; stroke-width: 3; }
.hero__emblem-link { stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.hero__emblem-node { fill: currentColor; }

[data-theme='dark'] .hero__emblem { opacity: 0.45; }

@media (max-width: 640px) {
  .hero__emblem { width: min(80vw, 380px); height: min(80vw, 380px); }
  .hero__emblem-link, .hero__emblem-node { display: none; }
}
.eyebrow {
  font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-primary); font-weight: 600; margin-bottom: var(--space-5);
}
.hero__title {
  font-size: var(--text-hero);
  margin-bottom: var(--space-6);
}
.hero__lead {
  font-family: var(--font-body); font-weight: 400;
  font-size: var(--text-lg); color: var(--color-text-muted);
  max-width: 44ch; margin-inline: auto; margin-bottom: var(--space-6);
}
.hero__tag {
  font-size: var(--text-sm); color: var(--color-text-faint);
  letter-spacing: 0.02em; text-align: center;
  margin-inline: auto;
}
.br-desktop { display: block; }
@media (max-width: 640px) { .br-desktop { display: none; } }

.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--color-border) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--color-border) 55%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 75%);
  opacity: 0.5;
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-24)); }
.section--offset { background: var(--color-surface); border-block: 1px solid var(--color-divider); }

.section-label {
  font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-primary); font-weight: 600; margin-bottom: var(--space-3);
}
.section-title {
  font-size: var(--text-2xl); margin-bottom: var(--space-6); max-width: 20ch;
}
.body-lg { font-size: var(--text-lg); color: var(--color-text-muted); font-family: var(--font-body); font-weight: 400; line-height: 1.5; margin-bottom: var(--space-4); }
.section p:not(.body-lg):not(.hero__lead):not(.hero__tag):not(.form-note) { color: var(--color-text-muted); margin-bottom: var(--space-4); }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--space-16);
  align-items: center;
}
.about__figure { display: flex; justify-content: center; }
.figure-svg { width: 100%; max-width: 320px; }
.ring { fill: none; stroke: var(--color-border); stroke-width: 1.1; }
.ring--3 { stroke: var(--color-primary); opacity: 0.6; }
.axis { stroke: var(--color-divider); stroke-width: 1; }
.node { fill: var(--color-text-muted); }
.node--core { fill: var(--color-primary); }

/* Dark theme: brighten the target/rings graphic so it doesn't merge into the background */
[data-theme='dark'] .ring { stroke: var(--color-text-faint); stroke-width: 1.2; opacity: 0.85; }
[data-theme='dark'] .ring--3 { stroke: var(--color-primary); opacity: 0.9; }
[data-theme='dark'] .axis { stroke: var(--color-text-faint); opacity: 0.45; }
[data-theme='dark'] .node { fill: var(--color-text-muted); }
[data-theme='dark'] .node--core { fill: var(--color-primary); }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__figure { order: -1; max-width: 220px; margin-inline: auto; }
}

/* ============================================================
   CARDS (services)
   ============================================================ */
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6);
  margin-top: var(--space-8);
}
.card {
  display: block; text-decoration: none; color: inherit; cursor: pointer;
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6);
  transition: border-color var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.card:hover, .card:focus-visible { border-color: var(--color-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: grid; place-items: center; color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  margin-bottom: var(--space-5);
}
.card h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.card p { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: 0; }

.pill-inline {
  display: inline-block; font-size: var(--text-xs); font-weight: 600;
  padding: 0.15em 0.6em; border-radius: var(--radius-full, 999px);
  border: 1px solid var(--color-border); color: var(--color-text);
  white-space: nowrap; margin: 0 2px;
}

.disclaimer {
  font-size: var(--text-xs); color: var(--color-text-faint);
  border-top: 1px solid var(--color-divider); padding-top: var(--space-6);
  margin-top: var(--space-12); max-width: 80ch;
}

@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ============================================================
   APPROACH
   ============================================================ */
.approach__inner { max-width: var(--content-narrow); text-align: left; }

/* ============================================================
   FORMATS
   ============================================================ */
.intro-note { max-width: 60ch; }
.formats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6);
  margin-top: var(--space-10);
}
.format-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; cursor: pointer;
  border: 1px solid var(--color-divider); border-radius: var(--radius-lg);
  padding: var(--space-8); background: var(--color-bg);
  transition: border-color var(--transition-interactive), transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.format-card:hover, .format-card:focus-visible {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.format-card--muted { background: transparent; border-style: dashed; }
.format-card--muted:hover, .format-card--muted:focus-visible { border-style: solid; }
.format-card__eyebrow {
  font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-text-faint); margin-bottom: var(--space-4); font-weight: 600;
  min-height: calc(1.65em * 2); /* reserve room for a 2-line eyebrow so cards align */
  display: flex; align-items: flex-start;
}
.format-card__price {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600;
  margin-bottom: var(--space-4); color: var(--color-text);
}
.format-card__price span { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 400; color: var(--color-text-muted); }
.format-card__desc { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: 0; }

@media (max-width: 900px) { .formats-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-16);
}
.contact__form {
  display: flex; flex-direction: column; gap: var(--space-5);
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg); padding: var(--space-8);
}
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-sm); color: var(--color-text-muted); }
.field input[type="text"], .field input[type="email"], .field textarea {
  font: inherit; font-size: var(--text-sm); color: var(--color-text);
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--color-primary); }
.field--checkbox { flex-direction: row; align-items: center; gap: var(--space-3); }
.field--checkbox label { font-size: var(--text-xs); }

.field--hp {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; border: 0;
}

.field--captcha input {
  max-width: 8rem;
}
.field--captcha .field-hint {
  font-size: var(--text-xs); color: var(--color-text-faint); margin: 0;
}
.field--checkbox input { width: 16px; height: 16px; accent-color: var(--color-primary); }

.btn {
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  color: var(--color-text-inverse); background: var(--color-primary-strong);
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-6);
  align-self: flex-start; transition: opacity var(--transition-interactive);
}
.btn:hover { opacity: 0.85; }
.form-note { font-size: var(--text-xs); color: var(--color-primary); min-height: 1em; }
.form-note--error { color: #c0453a; }

@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--color-divider); padding-block: var(--space-10); }
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-6);
}
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.footer__nav a { font-size: var(--text-xs); color: var(--color-text-muted); }
.footer__nav a:hover { color: var(--color-text); }
.footer__meta { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); text-align: right; }
.footer__legal { font-size: var(--text-xs); color: var(--color-text-faint); }
.footer__address { font-size: var(--text-xs); color: var(--color-text-faint); }
.footer__copy { font-size: var(--text-xs); color: var(--color-text-faint); }

@media (max-width: 720px) {
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__meta { align-items: flex-start; text-align: left; }
}

/* ============================================================
   LEGAL PAGES (Privacy Policy / Terms of Use)
   ============================================================ */
.legal { max-width: var(--content-narrow); }
.legal .section-title { max-width: none; }
.legal p.updated { font-size: var(--text-xs); color: var(--color-text-faint); margin-bottom: var(--space-10); }
.legal h2 {
  font-size: var(--text-lg); margin-top: var(--space-12); margin-bottom: var(--space-4);
}
.legal h2:first-of-type { margin-top: var(--space-4); }
.legal p { color: var(--color-text-muted); margin-bottom: var(--space-4); line-height: 1.65; }
.legal ul { margin: 0 0 var(--space-4); padding-left: 1.25em; color: var(--color-text-muted); }
.legal li { margin-bottom: var(--space-2); max-width: 68ch; line-height: 1.6; }
.legal a { color: var(--color-primary); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--color-primary) 40%, transparent); }
.legal a:hover { text-decoration-color: var(--color-primary); }
