/* Driff site: what every page shares. The icon's world: warm basalt black, alabaster type,
   amber light. Each page adds its own stylesheet; drawn app screens live in app.css and the
   Mac in mac.css. See docs/landing-storyboard.md (Site). */

/* One family for everything: Google Sans Flex (OFL), with optical sizes, so large type gets
   its display cut. The recap cards and legal prose keep a serif only where the app does. */
@font-face { font-family: "Google Sans Flex"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/google-sans-flex.woff2) format("woff2"); }

:root {
  --bg: #0a0908;
  --raise: #12100e;
  --ink: #f4ede2;
  --ink-2: #bdb4a7;
  --ink-3: #8c8377;
  --ink-4: #5d564d;
  --ink-5: #2f2b27;
  --line: rgba(244, 237, 226, .08);
  --line-2: rgba(244, 237, 226, .15);
  --amber: #f3b25e;
  --ember: #e08a3c;
  --copper: #b47a4c;
  /* The app's meaning colours (src/theme.ts) */
  --alert: #ff453a;
  --warn: #e6c35c;
  --good: #5fd38d;
  --sans: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* viewport-fit=cover lets the page run under a notch in landscape; the gutter keeps clear of it. */
  --gutter: max(24px, env(safe-area-inset-left), env(safe-area-inset-right));
  --max: 1080px;
}
@media (max-width: 700px) { :root { --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right)); } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* Fine grain over everything, like the icon's stone. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .93 0 0 0 0 .85 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 460; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 1.5px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
/* Glows reach past the edges; clip them here (clip, unlike hidden, keeps sticky working). */
main, .foot { position: relative; z-index: 1; overflow-x: clip; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.inline { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; transition: text-decoration-color .25s; }
.inline:hover { text-decoration-color: var(--ink-2); }

.embers { position: fixed; inset: 0; width: 100vw; height: 100lvh; z-index: 0; pointer-events: none; opacity: 0; }

/* Headlines: a line, then its answer in a quieter tone. */
.two .a, .two .b { display: block; }
.two .b { color: var(--ink-3); }
h1.two { font-size: clamp(42px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -.045em; }
h2.two { font-size: clamp(34px, 5vw, 66px); line-height: 1.06; letter-spacing: -.035em; }
h3.two { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -.03em; }

.head { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.sub { color: var(--ink-3); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; max-width: 33em; margin: 24px auto 0; }
.lede { color: var(--ink-2); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 29em; margin: 30px auto 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: 40px; }
.platforms { margin-top: 22px; font-size: 13px; color: var(--ink-3); }
.fine { font-size: 13px; line-height: 1.6; color: var(--ink-3); }

/* A section that starts a page (inner pages) */
.page-head { padding: clamp(150px, 24vh, 230px) var(--gutter) 0; text-align: center; }
.page-head .lede { margin-top: 26px; }

/* Small marks */
.new, .badge { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); transition: color .25s; }
.badge { margin-bottom: 26px; padding: 7px 14px; border-radius: 999px; font-size: 13px; box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(22, 19, 16, .5); }
.new i, .badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px 1px rgba(243, 178, 94, .7); }
.new:hover { color: var(--ink); }
.soon-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 450; letter-spacing: 0; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); vertical-align: middle; white-space: nowrap; }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .4s var(--ease); }
a:hover > .chev { transform: translateX(3px); }
.onward { text-align: center; margin-top: 40px; }
.onward a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); transition: color .25s; }
.onward a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 28px; border-radius: 999px;
  background: var(--ink); color: #15120f; font-size: 15px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: box-shadow .5s var(--ease), transform .5s var(--ease), background .3s;
}
.btn:hover { background: #fffaf2; box-shadow: 0 10px 40px -12px rgba(243, 178, 94, .45); }
.btn:active { transform: scale(.98); }
.btn.small { height: 40px; padding: 0 18px; font-size: 14px; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.line:hover { box-shadow: inset 0 0 0 1px var(--ink-4); }
.btn[aria-disabled="true"] { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.os { display: inline-flex; margin-right: 10px; }
.os svg { width: 16px; height: 16px; fill: currentColor; }
.btn.small .os { margin-right: 8px; }
.btn.small .os svg { width: 14px; height: 14px; }

/* Nav: the stone, a pill of links, Download. */
.nav {
  position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
}
.brand { justify-self: start; width: 40px; height: 40px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .6)); transition: transform .5s var(--ease); }
.brand:hover { transform: scale(1.06); }
.nav > .btn { justify-self: end; }
.pill {
  display: flex; align-items: center; gap: 2px; height: 40px; padding: 0 6px; border-radius: 999px;
  background: rgba(22, 19, 16, .62); box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
}
.pill a { padding: 0 14px; font-size: 14px; line-height: 40px; color: var(--ink-2); transition: color .25s; }
.pill a:hover, .pill a[aria-current="page"] { color: var(--ink); }
.menu-btn { display: none; align-items: center; gap: 8px; padding: 0 12px; height: 40px; font-size: 14px; color: var(--ink-2); }
.menu-btn i { display: block; width: 12px; height: 1.5px; background: currentColor; border-radius: 1px; transition: transform .4s var(--ease); }
.menu-btn i + i { margin: 0 0 0 -20px; transform: translateY(4px); }
.menu-btn i:first-child { transform: translateY(-2px); }
.menu {
  position: fixed; top: 64px; left: 50%; z-index: 39; width: min(320px, calc(100% - 32px));
  display: grid; padding: 10px; border-radius: 22px;
  background: rgba(22, 19, 16, .94); box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px -20px #000;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden; transform: translate(-50%, -8px) scale(.98);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.menu a { padding: 12px 16px; font-size: 17px; border-radius: 12px; color: var(--ink-2); }
.menu a:hover, .menu a[aria-current="page"] { background: rgba(255, 255, 255, .04); color: var(--ink); }
.menu-open .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.menu-open .menu-btn i:first-child { transform: translateY(1px) rotate(45deg); }
.menu-open .menu-btn i + i { transform: translateY(1px) rotate(-45deg); }
@media (max-width: 760px) {
  .pill a { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 760px), (pointer: coarse) {
  /* On a phone the page runs right under the nav; a dusk behind it keeps words from colliding with it. */
  .nav::before {
    content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: -26px; top: calc(-14px - env(safe-area-inset-top));
    background: linear-gradient(rgba(10, 9, 8, .94), rgba(10, 9, 8, .8) 55%, rgba(10, 9, 8, 0)); pointer-events: none;
  }
  .menu { top: calc(64px + env(safe-area-inset-top)); }
  /* Thumb-sized targets for links that stand alone; the negative margin keeps the layout as it was. */
  .new, .onward a { padding: 11px 0; margin: -11px 0; }
  .foot nav { gap: 0 22px; }
  .foot nav a { padding: 11px 10px; margin: 0 -10px; }
}

/* The stone, lit from inside. */
.jewel { position: relative; width: 120px; margin: 0 auto; isolation: isolate; }
.jewel img { width: 100%; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .7)); }
.jewel .halo {
  position: absolute; inset: -70%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 178, 94, .30) 0%, rgba(224, 138, 60, .10) 32%, transparent 62%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.arrive > * { animation: rise 1.4s var(--ease) both; }
.arrive > :nth-child(2) { animation-delay: .15s; }
.arrive > :nth-child(3) { animation-delay: .3s; }
.arrive > :nth-child(4) { animation-delay: .45s; }
.arrive > :nth-child(5) { animation-delay: .6s; }

/* Pinned stories: a tall track, a sticky frame. site.js writes the progress (Driff.scene). */
[data-scrub] { position: relative; }
.pin { position: sticky; top: 0; height: 100svh; }
.caption { display: grid; justify-items: center; gap: 14px; min-height: 48px; text-align: center; }
.caption p { grid-area: 1 / 1; max-width: 34em; font-size: 15px; color: var(--ink-2); opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.caption p.on { opacity: 1; transform: none; }
.progress { grid-area: 2 / 1; display: block; width: 120px; height: 1px; background: var(--line-2); }
.progress b { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--ink-2); }

/* A numbered list, hairlines between (spacefs-like), for things that aren't cards. */
.list { list-style: none; max-width: 1040px; margin: 64px auto 0; padding: 0 var(--gutter); }
.list li {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.15fr); align-items: baseline; gap: 0 24px;
  padding: 30px 0; border-top: 1px solid var(--line); position: relative;
}
.list li:last-child { border-bottom: 1px solid var(--line); }
.list .n { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: .06em; transition: color .4s; }
.list li:hover .n { color: var(--ink-2); }
.list .t { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; line-height: 1.25; }
.list .t .soon-tag, .list .t em { margin-left: 12px; }
.list .t em { font-style: normal; font-size: 12px; letter-spacing: 0; color: var(--ink-3); vertical-align: middle; padding: 4px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-2); }
.list .d { color: var(--ink-3); font-size: 15px; line-height: 1.6; max-width: 30em; }
.list a.t:hover { color: #fff; }
@media (max-width: 760px) {
  .list li { grid-template-columns: 40px 1fr; padding: 24px 0; }
  .list .d { grid-column: 2; margin-top: 6px; }
}

/* A panel of the icon's stone, for the few things that deserve weight. */
.vault {
  position: relative; max-width: 1040px; margin: 0 auto; overflow: hidden; isolation: isolate;
  padding: clamp(32px, 6vw, 72px); border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 9, 8, .55), rgba(10, 9, 8, .9)), url(img/stone.jpg) center / cover;
  box-shadow: inset 0 0 0 1px rgba(255, 228, 196, .1), 0 50px 120px -50px #000;
}
.vault::after { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 100%; z-index: -1; background: radial-gradient(closest-side, rgba(243, 178, 94, .18), transparent); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border-radius: 99px; font-size: 13px; color: var(--ink-2); background: rgba(10, 9, 8, .55); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Long reading (Help, Privacy) */
.prose { max-width: 680px; margin: 0 auto; padding: 0 var(--gutter); color: var(--ink-2); font-size: 16.5px; line-height: 1.72; }
.prose h2 { color: var(--ink); font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.025em; line-height: 1.2; margin: 64px 0 16px; }
.prose h3 { color: var(--ink); font-size: 18px; letter-spacing: -.01em; margin: 36px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--ink-4); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--ink-2); }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); font-weight: 500; }

/* Footer, with the name cut into the stone */
.foot { overflow: hidden; padding: clamp(80px, 12vh, 140px) var(--gutter) 0; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; max-width: 1040px; margin: 0 auto; padding: 32px 0 0; border-top: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-3); }
.foot-brand img { width: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; }
.foot nav a { color: var(--ink-3); transition: color .25s; }
.foot nav a:hover, .foot nav a[aria-current="page"] { color: var(--ink); }
.foot-small { max-width: 1040px; margin: 14px auto 0; padding-bottom: env(safe-area-inset-bottom); font-size: 12px; color: var(--ink-3); }
.wordmark {
  margin: clamp(24px, 4vw, 48px) auto calc(-.22em); text-align: center; user-select: none;
  font-size: clamp(130px, 31vw, 440px); font-weight: 560; letter-spacing: -.06em; line-height: .9;
  background: url(img/stone.jpg) center 40% / cover; -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .8;
  -webkit-mask-image: linear-gradient(#000 20%, transparent 85%); mask-image: linear-gradient(#000 20%, transparent 85%);
}

/* Things easing in as they arrive: hidden first only where scripts run, which bring them in
   (site.js). Without scripts everything is simply there. */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .arrive > *, .jewel .halo { animation: none; }
  .reveal, .caption p { transition-duration: .01s !important; transition-delay: 0s !important; }
}
