/* landmarkd.co: shared styles for the home page, the legal pages and the
   spot page. One dark theme everywhere (the brand is black and yellow), with
   one deliberate colour block: the yellow Yves section on the home page.

   Shape rule: buttons and nav are full pills, cards and media are 22px,
   phone frames are 38px. Nothing else. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0d0d0c;
  --ink-2: #161614;
  --ink-3: #1f1f1c;
  --paper: #f5f5f0;
  --muted: rgb(245 245 240 / 0.64);
  --line: rgb(245 245 240 / 0.12);
  --yellow: #fad02b;
  --on-yellow: #141410;
  --radius: 22px;
  --wrap: min(1200px, 100% - 2.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* Display type echoes the wordmark: heavy, wide, uppercase, ends on a period. */
.display {
  font-weight: 900;
  font-stretch: 115%;
  text-transform: uppercase;
  /* Tracking tightens as type grows (Apple's size-specific tracking): the
     biggest headlines get the most. Body text stays at 0. */
  letter-spacing: clamp(-0.035em, -0.004em - 0.25vw, -0.01em);
  line-height: 0.95;
  margin: 0;
}

/* ---------- Nav: a frosted pill. A web approximation of Apple's Liquid Glass
   (backdrop-filter plus edge highlights), not the real material. ---------- */
.nav {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 100% - 1.5rem);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(22 22 20 / 0.55);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 18px 50px rgb(0 0 0 / 0.35);
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--ink-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.nav .logo img { height: 17px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; font-size: 0.95rem; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--paper); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  /* Release: springs back, critically damped (no bounce: nothing was thrown). */
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s;
}
/* Press: responds the instant the finger lands, not on release. */
.btn:active { transform: scale(0.96); transition-duration: 0.08s; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn:hover:active { transform: scale(0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transform: none; }
}
.btn-yellow { background: var(--yellow); color: var(--on-yellow); }
.btn-yellow:hover { background: #ffdb4d; }
.btn-ghost { background: rgb(245 245 240 / 0.08); color: var(--paper); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgb(245 245 240 / 0.14); }
.btn-ink { background: var(--on-yellow); color: var(--yellow); }
.nav .btn { height: 42px; padding: 0 1.1rem; }
.nav-links .btn { color: var(--on-yellow); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; margin-top: 6rem; }
.footer .wrap { display: grid; gap: 1.6rem; grid-template-columns: 1fr auto; align-items: end; }
.footer .logo img { height: 20px; width: auto; }
.footer p { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.92rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; font-size: 0.95rem; }
.footer nav a { text-decoration: none; color: var(--muted); }
.footer nav a:hover { color: var(--paper); }
@media (max-width: 720px) { .footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll (IntersectionObserver adds .in) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Long-form pages (Privacy, Terms) ---------- */
.doc { width: min(720px, 100% - 2.5rem); margin: 0 auto; padding-top: 8.5rem; }
.doc h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); }
.doc .updated { color: var(--muted); margin: 1rem 0 2.5rem; font-size: 0.95rem; }
.doc section { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.doc h2 { font-size: 1.15rem; font-weight: 800; margin: 0 0 0.6rem; }
.doc p { margin: 0.55rem 0; color: rgb(245 245 240 / 0.82); }
.doc a { color: var(--yellow); }
