/*
  GuobaCertified — production styles
  Visual direction: mockups/direction-2.html ("Editorial Split"), approved.
  Colors are the exact pixel-sampled hex values from docs/ai/BRAND.md --
  no invented colors (the mockup's unused --crimson-light:#c9294a variable
  was dropped here; it never traced back to BRAND.md and was dead code
  in the mockup anyway).
  Fonts: system stacks only, zero font bytes shipped (no webfont).
*/

:root {
  --tan-light: #9a7b4c;   /* avatar highlight tone, BRAND.md */
  --near-black: #2c2d27;  /* avatar mask / dark-mode base, BRAND.md */
  --crimson: #a7102d;     /* king robe accent, BRAND.md */
  --gold: #e9b670;        /* crown/trim accent, BRAND.md */
  --cream: #e9e7e7;       /* fur trim / light text, BRAND.md */

  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-serif);
  background: var(--near-black);
  color: var(--cream);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--near-black);
  color: var(--cream);
  padding: 8px 14px;
  border: 1px solid var(--gold);
  font-family: var(--font-sans);
  font-size: 13px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ---------- Left: video panel ---------- */
.media-panel {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: var(--near-black);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shown at native/near-native size (source is 498x498), not blown up as a
   full-bleed background -- kept sharp on purpose, no blur filter. */
.media-panel video {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

.media-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(44,45,39,0.92) 0%, rgba(44,45,39,0.15) 34%, rgba(44,45,39,0.05) 60%, rgba(167,16,45,0.14) 100%),
    linear-gradient(90deg, rgba(44,45,39,0.25), transparent 30%);
}

.media-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 36px;
}
.media-caption .eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.media-caption p.caption-text {
  margin-top: 10px;
  max-width: 360px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cream);
  font-style: italic;
}

.motion-toggle {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(233,231,231,0.35);
  background: rgba(44,45,39,0.55);
  color: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.motion-toggle:hover,
.motion-toggle:focus-visible {
  border-color: var(--gold);
  background: rgba(44,45,39,0.8);
  outline: none;
}
.motion-toggle svg { width: 16px; height: 16px; }
.motion-toggle .icon-play { display: none; }
.motion-toggle[data-state="paused"] .icon-pause { display: none; }
.motion-toggle[data-state="paused"] .icon-play { display: block; }

/* ---------- Right: editorial content panel ---------- */
.content-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 64px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(167,16,45,0.16), transparent 55%),
    var(--near-black);
}

.crest {
  width: 58px;
  height: 58px;
  margin-bottom: 26px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
}

.name {
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.name .accent {
  display: block;
  font-style: italic;
  color: var(--gold);
}

.handle-row {
  margin-top: 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--tan-light);
}

.rule {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--gold));
  margin: 28px 0;
  border: none;
}

.bio {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(233,231,231,0.78);
  max-width: 440px;
}
.bio strong { color: var(--gold); font-weight: 600; font-style: italic; }

/* ---------- Link list ---------- */
.links {
  margin-top: 40px;
  max-width: 460px;
}
.links .list-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tan-light);
  margin-bottom: 6px;
}

.row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 6px;
  text-decoration: none;
  color: var(--cream);
  border-bottom: 1px solid rgba(233,231,231,0.12);
  border-left: 2px solid transparent;
  padding-left: 14px;
  transition: border-color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}
.row:hover, .row:focus-visible {
  border-left-color: var(--crimson);
  background: rgba(233,182,112,0.05);
  padding-left: 20px;
  outline: none;
}

.row .icon { width: 22px; height: 22px; flex: 0 0 auto; color: var(--gold); }
.row .icon svg { width: 100%; height: 100%; }

.row .label {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
.row .sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: rgba(233,231,231,0.5);
  margin-top: 2px;
}
.row .go {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--tan-light);
  transition: color 0.2s ease, transform 0.2s ease;
}
.row:hover .go, .row:focus-visible .go { color: var(--gold); transform: translateX(2px); }

.signoff {
  margin-top: 44px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(233,231,231,0.38);
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .media-panel { min-height: 52vh; }
  .content-panel { padding: 48px 28px 64px; }
  .name { font-size: clamp(32px, 10vw, 44px); }
  .media-caption { padding: 24px; }
}

@media (max-width: 420px) {
  .content-panel { padding: 40px 20px 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .row, .go, .motion-toggle { transition: none; }
}
