/* =========================================================================
   FABIO FINDS
   ---------------------------------------------------------------------
   1. Tokens        <- change colours, fonts and spacing HERE and nowhere else
   2. Reset & base
   3. Layout
   4. Navigation
   5. Hero
   6. Spotlight
   7. Work
   8. About
   9. Contact & footer
   10. Responsive
   11. Motion & focus
   ========================================================================= */


/* =========================================================================
   1. TOKENS — the only place colours are defined
   ========================================================================= */
:root {

  /* --- The accent (the brown/terracotta) ------------------------------
     Every accent shade below is derived from these three numbers, so
     changing the hue changes the whole site at once.

       --accent-h  hue        0=pink 42=terracotta 140=green 250=blue
       --accent-c  chroma     0=grey, higher=more saturated
       --accent-l  lightness  0=black 1=white
  */
  --accent-h: 140;
  --accent-c: 0.13;
  --accent-l: 0.60;

  --accent:        oklch(var(--accent-l) var(--accent-c) var(--accent-h));
  --accent-deep:   oklch(calc(var(--accent-l) - 0.10) calc(var(--accent-c) - 0.02) var(--accent-h));
  --accent-soft:   oklch(calc(var(--accent-l) + 0.10) calc(var(--accent-c) - 0.01) var(--accent-h));
  --accent-pale:   oklch(calc(var(--accent-l) + 0.18) calc(var(--accent-c) - 0.04) calc(var(--accent-h) + 13));
  --accent-bright: oklch(calc(var(--accent-l) + 0.22) calc(var(--accent-c) - 0.04) calc(var(--accent-h) + 13));

  /* --- Surfaces -------------------------------------------------------- */
  --paper:      #f4f1ea;  /* page background                      */
  --paper-warm: #ece7dc;  /* contact section background           */
  --ink:        #1a1712;  /* darkest colour: text + dark sections */

  /* --- Text ------------------------------------------------------------ */
  --text:       var(--ink);
  --text-body:  #3a352c;  /* paragraphs                */
  --text-muted: #6f685c;  /* eyebrows                  */
  --text-faint: #8a8271;  /* captions, tags, footer    */
  --text-note:  #5a5346;  /* contact note              */

  /* --- Placeholder stripes (delete once real images are in) ------------ */
  --stripe-a:      #e8e2d5;
  --stripe-b:      #e2dbcb;
  --stripe-dark-a: #2a251d;
  --stripe-dark-b: #242019;

  /* --- Derived: lines and translucent fills ---------------------------- */
  --rule:          color-mix(in srgb, var(--ink) 14%, transparent);
  --rule-soft:     color-mix(in srgb, var(--ink) 10%, transparent);
  --rule-strong:   color-mix(in srgb, var(--ink) 28%, transparent);
  --nav-bg:        color-mix(in srgb, var(--paper) 82%, transparent);
  --on-ink:        var(--paper);
  --on-ink-muted:  color-mix(in srgb, var(--paper) 70%, transparent);
  --on-ink-faint:  color-mix(in srgb, var(--paper) 55%, transparent);
  --selection:     color-mix(in srgb, var(--accent) 22%, transparent);

  /* --- Type ------------------------------------------------------------ */
  --font-display: "Newsreader", Georgia, serif;
  --font-body:    "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, monospace;

  /* --- Layout ---------------------------------------------------------- */
  --max-width:   1280px;
  --gutter:      40px;
  --section-pad: 96px;
  --radius:      4px;
  --radius-lg:   6px;
  --nav-height:  70px;
}


/* =========================================================================
   2. RESET & BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
::selection { background: var(--selection); }


/* =========================================================================
   3. LAYOUT
   ========================================================================= */
.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow--plain { display: block; }
.eyebrow--onDark { color: var(--accent-pale); }

.eyebrow__rule {
  width: 34px;
  height: 1px;
  background: var(--ink);
  flex: none;
}
.eyebrow--onDark .eyebrow__rule { background: var(--accent-soft); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 44px);
  letter-spacing: -.02em;
}
.section-head__meta {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

/* Image frames. Aspect ratio is set by the modifier class. */
.frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: repeating-linear-gradient(135deg,
    var(--stripe-a), var(--stripe-a) 11px,
    var(--stripe-b) 11px, var(--stripe-b) 22px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.frame--21x9 { aspect-ratio: 21/9; }
.frame--4x5  { aspect-ratio: 4/5;  }
.frame--3x4  { aspect-ratio: 3/4;  }
.frame--1x1  { aspect-ratio: 1/1;  }

.frame__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.frame--21x9 .frame__label {
  font-size: 12px;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  border-radius: 3px;
}

.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 14px 26px;
  border-radius: 100px;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn--solid   { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent-deep); color: var(--paper); }
.btn--outline { border: 1px solid var(--rule-strong); }
.btn--outline:hover { border-color: var(--ink); color: var(--text); }


/* =========================================================================
   4. NAVIGATION
   ========================================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
  transition: transform .38s cubic-bezier(.4, 0, .1, 1);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wordmark__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.nav__links { display: flex; align-items: center; gap: 38px; }
.nav__links a { font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.nav__cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition: background .2s ease, color .2s ease;
}
.nav__cta:hover { background: var(--ink); color: var(--paper); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.nav__toggle span { display: block; height: 1.5px; width: 26px; background: var(--ink); }


/* --- Mobile menu overlay --- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
}
.menu[hidden] { display: none; }

.menu__bar { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.menu__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  font-family: var(--font-display);
  color: var(--text);
}
.menu__links {
  margin-block: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.menu__links a {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 12vw, 52px);
  letter-spacing: -.02em;
}
.menu__social {
  display: flex;
  gap: 24px;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}


/* =========================================================================
   5. HERO
   ========================================================================= */
.hero { padding-block: 150px 70px; }

.hero__title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.25rem, 12vw, 148px);
  line-height: .94;
  letter-spacing: -.03em;
}
.hero__title em { font-style: italic; color: var(--accent); }

.hero__lede {
  margin-top: 34px;
  max-width: 540px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-body);
}

.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }


/* =========================================================================
   6. SPOTLIGHT
   ========================================================================= */
.spotlight {
  padding-block: var(--section-pad);
  background: var(--ink);
  color: var(--on-ink);
}

.spotlight__title {
  margin: 22px 0 34px;
  max-width: 760px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 48px);
  letter-spacing: -.02em;
}
.spotlight__title em { font-style: italic; color: var(--accent-pale); }

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.video-frame__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: repeating-linear-gradient(135deg,
    var(--stripe-dark-a), var(--stripe-dark-a) 12px,
    var(--stripe-dark-b) 12px, var(--stripe-dark-b) 24px);
}
.play {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.play::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--paper);
  margin-left: 5px;
}
.mono-note {
  position: absolute;
  bottom: 16px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--on-ink-faint);
}

.spotlight__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--on-ink-muted);
}
.spotlight__meta a { color: var(--accent-bright); font-weight: 600; letter-spacing: .03em; }
.spotlight__meta a:hover { color: var(--paper); }


/* =========================================================================
   7. WORK
   ========================================================================= */
.work { padding-block: var(--section-pad); }

.find--lead { margin-bottom: 20px; }

.find figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-body);
}
.find--lead figcaption { margin-top: 12px; font-size: 14px; }

.find__title { font-family: var(--font-display); font-style: italic; font-size: 16px; }
.find--lead .find__title { font-size: 17px; }

.find__tag {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.find--lead .find__tag { font-size: 12px; letter-spacing: .1em; }

.find-grid { columns: 3; column-gap: 20px; }
.find-grid .find { break-inside: avoid; margin-bottom: 20px; }


/* =========================================================================
   8. ABOUT
   ========================================================================= */
.about { padding-block: 100px; }

.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about__portrait { align-self: center; }

.about__title {
  margin: 16px 0 24px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.125rem, 4.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.about__body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
}
.about__body + .about__body { margin-top: 18px; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}
.stats__item { flex: none; }
.stats dt { font-family: var(--font-display); font-size: 30px; }
.stats dd {
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}


/* =========================================================================
   9. CONTACT & FOOTER
   ========================================================================= */
.contact {
  padding-block: var(--section-pad) 70px;
  background: var(--paper-warm);
  border-top: 1px solid var(--rule-soft);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: end;
}

.contact__title {
  margin: 16px 0 26px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 60px);
  line-height: 1.02;
  letter-spacing: -.03em;
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
}
.contact__email:hover { color: var(--accent); }

.contact__note {
  margin-top: 20px;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-note);
}

.channels { display: flex; flex-direction: column; }
.channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: 20px;
  transition: color .2s ease, padding-left .2s ease;
}
.channel:last-child { border-bottom: 1px solid var(--rule); }
.channel:hover { color: var(--accent); padding-left: 10px; }
.channel__handle {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--text-faint);
}
.footer__mark { font-family: var(--font-display); font-size: 17px; color: var(--text); }


/* =========================================================================
   10. RESPONSIVE
   ========================================================================= */
@media (max-width: 820px) {
  :root { --gutter: 20px; --section-pad: 72px; }

  .nav__links  { display: none; }
  .nav__toggle { display: flex; }

  .hero { padding-block: 120px 56px; }

  .find-grid   { columns: 1; }
  .frame--21x9 { aspect-ratio: 4/3; }

  .about        { padding-block: var(--section-pad); }
  .about__grid  { grid-template-columns: 1fr; gap: 32px; }

  .contact__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (min-width: 821px) {
  .menu { display: none !important; }
}


/* =========================================================================
   11. MOTION & FOCUS
   ========================================================================= */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
}
.skip-link:focus { left: 0; color: var(--paper); }

body.is-locked { overflow: hidden; }

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