/* jessapril.com — production styles
   Source of truth: Claude Design handoff (design_handoff_jessapril_homepage).
   Ship config: Split hero, B&W portrait, dark theme, 30% backdrop wash. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/Marcellus-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/SourceSans3-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/SourceSans3-400.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  /* Inks */
  --ink-0: #020508;
  --ink-1: #0b1014;
  --ink-2: #14191e;
  --ink-3: #1e242a;

  /* Warms */
  --taupe-9: #3d3734;
  --taupe-7: #5c534d;
  --sand-5: #a8957d;
  --sand-3: #c8b49a;
  --sand-2: #dccbb4;
  --bone-1: #f4f1ec;

  /* Text on dark */
  --fg-1: var(--bone-1);
  --fg-2: rgba(244, 241, 236, 0.72);
  --fg-3: rgba(244, 241, 236, 0.50);
  --fg-4: rgba(244, 241, 236, 0.32);

  /* Lines & overlays */
  --line-1: rgba(244, 241, 236, 0.18);
  --line-2: rgba(244, 241, 236, 0.10);
  --scrim-photo: linear-gradient(180deg, rgba(2, 5, 8, 0.25) 0%, rgba(2, 5, 8, 0.65) 70%, rgba(2, 5, 8, 0.88) 100%);

  /* Semantic */
  --surface-page: var(--ink-0);
  --surface-field: rgba(244, 241, 236, 0.06);
  --surface-field-focus: rgba(244, 241, 236, 0.10);
  --text-display: var(--fg-1);
  --text-body: var(--fg-2);
  --text-muted: var(--fg-3);
  --text-faint: var(--fg-4);
  --accent: var(--sand-3);
  --accent-hover: var(--sand-2);
  --link: var(--fg-1);
  --link-hover: var(--sand-3);
  --border-default: var(--line-1);
  --border-subtle: var(--line-2);
  --focus-ring: rgba(200, 180, 154, 0.55);
  --negative: #c98a7d;

  /* Type */
  --font-display: 'Marcellus', 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
  --type-display-xl: clamp(3rem, 6vw, 4.5rem);
  --type-display: 2.5rem;
  --type-title: 1.75rem;
  --type-lede: 1.3125rem;
  --type-body: 1.0625rem;
  --type-small: 0.875rem;
  --type-label: 0.8125rem;
  --leading-display: 1.1;
  --leading-body: 1.7;
  --leading-tight: 1.3;
  --tracking-display: 0.06em;
  --tracking-label: 0.35em;
  --tracking-wide: 0.18em;
  --tracking-body: 0.01em;
  --weight-light: 300;
  --weight-regular: 400;

  /* Borders, shadows, motion, layout */
  --rule: 1px solid var(--border-default);
  --rule-subtle: 1px solid var(--border-subtle);
  --radius-xs: 2px;
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.40);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 180ms;
  --duration-base: 320ms;
  --duration-slow: 640ms;
  --measure: 38rem;
  --panel-max: 64rem;
}

/* ---------- Base ---------- */
html { background: var(--ink-0); }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: var(--weight-light);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-display);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--link-hover); }

::selection { background: rgba(200, 180, 154, 0.30); }

:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---------- Stage & backdrop ---------- */
.site-stage {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 48px;
  box-sizing: border-box;
  background: var(--ink-0);
  overflow-x: clip;
}

/* Tonal studio-seamless canvas — warm taupe falloff over near-black */
.site-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 16%, rgba(61, 55, 52, 0.50) 0%, rgba(61, 55, 52, 0) 60%),
    radial-gradient(90% 70% at 30% 85%, rgba(11, 16, 20, 0.85) 0%, rgba(2, 5, 8, 0) 65%),
    var(--ink-0);
}

/* 30% wash over the bottom-weighted photo scrim */
.site-scrim {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(2, 5, 8, 0.30), rgba(2, 5, 8, 0.30)),
    var(--scrim-photo);
}

.site-main {
  position: relative;
  width: 100%;
  max-width: var(--panel-max);
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.site-main.is-hidden { opacity: 0; transform: translateY(12px); }

/* ---------- Panels (one visible at a time) ---------- */
.panel[hidden] { display: none; }

.panel-shell {
  max-width: var(--measure);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---------- Home — Split hero ---------- */
.home-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}

.home-stack { display: flex; flex-direction: column; gap: 32px; }

.wordmark { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.wordmark h1 { font-size: var(--type-display-xl); }

.accent-rule { width: 56px; border-top: 1px solid var(--accent); }

.kicker {
  font-size: var(--type-label);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: var(--weight-regular);
}

.role-list { display: flex; flex-direction: column; border-top: var(--rule-subtle); }
.role-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 12px 0;
  border-bottom: var(--rule-subtle);
}
.role-row .role {
  color: var(--text-display);
  font-weight: var(--weight-regular);
  font-size: var(--type-body);
}
.role-row .org {
  color: var(--text-muted);
  font-size: var(--type-small);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
}

.home-nav { display: flex; gap: 40px; }
.nav-link {
  font-size: var(--type-label);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-display);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.nav-link:hover { color: var(--accent); }

.social-links { display: flex; gap: 24px; }
.social-links a { color: var(--text-muted); display: inline-flex; padding: 12px; margin: -12px; }
.social-links a:hover { color: var(--accent); }

.home-portrait {
  aspect-ratio: 1 / 1;
  background-color: var(--taupe-9);
  background-image: url('../assets/portrait-bw.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card);
  border: var(--rule-subtle);
}

/* ---------- Section title & back link ---------- */
.section-title { display: flex; flex-direction: column; gap: 14px; }
.section-title h2 { font-size: var(--type-display); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--type-label);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 0;
}
.back-link:hover { color: var(--text-display); }

/* ---------- Work panel ---------- */
.lede {
  font-size: var(--type-lede);
  color: var(--text-display);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
}

.body-stack { display: flex; flex-direction: column; gap: 16px; }

.work-arc { display: flex; flex-direction: column; border-left: var(--rule-subtle); }
.arc-step { position: relative; padding: 0 0 40px 32px; }
.arc-step:last-child { padding-bottom: 0; }
.arc-step::before {
  content: '';
  position: absolute;
  left: -3.5px;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.arc-step-inner { display: flex; flex-direction: column; gap: 10px; }
.arc-step h3 { font-size: var(--type-title); }
.arc-orgs {
  font-size: var(--type-small);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 10px; }
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: var(--weight-light);
  color: var(--text-display);
  background: var(--surface-field);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 14px 16px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.5;
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus {
  background: var(--surface-field-focus);
  border-color: var(--focus-ring);
}
.field.has-error input,
.field.has-error textarea { border-color: var(--negative); }
.field-error { font-size: var(--type-small); color: var(--negative); display: none; }
.field.has-error .field-error { display: block; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-body);
  font-size: var(--type-label);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  line-height: 1;
  padding: 16px 28px;
  border-radius: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out);
}
.btn:active { opacity: 0.85; }

.btn--solid {
  background: var(--bone-1);
  color: var(--ink-0);
  border: 1px solid var(--bone-1);
}
.btn--solid:hover { background: var(--sand-2); border-color: var(--sand-2); }

.btn--outline {
  background: transparent;
  color: var(--text-display);
  border: var(--rule);
}
.btn--outline:hover { border-color: var(--bone-1); }

/* ---------- Entrance animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: ja-rise var(--duration-slow) var(--ease-out) backwards; }
  .rise-1 { animation-delay: 80ms; }
  .rise-2 { animation-delay: 180ms; }
  .rise-3 { animation-delay: 280ms; }
}
@keyframes ja-rise {
  from { opacity: 0; transform: translateY(14px); }
}
@media (prefers-reduced-motion: reduce) {
  .site-main { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .site-stage { padding: 48px 28px; }
  .home-grid { grid-template-columns: 1fr; gap: 40px; }
  .home-portrait { width: 100%; max-width: 320px; order: -1; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Form submission states ---------- */
.form-error { font-size: var(--type-small); color: var(--negative); margin: 0; }
.btn:disabled { opacity: 0.6; cursor: default; }
