/*
 * style.css: the one stylesheet for every page on zofriends.com.
 *
 * Why a single local file: the website must never make a request to another company (no Google Fonts, no
 * CDN, no analytics), because a page that sends visitor data anywhere would bring back the Q3 rule in
 * PRD/LEGAL_SUMMARY.md. Fonts below are self-hosted from /fonts/.
 * Look matches the owner's Zomage site (dark mode): forest green background, cream text, Inter font.
 * Owner decision 2026-10-24: use the Zomage style instead of the app's #04170e palette.
 */

/* Inter, self-hosted. The Zomage site loads Inter from Google Fonts, which we must not do here. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  /* swap: show text right away in a fallback font, never a blank page while the font loads */
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Same dark-mode colors as zomage.org */
:root {
  --bg: #21352a;
  --text: #fdfaf1;
  --muted: #a3b1a9;
  --line: #3a4d41;
  --on-surface: #fdfaf1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  /* column layout keeps the footer at the bottom of short pages */
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 18px;
  line-height: 1.6;
}

/* Header: logo word on the left, uppercase letter-spaced links on the right, like zomage.org. No menu script, so links simply wrap on a phone. */
.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 26px;
  padding: 20px 60px;
}

.logo {
  font-family: Impact, "Arial Narrow Bold", sans-serif;
  font-size: 36px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

.main-nav a:hover,
.main-nav a:focus {
  text-decoration: underline;
}

/* Smaller text under a headline, for example "What to do?" on zomage.org */
.subtitle {
  color: var(--muted);
  font-size: 20px;
  margin: 0 0 24px;
}

main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 32px;
}

h1,
h2 {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.2;
}

/* Big uppercase title like the "ZOMAGE" hero on zomage.org */
h1 {
  font-size: 48px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

h2 {
  font-size: 24px;
  margin: 40px 0 8px;
}

a {
  color: var(--on-surface);
}

/* The two store buttons on the home page and the recovery fallback page. */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
}

.store-button {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--on-surface);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.store-button:hover,
.store-button:focus {
  background: var(--on-surface);
  color: var(--bg);
}

/* Footer on every page: the same five links, including the exact "Limit the Use" wording (counsel F1). */
footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  font-size: 15px;
  text-align: center;
}

footer a {
  margin: 0 8px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  h1 {
    font-size: 34px;
  }
  main {
    padding-top: 40px;
  }
  .page-header {
    padding: 16px 24px;
  }
}
