/* Portfolio Template 2: Editorial.
   Colors and fonts below are fallbacks; the real values come from
   assets/themes.js, which app.js turns into these same variables. */

/* Layout: every section is a framed "page" of a printed portfolio,
   label on top, name and address underneath, a tall condensed headline. */
:root {
  --bg: #EFE6D6;
  --wash: #E6DAC6;
  --surface: #F7F1E6;
  --ink: #1C1A17;
  --muted: #5A5247;
  --line: #CDBFA8;
  --display: #1C1A17;
  --accent: #1C1A17;
  --on-accent: #F7F1E6;
  --font-display: "Anton", "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: clamp(1.4rem, 2.6vw, 1.9rem);
  --step-3: clamp(3rem, 9vw, 7.5rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #191817; --wash: #232120; --surface: #1F1E1C; --ink: #ECE6DC; --muted: #A59E92;
    --line: #3A3834; --display: #EEDDC1; --accent: #EEDDC1; --on-accent: #191817;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #191817; --wash: #232120; --surface: #1F1E1C; --ink: #ECE6DC; --muted: #A59E92;
  --line: #3A3834; --display: #EEDDC1; --accent: #EEDDC1; --on-accent: #191817;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--display);
  font-size: var(--step-3);
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 52ch; }
.muted { color: var(--muted); max-width: 60ch; }

/* Notice + header */
.notice { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.notice .wrap { padding-block: 8px; }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 12px; }
.brand { font-family: var(--font-display); text-transform: uppercase; font-size: 1.35rem; letter-spacing: 0.02em; text-decoration: none; color: var(--display); }
.top-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; min-width: 0; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.92rem; }
.nav a { text-decoration: none; color: var(--muted); padding-block: 4px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.mode-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 0.88rem; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px 5px 10px; cursor: pointer;
}
.mode-toggle:hover { border-color: var(--ink); }
@media (max-width: 480px) { .mode-label { display: none; } .mode-toggle { padding: 6px; } }

/* Slides */
.slide { border-bottom: 1px solid var(--line); }
.slide-wash { background: var(--wash); }
.slide-inner { display: grid; gap: clamp(28px, 5vw, 56px); padding-block: clamp(24px, 4vw, 40px); }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 0.85rem; color: var(--muted); }
.meta span { min-width: 0; overflow-wrap: anywhere; }
.meta-arrow { width: 56px; height: 12px; flex: none; color: var(--ink); }
.slide-body { display: grid; gap: clamp(24px, 4vw, 44px); min-width: 0; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 20px;
  font: inherit; font-size: 0.92rem; color: var(--ink); text-decoration: none; text-align: center;
  background: transparent; border: 1px solid var(--ink); border-radius: 999px; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.pill:hover { background: var(--ink); color: var(--bg); }
.pill-fill { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.pill-fill:hover { background: transparent; color: var(--accent); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Opening screen: the giant word with the person in front of it */
.slide-hero .slide-body { gap: 20px; }
.stage {
  position: relative; display: grid; place-items: center;
  --word: 18vw;
  min-height: calc(var(--word) * 1.9);
  overflow: hidden;
}
.stage > * { grid-area: 1 / 1; }
.word {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 400;
  line-height: 0.8; white-space: nowrap; letter-spacing: -0.005em;
  font-size: 18vw; color: var(--display);
  align-self: end; margin-bottom: calc(var(--word) * 0.28);
  user-select: none;
}
.word-solid { z-index: 1; }
.stage-photo {
  z-index: 2; align-self: end;
  height: calc(var(--word) * 1.85); width: auto; max-width: 70%;
  object-fit: contain; object-position: bottom center;
}
.word-outline {
  z-index: 3; color: transparent;
  -webkit-text-stroke: 1.2px var(--display);
  pointer-events: none;
}
@media (max-width: 640px) {
  .stage { min-height: calc(var(--word) * 2.6); }
  .stage-photo { height: calc(var(--word) * 2.5); max-width: 82%; }
  .word { margin-bottom: calc(var(--word) * 0.4); }
}
.stage.no-photo { min-height: 0; }
.stage.no-photo .word { margin-bottom: 0; }
.hero-line { font-size: var(--step-2); line-height: 1.3; max-width: 34ch; text-wrap: balance; }

/* Contents */
.contents-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px 64px; align-items: center; }
.contents-text { display: grid; gap: 24px; }
.pairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pairs li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 860px) { .contents-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 340px) { .pairs li { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* Introduction */
.banner { position: relative; display: grid; }
.banner img { width: 100%; height: clamp(220px, 36vw, 420px); object-fit: cover; }
.banner-title {
  position: relative; margin-top: -0.5em;
  text-align: center; font-size: clamp(3rem, 9vw, 8rem);
}
.banner.no-photo .banner-title { margin-top: 0; }
.intro-text { display: grid; gap: 14px; max-width: 64ch; margin-inline: auto; text-align: center; color: var(--muted); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); border-top: 1px solid var(--line); }
.fact { display: grid; gap: 2px; padding: 18px 16px 0 0; }
.fact dd { margin: 0; font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: var(--display); font-variant-numeric: tabular-nums; }
.fact dt { color: var(--muted); font-size: 0.9rem; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px 48px; }
.quote { margin: 0; display: grid; gap: 16px; align-content: start; padding-top: 18px; border-top: 1px solid var(--ink); }
.quote blockquote { margin: 0; font-size: var(--step-2); line-height: 1.35; }
.quote figcaption { display: grid; gap: 2px; font-size: 0.92rem; }
.quote figcaption span { color: var(--muted); }

/* Role page */
.role-title { font-size: clamp(3.6rem, 13vw, 11rem); color: var(--accent); }
.role-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: start; }
.role-grid > div { display: grid; gap: 24px; }
@media (max-width: 760px) { .role-grid { grid-template-columns: minmax(0, 1fr); } }

.services { border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; padding-block: 22px; border-bottom: 1px solid var(--line); }
.service h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: var(--step-2); line-height: 1; color: var(--display); }
.service p { color: var(--muted); max-width: 58ch; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
@media (max-width: 760px) { .service { grid-template-columns: minmax(0, 1fr); justify-items: start; } }

.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.work { border: 1px solid var(--line); background: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.work .tag { font-size: 0.82rem; color: var(--muted); }
.work h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; line-height: 1.02; color: var(--display); }
.work p { color: var(--muted); }
.work .pill { margin-top: auto; align-self: flex-start; }

.disclaimer { color: var(--muted); font-size: 0.85rem; max-width: 80ch; padding-block: 24px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-side { display: grid; gap: 22px; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.email { font-size: var(--step-2); overflow-wrap: anywhere; user-select: all; }
.booking { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.booking li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }

.form { display: grid; gap: 16px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.92rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 2px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.95rem; }
.form-status[data-kind="error"] { color: #C2412D; }

/* Footer */
.foot { color: var(--muted); font-size: 0.88rem; }
.foot .wrap { padding-block: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot a { color: var(--muted); text-underline-offset: 3px; }

/* Content error screen */
.content-error { max-width: 640px; margin: 64px auto; padding: 28px; border: 1px solid var(--line); border-left: 4px solid #C2412D; }
.content-error h1 { font-size: 1.6rem; margin-bottom: 12px; }
.content-error ul { margin: 12px 0 0; padding-left: 20px; }
