/* 32 Beagles Documentary: hand-written stylesheet (clean-room rebuild, no third-party code). */

@font-face {
  font-family: "Anton";
  src: url("fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/spacegrotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette sampled from the live site */
  --sand: #d4ccbe;        /* hero ground */
  --paper: #fafafa;       /* page ground under the hero */
  --white: #ffffff;
  --ink: #14100d;         /* headline black */
  --text: #111111;
  --muted: #5a5a5a;
  --gold: #9b6b25;        /* the "32" */
  --pill: #d9d9d9;        /* COMING SOON button */
  --line: #111111;

  --display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --wide: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 52px);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

[hidden] { display: none !important; }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  padding-top: max(28px, env(safe-area-inset-top, 0px));
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 24px;
}
.site-title {
  font-family: var(--wide);
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.01em;
  font-size: clamp(13px, 1.45vw, 21px);
  line-height: 1.1;
  white-space: nowrap;
  color: var(--ink);
}
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: currentColor; }

.menu-toggle {
  display: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 10px 0 10px 10px;
  margin: -10px 0;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle__lines { display: block; width: 35px; height: 10px; position: relative; }
.menu-toggle__lines::before,
.menu-toggle__lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}
.menu-toggle__lines::before { top: 0; }
.menu-toggle__lines::after { top: 9px; }
.menu-open .menu-toggle__lines::before { top: 4.5px; transform: rotate(45deg); }
.menu-open .menu-toggle__lines::after { top: 4.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px max(24px, env(safe-area-inset-right, 0px)) 40px max(24px, env(safe-area-inset-left, 0px));
}
.mobile-menu a {
  font-family: var(--wide);
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: 34px;
  text-decoration: none;
  color: var(--ink);
}

@media (max-width: 767px) {
  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .site-header { padding-top: max(36px, env(safe-area-inset-top, 0px)); }
  .site-title { font-size: clamp(12.5px, 3.6vw, 16px); }
}

/* ---------- Home: hero ---------- */

.hero__dog { display: block; }
.hero__dog img { width: 100%; height: auto; }

.hero {
  position: relative;
  background: var(--sand);
  overflow: hidden;
}

/* Desktop and tablet: the poster composition, placed in viewport units so it
   keeps the same proportions as the original artwork at any width. */
@media (min-width: 768px) {
  .hero { height: 52.4vw; min-height: 400px; }
  .hero__inner { position: absolute; inset: 0; }
  .hero__title {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: 13.24vw;
    line-height: 1;
    letter-spacing: 0;
    color: var(--ink);
  }
  .hero__num,
  .hero__word { position: absolute; top: 19.5vw; white-space: nowrap; }
  .hero__num { left: 10.8vw; color: var(--gold); }
  .hero__word { left: 48.3vw; }
  .hero__dog {
    position: absolute;
    left: 25.2vw;
    top: 5.7vw;
    width: 21.2vw;
  }
  .hero__copy {
    position: absolute;
    left: 48.9vw;
    width: 34.4vw;
    top: 34.4vw;
    text-align: center;
  }
  .hero__tagline {
    font-size: clamp(13px, 1.16vw, 19px);
    margin: 0 auto;
    max-width: 30em;
  }
  .hero__cta { margin-top: clamp(16px, 2.6vw, 40px); }
}

.hero__tagline {
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.9em;
  border-radius: 999px;
  border: 0;
  font-family: var(--wide);
  font-weight: 700;
  font-stretch: 100%;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn:hover { opacity: 0.85; }
.btn:active { transform: translateY(1px); }
.btn--pill { background: var(--pill); color: var(--text); }
.btn--dark { background: #000; color: var(--white); }

@media (min-width: 768px) {
  .hero .btn { min-height: clamp(46px, 4.8vw, 66px); padding: 0 clamp(26px, 2.75vw, 40px); font-size: clamp(12px, 1.02vw, 15px); }
}

/* Phone: stack the poster so nothing is cropped or overlapping. */
@media (max-width: 767px) {
  .hero {
    padding: 118px max(20px, env(safe-area-inset-right, 0px)) 64px max(20px, env(safe-area-inset-left, 0px));
    text-align: center;
  }
  .hero__inner { display: flex; flex-direction: column; align-items: center; }
  .hero__dog { width: min(56vw, 250px); order: 1; }
  .hero__title {
    order: 2;
    margin: 18px 0 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: min(19vw, 92px);
    line-height: 1;
    color: var(--ink);
    white-space: nowrap;
  }
  .hero__num { color: var(--gold); }
  .hero__copy { order: 3; margin-top: 18px; }
  .hero__tagline { font-size: 16px; margin: 0 auto; max-width: 22em; }
  .hero__cta { margin-top: 26px; }
  .hero .btn { min-height: 56px; padding: 0 44px; font-size: 15px; }
}

/* ---------- Home: about ---------- */

.about {
  background: var(--paper);
  padding-top: clamp(64px, 6.6vw, 96px);
  padding-bottom: clamp(80px, 9vw, 130px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.about p {
  margin: 0 auto;
  max-width: 1000px;
  text-align: center;
  font-weight: 500;
  font-size: clamp(19px, 1.62vw, 24px);
  line-height: 1.55;
}

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

.contact {
  padding-top: clamp(110px, 8.6vw, 124px);
  padding-bottom: clamp(56px, 6vw, 88px);
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 6vw, 108px);
  align-items: start;
}
.contact__text { min-width: 0; max-width: 520px; }
.contact__title {
  margin: 0 0 0.45em;
  font-family: var(--wide);
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: #000;
}
.contact__lede { margin: 0; font-size: 15px; font-weight: 500; }
.contact__media {
  margin: clamp(0px, 1.2vw, 16px) 0 0;
  aspect-ratio: 575 / 785;
  overflow: hidden;
  background: #1b1610;
}
.contact__media picture { display: block; height: 100%; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.form { margin-top: clamp(56px, 10vw, 136px); display: grid; gap: 18px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend { padding: 0; margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 500; }
.field label .req { font-weight: 400; color: var(--muted); margin-left: 4px; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px 16px;
  min-height: 38px;
}
.field textarea { min-height: 88px; resize: vertical; border-radius: 18px; }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #b3261e; }
.field .err { color: #b3261e; font-size: 13px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { margin-top: 2px; }
.form .btn { min-height: 52px; padding: 0 27px; }
.form-status { margin: 0; font-size: 15px; font-weight: 500; }
.form-status--error { color: #b3261e; }
.form-done { margin-top: clamp(56px, 10vw, 136px); font-size: 18px; font-weight: 500; }

@media (max-width: 767px) {
  .contact { grid-template-columns: 1fr; padding-top: 140px; row-gap: 40px; }
  .contact__text { max-width: none; }
  .contact__title { font-size: min(10.4vw, 52px); }
  .form { margin-top: 48px; }
  .contact__media { aspect-ratio: 440 / 480; margin: 0; }
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--sand);
  padding: 120px max(24px, env(safe-area-inset-right, 0px)) 80px max(24px, env(safe-area-inset-left, 0px));
}
.notfound h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(96px, 18vw, 220px);
  line-height: 1;
  color: var(--ink);
}
.notfound h1 span { color: var(--gold); }
.notfound p { margin: 12px 0 28px; font-weight: 500; font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
