/* Ampora: site styles. One sans-serif (Inter), light and dark. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --ink: #11141a;
  --amber: #f2a93b;
  --soft-amber: #fdf1dc;
  --grey: #6b665e;
  --white: #ffffff;

  --bg: var(--white);
  --text: var(--ink);
  --muted: var(--grey);
  --surface: var(--soft-amber);
  --card: var(--white);
  --border: #e9e4da;
  --accent: var(--amber);
  --link: var(--ink);
  --focus: #b86e00;

  --max: 68rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 1rem;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --text: #f3efe7;
    --muted: #b3ada3;
    --surface: #1b1f27;
    --card: #181c23;
    --border: #2b303a;
    --link: #f3efe7;
    --focus: var(--amber);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: .5rem;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 2.125rem; width: auto; }
.nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav a {
  display: inline-block; padding: .5rem .75rem; border-radius: .5rem;
  font-weight: 500; font-size: 1rem; text-decoration: none;
}
.nav a:hover { background: var(--surface); }

/* Hero */
.hero { padding: clamp(3.5rem, 12vw, 7.5rem) 0 clamp(3rem, 9vw, 6rem); }
.hero h1 {
  margin: 0; max-width: 18ch;
  font-size: clamp(2.25rem, 7vw, 4rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700;
}
.hero h1 .accent { box-shadow: inset 0 -0.28em 0 var(--accent); }
.hero p { margin: 1.5rem 0 0; max-width: 38rem; font-size: clamp(1.125rem, 2.4vw, 1.3rem); color: var(--muted); }

/* Sections */
section { scroll-margin-top: 1rem; }
.section { padding: clamp(3rem, 8vw, 5rem) 0; }
.section--tint { background: var(--surface); }
.eyebrow {
  margin: 0 0 .5rem; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
h2 { margin: 0 0 1.25rem; font-size: clamp(1.75rem, 4.5vw, 2.5rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.lede { max-width: 40rem; margin: 0; color: var(--muted); }

/* App cards */
.cards { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem;
}
.card h3 { margin: 0; font-size: 1.3125rem; line-height: 1.25; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); flex: 1; }
.card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font-size: .9375rem; }
.status {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .2rem .65rem; border-radius: 999px; font-size: .8125rem; font-weight: 600;
  background: var(--soft-amber); color: var(--ink);
}
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 1px rgba(17,20,26,.25); }
.platform { color: var(--muted); }

/* About and contact */
.prose > * { max-width: 40rem; }
.prose p { margin: 0 0 1rem; }
.contact-email {
  display: inline-block; margin-top: .5rem; font-size: clamp(1.25rem, 4vw, 1.75rem); font-weight: 600; letter-spacing: -0.01em;
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0 2.5rem; font-size: .9375rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.sep { padding: 0 .1rem; }
.nowrap { white-space: nowrap; }

/* Privacy page */
.page { padding: clamp(2.5rem, 8vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem); }
.page h1 { margin: 0 0 .5rem; font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.1; letter-spacing: -0.025em; }
.page .updated { margin: 0 0 2rem; color: var(--muted); font-size: .9375rem; }
.page h2 { font-size: 1.25rem; margin: 2rem 0 .5rem; letter-spacing: -0.01em; }
.page p, .page ul { margin: 0 0 1rem; }
.page ul { padding-left: 1.25rem; }
.page li { margin-bottom: .35rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
