/* everybirthday's homepage in the app's own language (docs/design-system/interface.md): warm paper,
   ink, and one candle. Colours, space and radii come from tokens.css, which the build reads from the
   app's Theme.swift and WidgetTheme.swift. */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  /* The app's titles are New York; Chinese falls back to Songti behind it, as the app sets them. */
  --serif: ui-serif, "New York", "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;
  --gutter: 20px;
  --page: 1120px;
  --readable: 680px;
  /* The paper's tooth, as the app bakes it: a faint warm grain. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .16 0 0 0 0 .11 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  /* What a sheet casts: warm ink by day (Theme.shadow); at night sheets keep their edge instead. */
  --lift: 0 6px 14px rgb(58 42 28 / .07), 0 1px 1.5px rgb(58 42 28 / .05);
  --glow: color-mix(in srgb, var(--candle) 22%, transparent);
  --device-dark: linear-gradient(160deg, #2B2621, #15120F 58%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .96 0 0 0 0 .9 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
    --lift: 0 0 0 1px var(--hairline);
    --glow: color-mix(in srgb, var(--candle) 30%, transparent);
    --device-dark: linear-gradient(160deg, #3A342E, #1B1814 58%);
  }
}
:lang(zh-Hans) { --serif: ui-serif, "New York", "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif; --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
:lang(zh-Hant) { --serif: ui-serif, "New York", "Songti TC", "Noto Serif TC", "Source Han Serif TC", serif; --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
/* The app sets Hangul in the system face behind New York; so does the site. */
:lang(ko) { --serif: ui-serif, "New York", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", serif; --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1080px) { :root { --gutter: 48px; } }

/* MARK: Paper */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; overflow-x: clip; position: relative;
  background: var(--grain), var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-kerning: normal;
}
:lang(zh), :lang(ko) { line-break: strict; }
:lang(zh) p, :lang(zh) li, :lang(zh) dd { word-break: normal; overflow-wrap: anywhere; }
:lang(ko) p, :lang(ko) li, :lang(ko) dd, :lang(ko) h1, :lang(ko) h2 { word-break: keep-all; }
/* Window light from the top corner, warm by day, candlelit at night. Still. */
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: min(130vh, 1300px); pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 70% 60% at 8% 0%, color-mix(in srgb, var(--candle-wash) 80%, transparent), transparent 100%);
}
@media (prefers-color-scheme: dark) {
  body::before { background: radial-gradient(ellipse 60% 50% at 8% 0%, color-mix(in srgb, var(--candle) 9%, transparent), transparent 100%); }
}
@media (prefers-contrast: more) { body::before { display: none; } body { background: var(--paper); } }
main, .site-header, .site-footer, .suggest { position: relative; z-index: 1; }

/* MARK: Type */

h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; }
.display, .display-s, .title {
  font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; color: var(--ink);
}
.display { font-size: clamp(42px, 7.2vw, 72px); line-height: 1.04; }
.display-s { font-size: clamp(36px, 5vw, 52px); line-height: 1.1; }
.title { font-size: clamp(30px, 4vw, 44px); line-height: 1.12; }
:lang(zh) .display, :lang(zh) .display-s, :lang(zh) .title { font-weight: 600; letter-spacing: .01em; line-height: 1.28; }
:lang(ko) .display, :lang(ko) .display-s, :lang(ko) .title { font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
:lang(zh) .display { font-size: clamp(40px, 6.4vw, 66px); }
/* The candle lights one word of a title, with its glow behind it. */
.display em, .display-s em, .title em {
  position: relative; z-index: 0; font-style: normal; color: var(--candle); white-space: nowrap;
}
.display em::before, .title em::before {
  content: ""; position: absolute; z-index: -1; inset: 8% -10% -6%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(4px);
}
.eyebrow {
  font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-secondary);
}
:lang(zh) .eyebrow, :lang(ko) .eyebrow { letter-spacing: .14em; }
/* Product names keep their case: never IPHONE. */
.keep-case { text-transform: none; letter-spacing: .02em; }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-secondary); text-wrap: pretty; max-width: 34em; }
:lang(zh) .lede { line-height: 1.75; }
p { text-wrap: pretty; }
.link {
  color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--candle) 55%, transparent);
}
.link:hover { text-decoration-color: var(--candle); color: var(--candle); }
:focus-visible { outline: 2px solid var(--candle); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 30; padding: 8px 14px; border-radius: 999px;
  background: var(--sheet); color: var(--ink); box-shadow: var(--lift);
}
.skip:focus { top: 12px; }

/* MARK: Controls (the app's PaperButtonStyle) */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; font: 600 17px/1 var(--font); text-decoration: none; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .18s ease-out, transform .36s cubic-bezier(.2, .8, .2, 1), box-shadow .18s ease-out;
}
.button:active { transform: scale(.97); }
.button.ink { background: var(--ink); color: var(--on-ink); }
.button.ink:hover { background: color-mix(in srgb, var(--ink) 86%, var(--candle)); }
.button.quiet { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.button.quiet:hover { background: var(--well); }
.button.small { min-height: 36px; padding: 0 16px; font-size: 15px; }
.button .arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease-out; }
.button:hover .arrow { transform: translateY(2px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 7px 14px; border-radius: 999px; background: var(--well); color: var(--ink);
  font-size: 15px; line-height: 20px; font-weight: 500;
}

/* MARK: Chrome */

.suggest {
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px var(--gutter);
  background: var(--candle-wash); color: var(--ink); font-size: 15px; line-height: 20px;
}
.suggest[hidden] { display: none; }
.suggest p { text-align: center; }
.suggest-close {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px;
  background: none; color: var(--ink-secondary); cursor: pointer;
}
.suggest-close:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.suggest-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--grain), color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 transparent; transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--hairline); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 10px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; padding: 6px 0; flex: none; }
.brand .mark { display: block; flex: none; }
.wordmark { font: 600 19px/1 var(--serif); letter-spacing: -.01em; }
.site-nav { display: flex; gap: 2px; }
.site-nav a, .footer-nav a {
  color: var(--ink-secondary); text-decoration: none; font-size: 15px; line-height: 20px; padding: 8px 12px; border-radius: 999px;
  transition: color .18s ease, background-color .18s ease;
}
.site-nav a:hover, .footer-nav a:hover { color: var(--ink); background: var(--well); }
.site-nav a[aria-current], .site-menu a[aria-current] { color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 6px; }

/* The language menu: a round chrome button that opens a sheet. */
.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px;
  list-style: none; cursor: pointer; color: var(--ink-secondary); font-size: 15px; user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ink); background: var(--well); }
.lang-menu summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 180px; margin: 0; padding: 6px; list-style: none;
  background: var(--sheet); border-radius: var(--radius-inner); box-shadow: var(--lift), 0 18px 40px rgb(58 42 28 / .12);
}
@media (prefers-color-scheme: dark) { .lang-list { box-shadow: 0 0 0 1px var(--hairline), 0 18px 40px rgb(0 0 0 / .5); } }
.lang-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-size: 16px;
}
.lang-list a:hover { background: var(--well); }
.lang-list a[aria-current]::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--candle);
}

.menu-toggle {
  display: none; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0;
  border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.menu-toggle path { transition: transform .36s cubic-bezier(.2, .8, .2, 1); transform-origin: 12px 12px; }
.menu-toggle[aria-expanded="true"] .bar-top { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar-bottom { transform: translateY(-3px) rotate(-45deg); }
.site-menu { display: none; }
@media (max-width: 1023px) {
  .site-nav { display: none; }
  .menu-toggle { display: grid; }
  .site-menu {
    display: grid; overflow: hidden; max-height: 0; padding: 0 var(--gutter);
    transition: max-height .45s cubic-bezier(.2, .8, .2, 1), padding .45s cubic-bezier(.2, .8, .2, 1);
  }
  .site-menu.open { max-height: 560px; padding: 4px var(--gutter) 18px; box-shadow: 0 1px 0 var(--hairline); }
  .site-menu a {
    padding: 12px 0; border-bottom: 1px solid var(--hairline); color: var(--ink-secondary);
    font: 600 21px/26px var(--serif); text-decoration: none;
  }
  .site-menu a:last-child { border-bottom: 0; }
}
@media (max-width: 520px) {
  .header-get { display: none; }
  .lang-menu summary span { display: none; }
  .lang-menu summary { width: 40px; padding: 0; justify-content: center; }
}

/* MARK: The icon, drawn */

.cake { position: relative; display: inline-block; flex: none; color: var(--ink); }
.cake svg { display: block; overflow: visible; }
/* The glow is as strong as the launch's: a fifth by day, a third at night. */
.cake-glow { opacity: var(--glow-day); }
@media (prefers-color-scheme: dark) { .cake-glow { opacity: var(--glow-night); } }
/* The launch, on paper: the pen draws the frame, the cake, the icing, the candle and the wick, then
   the candle catches, blazes up a little taller than it burns, and settles. */
.js .cake.draws .pen { stroke-dasharray: 1; stroke-dashoffset: 1; animation: write var(--duration) cubic-bezier(.45, 0, .25, 1) var(--start) forwards; }
.js .cake.draws .cake-fire { opacity: 0; transform: scale(.2); animation: catch .55s cubic-bezier(.2, 1.4, .4, 1) 1.15s forwards; }
@keyframes write { to { stroke-dashoffset: 0; } }
@keyframes catch { 0% { opacity: 0; transform: scale(.2); } 40% { opacity: 1; transform: scale(1.18); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .cake.draws .pen { stroke-dashoffset: 0; animation: none; }
  .js .cake.draws .cake-fire { opacity: 1; transform: none; animation: none; }
}

/* MARK: Devices (the store art's frames: scripts/assets/app-store/render.py) */

.device { --bezel: .03; --screen-radius: .129; display: block; margin: 0; container-type: inline-size; }
.device-body {
  position: relative; display: block;
  padding: calc(var(--bezel) * 100cqi); border-radius: calc((var(--bezel) + var(--screen-radius)) * 100cqi);
  background: var(--device-dark);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08), 0 0 0 1px rgb(30 26 22 / .12),
    0 2px 4px rgb(58 42 28 / .12), 0 26px 48px -12px rgb(58 42 28 / .28);
}
@media (prefers-color-scheme: dark) {
  .device-body { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14), 0 30px 56px -10px rgb(0 0 0 / .7); }
}
.device.ipad { --bezel: .028; --screen-radius: .02; }
.device .screen { display: block; overflow: hidden; border-radius: calc(var(--screen-radius) * 100cqi); background: var(--sheet); }
.device img { display: block; width: 100%; height: auto; }
.device .island {
  position: absolute; left: 50%; translate: -50% 0; top: calc((var(--bezel) + .025) * 100cqi);
  width: 29.4cqi; height: 8.65cqi; border-radius: 999px; background: #050505;
}
.device .camera {
  position: absolute; left: calc(var(--bezel) * 50cqi); top: 50%; translate: -50% -50%;
  width: 1cqi; aspect-ratio: 1; border-radius: 50%; background: #2B2B30;
}

/* MARK: Layout */

main { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.folio {
  display: flex; align-items: center; margin-bottom: 4px;
  font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-secondary);
}
:lang(zh) .folio, :lang(ko) .folio { letter-spacing: .14em; }
.folio span { color: var(--candle); font-variant-numeric: tabular-nums; }
.folio span::after { content: ""; display: inline-block; width: 28px; height: 1px; margin: 0 12px; vertical-align: middle; background: currentColor; opacity: .7; }

/* The hero: the icon draws itself above the words; the People tab beside them, today's widget at its foot. */
.hero { display: grid; gap: 56px; align-items: center; padding: 40px 0 96px; }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; padding: 56px 0 120px; } }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; max-width: 600px; }
.hero-cake { margin: 0 0 4px -8px; }
.hero .eyebrow { margin-bottom: -4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 4px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-secondary); }
.facts li:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--candle); }
.hero-art { position: relative; display: flex; justify-content: center; padding: 0 0 24px; }
.candlelight {
  position: absolute; left: 50%; top: 48%; width: min(150%, 100vw); aspect-ratio: 1; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--candle-wash) 90%, transparent), transparent);
}
@media (prefers-color-scheme: dark) { .candlelight { background: radial-gradient(closest-side, color-mix(in srgb, var(--candle) 12%, transparent), transparent); } }
.hero-phone { width: min(320px, 72vw); }
.widget.hero-widget { position: absolute; left: max(0px, calc(50% - min(320px, 72vw) / 2 - 92px)); bottom: 0; }
@media (max-width: 559px) { .widget.hero-widget { left: 0; bottom: -12px; transform: scale(.86); transform-origin: bottom left; } }

/* Chapters: words beside the screens they describe. */
.chapter { display: grid; gap: 48px; align-items: center; padding: 80px 0; border-top: 1px solid var(--hairline); }
@media (min-width: 900px) {
  .chapter { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; padding: 112px 0; }
  .chapter.flip > .chapter-text { order: 2; }
}
.chapter-text { display: flex; flex-direction: column; gap: 16px; max-width: 32em; }
.chapter-text > p:not(.folio) { color: var(--ink-secondary); font-size: 17px; line-height: 1.6; }
:lang(zh) .chapter-text > p:not(.folio) { line-height: 1.8; }
.aside-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.aside-note p { font-size: 15px; line-height: 1.55; color: var(--ink-secondary); }
.note-glyph, .rule-glyph { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--well); color: var(--ink); }
.note-glyph svg, .rule-glyph svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rule-glyph .lit-stroke { stroke: var(--candle); fill: var(--candle); }

.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 4vw, 36px); }
.phones .device { width: min(300px, 70vw); }
.phones.pair .device { width: min(262px, 42vw); }
.phones.pair .device:last-child { margin-top: clamp(32px, 7vw, 72px); }

/* A group's reminders, as the app lists them: a glyph well, the lead time over the time. */
.rules {
  list-style: none; margin: 4px 0; padding: 4px 16px; max-width: 400px;
  background: var(--sheet); border-radius: var(--radius-card); box-shadow: var(--lift);
}
.rules li { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.rules li + li { border-top: 1px solid var(--hairline); margin-left: 48px; padding-left: 0; }
.rules li + li .rule-glyph { margin-left: -48px; }
.rules b { display: block; font-weight: 500; font-size: 16px; line-height: 21px; color: var(--ink); }
.rules span:last-child { font-size: 14px; line-height: 19px; color: var(--ink-secondary); }

/* MARK: Widgets, drawn after WidgetTheme */

.widgets-art { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.home-screen {
  display: grid; grid-template-columns: repeat(2, 158px); gap: 22px; padding: 28px; border-radius: 40px;
  background: color-mix(in srgb, var(--well) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.widgets-art figcaption { font-size: 13px; color: var(--ink-tertiary); }
.widget {
  --fill: var(--tint-candlelight-fill); --text: var(--tint-candlelight-text); --secondary: var(--tint-candlelight-secondary);
  --accent: var(--tint-candlelight-accent); --chip: var(--tint-candlelight-chip);
  position: relative; width: 158px; height: 158px; padding: 15px; border-radius: 24px; overflow: hidden;
  display: flex; flex-direction: column; background: var(--fill); color: var(--text);
  box-shadow: 0 1px 2px rgb(58 42 28 / .08), 0 10px 24px -8px rgb(58 42 28 / .2);
  line-height: 1.2; text-align: left;
}
@media (prefers-color-scheme: dark) { .widget { box-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 14px 30px -8px rgb(0 0 0 / .6); } }
.widget::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 90% 70% at 0% 0%, rgb(255 255 255 / .35), transparent 70%); }
@media (prefers-color-scheme: dark) { .widget::before { background: radial-gradient(ellipse 90% 70% at 0% 0%, rgb(255 255 255 / .05), transparent 70%); } }
.widget.medium { grid-column: span 2; width: auto; height: 158px; flex-direction: row; gap: 12px; padding: 12px; }
.tint-paper { --fill: var(--paper); --text: var(--ink); --secondary: var(--ink-secondary); --accent: var(--candle); --chip: var(--well); }
.tint-candlelight { --fill: var(--tint-candlelight-fill); --text: var(--tint-candlelight-text); --secondary: var(--tint-candlelight-secondary); --accent: var(--tint-candlelight-accent); --chip: var(--tint-candlelight-chip); }
.tint-sage { --fill: var(--tint-sage-fill); --text: var(--tint-sage-text); --secondary: var(--tint-sage-secondary); --accent: var(--tint-sage-accent); --chip: var(--tint-sage-chip); }
.tint-slate { --fill: var(--tint-slate-fill); --text: var(--tint-slate-text); --secondary: var(--tint-slate-secondary); --accent: var(--tint-slate-accent); --chip: var(--tint-slate-chip); }
.tint-lilac { --fill: var(--tint-lilac-fill); --text: var(--tint-lilac-text); --secondary: var(--tint-lilac-secondary); --accent: var(--tint-lilac-accent); --chip: var(--tint-lilac-chip); }
.widget-head { position: relative; display: flex; align-items: center; gap: 8px; }
.widget-head b { font: 600 15px/1.15 var(--serif); color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.avatar { flex: none; display: block; border-radius: 50%; }
.avatar.ring { box-shadow: 0 0 0 2px var(--fill), 0 0 0 3.5px var(--accent); }
.widget-count { position: relative; margin-top: auto; display: flex; align-items: baseline; gap: 4px; font: 600 40px/1 var(--serif); color: var(--accent); }
.widget-count b { font: inherit; font-size: 52px; }
.widget-count span { font: 500 15px/1 var(--font); color: var(--secondary); }
.widget-count:not(.soon) b { color: var(--text); }
.today .widget-count { font-size: 28px; align-items: center; gap: 6px; white-space: nowrap; }
:lang(vi) .today .widget-count { font-size: 23px; }
.flame {
  /* The app's flame (WidgetFlameShape): a round foot, a tip leaning right and an open heart; never a drop. */
  display: inline-block; flex: none; width: 15.6px; height: 26px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 100'%3E%3Cpath fill-rule='evenodd' d='M38.4 0C43.2 12 49.2 26 51.6 40C55.8 50 60 58 60 68C60 87 47.4 100 30 100C12.6 100 0 87 0 68C0 52 4.8 40 13.2 30C25.2 24 34.8 16 38.4 0ZM31.2 50C36 60 44.4 70 44.4 80C44.4 87 37.8 91 30 91C22.2 91 15.6 87 15.6 80C15.6 69 25.2 60 31.2 50Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 100'%3E%3Cpath fill-rule='evenodd' d='M38.4 0C43.2 12 49.2 26 51.6 40C55.8 50 60 58 60 68C60 87 47.4 100 30 100C12.6 100 0 87 0 68C0 52 4.8 40 13.2 30C25.2 24 34.8 16 38.4 0ZM31.2 50C36 60 44.4 70 44.4 80C44.4 87 37.8 91 30 91C22.2 91 15.6 87 15.6 80C15.6 69 25.2 60 31.2 50Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transform-origin: 50% 85%;
}
@media (prefers-reduced-motion: no-preference) { .flame { animation: stir 2.6s ease-in-out infinite; } }
@keyframes stir { 0%, 100% { transform: none; } 30% { transform: scale(1.04, 1.08) skewX(-3deg); } 60% { transform: scale(1.06, .95); } 80% { transform: skewX(3deg); } }
.widget-info { position: relative; margin-top: 6px; display: flex; flex-direction: column; gap: 1px; font-size: 12px; }
.widget-info b { font-weight: 600; color: var(--text); }
.widget-info span { color: var(--secondary); font-weight: 500; }
.up-next {
  position: relative; flex: 0 0 132px; display: flex; flex-direction: column; padding: 12px; border-radius: 16px; background: var(--fill); color: var(--text);
}
.up-next .widget-count { font-size: 40px; }
.up-next .widget-count b { font-size: 40px; color: var(--text); }
.next-rows { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-around; margin: 0; padding: 0; list-style: none; }
.next-rows li { display: flex; align-items: center; gap: 8px; font: 600 13px/1.2 var(--serif); }
.next-rows li b { flex: 1; min-width: 0; font: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next-rows .chip { flex: none; min-width: 32px; padding: 3px 7px; border-radius: 8px; background: var(--fill); color: var(--text); font: 600 13px/1 var(--font); text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) {
  .home-screen { grid-template-columns: repeat(2, 140px); gap: 14px; padding: 18px; border-radius: 32px; }
  .widget { width: 140px; height: 140px; padding: 13px; }
  .widget.medium { height: 140px; padding: 10px; }
  .up-next { flex-basis: 50%; padding: 10px; }
  .up-next .widget-count, .up-next .widget-count b { font-size: 34px; }
  .widget-count b { font-size: 44px; }
}

/* iPad: one wide screen under the words. */
.forms, .questions { padding: 80px 0; border-top: 1px solid var(--hairline); }
@media (min-width: 900px) { .forms, .questions { padding: 112px 0; } }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 40em; margin-bottom: 48px; }
.section-head > p:not(.folio) { color: var(--ink-secondary); font-size: 17px; line-height: 1.6; }
.form-row { display: flex; justify-content: center; }
.form-row .device { width: min(960px, 100%); }

/* Privacy: the words, and a ledger of what that means. */
.private { display: grid; gap: 40px; padding: 80px 0; border-top: 1px solid var(--hairline); }
@media (min-width: 900px) { .private { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; padding: 112px 0; align-items: start; } }
.private-text { display: flex; flex-direction: column; gap: 16px; max-width: 30em; }
.private-text > p:not(.folio) { color: var(--ink-secondary); font-size: 17px; line-height: 1.6; }
.ledger { display: grid; gap: 12px; }
@media (min-width: 640px) { .ledger { grid-template-columns: 1fr 1fr; } }
.ledger > div { padding: 20px; background: var(--sheet); border-radius: var(--radius-card); box-shadow: var(--lift); }
.ledger dt { font: 600 19px/1.25 var(--serif); color: var(--ink); margin-bottom: 6px; }
.ledger dd { font-size: 15px; line-height: 1.55; color: var(--ink-secondary); }

/* Questions: the app's form card, one row per question. */
.faq { max-width: var(--readable); background: var(--sheet); border-radius: var(--radius-card); box-shadow: var(--lift); padding: 0 20px; }
.question + .question { border-top: 1px solid var(--hairline); }
.question summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0;
  cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--ink);
}
.question summary::-webkit-details-marker { display: none; }
.question summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 1.6px solid var(--ink-tertiary); border-bottom: 1.6px solid var(--ink-tertiary);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .36s cubic-bezier(.2, .8, .2, 1);
}
.question[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.question p { padding: 0 0 18px; margin-top: -6px; font-size: 16px; line-height: 1.6; color: var(--ink-secondary); max-width: 36em; }
:lang(zh) .question p { line-height: 1.8; }

.closing { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 96px 0 120px; border-top: 1px solid var(--hairline); text-align: center; }
.closing p:not(:last-child) { color: var(--ink-secondary); max-width: 34em; }
.closing p:last-child { margin-top: 8px; }

/* MARK: Articles (privacy, support, 404) */

.article { max-width: calc(var(--readable) + 2 * var(--gutter)); padding-top: 48px; padding-bottom: 96px; }
.article-head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 32px; }
.article-head .dateline { font-size: 14px; color: var(--ink-tertiary); }
.article section { padding: 28px 0; border-top: 1px solid var(--hairline); }
.article h2 { font: 700 26px/1.25 var(--serif); margin-bottom: 12px; letter-spacing: -.01em; }
:lang(zh) .article h2 { font-weight: 600; }
.article section > p, .article section > ul { color: var(--ink-secondary); font-size: 17px; line-height: 1.65; }
:lang(zh) .article section > p, :lang(zh) .article section > ul { line-height: 1.85; }
.article section > p + p, .article section > p + ul, .article section > ul + p { margin-top: 12px; }
.article section ul { padding-left: 1.2em; }
.article li + li { margin-top: 6px; }
.article li b { color: var(--ink); font-weight: 600; }
.summary {
  display: grid; gap: 1px; margin: 0 0 32px; padding: 0; list-style: none; overflow: hidden;
  border-radius: var(--radius-card); background: var(--hairline); box-shadow: var(--lift);
}
@media (min-width: 560px) { .summary { grid-template-columns: 1fr 1fr; } }
.summary li { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--sheet); }
.summary b { font: 600 17px/1.3 var(--serif); color: var(--ink); }
.summary span { font-size: 14px; line-height: 1.45; color: var(--ink-secondary); }
.article .question { border-top: 1px solid var(--hairline); }
.article section .question:first-of-type { border-top: 0; }
.article section h2 + .question { border-top: 0; }
.article .question p { margin-top: -4px; }
.contact-card { margin: 0 0 32px; padding: 20px 22px; background: var(--candle-wash); border-radius: var(--radius-card); }
.contact-card h2 { font: 700 21px/1.25 var(--serif); margin-bottom: 6px; }
.contact-card p { color: var(--ink); font-size: 16px; line-height: 1.6; }
.lost .article-head { align-items: flex-start; padding-top: 24px; }
.lost-langs { margin: 16px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--hairline); display: grid; gap: 8px; }
.lost-langs a { color: var(--ink-secondary); text-decoration: none; font-size: 15px; }
.lost-langs a:hover { color: var(--ink); text-decoration: underline; }

/* MARK: Footer */

.site-footer { border-top: 1px solid var(--hairline); }
.footer-inner {
  display: grid; gap: 20px 32px; grid-template-columns: 1fr;
  max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) 48px;
}
@media (min-width: 820px) { .footer-inner { grid-template-columns: 1fr auto; align-items: start; } }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-line { color: var(--ink-secondary); font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: -12px; }
@media (min-width: 820px) { .footer-nav { margin: 0 -12px 0 0; justify-content: flex-end; } }
.footer-langs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--hairline); }
.footer-langs a { color: var(--ink-secondary); text-decoration: none; font-size: 14px; }
.footer-langs a:hover { color: var(--ink); text-decoration: underline; }
.footer-langs a[aria-current] { color: var(--ink); font-weight: 600; }
.fine { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.55; color: var(--ink-tertiary); max-width: 60em; }
.fine a { color: inherit; text-decoration: none; }
.fine a:hover { text-decoration: underline; }

/* MARK: Arrival (site.js marks each as it comes into view; nothing waits without it) */

.js [data-reveal] { opacity: 0; transform: translateY(18px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .phones.pair[data-reveal].in .device:last-child { transition-delay: .08s; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}
