/*
 * Ambry landing page, in the app's own style (core/ui/theme, docs/design/README.md): Maison by day and Noir by night,
 * no accent colour, Cormorant Garamond for titles, Manrope for reading, DM Mono for small labels. The fonts and images
 * are the app's own files, served from this site: no scripts, no third-party requests.
 */
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant_garamond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant_garamond_italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/dm_mono_regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --canvas: #fbf9f7;
  --card: #f3efec;
  --ink: #1d1a1f;
  --ink-2: #6e666d;
  --line: #e6e0e3;
  --on-ink: #ffffff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --gutter: 20px;
  --max: 1080px;
  --family-woods: url("/img/family_woods_atelier.webp");
  --family-citrus: url("/img/family_citrus_atelier.webp");
  --family-flowers: url("/img/family_flowers_atelier.webp");
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #141114;
    --card: #1d1a1d;
    --ink: #f3eee9;
    --ink-2: #9b9097;
    --line: #2e282d;
    --on-ink: #141114;
    --family-woods: url("/img/family_woods_nocturne.webp");
    --family-citrus: url("/img/family_citrus_nocturne.webp");
    --family-flowers: url("/img/family_flowers_nocturne.webp");
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 17px/1.6 var(--sans); }
a { color: inherit; text-underline-offset: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.label { font: 400 13px/1.4 var(--mono); letter-spacing: 0.04em; color: var(--ink-2); }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.wordmark { font: 500 30px/1 var(--serif); letter-spacing: 0.01em; text-decoration: none; }
nav.lang { font: 400 13px/1 var(--mono); color: var(--ink-2); }
nav.lang a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 6px; text-decoration: none; }
nav.lang a[aria-current] { color: var(--ink); text-decoration: underline; }

/* Hero: the promise on the left, the app's own first screen in a phone on the right. */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding: 40px 0 80px; }
.eyebrow { margin: 0 0 20px; }
h1 { font: 500 clamp(46px, 7vw, 80px)/0.98 var(--serif); margin: 0 0 24px; letter-spacing: -0.02em; }
h1 em, h2 em, h3 em { font-style: italic; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 32em; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none;
}
.link { min-height: 48px; display: inline-flex; align-items: center; font-weight: 600; text-decoration: underline; }
.note { margin-top: 20px; }

.phone {
  justify-self: center; width: min(100%, 320px); aspect-ratio: 390 / 760; border-radius: 40px; overflow: hidden;
  border: 8px solid var(--ink); background: var(--canvas); display: flex; flex-direction: column;
}
.phone .shot {
  position: relative; flex: 1 1 auto; color: #ffffff;
  background: url("/img/hero.webp") 50% 30% / cover no-repeat;
  display: flex; flex-direction: column; justify-content: space-between; padding: 22px 18px;
}
.phone .shot::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10, 8, 12, 0.35) 0%, rgba(10, 8, 12, 0) 30%, rgba(10, 8, 12, 0) 45%, rgba(10, 8, 12, 0.85) 100%);
}
.phone .shot > * { position: relative; }
.phone .top { display: flex; justify-content: space-between; font: 400 10px/1 var(--mono); letter-spacing: 0.04em; }
.phone .top span { background: rgba(10, 8, 12, 0.45); padding: 3px 6px; border-radius: 4px; }
.phone .title { font: 500 34px/0.95 var(--serif); margin: 0 0 10px; letter-spacing: -0.01em; }
.phone .why { font-size: 12px; line-height: 1.45; opacity: 0.9; margin: 0 0 14px; }
.phone .buttons { display: flex; gap: 12px; align-items: center; font-size: 12px; font-weight: 600; }
.phone .buttons b { background: #ffffff; color: #1d1a1f; border-radius: 999px; padding: 9px 14px; white-space: nowrap; }
.phone .buttons i { font-style: normal; text-decoration: underline; text-underline-offset: 3px; }
.phone .tabs {
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 10px 6px 14px; border-top: 1px solid var(--line);
  font-size: 9px; color: var(--ink-2); text-align: center;
}
.phone .tabs span:first-child { color: var(--ink); font-weight: 700; }

section { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { font: 500 clamp(34px, 4.5vw, 50px)/1.05 var(--serif); margin: 0 0 36px; letter-spacing: -0.01em; }

/* Three steps, each with the scent family artwork the app uses for its notes. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--card); border-radius: 20px; padding: 24px; }
.steps .art { display: block; width: 64px; height: 64px; border-radius: 50%; background: var(--family-woods) 50% 50% / cover; margin-bottom: 20px; }
.steps li:nth-child(2) .art { background-image: var(--family-citrus); }
.steps li:nth-child(3) .art { background-image: var(--family-flowers); }
.steps .label { display: block; margin-bottom: 6px; }
.steps h3 { font: 500 26px/1.15 var(--serif); margin: 0 0 8px; }
.steps p { margin: 0; color: var(--ink-2); }

/* The journey as the app's diary: hairline rows, the stage on the left in mono. */
.journey { border-top: 1px solid var(--line); }
.journey div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.journey h3 { font: 500 28px/1.1 var(--serif); margin: 0; }
.journey p { margin: 0; color: var(--ink-2); }

.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; padding: 0; margin: 0; list-style: none; }
.promises li { padding: 18px 0; border-top: 1px solid var(--line); }
.promises strong { display: block; font-weight: 600; margin-bottom: 4px; }
.promises span { color: var(--ink-2); }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 15px; color: var(--ink-2); }
footer .row { display: flex; flex-wrap: wrap; gap: 0 24px; }
footer a { min-height: 48px; display: inline-flex; align-items: center; }

.doc { max-width: 720px; padding: 32px 0 64px; }
.doc h1 { font-size: clamp(42px, 6vw, 60px); }
.doc h2 { font-size: 30px; margin: 40px 0 12px; }
.doc .fill { background: var(--card); padding: 2px 6px; border-radius: 6px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; }
  .phone { width: min(100%, 280px); }
  .steps, .promises { grid-template-columns: 1fr; }
  .journey div { grid-template-columns: 1fr; gap: 4px; }
}
