/* Faber, from its launch film: warm near-black, a soft orange and indigo glow,
   a sans for the work and an italic serif for "É só pedir." */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
}

:root {
  --bg: #0e0b0a;
  --text: #f4efe8;
  --muted: #aca198;
  --line: rgb(244 239 232 / 0.12);
  --accent: #f2955f;      /* the film's italic orange; 7.9:1 on --bg */
  --button: #c8410e;      /* white label 4.98:1 */
  --button-hover: #dc4f17;
  --card: #f4eee5;        /* the film's request card */
  --card-ink: #2b241f;

  --sans: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px; --s24: 96px; --s32: 128px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: clip;
}
/* The film's light: two soft glows that stay put, and a little grain. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(42rem 30rem at 12% 8%, rgb(176 72 22 / 0.30), transparent 70%),
    radial-gradient(40rem 32rem at 92% 30%, rgb(54 50 128 / 0.30), transparent 70%),
    radial-gradient(36rem 26rem at 40% 100%, rgb(150 60 20 / 0.18), transparent 70%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, p, dl, dd, figure { margin: 0; }
h1, h2 { font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 2 * var(--s6)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: var(--s3); background: var(--card); color: var(--card-ink); padding: var(--s2) var(--s4); border-radius: 8px; }
.skip:focus { left: var(--s3); z-index: 10; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 var(--s8);
  border: 0; border-radius: 12px;
  background: var(--button); color: #fff;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 28px rgb(200 65 14 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.18);
  transition: background-color 0.2s, transform 0.2s;
}
.btn:hover { background: var(--button-hover); }
.btn:active { transform: translateY(1px); }
.link { color: var(--muted); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; transition: color 0.2s; }
.link:hover { color: var(--text); }
.btn-quiet { background: transparent; border: 1px solid rgb(244 239 232 / 0.28); box-shadow: none; }
.btn-quiet:hover { background: rgb(244 239 232 / 0.08); }

/* Header */
.top { display: flex; align-items: center; gap: var(--s6); padding: var(--s6) 0; }
.wordmark { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.05em; text-decoration: none; line-height: 1; }
.languages { display: flex; gap: var(--s2); margin-left: auto; }
.languages a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); color: var(--muted); font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.languages a[aria-current="true"] { color: var(--text); }
.top-cta { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; font-size: 0.9375rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.languages + .top-cta { margin-left: 0; }
.top-cta:hover { border-color: var(--text); }

/* Hero */
.hero { padding: var(--s16) 0 0; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5.25rem); max-width: 14ch; font-weight: 650; }
.tagline { margin-top: var(--s3); font: italic 400 clamp(2.75rem, 7.6vw, 5.75rem)/1 var(--serif); color: var(--accent); letter-spacing: -0.01em; }
.lead { margin-top: var(--s8); max-width: 34rem; color: var(--muted); font-size: 1.1875rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s8); margin-top: var(--s8); }

/* Product shots: real frames from the film */
.shot picture { display: block; }
.shot img {
  display: block; width: 100%; height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(0 0 0 / 0.4);
}
.shot-hero { margin-top: var(--s16); }
.shot-hero img { border-radius: 18px; }

/* Film */
.film { padding: var(--s32) 0 0; }
.film h2 { margin-bottom: var(--s8); }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; border: 1px solid var(--line); }

/* What you can ask: the request first, in the film's card, then what it makes. */
.asks { padding: var(--s32) 0 0; display: grid; gap: var(--s32); }
.ask-row { display: grid; gap: var(--s8); align-items: center; }
.ask {
  display: block; max-width: 30rem;
  background: var(--card); color: var(--card-ink);
  border-radius: 14px; padding: var(--s4) var(--s6);
  font-size: 1.0625rem; font-weight: 500; line-height: 1.4;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.4);
}
.ask-label { display: block; margin-bottom: 4px; color: #8a7d72; font-size: 0.8125rem; font-weight: 500; }
.ask-text h2 { margin-top: var(--s8); font-size: clamp(1.625rem, 3vw, 2.25rem); }
.ask-text > p:last-child { margin-top: var(--s3); max-width: 28rem; color: var(--muted); }

/* What Faber takes care of */
.ours { padding: var(--s32) 0 0; display: grid; gap: var(--s8); }
.ours-list { display: grid; border-top: 1px solid var(--line); }
.ours-list div { display: grid; gap: var(--s2); padding: var(--s6) 0; border-bottom: 1px solid var(--line); }
.ours-list dt { font-weight: 600; }
.ours-list dd { color: var(--muted); }

/* Request access */
.access { padding: var(--s32) 0 var(--s24); display: grid; gap: var(--s12); align-items: start; }
.access h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.access-text p { margin-top: var(--s4); max-width: 32rem; color: var(--muted); }
.form { display: grid; gap: var(--s6) var(--s4); }
.field { display: grid; gap: var(--s2); }
.field label { font-size: 0.9375rem; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
.form input, .form textarea {
  width: 100%; min-height: 52px; padding: var(--s3) var(--s4);
  background: rgb(244 239 232 / 0.06); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 1rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.form textarea { resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #82786f; }
.form input:hover, .form textarea:hover { border-color: rgb(244 239 232 / 0.24); }
.form input:focus-visible, .form textarea:focus-visible { outline: none; border-color: var(--accent); background: rgb(244 239 232 / 0.09); }
.form .btn { justify-self: start; }
.form-note { grid-column: 1 / -1; color: var(--muted); font-size: 0.875rem; }
.form-note a { color: var(--text); }
.sent { border: 1px solid var(--line); border-radius: 12px; padding: var(--s6); font-size: 1.125rem; }

/* Footer */
.foot { display: grid; gap: var(--s3); padding: var(--s8) 0 var(--s12); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.foot-brand { display: flex; align-items: baseline; gap: var(--s4); margin-bottom: var(--s2); }
.foot .wordmark { color: var(--text); font-size: 1.375rem; }
.foot-tag { font: italic 400 1.375rem/1 var(--serif); color: var(--accent); }
.foot a { color: var(--text); }

/* Privacy page */
.legal { max-width: 46rem; padding: var(--s12) 0 var(--s24); }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.legal-date { margin-top: var(--s3); color: var(--muted); }
.legal h2 { margin-top: var(--s12); font-size: 1.375rem; letter-spacing: -0.01em; }
.legal p { margin-top: var(--s3); color: var(--muted); }
.legal a { color: var(--text); }

@media (max-width: 559px) {
  .top { gap: var(--s3); }
  .top-cta { display: none; }
  .hero { padding-top: var(--s8); }
  .shot-hero { margin-top: var(--s12); }
  .film, .asks, .ours, .access { padding-top: var(--s24); }
  .asks { gap: var(--s24); }
}
@media (min-width: 860px) {
  .ask-row { grid-template-columns: 5fr 7fr; gap: var(--s16); }
  .ask-row:nth-child(even) { grid-template-columns: 7fr 5fr; }
  .ask-row:nth-child(even) .ask-text { order: 2; }
  .ours { grid-template-columns: 5fr 7fr; gap: var(--s16); }
  .ours-list div { grid-template-columns: 12rem 1fr; gap: var(--s6); }
  .access { grid-template-columns: 5fr 7fr; gap: var(--s16); }
  .form { grid-template-columns: 1fr 1fr; }
  .field-wide, .form .btn { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .link, .form input, .form textarea { transition: none; }
}
