/* foundingfans.app. Colors and fonts follow the brand tokens (founding-fans-brand tokens.json and
   apps/mobile/src/theme/tokens.ts). Gold is a fill only: gold text and links use --primary-ink. */

@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Graduate';
  src: url('/assets/fonts/Graduate-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f5efe4;
  --surface: #ffffff;
  --surface-alt: #f6e7c8;
  --border: #e7dcc8;
  --text: #23201d;
  --text-muted: #4f4740;
  --primary: #c9892b;
  --primary-ink: #865a17;
  --on-primary: #23201d;
  --font-display: 'Graduate', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius-button: 12px;
  --radius-card: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #23201d;
    --surface: #2e2a26;
    --surface-alt: #3a2e1f;
    --border: #3a332b;
    --text: #f6e7c8;
    --text-muted: #cfc2a8;
    --primary: #e3a53e;
    --primary-ink: #e3a53e;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

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

a {
  color: var(--primary-ink);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--primary-ink);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: var(--space-6) 0 var(--space-3);
}

h1 {
  font-size: 2rem;
  margin-top: 0;
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1.1rem;
}

p,
ul,
ol {
  margin: 0 0 var(--space-4);
}

li {
  margin-bottom: var(--space-2);
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.measure {
  max-width: 680px;
}

.small {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
}

.skip {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  background: var(--surface);
  color: var(--text);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-button);
}

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

/* Header */

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.site-header__logo img {
  width: 200px;
}

.site-nav a {
  font-weight: 700;
  text-decoration: none;
  padding: var(--space-2);
}

.site-nav a[aria-current='page'] {
  text-decoration: underline;
}

/* Page body */

.page {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.updated {
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

/* Landing */

.hero {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: 1fr 240px;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-4);
}

.hero__lead {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.hero__icon {
  justify-self: center;
  width: 200px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.button {
  display: inline-block;
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-button);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
}

.badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 500;
}

.features {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-7);
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
}

.card h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0;
}

.site-footer p {
  margin-bottom: var(--space-2);
}
