/*
 * Lamphouse public site. One stylesheet, no build step, no script, and
 * nothing loaded from another origin (see _headers: the policy allows only
 * this file and same-origin images).
 *
 * COLOUR. The custom properties below mirror AppColors in
 * app/lib/src/ui/core/theme.dart, which is the single source for the app's
 * ColorScheme (DESIGN.md, "Color"). If a value changes there, change it here.
 *
 *   --scaffold       AppColors.scaffold     0xFF0A0B0F
 *   --surface        AppColors.surface      0xFF13151C
 *   --surface-high   AppColors.surfaceHigh  0xFF1D202A
 *   --outline        AppColors.outline      0xFF2B303C
 *   --ink            AppColors.ink          0xFFF3F5F9
 *   --ink-muted      AppColors.inkMuted     0xFFA6AFC0
 *   --accent         AppColors.accent       0xFFF8DDB1
 *   --accent-dim     AppColors.accentDim    0xFF362913
 *   --on-accent-dim  AppColors.onAccentDim  0xFFEDD4AB
 *
 * The other roles in AppColors (the on-accent ink, the two status colours and
 * the profile swatches) are not mirrored, because nothing here uses them.
 *
 * This file is served, so .buildkite/scripts/check-web.sh reads its comments
 * under the same word rules as the pages.
 *
 * Text pairs in use and their contrast (WCAG 2 relative luminance, computed
 * for this file; the floor is 4.5:1):
 *   ink            on scaffold 18.0, on surface 16.7, on surface-high 14.9
 *   ink-muted      on scaffold  8.9, on surface  8.3, on surface-high  7.4
 *   on-accent-dim  on accent-dim  9.9
 *
 * THE ACCENT IS A SHAPE, NEVER TEXT (PLAY-47). It is a warm near-white, 1.2:1
 * against ink, so as text beside white text it reads as slightly cream text
 * and not as an accent. It is used for the focus ring, a glow, a filled pill
 * and a border. A link is ink with an underline; the underline is what marks
 * it, and it thickens under the pointer. As a shape the accent is 15.0:1 on
 * scaffold and 13.9:1 on surface.
 *
 * TYPE. The app's three families (Space Grotesk, Instrument Sans, Space Mono)
 * are not used: their licence file is not in the repository, and a font from
 * another origin is ruled out. System stacks stand in for each role.
 *
 * FOCUS. A 3px accent ring, the app's ring (DESIGN.md, "Focus"). Links are
 * anchored in place, so they take the ring and do not scale. The ring never
 * touches what it surrounds: a link's ring stands 3px off it, and the drawn
 * tile keeps a 2px scaffold line inside its ring, as the app's cards do.
 *
 * MOTION. None. There is nothing to reduce.
 */

:root {
  --scaffold: #0a0b0f;
  --surface: #13151c;
  --surface-high: #1d202a;
  --outline: #2b303c;
  --ink: #f3f5f9;
  --ink-muted: #a6afc0;
  --accent: #f8ddb1;
  --accent-dim: #362913;
  --on-accent-dim: #edd4ab;

  /* The accent at the two strengths the app uses for a focus glow and a tint. */
  --accent-glow: rgba(248, 221, 177, 0.21);
  --accent-wash: rgba(248, 221, 177, 0.1);

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: 24px;
  --measure: 62ch;
  --radius: 14px;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--scaffold);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--scaffold);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 10px 16px;
  background: var(--surface-high);
  color: var(--ink);
  border-radius: 10px;
}

.skip:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ header */

.site-header {
  border-bottom: 1px solid var(--outline);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 20px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 6px;
}

.wordmark {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.site-nav a,
.site-nav span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.site-nav a {
  color: var(--ink-muted);
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--surface-high);
}

/* The page you are on: the app's selection pill, filled and never glowing. */
.site-nav [aria-current="page"] {
  background: var(--accent-dim);
  color: var(--on-accent-dim);
}

/* The language you are reading: marked, but not a second filled pill. */
.site-nav [aria-current="true"] {
  color: var(--ink);
  font-weight: 600;
}

.site-nav .divide {
  margin-left: 10px;
  padding-left: 16px;
  border-left: 1px solid var(--outline);
}

/* -------------------------------------------------------------------- hero */

/*
 * The top padding is small on purpose: on a 360px phone the "what you need"
 * block has to end above the fold in both languages (PLAY-24), and the
 * Portuguese one is the longer.
 */
.hero {
  padding: 16px 0 72px;
}

.hero .wrap {
  display: grid;
  gap: 48px;
}

.eyebrow {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 10px;
  max-width: 17ch;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.need {
  margin-top: 16px;
  max-width: 34rem;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
}

.need h2 {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.need p {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.55;
}

.need p + p {
  color: var(--ink-muted);
}

.soon {
  display: inline-block;
  margin-top: 22px;
  padding: 9px 16px;
  background: var(--accent-dim);
  color: var(--on-accent-dim);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
}

/*
 * The hero picture is drawn here, not photographed: no product screenshot
 * exists that comes from a demo source (PLAY-09), so the page draws the app's
 * focus treatment on empty tiles instead. Nothing in it is a name or a logo
 * of anything. One tile is in focus, and carries the three cues the app stacks:
 * scale 1.06, a 3px ring, a soft glow.
 */
.screen {
  position: relative;
  align-self: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 20px;
  box-shadow: 0 0 120px var(--accent-wash);
  overflow: hidden;
}

.screen-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.screen-nav span {
  width: 54px;
  height: 14px;
  background: var(--surface-high);
  border-radius: 999px;
}

.screen-nav .on {
  width: 66px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
}

.rail {
  display: grid;
  gap: 12px;
}

.rail span {
  background: linear-gradient(160deg, var(--surface-high), var(--scaffold));
  border-radius: 10px;
}

.rail-tall {
  grid-template-columns: repeat(5, 1fr);
}

.rail-tall span {
  aspect-ratio: 2 / 3;
}

.rail-wide {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  opacity: 0.6;
}

.rail-wide span {
  aspect-ratio: 16 / 9;
}

.rail .focus {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, var(--accent-dim), var(--surface-high));
  outline: 3px solid var(--accent);
  box-shadow: inset 0 0 0 2px var(--scaffold), 0 0 18px var(--accent-glow);
  transform: scale(1.06);
}

/* ---------------------------------------------------------------- sections */

.band {
  padding: 64px 0;
  border-top: 1px solid var(--outline);
}

.band h2 {
  max-width: 24ch;
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lede {
  margin-top: 14px;
  max-width: var(--measure);
  color: var(--ink-muted);
}

.features {
  display: grid;
  gap: 16px;
  margin-top: 36px;
  list-style: none;
}

.features li {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
}

.features h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.features p {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 1rem;
}

.pair {
  display: grid;
  gap: 32px;
  margin-top: 36px;
}

.pair h3 {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pair p {
  margin-top: 10px;
  max-width: var(--measure);
}

/* ------------------------------------------------------------ prose pages */

.page {
  padding: 48px 0 80px;
}

.page h1 {
  margin-top: 14px;
  max-width: 22ch;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page .lede {
  margin-top: 18px;
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--outline);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.prose h3 {
  margin-top: 28px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.prose p,
.prose ul,
.prose ol {
  margin-top: 14px;
  color: var(--ink-muted);
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 8px;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* ------------------------------------------------------------------ footer */

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--outline);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
}

.site-footer a {
  color: var(--ink-muted);
}

.site-footer a:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------------- wider */

@media (min-width: 600px) {
  :root {
    --gutter: 32px;
  }

  .hero h1,
  .page h1 {
    font-size: 2.5rem;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .pair {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 96px;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 64px;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .band {
    padding: 88px 0;
  }

  .band h2 {
    font-size: 2rem;
  }

  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}
