/* ÂLF — design system. Ivory, espresso, crust. Serif for presence, sans for clarity. No webfonts. */

:root {
  --ivory: #f6f1e8;
  --paper: #fbf8f2;
  --ink: #17120e;
  --espresso: #211a14;
  --crust: #8a5a33;
  --muted: #6e645a;
  --line: #ddd3c4;
  --cream: #efe6d6;
  --on-dark: #f6f1e8;
  --on-dark-muted: #b9ad9c;
  --serif: Didot, "Bodoni 72", "Bodoni MT", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --text-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --edge: clamp(1.25rem, 6vw, 5rem);
  --bar: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

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

html {
  background: var(--ivory);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--bar);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset {
  margin: 0;
  padding: 0;
}

ol, ul {
  list-style: none;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 60;
  padding: 0.75rem 1rem;
  color: var(--ivory);
  background: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-300%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- type ---------- */

.display,
.mono-xl,
.mono-lg,
.box-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.display,
.mono-xl {
  font-size: clamp(4.5rem, 24vw, 13rem);
}

.display-md,
.mono-lg,
.box-title {
  font-size: clamp(2.8rem, 12vw, 6rem);
}

.label,
.box-kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 3.5rem;
  padding: 0 2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ivory);
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 240ms var(--ease), color 240ms var(--ease), transform 240ms var(--ease);
}

.button:hover {
  color: var(--ink);
  background: transparent;
}

.button:active {
  transform: scale(0.98);
}

.button-light {
  border-color: var(--ivory);
  color: var(--ink);
  background: var(--ivory);
}

.button-light:hover {
  color: var(--ivory);
  background: transparent;
}

.button-price {
  padding-left: 0.9rem;
  border-left: 1px solid currentColor;
  font-family: var(--text-serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.text-link {
  font-weight: 600;
  text-underline-offset: 0.3em;
}

/* ---------- header: white over the hero video, ivory everywhere else ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--bar) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--edge) 0;
  color: var(--ink);
  background: rgba(246, 241, 232, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
}

.bar.on-hero {
  color: var(--ivory);
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-color: transparent;
}

.monogram {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
}

.bar-cta {
  padding: 0.55rem 1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}

/* ---------- hero: full-screen video, words on the loaf ---------- */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: var(--ivory);
  background: var(--espresso);
}

.hero-photo {
  position: absolute;
  inset: 0;
}

.hero-photo video,
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* soft shade so the words read on flour-white */
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(23, 18, 14, 0.35) 0%, rgba(23, 18, 14, 0) 22%, rgba(23, 18, 14, 0) 45%, rgba(23, 18, 14, 0.72) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: 0.9rem;
  padding: 0 var(--edge) calc(2.5rem + env(safe-area-inset-bottom));
}

.hero .display {
  margin: 0.2rem 0 0.1rem -0.04em;
}

.hero-line {
  max-width: 22ch;
  margin-bottom: 1rem;
  font-family: var(--text-serif);
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  font-style: italic;
  line-height: 1.3;
}

/* ---------- band ---------- */

.band {
  padding: 1.1rem var(--edge);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.band-message {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-align: center;
  text-transform: uppercase;
}

.band-message span[aria-hidden] {
  color: var(--crust);
}

/* ---------- story ---------- */

.story {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(5rem, 16vw, 10rem) var(--edge);
}

.story .label {
  color: var(--crust);
}

.story-text {
  display: grid;
  gap: 1.1rem;
  max-width: 34rem;
  font-family: var(--text-serif);
  font-size: clamp(1.1rem, 4.3vw, 1.3rem);
  line-height: 1.6;
}

.story-lead {
  font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  line-height: 1.35;
}

.signature {
  margin-top: 0.75rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.signature::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  margin: 0 0.8rem 0.25rem 0;
  background: currentColor;
  vertical-align: middle;
}

/* ---------- alive: three videos ---------- */

.proof {
  padding: 0 0 clamp(4rem, 12vw, 7rem);
}

.series {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 0.75rem;
  padding: 0 var(--edge);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--edge);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* A sideways swipe moves the videos, never the browser's back gesture. */
  overscroll-behavior-x: contain;
}

.series::-webkit-scrollbar {
  display: none;
}

.shot {
  position: relative;
  scroll-snap-align: start;
}

.shot video,
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--cream);
}

/* On iPhone a video takes the touch for itself, so a swipe that starts on
   it stutters. The touch goes through to the row instead; a tap still
   lands on the figure, which starts a paused video. No long-press menu. */
.shot video {
  pointer-events: none;
  -webkit-touch-callout: none;
}

.shot figcaption {
  padding-top: 0.9rem;
  color: var(--muted);
  font-family: var(--text-serif);
  font-size: 1.05rem;
  font-style: italic;
}

/* play mark: only when the phone blocked autoplay (Low Power Mode) */
.shot.is-paused::after,
.hero-photo.is-paused::after,
.product-photo.is-paused::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(246, 241, 232, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%2317120e'/%3E%3C/svg%3E") center / 1.6rem no-repeat;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.shot:has(video),
.hero-photo,
.product-photo {
  cursor: pointer;
}

/* ---------- statement ---------- */

.statement {
  padding: clamp(4rem, 12vw, 7rem) var(--edge);
  border-top: 1px solid var(--line);
  text-align: center;
}

.statement-line {
  font-family: var(--sans);
  font-size: clamp(1.25rem, 5.6vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ---------- the product (dark) ---------- */

.box {
  display: grid;
  color: var(--on-dark);
  background: var(--espresso);
}

.box-media img {
  width: 100%;
  height: auto;
  max-height: 70svh;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.box-block {
  display: grid;
  justify-items: start;
  gap: 1.1rem;
  padding: clamp(3rem, 10vw, 6rem) var(--edge) clamp(4rem, 12vw, 7rem);
}

.box .label {
  color: var(--on-dark-muted);
}

.box-voice {
  max-width: 24ch;
  font-family: var(--text-serif);
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  font-style: italic;
  line-height: 1.35;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin: 0.25rem 0 0.75rem;
  font-family: var(--text-serif);
  font-size: 2.4rem;
  line-height: 1;
}

.price-note {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.box .price-note {
  color: var(--on-dark-muted);
}

/* ---------- footer ---------- */

.foot {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding: 4rem var(--edge) calc(6.5rem + env(safe-area-inset-bottom));
  text-align: center;
}

.foot-mark {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 2.6rem;
}

.foot-icons {
  display: flex;
  gap: 1rem;
}

.foot-icons a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
}

.foot-icons svg {
  width: 1.4rem;
  height: 1.4rem;
}

.copy {
  width: 100%;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.copy-founder {
  margin-top: -0.75rem;
}

.copy-founder a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-underline-offset: 0.35em;
}

/* ---------- floating adopt pill (phones) ---------- */

.dock {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  left: 1rem;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  border-radius: 999px;
  color: var(--ivory);
  background: var(--ink);
  box-shadow: 0 10px 30px rgba(23, 18, 14, 0.25);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity 300ms var(--ease), transform 400ms var(--ease);
}

.dock.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* ---------- reveal (only with scripting) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- product page ---------- */

.product {
  padding-top: calc(var(--bar) + env(safe-area-inset-top));
}

.product-photo {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.product-photo video,
.product-photo img {
  width: 100%;
  height: auto;
  max-height: 58svh;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-info {
  display: grid;
  justify-items: start;
  gap: 1rem;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.5rem var(--edge) 4rem;
}

.product-info .box-kicker {
  color: var(--crust);
}

.product-info .price {
  color: var(--ink);
}

.ship {
  display: grid;
  gap: 0.5rem;
  justify-self: stretch;
  margin-top: 0.5rem;
  border: 0;
}

.ship legend {
  margin-bottom: 0.7rem;
  padding: 0;
  color: var(--muted);
}

.ship-opt {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  align-items: baseline;
  min-height: 3.6rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}

.ship-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ship-opt:has(input:checked) {
  border-color: var(--ink);
  background: var(--cream);
}

.ship-opt:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.ship-where {
  font-weight: 600;
}

.ship-how {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.75rem;
}

.ship-price {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--text-serif);
  font-size: 1.15rem;
}

.buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  justify-self: stretch;
  margin-top: 0.5rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.qty-btn {
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 1.3rem;
  cursor: pointer;
}

.qty-value {
  min-width: 2rem;
  font-family: var(--text-serif);
  font-size: 1.2rem;
  text-align: center;
}

.total {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.total-value {
  margin-left: 0.5rem;
  color: var(--ink);
  font-family: var(--text-serif);
  font-size: 1.6rem;
  letter-spacing: 0;
}

.product-info .adopt-link {
  justify-self: stretch;
  margin-top: 0.5rem;
}

.checkout {
  justify-self: stretch;
  width: 100%;
  min-height: 20rem;
  margin-top: 0.5rem;
  scroll-margin-top: calc(var(--bar) + 1rem);
}

.checkout-note {
  justify-self: stretch;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  color: #7a1f12;
  background: #fbeae6;
  font-size: 0.85rem;
}

.checkout-back {
  justify-self: start;
  padding: 0.75rem 0;
  border: 0;
  color: var(--ink);
  background: none;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: underline;
  text-transform: uppercase;
  text-underline-offset: 0.35em;
  cursor: pointer;
}

/* ---------- thank-you + 404 ---------- */

.thanks,
.adopt {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1.25rem;
  min-height: 75vh;
  min-height: 75svh;
  padding: calc(var(--bar) + 3rem) var(--edge) 3rem;
  text-align: center;
}

.thanks p:not(.box-kicker) {
  max-width: 32ch;
  font-family: var(--text-serif);
  font-size: 1.2rem;
}

/* ---------- tablet + desktop ---------- */

@media (min-width: 720px) {
  .series {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    gap: 1.25rem;
    max-width: 80rem;
    margin: 0 auto;
    overflow: visible;
  }
}

@media (min-width: 960px) {
  /* desktop: words on espresso left, the (portrait) video sharp on the right */
  .hero {
    grid-template-columns: 1fr minmax(0, calc(100svh * 0.8));
    align-items: center;
  }

  .hero-photo {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    height: 100svh;
  }

  .hero-photo::before {
    background: linear-gradient(90deg, rgba(33, 26, 20, 0.5) 0%, rgba(33, 26, 20, 0) 25%);
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    padding: var(--bar) var(--edge) 0;
  }

  .hero .display {
    font-size: clamp(6rem, 12vw, 12rem);
  }

  .story {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
    column-gap: 5rem;
  }

  .story .label {
    grid-column: 1 / -1;
  }

  .story-text {
    grid-column: 2;
    grid-row: 2;
  }

  .box {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .box-media img {
    max-height: none;
    height: 100%;
  }

  .product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    min-height: 100svh;
  }

  .product-photo {
    position: sticky;
    top: var(--bar);
  }

  .product-photo video {
    max-height: calc(100svh - var(--bar));
    height: calc(100svh - var(--bar));
  }

  .product-info {
    padding: 4rem var(--edge);
  }

  .dock {
    display: none;
  }
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
