/* Hallmark · shape: Night and Day, the page crossing from the night theme into the day theme and back · genre: atmospheric · theme: custom (inherits DESIGN.md) · job: try · idea: "the logo in its two versions, white on night and black on day, the way Flare itself runs in both themes" · vibe: "nightlife, but elegant, a matchbook at 1 a.m."
 * paper: #100909 lounge black, day #fefcfc · accent: #bf2e42 cover red, kept for the app itself; the page's two store buttons are equal and outlined · display: Commissioner Variable, FLAR 100 · body: the system font · hero: Stage, the head and the store buttons on six columns, the white fireball taller than the screen, anchored low right and cropped by the edge and the fold · nav: edge-aligned, the cursive wordmark and two links · footer: mast, the wordmark large over the links · imagery: the product, four captures of the real app screens from its Storybook · signature: the calligraphic fireball set huge, white on the night hero and black on the day band
 * axes: dark/grotesk-sans/warm · posture: Restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a download page argues little on its own; the day band carries the argument, the one rule set beside the black mark, then what Flare refuses */
/* Hallmark · dismissed 25 · the statement is one sentence of display type at the hero size, set as a pull line, not running prose */
/* Hallmark · dismissed render · file:// blocks the woff2 by CORS; served over http the same page loads Commissioner (document.fonts reports loaded) */
/* Hallmark · answered F20 · the screens row is three columns in one row; the day capture and the facts start lower on purpose so the facts sit level with the red card */
/* Hallmark · hero-review: fix · 5 findings · 5 resolved · finish-review: subagent · 8 findings · 7 resolved 1 partial · gap: the steps stay a numbered list beside the capture */
/*
 * flare af landing page: the frame (type, chrome, hero, store buttons, footer).
 * DESIGN.md V1 (night is home, no pure black or white), V2 (red only on the
 * one primary action), V8 (44px controls on the 4px unit), V9 (Commissioner
 * for what Flare writes, the system font for the rest; the cursive lettering
 * only on brand moments, here the nav and the mast). Sections: sections.css.
 */
@import url('./tokens.css');
@import url('./base.css');
@import url('./sections.css');

body {
  font-family: var(--font-body);
  line-height: 1.5;
}

::selection {
  background: var(--color-selection);
  color: var(--color-ink);
}

h1,
h2,
h3 {
  font-weight: 560;
  font-variation-settings: var(--flar-display);
  letter-spacing: var(--tracking-display);
  color: var(--color-ink);
}

h1 {
  font-size: var(--text-display);
  line-height: 1.02;
  max-width: 13ch;
}

h2 {
  font-size: var(--text-section);
  line-height: 1.05;
  max-width: 20ch;
}

h3 {
  font-size: var(--text-title);
  line-height: 1.2;
  font-variation-settings: var(--flar-title);
  letter-spacing: 0;
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.4;
  color: var(--color-ink-2);
  max-width: 34ch;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--color-ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* A way past the nav. */
.skip {
  position: absolute;
  left: var(--space-md);
  top: calc(-1 * var(--space-3xl));
  z-index: var(--z-toast);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-ink);
  color: var(--color-paper);
  border-radius: var(--radius-sm);
}

.skip:focus-visible {
  top: var(--space-md);
}

/* The cursive lettering and the fireball: one inline sprite, painted in whatever ink the band uses. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: var(--radius-sm);
  color: var(--color-ink);
}

.wordmark__ink {
  display: block;
  height: 64px;
  width: auto;
  aspect-ratio: 3666 / 1293;
  fill: currentColor;
}

/* The fireball mark: the white version on night, the black version on day. */
.fireball {
  display: block;
  height: auto;
  aspect-ratio: 1533 / 1587;
  color: var(--color-ink);
  fill: currentColor;
}

/* Nav */
.nav {
  position: relative;
  z-index: var(--z-raised);
}

.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: 80px;
}

.nav__links {
  display: flex;
  gap: var(--space-xs);
  margin-right: calc(-1 * var(--space-sm));
}

.nav__links a,
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-sm);
  color: var(--color-ink-2);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}

.nav__links a:hover,
.footer__links a:hover {
  background: var(--color-paper-3);
  color: var(--color-ink);
}

/* Hero: the head and the store buttons on six columns; the mark taller than the screen, cropped low right. */
.hero {
  position: relative;
  overflow: clip;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  align-items: center;
  min-height: calc(100dvh - 80px);
  padding-block: var(--space-xl) var(--space-2xl);
}

.hero__text {
  display: grid;
  gap: var(--space-lg);
}

.fireball--hero {
  position: absolute;
  right: calc(-1 * clamp(var(--space-xl), 6vw, var(--space-4xl)));
  bottom: -14%;
  height: 118%;
  max-height: calc(60vw * 1587 / 1533);
  width: auto;
}

/* The store buttons: App Store and Google Play, equal weight, the platform mark beside the label. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.store {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 52px;
  padding: 0 var(--space-lg) 0 var(--space-md);
  border: 1px solid var(--color-rule-strong);
  border-radius: var(--radius-sm);
  background: var(--color-paper);
  color: var(--color-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

.store:hover {
  background: var(--color-paper-3);
  border-color: var(--color-ink-2);
}

.store:active {
  transform: scale(0.98);
}

.store__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Footer: mast */
.footer {
  padding-block: var(--space-3xl) var(--space-xl);
}

.wordmark--mast .wordmark__ink {
  height: clamp(5rem, 12vw, 10rem);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-rule);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin-left: calc(-1 * var(--space-sm));
}

.footer__legal {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

@media (max-width: 60rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-block: var(--space-md) var(--space-2xl);
  }

  .fireball--hero {
    position: relative;
    right: auto;
    bottom: auto;
    height: auto;
    max-height: none;
    width: 168px;
    margin: var(--space-md) calc(-1 * var(--space-lg)) 0 auto;
  }

  .wordmark__ink {
    height: 52px;
  }
}

@media (max-width: 40rem) {
  .stores {
    flex-direction: column;
    align-items: stretch;
  }

  .nav__links a:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store,
  .nav__links a,
  .footer__links a {
    transition: background-color var(--dur-short) linear;
  }

  .store:active {
    transform: none;
  }
}
