/* The Joy Principle — site styles, brand v1.0 (July 2026)
   Tokens from brand-guidelines.html. No grey anywhere. */

:root {
  --salmon: #FFF1E5;
  --salmon-deep: #F5E4D3;
  --scarlet: #B10C17;
  --scarlet-soft: rgba(177, 12, 23, 0.08);
  --gold: #C99A2E;
  --gold-soft: rgba(201, 154, 46, 0.10);
  --ink: #1A1A1A;
  --muted: #7A6D63;
  --warm-white: #FFFAF4;
  --cream: #FAF0E4;
  --line: rgba(26, 26, 26, 0.09);
  --display: 'Bricolage Grotesque', serif;
  --body: 'Archivo', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--salmon);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain, felt not seen */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  background: rgba(255, 241, 229, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-header .mark span { color: var(--scarlet); }
.site-nav {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 1.8rem);
  align-items: center;
  flex-wrap: wrap;
}
.site-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--scarlet); }
.site-nav .nav-cta {
  color: var(--warm-white);
  background: var(--scarlet);
  padding: 0.5rem 1.1rem;
  border-radius: 24px;
  font-weight: 600;
}
.site-nav .nav-cta:hover { color: var(--warm-white); background: #8E0A13; }
.site-nav .nav-cta[aria-current="page"] { color: var(--warm-white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 0.2rem 0.3rem;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; order: 2; }
  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--warm-white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.4rem;
    padding: 5.5rem 1.8rem 2rem;
    box-shadow: -8px 0 28px rgba(26,26,26,0.12);
    transition: right .3s ease;
  }
  .site-nav.open { right: 0; }
  .site-nav .nav-cta { order: 99; }
  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,26,26,0.25);
    z-index: 95;
  }
  .nav-backdrop.open { display: block; }
}

/* ---------- PHOTO SLOTS (placeholders until Vic supplies images) ---------- */
.photo-slot {
  aspect-ratio: var(--ratio, 4 / 5);
  border-radius: 18px;
  border: 1.5px dashed var(--gold);
  background:
    radial-gradient(ellipse at 30% 25%, rgba(201,154,46,0.16), transparent 60%),
    linear-gradient(160deg, var(--salmon-deep), var(--cream) 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: 1.2rem;
  color: var(--muted);
}
.photo-slot .ph-icon { font-size: 1.4rem; }
.photo-slot .ph-label {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.photo-slot .ph-ratio {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- FULL-VIEWPORT SECTIONS ---------- */
.page-section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3.5rem clamp(1.4rem, 5vw, 3rem) 3.5rem;
  position: relative;
}
.page-section.compact { min-height: 70svh; }
.section-inner { max-width: 760px; width: 100%; position: relative; }
.section-inner.wide { max-width: 980px; }

.wash::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 28% 35%, var(--gold-soft) 0%, transparent 55%),
    radial-gradient(ellipse at 74% 72%, var(--scarlet-soft) 0%, transparent 50%);
  pointer-events: none;
}

/* ---------- TYPE ---------- */
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.display-xl {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.08;
}
.display-lg {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}
.display-md {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
}
.lead {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: var(--muted);
  max-width: 34em;
  margin: 1.4rem auto 0;
}
.accent { color: var(--scarlet); }
.gold-text { color: var(--gold); }

/* ---------- BUTTONS ---------- */
.cta-row {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}
.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: 32px;
  transition: transform .2s ease, background .2s ease;
  display: inline-block;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--scarlet); color: var(--warm-white); }
.btn-primary:hover { background: #8E0A13; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { border-color: var(--scarlet); color: var(--scarlet); }

/* ---------- CARDS ---------- */
.card {
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  text-align: left;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: var(--muted); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

/* ---------- QUOTE ---------- */
.pull-quote {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  font-weight: 400;
  line-height: 1.45;
  max-width: 26em;
  margin: 0 auto;
}
.pull-quote cite {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.2rem;
}

/* ---------- CHECK LIST (Home empathy block) ---------- */
.check-list {
  text-align: left;
  max-width: 34em;
  margin: 1.6rem auto 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.check-list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: clamp(1rem, 1.9vw, 1.1rem);
  color: var(--muted);
  line-height: 1.55;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--scarlet);
}

/* ---------- PROSE (about page etc.) ---------- */
.prose { text-align: left; max-width: 620px; margin: 0 auto; }
.prose p + p { margin-top: 1.1rem; }
.prose h3 { margin-top: 2.4rem; margin-bottom: 0.6rem; font-size: 1.25rem; }
.prose .aside { color: var(--muted); font-style: italic; }

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem clamp(1.4rem, 5vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer p { font-size: 0.82rem; color: var(--muted); }
.site-footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.site-footer nav a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--scarlet); }

/* ---------- SCROLL HINT ---------- */
.scroll-hint {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.scroll-hint::after {
  content: '↓';
  display: block;
  margin-top: 0.2rem;
  animation: hintFloat 2.6s ease-in-out infinite;
}
@keyframes hintFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- REVEAL ON SCROLL (gentle) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint::after { animation: none; }
}
