/* ==========================================================================
   Stephen Michael Media
   Design tokens — change these first, everything else follows.
   ========================================================================== */

:root {
  /* --- Type ------------------------------------------------------------ */
  --font-display: "Archivo Black", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;

  /* Fluid scale: shrinks on phones, grows on desktop, no media queries. */
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.11rem + 0.42vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.31rem + 0.93vw, 2.05rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.75rem, 1.7rem + 5.2vw, 6rem); /* banner titles */

  /* --- Spacing --------------------------------------------------------- */
  --space-2xs: 0.375rem;
  --space-xs: 0.75rem;
  --space-s: 1.125rem;
  --space-m: 1.75rem;
  --space-l: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7.5rem;

  /* --- Layout ---------------------------------------------------------- */
  --measure: 62ch;
  --container: 78rem;
  --gutter: 1.5rem;
  --rule: 2.5px; /* the black hairline under the header */

  /* --- Color: light (the brand default) -------------------------------- */
  --bg: #e7d3c6; /* warm beige content background */
  --bg-alt: #f0e2d8;
  --surface: #f6ece5;
  --ink: #111014; /* near-black for type and rules */
  --ink-muted: #56504f;
  --border: #111014;
  --link: #1a1aff; /* the electric blue from the People title */
  --focus: #1a1aff;
  --on-gradient: #111014; /* type sitting on top of a gradient banner */

  --shadow-tile: 0 10px 30px -12px rgb(17 16 20 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14121a;
    --bg-alt: #1b1822;
    --surface: #221e2b;
    --ink: #f4ece7;
    --ink-muted: #b0a6a2;
    --border: #f4ece7;
    --link: #8f8fff;
    --focus: #8f8fff;
    --on-gradient: #111014; /* gradients stay bright, so type stays dark */
    --shadow-tile: 0 10px 30px -12px rgb(0 0 0 / 0.7);
  }
}

:root[data-theme="dark"] {
  --bg: #14121a;
  --bg-alt: #1b1822;
  --surface: #221e2b;
  --ink: #f4ece7;
  --ink-muted: #b0a6a2;
  --border: #f4ece7;
  --link: #8f8fff;
  --focus: #8f8fff;
  --on-gradient: #111014;
  --shadow-tile: 0 10px 30px -12px rgb(0 0 0 / 0.7);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

* {
  margin: 0;
}

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

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

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

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

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400; /* Archivo Black only ships one weight */
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-3);
}
h2 {
  font-size: var(--step-2);
}
h3 {
  font-size: var(--step-1);
}

p,
li {
  text-wrap: pretty;
}

p + p {
  margin-top: var(--space-s);
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1.5px;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  font-weight: 500;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose {
  max-width: var(--measure);
}

.section {
  padding-block: var(--space-xl);
}

.stack > * + * {
  margin-top: var(--space-s);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: var(--space-xs) var(--space-s);
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==========================================================================
   The gradient banner
   --------------------------------------------------------------------------
   The signature look: layered radial gradients blended into an iridescent
   wash, with a film-grain overlay on top. Pure CSS — no image files, so it
   scales to any screen and costs nothing to load.

   Each variant just repositions the same technique with a different palette.
   Add a new one by copying a block and changing the colors.
   ========================================================================== */

.banner {
  position: relative;
  isolation: isolate;
  color: var(--on-gradient);
  background-color: #b9a7e8;
  background-repeat: no-repeat;
}

/* Film grain. Sits above the gradient, below the content. */
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.banner > * {
  position: relative;
  z-index: 1;
}

/* --- Variants --------------------------------------------------------- */

/* Violet → blush → cream. Used on the Youtube page. */
.banner--violet {
  background-image:
    radial-gradient(90% 70% at 12% 4%, #5b21ff 0%, transparent 60%),
    radial-gradient(80% 60% at 88% 0%, #7c3aed 0%, transparent 55%),
    radial-gradient(120% 90% at 50% 62%, #f7b8d0 0%, transparent 70%),
    radial-gradient(100% 80% at 20% 100%, #fbe4d8 0%, transparent 65%),
    linear-gradient(175deg, #6d28d9 0%, #c4a0e8 42%, #f6d9d9 74%, #f7ece4 100%);
}

/* Violet → blue → green. Used on the Work index. */
.banner--aurora {
  background-image:
    radial-gradient(80% 60% at 6% 2%, #4c1d95 0%, transparent 58%),
    radial-gradient(70% 55% at 96% 6%, #6d28d9 0%, transparent 55%),
    radial-gradient(90% 70% at 78% 92%, #16a34a 0%, transparent 62%),
    radial-gradient(85% 65% at 12% 96%, #f0a878 0%, transparent 58%),
    linear-gradient(140deg, #5b21b6 0%, #3b82f6 34%, #22c55e 68%, #86efac 100%);
}

/* Pink/blue marble. Used on the People page. */
.banner--candy {
  background-image:
    radial-gradient(70% 55% at 10% 10%, #a5c8f0 0%, transparent 58%),
    radial-gradient(75% 60% at 90% 18%, #f2b5cd 0%, transparent 58%),
    radial-gradient(90% 70% at 42% 88%, #cbb4e8 0%, transparent 62%),
    radial-gradient(60% 50% at 70% 60%, #f7d9e4 0%, transparent 60%),
    linear-gradient(160deg, #c3b3e8 0%, #f3c4d6 38%, #bcd4f2 70%, #f6e2ea 100%);
}

/* Full prism. Used on Contact. */
.banner--prism {
  background-image:
    radial-gradient(60% 55% at 8% 8%, #8b5cf6 0%, transparent 55%),
    radial-gradient(55% 50% at 92% 4%, #38bdf8 0%, transparent 52%),
    radial-gradient(65% 55% at 88% 92%, #f9a8d4 0%, transparent 58%),
    radial-gradient(70% 60% at 10% 90%, #86efac 0%, transparent 58%),
    radial-gradient(50% 45% at 50% 50%, #fde68a 0%, transparent 55%),
    linear-gradient(135deg, #a78bfa 0%, #7dd3fc 30%, #bef264 58%, #fbcfe8 100%);
}

/* --- Hero (front page) -------------------------------------------------- */

.hero {
  padding-block: clamp(var(--space-xl), 9vw, var(--space-2xl));
  max-width: 46rem;
}

.hero h1 {
  font-size: var(--step-4);
  text-transform: uppercase;
  margin-top: var(--space-2xs);
}

.hero__lede {
  margin-top: var(--space-s);
  font-size: var(--step-1);
  line-height: 1.45;
  font-weight: 500;
  max-width: 34ch;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-m);
}

/* --- Section headings --------------------------------------------------- */

/* The header is sticky, so an anchor jump must stop short of it or the
   heading lands underneath. */
[id] {
  scroll-margin-top: 6rem;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-s);
  flex-wrap: wrap;
  border-bottom: var(--rule) solid var(--border);
  padding-bottom: var(--space-xs);
}

.section__head h2 {
  font-size: var(--step-3);
  text-transform: uppercase;
}

.section__head a {
  color: var(--ink);
  font-weight: 600;
  font-size: var(--step-0);
  white-space: nowrap;
}

.section--tinted {
  background: var(--bg-alt);
  border-block: var(--rule) solid var(--border);
}

/* --- Banner title block ------------------------------------------------ */

.banner__title {
  padding-block: var(--space-xl) var(--space-2xl);
  text-align: center;
}

.banner__title h1 {
  font-size: var(--step-4);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* An accent colour for a single page's title, as the old site did with the
   electric blue on PEOPLE. */
.banner__title--blue h1 {
  color: var(--link);
}

/* ==========================================================================
   Header / nav
   --------------------------------------------------------------------------
   Sits transparently on top of the banner, with the black rule beneath it.
   ========================================================================== */

.site-header {
  border-bottom: var(--rule) solid #111014;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  min-height: 8.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #111014;
  flex-shrink: 0;
}

.brand__logo {
  width: clamp(7rem, 11vw, 10.5rem);
  height: auto;
  /* The logo is black line art on a white square. `multiply` drops the white
     out so the gradient shows through, without needing a transparent export.
     If you later export a transparent PNG or SVG, this stays safe — but you
     can delete the line to keep the Earth's colours at full strength. */
  mix-blend-mode: multiply;
}

/* Text wordmark — the stand-in until the real logo file is dropped in.
   See the comment in the page markup for how to swap it. */
.brand__wordmark {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.35vw, 0.95rem);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: var(--rule) solid #111014;
  border-radius: 50%;
  padding: 1.15em 1.5em;
  text-align: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.2vw, 2.25rem);
}

.nav a {
  color: #111014;
  text-decoration: none;
  font-size: var(--step-0);
  font-weight: 500;
  padding-block: 0.2em;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-bottom-color: #111014;
}

.nav a[aria-current="page"] {
  border-bottom-color: #111014;
}

@media (max-width: 38rem) {
  .site-header__inner {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    min-height: 0;
    padding-block: var(--space-s);
  }
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==========================================================================
   Buttons
   --------------------------------------------------------------------------
   These sit on top of gradient banners most of the time, so they use the
   fixed ink colour rather than the themed one — the gradients stay bright in
   dark mode, so the type on them must stay dark.
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 1.5em;
  border: 2px solid #111014;
  background: #111014;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--step-0);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.button:hover {
  background: transparent;
  color: #111014;
}

.button:active {
  transform: translateY(1px);
}

.button--ghost {
  background: transparent;
  color: #111014;
}

.button--ghost:hover {
  background: #111014;
  color: #fff;
}

/* The "Book" nav item, marked out from the plain links beside it. */
.nav a.nav__cta {
  border: 2px solid #111014;
  border-radius: 999px;
  padding: 0.2em 0.95em;
  font-weight: 600;
}

.nav a.nav__cta:hover,
.nav a.nav__cta[aria-current="page"] {
  background: #111014;
  color: #fff;
}

/* ==========================================================================
   Category tiles (the Work index)
   ========================================================================== */

.tiles {
  display: grid;
  gap: clamp(var(--space-m), 5vw, var(--space-xl));
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  padding-block: var(--space-xl) var(--space-2xl);
}

.tile {
  position: relative;
  display: block;
  text-decoration: none;
  color: #111014;
  box-shadow: var(--shadow-tile);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -14px rgb(17 16 20 / 0.6);
}

.tile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 500ms ease;
}

.tile:hover img {
  transform: scale(1.04);
}

/* Scrim so the black label stays readable whatever the photo does. */
.tile__label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: var(--space-xl) var(--space-s) var(--space-m);
  font-family: var(--font-display);
  font-size: var(--step-2);
  text-align: center;
  background: linear-gradient(
    to top,
    rgb(255 255 255 / 0.82) 0%,
    rgb(255 255 255 / 0.55) 45%,
    transparent 100%
  );
}

/* ==========================================================================
   Photo gallery
   ========================================================================== */

.gallery {
  display: grid;
  gap: clamp(var(--space-s), 2.5vw, var(--space-m));
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
  padding-block: var(--space-xl);
}

.gallery figure {
  margin: 0;
}

/* <picture> is inline by default, which leaves a stray baseline gap under
   each photo. */
.gallery picture {
  display: block;
}

.gallery img {
  width: 100%;
  height: auto;
  background: var(--bg-alt); /* placeholder tone while loading */
  cursor: zoom-in;
}

.gallery figcaption {
  margin-top: var(--space-2xs);
  font-size: var(--step--1);
  color: var(--ink-muted);
}

/* ==========================================================================
   Video grid + click-to-load YouTube facade
   --------------------------------------------------------------------------
   A real YouTube iframe pulls ~1MB of script before anyone presses play. This
   loads a thumbnail instead and only swaps in the iframe on click, which is
   dramatically faster and doesn't set third-party cookies on arrival.
   ========================================================================== */

.videos {
  display: grid;
  gap: clamp(var(--space-m), 4vw, var(--space-xl));
  grid-template-columns: repeat(auto-fit, minmax(min(26rem, 100%), 1fr));
  padding-block: var(--space-xl);
}

.video {
  margin: 0;
}

.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: none;
  padding: 0;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
}

.video__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease, opacity 200ms ease;
}

.video__frame:hover img {
  transform: scale(1.03);
  opacity: 0.85;
}

/* A facade with no real video ID yet: show the placeholder art, but don't
   promise a play button that does nothing. */
.video__frame:disabled {
  cursor: default;
  background: var(--bg-alt);
}

.video__frame:disabled .video__play {
  display: none;
}

.video__frame:disabled img {
  object-fit: contain; /* don't crop the placeholder's message */
}

.video__frame:disabled:hover img {
  transform: none;
  opacity: 1;
}

.video__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 4.5rem;
  height: 3.15rem;
  border-radius: 0.75rem;
  background: #f00;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: scale 200ms ease;
}

.video__frame:hover .video__play {
  scale: 1.08;
}

.video__play::before {
  content: "";
  border-style: solid;
  border-width: 0.65rem 0 0.65rem 1.05rem;
  border-color: transparent transparent transparent #fff;
}

.video__title {
  margin-top: var(--space-xs);
  font-weight: 600;
  font-size: var(--step-0);
}

/* ==========================================================================
   About page
   ========================================================================== */

.about {
  display: grid;
  gap: clamp(var(--space-m), 5vw, var(--space-xl));
  grid-template-columns: 1fr;
  align-items: center;
  padding-block: var(--space-xl);
}

@media (min-width: 55rem) {
  .about {
    grid-template-columns: 1fr 1fr;
  }
}

.about__text {
  border: var(--rule) solid var(--border);
  padding: clamp(var(--space-m), 4vw, var(--space-xl));
}

.about__photo img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Booking section + form
   ========================================================================== */

.book {
  padding-block: var(--space-xl) var(--space-2xl);
  border-top: var(--rule) solid #111014;
}

.book__inner {
  display: grid;
  gap: clamp(var(--space-m), 5vw, var(--space-xl));
  align-items: start;
}

@media (min-width: 58rem) {
  .book__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.book__intro h2 {
  font-size: var(--step-3);
  text-transform: uppercase;
}

.book__intro p {
  margin-top: var(--space-s);
  max-width: 34ch;
  font-weight: 500;
}

.book__direct a,
.book__intro a {
  color: var(--on-gradient);
}

.book .socials {
  justify-content: flex-start;
}

/* --- Form --------------------------------------------------------------- */

.form {
  display: grid;
  gap: var(--space-s);
  background: rgb(255 255 255 / 0.72);
  border: var(--rule) solid #111014;
  padding: clamp(var(--space-m), 4vw, var(--space-l));
  color: #111014;
}

.field {
  display: grid;
  gap: var(--space-2xs);
}

.field label {
  font-weight: 600;
  font-size: var(--step--1);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65em 0.8em;
  border: 2px solid #111014;
  border-radius: 0;
  background: #fff;
  color: #111014;
  font-size: var(--step-0);
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 1px;
}

.form .button {
  justify-self: start;
}

.form__status {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 600;
  min-height: 1.5em;
}

.form__status[data-state="error"] {
  color: #a3121a;
}

.form__status[data-state="ok"] {
  color: #0d6b4f;
}

.form[data-sent="true"] .field,
.form[data-sent="true"] .button {
  display: none;
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact {
  min-height: 72svh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: var(--space-s);
  padding-block: var(--space-2xl);
}

.contact h1 {
  font-size: var(--step-3);
}

.contact a {
  color: var(--on-gradient);
}

.socials {
  display: flex;
  gap: var(--space-m);
  justify-content: center;
  margin-top: var(--space-m);
}

.socials a {
  color: var(--on-gradient);
  display: grid;
  place-items: center;
  padding: var(--space-2xs);
}

.socials svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

dialog.lightbox {
  border: none;
  padding: 0;
  max-width: 100vw;
  max-height: 100svh;
  width: 100%;
  height: 100%;
  background: transparent;
  overscroll-behavior: contain;
}

dialog.lightbox::backdrop {
  background: rgb(10 9 12 / 0.93);
}

.lightbox__inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: var(--space-m);
}

.lightbox__inner img {
  max-width: 100%;
  max-height: 88svh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__close {
  position: fixed;
  top: var(--space-s);
  right: var(--space-s);
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}

.lightbox__close:hover {
  background: #fff;
  color: #000;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: var(--rule) solid var(--border);
  padding-block: var(--space-m);
  font-size: var(--step--1);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
