/* Artifact's launch page. Darkroom: deep ink, the logo's safelight pink,
   silver type. The examples are mock-ups of the app drawn at 640×400 and
   scaled to fit (site.js), filled with tourart.js's drawn pictures. */

/* The fonts are served with the page (fonts/, SIL Open Font License, their
   OFL-*.txt beside them): a visitor's browser asks no one else for them
   (decision 20261115ava7). Variable fonts: one file covers every weight. */
@font-face { font-family: "Bodoni Moda"; src: url("fonts/BodoniModa.ttf") format("truetype"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("fonts/BodoniModa-Italic.ttf") format("truetype"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/SchibstedGrotesk.ttf") format("truetype"); font-weight: 400 900; font-style: normal; font-display: swap; }

:root {
  --ink: #100f13;
  --ink2: #17161b;
  --ink3: #1f1e24;
  --line: #2b2a31;
  --line2: #3a3841;
  --silver: #ebe8e3;
  --fog: #a29ea8;
  --faint: #7b7782;
  --safe: #ff9aa2;
  --amber: #f3b544;
  --ok: #4fd18b;
  --mark: rgba(243, 181, 68, .28);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", ui-monospace, Consolas, monospace;
  --gut: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--silver);
  font: 400 17px/1.55 var(--sans);
  overflow-x: hidden;
}
/* The safelight: one soft glow over the top of the page. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  background: radial-gradient(60% 520px at 70% -120px, rgba(255, 154, 162, .16), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--safe); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }

/* The logo, drawn in the page's colours. */
svg .out { stroke: var(--silver); stroke-width: 2; }
svg .lk { stroke: var(--silver); stroke-width: 1.2; opacity: .6; }
svg .in { stroke: var(--safe); stroke-width: 1.5; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: .01em; }
.brand svg { width: 28px; height: 28px; }
.soon { color: var(--fog); font-size: 14px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-top: clamp(24px, 6vw, 72px); padding-bottom: clamp(64px, 10vw, 140px); }
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: .98;
  letter-spacing: -.02em;
  margin: 0 0 28px;
  font-variation-settings: "opsz" 96;
  text-wrap: balance;
}
.lede { margin: 0; color: var(--fog); font-size: clamp(17px, 1.5vw, 20px); max-width: 30ch; }

/* Section heads: a sentence, set in the serif's italic. */
.sec {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 46px);
  color: var(--fog);
  margin: 0 auto clamp(36px, 5vw, 64px);
  font-variation-settings: "opsz" 48;
}

/* Pains */
.pains { padding-bottom: clamp(56px, 8vw, 120px); }
.pain { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(28px, 4vw, 56px); }
.pain + .pain { border-top: 1px solid var(--line); }
.ask h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 16px;
  font-variation-settings: "opsz" 72;
  text-wrap: balance;
}
.ask p { margin: 0; color: var(--fog); max-width: 34ch; }

/* A stage holds one example, drawn at 640×400 and scaled by site.js. */
.stage { margin: 0; position: relative; aspect-ratio: 16 / 10; width: 100%; }
.stage > .sc { position: absolute; left: 0; top: 0; width: 640px; height: 400px; transform-origin: 0 0; font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif; color: var(--silver); }
.sc * { box-sizing: border-box; }
.sc > *, .sc .body > * { position: absolute; }

/* The app's window */
.win { inset: 0; border: 1px solid var(--line2); border-radius: 12px; background: var(--ink2); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 154, 162, .03); }
.win .bar { position: absolute; left: 0; right: 0; top: 0; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--ink); }
.win .bar svg { width: 18px; height: 18px; flex: none; }
.q { flex: 1; height: 26px; border: 1px solid var(--line2); border-radius: 7px; background: var(--ink3); display: flex; align-items: center; gap: 2px; padding: 0 10px; font: 12.5px var(--mono); white-space: nowrap; overflow: hidden; transition: border-color .3s, background .3s; }
.q .ph { color: var(--faint); font-family: var(--sans); }
.caret { display: inline-block; width: 1.5px; height: 14px; background: var(--safe); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.enter { margin-left: 8px; font: 600 10.5px var(--sans); color: var(--safe); border: 1px solid var(--safe); border-radius: 999px; padding: 0 7px; }
.win .body { position: absolute; left: 0; right: 0; top: 40px; bottom: 24px; }
.win .foot { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; border-top: 1px solid var(--line); background: var(--ink); display: flex; align-items: center; gap: 14px; padding: 0 12px; font-size: 11px; color: var(--faint); }
.win .foot .ms { color: var(--ok); font-variant-numeric: tabular-nums; }


.rows { left: 14px; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--ink3); font-size: 12.5px; transition: opacity .4s, transform .4s, background .3s, border-color .3s, max-height .5s, padding .5s, margin .5s; }
.row .th { width: 64px; flex: none; border-radius: 5px; overflow: hidden; }
.row .th svg { display: block; width: 64px; height: 40px; }
/* An audio file's picture: its waveform, as in the app. */
.wv { display: flex; align-items: center; aspect-ratio: 16 / 10; width: 100%; background: var(--ink); color: var(--safe); padding: 0 8%; }
.wv svg, .row .th .wv svg { width: 100%; height: 60%; }
.tl .wv { height: 100%; aspect-ratio: auto; }
.tl svg { display: block; width: 100%; height: 100%; }
/* Smart search's results page: the Matched by column, then the rows. */
.facets { left: 0; top: 0; bottom: 0; width: 152px; border-right: 1px solid var(--line); padding: 12px 12px; font-size: 11.5px; display: flex; flex-direction: column; gap: 5px; }
.facets > b { font-size: 10.5px; color: var(--faint); font-weight: 600; margin-bottom: 4px; }
.fc { display: flex; justify-content: space-between; color: var(--faint); padding: 3px 6px; border-radius: 5px; }
.fc i { font-style: normal; font-variant-numeric: tabular-nums; }
.fc.on { color: var(--silver); }
.fc[data-c="Anything"].on { background: var(--ink3); }
.why em { font-style: normal; color: var(--safe); margin-right: 6px; }
.pill.tc { font: 11px var(--mono); color: var(--safe); border-color: var(--line2); }
.rows[data-r] { transition: opacity .25s; }
.row .th.sm { width: 44px; }
.row .th.sm svg { width: 44px; height: 27px; }
.row .ic { width: 26px; height: 26px; flex: none; color: var(--fog); }
.row .ic svg { width: 100%; height: 100%; display: block; }
.row .nm { flex: 1; min-width: 0; }
.row .nm b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .nm span { color: var(--faint); font-size: 11.5px; }
.row .tc { font: 11.5px var(--mono); color: var(--safe); }
.row mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 2px; }
.row .num { font-variant-numeric: tabular-nums; font-weight: 600; }
.row .up { color: var(--amber); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line2); background: var(--ink3); white-space: nowrap; }
.pill.acc { border-color: var(--safe); color: var(--safe); }
.card { border: 1px solid var(--line2); border-radius: 10px; background: var(--ink2); padding: 14px 16px; }

/* Entrances inside a stage (each one answers the visitor scrolling to it). */
.fade { opacity: 0; transform: translateY(6px); }
.pop { opacity: 0; transform: scale(.94); }
.fade, .pop { transition: opacity .45s, transform .45s cubic-bezier(.2, 1.2, .4, 1), border-color .3s, background .3s; }
.on { opacity: 1; transform: none; }
.still .sc *, .still .sc *::before { transition: none !important; animation: none !important; }

/* Creed */
.creed { padding: clamp(56px, 8vw, 120px) 0; border-top: 1px solid var(--line); background: linear-gradient(var(--ink2), var(--ink)); }
.tenets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px); }
.tenet h3 { font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.15; margin: 0 0 10px; font-variation-settings: "opsz" 36; }
.tenet p { margin: 0 0 18px; color: var(--fog); font-size: 15.5px; }
.proof { font-size: 13px; color: var(--fog); border-top: 1px solid var(--line); padding-top: 14px; }
.proof-read div { display: flex; gap: 8px; align-items: baseline; }
.proof-read span { width: 64px; color: var(--faint); }
.proof-read b { color: var(--silver); font-variant-numeric: tabular-nums; font-weight: 600; }
.proof-read div + div b { color: var(--ok); }
.proof-trash .row { justify-content: space-between; }
.proof-trash u { color: var(--safe); text-decoration: none; font-weight: 600; }
.proof-speed { display: flex; align-items: baseline; gap: 10px; }
.proof-speed b { white-space: nowrap; font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--ok); line-height: 1; }
.proof-local { display: flex; align-items: center; gap: 8px; }
.proof-local .cut { flex: 1; max-width: 70px; height: 0; border-top: 1px dashed var(--line2); position: relative; }
.proof-local .cut::after { content: "×"; position: absolute; left: 50%; top: -11px; transform: translateX(-50%); color: #ff6060; font-weight: 700; }
.pill.off { color: var(--faint); border-style: dashed; }
.proof-coll { display: flex; flex-wrap: wrap; gap: 6px; }

/* Facts: a contact sheet, frames numbered along the film's edge. */
.facts { padding: clamp(56px, 8vw, 120px) 0; }
.sheet { list-style: none; margin-top: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: frame; }
.sheet li {
  counter-increment: frame;
  position: relative;
  padding: 34px 22px 34px;
  background:
    radial-gradient(circle, var(--ink) 3px, transparent 3.5px) 0 7px / 18px 14px repeat-x,
    radial-gradient(circle, var(--ink) 3px, transparent 3.5px) 0 calc(100% - 7px) / 18px 14px repeat-x,
    #1a1418;
  border-right: 1px solid #0a090c;
  min-height: 200px;
  display: flex;
  align-items: center;
}
.sheet li::before { content: counter(frame) "A"; position: absolute; right: 12px; top: 18px; font: 600 10px var(--mono); color: var(--amber); opacity: .8; letter-spacing: .06em; }
.sheet li p { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.32; font-variation-settings: "opsz" 28; color: #e6dfe0; }
.sheet li b { font-weight: 600; color: var(--safe); }

/* End */
.end { text-align: center; padding-top: clamp(48px, 8vw, 110px); padding-bottom: 56px; border-top: 1px solid var(--line); }
.end-mark { width: 72px; height: 72px; }
.end-name { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); font-weight: 500; margin: 14px 0 0; line-height: 1; }
.end-soon { color: var(--fog); margin: 12px 0 0; font-size: 18px; }
.end-small { color: var(--faint); margin: 48px 0 0; font-size: 13px; }

@media (max-width: 860px) {
  .hero, .pain { grid-template-columns: minmax(0, 1fr); }
  /* On a phone the mock-ups take the full width, so their text stays as large as it can. */
  .stage { width: calc(100% + 2 * var(--gut)); margin-left: calc(-1 * var(--gut)); }
  .stage .win { border-radius: 0; border-left: 0; border-right: 0; }
  .soon { font-size: 13px; text-align: right; }
}
/* Five beliefs: one row, else three and two, else one column. */
@media (max-width: 1100px) {
  .tenets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sheet, .tenets { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
}
