/* ============================================================
   sun.agent.profikid.nl — stylesheet
   Warme, zonnige editorial stijl. Semantische tokens, geen
   hardcoded kleurwaarden buiten de token-definities.
   ============================================================ */

:root {
  /* --- Toon: papier & warm zand --- */
  --bg:            #fbf5ec;
  --bg-elevated:   #fffdf9;
  --bg-sunken:     #f2e9dc;
  --fg:            #2b2118;
  --fg-muted:      #6d5b48;
  --fg-subtle:     #8b7963;
  --border:        #e2d5c1;
  --border-strong: #cdbc9f;

  /* --- Brand: terracotta + zonnegoud --- */
  --brand:         #c2410c;
  --brand-strong:  #9a330a;
  --brand-soft:    #fdece0;
  --gold:          #d99a1e;
  --leaf:          #4d7c3f;
  --leaf-soft:     #e8f1e3;

  /* --- Effecten --- */
  --scrim:         rgba(31, 22, 14, 0.52);
  --shadow-sm:     0 1px 2px rgba(58, 40, 22, 0.06), 0 2px 6px rgba(58, 40, 22, 0.05);
  --shadow-md:     0 4px 12px rgba(58, 40, 22, 0.09), 0 12px 32px rgba(58, 40, 22, 0.07);
  --shadow-lg:     0 10px 28px rgba(58, 40, 22, 0.13), 0 28px 64px rgba(58, 40, 22, 0.11);

  /* --- Typografie --- */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body:    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* --- Ruimte & vorm --- */
  --measure:       62ch;
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --gutter:        clamp(1.25rem, 4vw, 3rem);
  --section-y:     clamp(4rem, 9vw, 8rem);

  /* --- Motion --- */
  --ease:          cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:           320ms;
}

[data-theme="dark"] {
  --bg:            #14100c;
  --bg-elevated:   #1e1811;
  --bg-sunken:     #100d09;
  --fg:            #f2e7d8;
  --fg-muted:      #b8a68f;
  --fg-subtle:     #8f7f6b;
  --border:        #33291d;
  --border-strong: #4a3b29;

  --brand:         #f97a45;
  --brand-strong:  #ff9a6b;
  --brand-soft:    #35200f;
  --gold:          #e8b048;
  --leaf:          #8ab87a;
  --leaf-soft:     #1c2a17;

  --scrim:         rgba(8, 5, 2, 0.62);
  --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md:     0 4px 12px rgba(0, 0, 0, 0.45), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg:     0 10px 28px rgba(0, 0, 0, 0.5), 0 28px 64px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- Utilities ---------- */

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

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -110%);
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1.15rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem var(--gutter);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.topbar.is-stuck { border-bottom-color: var(--border); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.16rem;
  letter-spacing: 0.01em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.7rem);
}
.topnav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 0.4rem 0.1rem;
  position: relative;
  transition: color 200ms var(--ease);
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease);
}
.topnav a:hover { color: var(--fg); }
.topnav a:hover::after { transform: scaleX(1); }

.theme-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 999px;
  padding: 0.28rem;
  cursor: pointer;
  display: inline-flex;
  flex: none;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.theme-toggle:hover { border-color: var(--border-strong); }
.theme-toggle-track {
  display: block;
  width: 42px; height: 22px;
  border-radius: 999px;
  background: var(--bg-sunken);
  position: relative;
  transition: background var(--dur) var(--ease);
}
.theme-toggle-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
[data-theme="dark"] .theme-toggle-knob {
  transform: translateX(20px);
  background: #f4ead8;
}
[data-theme="dark"] .theme-toggle-track { background: #2b2118; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 780px);
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  z-index: -2;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(20, 12, 6, 0.86) 0%, rgba(20, 12, 6, 0.52) 34%, rgba(20, 12, 6, 0.12) 62%, rgba(20, 12, 6, 0.22) 100%),
    linear-gradient(to right, rgba(20, 12, 6, 0.44) 0%, rgba(20, 12, 6, 0) 55%);
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 7vw, 5.5rem);
}
.eyebrow {
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 245, 232, 0.82);
  margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1.5px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.6rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 0 0 1.1rem;
  color: #fff8ee;
  text-wrap: balance;
}
.hero-title::first-letter {
  font-size: 1.08em;
}
.hero-sub {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.28rem);
  color: rgba(255, 245, 232, 0.9);
  max-width: 34ch;
  margin: 0 0 2rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.94);
  color: #2b2118;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background 220ms var(--ease);
}
.hero-cta:hover {
  transform: translateY(-2px);
  background: #fff8ee;
  box-shadow: var(--shadow-lg);
}
.hero-cta svg { transition: transform 220ms var(--ease); }
.hero-cta:hover svg { transform: translateY(2px); }

/* ---------- Sections ---------- */

.section { padding: var(--section-y) 0; }
.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1.4rem + 1.9vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}
.section-note {
  color: var(--fg-subtle);
  font-size: 0.93rem;
  margin: 0;
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.6rem);
  line-height: 1.5;
  margin: 0 0 1.5rem;
  max-width: var(--measure);
  color: var(--fg);
  text-wrap: pretty;
}
.body-text {
  max-width: var(--measure);
  margin: 0 0 1.1rem;
  color: var(--fg-muted);
  text-wrap: pretty;
}
.body-text em { color: var(--fg); font-style: italic; }
.body-text.muted { color: var(--fg-subtle); font-size: 0.94rem; }

/* ---------- Intro ---------- */

.intro {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* ---------- Gallery ---------- */

.moments { background: var(--bg-sunken); }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.6vw, 2.25rem);
}
.shot { margin: 0; }
.shot-wide { grid-column: 1 / -1; }
.shot-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
}
.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
}
.shot:hover .shot-frame img {
  transform: scale(1.035);
  filter: saturate(1.05);
}
.shot figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-top: 0.85rem;
  font-size: 0.92rem;
}
.shot-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--brand);
  letter-spacing: 0.04em;
}
.shot-text { color: var(--fg-muted); }

/* ---------- Portrait ---------- */

.portrait { background: var(--bg); }
.portrait-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.portrait-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-elevated);
}
.portrait-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 32%;
}
.portrait-copy { max-width: 46ch; }
.portrait-copy .section-title { margin-bottom: 1.1rem; }

/* ---------- Draft-markering ---------- */

.draft-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.16rem 0.48rem;
  border-radius: 4px;
  background: var(--leaf-soft);
  color: var(--leaf);
  vertical-align: 0.14em;
  margin-right: 0.35rem;
}
.draft-tag {
  background: var(--brand-soft);
  color: var(--brand);
}

/* ---------- Contact ---------- */

.contact {
  background: var(--bg-sunken);
  border-top: 1px solid var(--border);
}
.mail-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid color-mix(in srgb, var(--brand) 35%, transparent);
  padding-bottom: 1px;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.mail-link:hover {
  color: var(--brand-strong);
  border-bottom-color: var(--brand-strong);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
}
.footer-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0;
  color: var(--fg-subtle);
  font-size: 0.88rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .portrait-inner { grid-template-columns: 1fr; }
  .portrait-copy { max-width: none; }
}

@media (max-width: 620px) {
  .topbar { padding: 0.7rem var(--gutter); }
  .topnav { gap: 0.85rem; }
  .topnav a { font-size: 0.88rem; }
  .brand-text { font-size: 1.05rem; }
  .gallery { grid-template-columns: 1fr; }
  .shot-wide { grid-column: auto; }
  .hero { min-height: 74svh; }
  .hero-image { object-position: 50% 22%; }
  .footer-line { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}

/* ---------- Motion & print ---------- */

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

@media print {
  .topbar, .hero-cta, .theme-toggle { display: none; }
  .hero { min-height: auto; }
  .hero-image { position: static; }
  /* Reveal-animaties mogen niets verborgen houden op papier */
  .shot, .portrait-figure, .lead { opacity: 1 !important; transform: none !important; }
}
