/* Colours, type and radii from the Figma board "Allbum · Style direction" (Darkroom Editorial).
   The website uses the Paper background with Ink text, as the design brief says; the product
   itself appears in dark Ink cards. */
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --ink: #0e0d0c;
  --darkroom: #1a1816;
  --raised: #26231f;
  --line: #35312c;
  --paper: #f5f0e6;
  --ash: #9c958a;
  --flash: #ffc83d;
  --safelight: #ff4530;
  --developed: #3ddc84;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pill: 28px;
  --card: 28px;
  --tile: 20px;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-size-adjust: from-font;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(3rem, 1.6rem + 6vw, 6.25rem); }
h2 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 4rem); }
h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); }
p { margin: 0; text-wrap: pretty; }
em { font-style: italic; }

a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--flash); }

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (width >= 48rem) { .wrap { padding-inline: 2.5rem; } }

.muted { color: var(--line); }
.dark { background: var(--ink); color: var(--paper); }
.dark .muted { color: var(--ash); }

/* Header */
.site-header { padding-block: 1.25rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { font-family: var(--serif); font-size: 2rem; line-height: 1; text-decoration: none; }
.header-link { font-weight: 600; font-size: 0.9375rem; }

/* Hero */
.hero { padding-block: 2rem 4rem; }
.hero .wrap { display: grid; gap: 3rem; align-items: center; }
@media (width >= 60rem) { .hero .wrap { grid-template-columns: 1.15fr 1fr; gap: 4rem; } }
.hero h1 { margin-block-end: 1.25rem; }
.lede { font-size: 1.1875rem; max-width: 34rem; margin-block-end: 2rem; }

/* Waitlist form */
.waitlist { max-width: 30rem; }
.field { display: flex; flex-direction: column; gap: 0.375rem; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.row input { flex: 1 1 14rem; }
input[type="email"] {
  font: inherit;
  font-size: max(1rem, 1em);
  min-height: 3.25rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--line);
  border-radius: var(--pill);
  background: #fff;
  color: var(--ink);
}
input[type="email"]:user-invalid { border-color: var(--safelight); }
.button {
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  min-height: 3.25rem;
  padding: 0.875rem 1.5rem;
  border: 0;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: opacity 150ms;
}
.button:hover { opacity: 0.88; }
.button:disabled { opacity: 0.6; cursor: progress; }
.dark .button { background: var(--paper); color: var(--ink); }
.dark input[type="email"] { background: var(--raised); color: var(--paper); border-color: var(--line); }
.error-msg { display: none; font-size: 0.9375rem; }
.error-msg::before { content: "! "; font-weight: 700; color: var(--safelight); }
.field:has(input:user-invalid) .error-msg { display: block; }
.hint { font-size: 0.875rem; margin-block-start: 0.75rem; }
.turnstile:not(:empty) { margin-block-start: 0.75rem; }
.status { margin-block-start: 0.75rem; font-weight: 600; }
.status:empty { display: none; }
.status[data-tone="error"]::before { content: "! "; color: var(--safelight); }
.waitlist[data-state="done"] .field,
.waitlist[data-state="done"] .hint,
.waitlist[data-state="done"] .turnstile { display: none; }
.waitlist[data-state="done"] .status { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.2; margin: 0; }
.waitlist[data-state="done"] .status::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--developed);
  margin-inline-end: 0.625rem;
  vertical-align: middle;
}

/* Phone and product pieces (from the Figma sample screens) */
.phone {
  background: var(--ink);
  color: var(--paper);
  border-radius: 44px;
  padding: 1.5rem 1.25rem 1.25rem;
  max-width: 24rem;
  margin-inline: auto;
  width: 100%;
  box-shadow: 0 30px 60px -30px rgb(14 13 12 / 0.55);
}
.phone-title { text-align: center; font-size: 1.75rem; }
.phone-sub { text-align: center; color: var(--ash); font-size: 0.8125rem; margin-block: 0.25rem 1rem; }
.viewfinder {
  aspect-ratio: 3 / 4;
  border-radius: var(--tile);
  background: linear-gradient(#7fa6c9, #e9d3b0);
  display: grid;
  place-items: center;
}
.focus { width: 30px; height: 30px; border: 2px solid var(--flash); border-radius: 50%; }
.controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-block-start: 1.25rem; }
.counter { justify-self: start; display: grid; justify-items: center; gap: 0.25rem; }
.counter-window {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a4640, var(--raised) 60%);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--flash);
}
.counter small { font-size: 0.6875rem; color: var(--ash); }
.shutter { width: 72px; height: 72px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 4px var(--ink), 0 0 0 7px var(--flash); }
.last-shot { justify-self: end; width: 44px; height: 56px; border-radius: 12px; background: linear-gradient(#4a120e, #140807); }

.steps { padding-block: 4rem; }
.steps h2 { margin-block-end: 2.5rem; max-width: 40rem; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (width >= 60rem) { .step-list { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--ink); color: var(--paper); border-radius: var(--card); padding: 1.5rem; display: grid; grid-template-rows: auto auto 1fr; gap: 0.75rem; counter-increment: step; }
.step-num { font-family: var(--serif); font-style: italic; color: var(--flash); font-size: 1.25rem; }
.step-num::before { content: counter(step) ". "; }
.step p { color: var(--ash); }
.step-visual { align-self: end; margin-block-start: 1rem; }

.big-count { font-family: var(--serif); font-style: italic; font-size: 5rem; line-height: 1; color: var(--flash); }
.roll-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.roll-grid span { aspect-ratio: 3 / 4; border-radius: 8px; background: linear-gradient(#4a120e, #140807); }
.roll-grid span:nth-child(4n + 2) { opacity: 0.88; }
.roll-grid span:nth-child(4n + 3) { opacity: 0.76; }
.roll-grid span:nth-child(4n) { opacity: 0.64; }
.album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.album-grid span { aspect-ratio: 3 / 4; border-radius: 12px; }
.album-grid span:nth-child(1) { background: linear-gradient(#e8a25b, #7a3b2e); }
.album-grid span:nth-child(2) { background: linear-gradient(#7fa6c9, #e9d3b0); }
.album-grid span:nth-child(3) { background: linear-gradient(to right, #2a1e1a, #c7754a); }
.album-grid span:nth-child(4) { background: linear-gradient(#5e7b4c, #c9b77a); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; font-size: 0.875rem; margin-block-start: 0.875rem; }
.meta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--developed); }
.chip { background: var(--raised); color: var(--ash); border-radius: 14px; padding: 0.3rem 0.625rem; font-size: 0.75rem; font-weight: 500; }

/* Shared rolls */
.shared { padding-block: 5rem; }
.shared .wrap { display: grid; gap: 3rem; }
@media (width >= 60rem) { .shared .wrap { grid-template-columns: 1fr 1fr; align-items: start; } }
.shared h2 { margin-block-end: 1.25rem; }
.shared p + p { margin-block-start: 1rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.facts li { background: var(--darkroom); border-radius: var(--card); padding: 1.25rem 1.5rem; }
.facts strong { display: block; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.75rem; line-height: 1.15; color: var(--flash); }

/* Friends and the promise */
.friends, .promise { padding-block: 4.5rem; }
.friends h2, .promise h2 { margin-block-end: 1.25rem; }
.friends p, .promise p { font-size: 1.1875rem; max-width: 40rem; }
.promise p + p { margin-block-start: 1rem; }
.promise { border-block-start: 1px solid rgb(14 13 12 / 0.15); }

/* Closing waitlist */
.closing { padding-block: 5rem; }
.closing h2 { margin-block-end: 1rem; }
.closing .lede { margin-block-end: 1.75rem; }

/* Footer */
.site-footer { padding-block: 2rem 3rem; font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* Text pages (privacy, 404) */
.prose { padding-block: 2rem 5rem; }
.prose .wrap { max-width: 44rem; }
.prose h1 { font-size: clamp(2.75rem, 2rem + 3vw, 4rem); margin-block-end: 1.5rem; }
.prose h2 { font-size: 1.75rem; margin-block: 2.25rem 0.75rem; }
.prose p, .prose li { max-width: 65ch; }
.prose p + p { margin-block-start: 1rem; }
.prose ul { padding-inline-start: 1.25rem; }
