/*
 * The static site's own base styles: the self-hosted faces, the document, the
 * header, and the browser surfaces (selection, caret, focus, underlines).
 * Colours come only from tokens.css, which is generated from the app's
 * src/app/globals.css. The page itself is styled by the two shared
 * stylesheets, gift-card-face.css and coming-soon.css.
 */
@font-face {
  font-family: "Geist";
  src: url("/fonts/1.7.2/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/1.7.2/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* The same variable names next/font gives the app, so the shared
     stylesheets resolve identically in both builds. */
  --font-geist-sans: "Geist";
  --font-geist-mono: "Geist Mono";
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-geist-sans), system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--foreground);
}

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

a {
  color: inherit;
}

/* In-page links scroll smoothly only where motion is welcome; otherwise the
   jump is instant (section 7). */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: calc(var(--radius) - 2px);
}

img {
  display: block;
  max-width: 100%;
}

/* The header (round 5, the founder): taller and more confident, carrying
   the full logo with its tagline. Not sticky and never shrinking on scroll:
   either would cost the tagline its legibility or a phone its space. From
   48rem the two section links and "Get in touch" sit on the right; on a phone
   the header is the logo alone (130px tall at most), never a menu button. */
.site-header {
  display: flex;
  /* Under text-only zoom the links drop below the logo rather than off the
     page; at 100% text they share its row from 48rem (round 5 audit). */
  flex-wrap: wrap;
  row-gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  column-gap: 1.5rem;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  /* px, like the logo: 200% text must not push a phone's header past 130px
     (round 5 audit). */
  padding-block: 12px;
}

/* The logo, tagline included (design doc section 4): its tagline is 51 of
   the logo's 500 units, so it renders 9.4px tall at 92px on a phone and 10.6px
   at 104px from 48rem (the pinned floors are 9px and 10px). Sized in px, not
   rem: it is an image, and 200% text must not push it past a phone's edge. */
.site-logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  max-width: 100%;
}

.site-logo img {
  display: block;
  width: 270px;
  max-width: 100%;
  height: auto;
}

.site-nav {
  display: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding-inline: 0.25rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  /* One line each (round 5 critique: at exactly 48rem they broke in two). */
  white-space: nowrap;
  color: var(--foreground);
  text-decoration: none;
}

/* "Get in touch": the accent as an outline (CTO, 2026-09-28), so the hero's
   filled "I'm looking for a gift" stays the one filled primary in the first
   view (section 3). Its edge is the accent at 7.01:1. */
.site-nav .site-nav-cta {
  margin-inline-start: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  color: var(--primary);
}

@media (hover: hover) and (pointer: fine) {
  .site-nav .site-nav-cta {
    transition: background-color 150ms ease-out;
  }

  .site-nav a:not(.site-nav-cta):hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .site-nav .site-nav-cta:hover {
    background: color-mix(in oklab, var(--primary) 8%, var(--background));
  }
}

/* The plain pages (the privacy notice and the form's result pages): one
   reading column in the page's type scale. */
.doc,
.doc-footer {
  width: 100%;
  max-width: 44rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.doc {
  /* The email address breaks rather than widening a phone at 200% text. */
  overflow-wrap: break-word;
  padding-block: 2rem 3rem;
  font-size: 1rem;
  line-height: 1.5rem;
}

.doc h1 {
  margin: 1rem 0 0.5rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.doc h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.doc p,
.doc ul {
  margin: 0 0 1rem;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.5rem;
}

.doc a,
.doc-footer a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}

.doc-meta {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.doc-footer {
  padding-block: 2rem 4rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.doc-footer p {
  margin: 0 0 0.5rem;
}

.doc-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* Press feedback: the button answers at once (Emil Kowalski), off under
   reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .site-nav .site-nav-cta {
    transition:
      transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
      background-color 150ms ease-out;
  }

  .site-nav .site-nav-cta:active {
    transform: scale(0.97);
  }
}

@media (min-width: 48rem) {
  .site-header {
    padding-inline: 2rem;
    padding-block: 16px;
  }

  /* 290px wide (tagline 10.1px) and 1rem gaps until 64rem, so the logo, the
     two links and the button fit one row at 48rem (756 of 768px; round 5
     confirmation: at 1.5rem gaps they needed 780 and wrapped); 305px
     (10.6px) and 1.5rem gaps from 64rem. */
  .site-header {
    column-gap: 1rem;
  }

  .site-logo img {
    width: 290px;
  }

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 1rem;
  }
}

@media (min-width: 64rem) {
  .site-header {
    column-gap: 1.5rem;
  }

  .site-logo img {
    width: 305px;
  }

  .site-nav {
    column-gap: 1.5rem;
  }

  .doc,
  .doc-footer {
    padding-inline: 2rem;
  }

}
