/* Jagttider website — shared stylesheet for all languages.
   Colours mirror the app: dark forest green, warm off-white text, leaf-green accent. */

:root {
  --bg: #12290F;
  --text: #EFE9DC;
  --text-dim: rgba(239, 233, 220, 0.85);
  --text-dimmer: rgba(239, 233, 220, 0.6);
  --accent: #9CCB7E;
  --accent-ink: #12290F;
  --hairline: rgba(239, 233, 220, 0.12);
  --serif: "Lora", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--accent); }

/* ── Language switch ── */

.langbar {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  padding: 12px 24px 0;
  max-width: 680px;
  margin: 0 auto;
}
.langbar .langswitch {
  display: flex;
  border: 1.5px solid var(--hairline);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
}
.langbar a {
  padding: 6px 12px;
  color: var(--text-dimmer);
  text-decoration: none;
}
.langbar a[aria-current="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ── Hero (front page) ── */

.hero { padding: 56px 24px 24px; }
.hero-inner { max-width: 480px; margin: 0 auto; text-align: center; }

.wordmark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 40px;
  color: var(--text-dim);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 11vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero-subtitle {
  font-size: 18px;
  margin: 0 auto 32px;
  max-width: 26em;
  color: var(--text-dim);
}

.appstore-button {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.appstore-pending {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--text-dimmer);
  margin: 0;
}

/* Cropped just below the widget on purpose: the phone runs off the bottom of
   the frame, only the top corners are rounded. */
.hero-shot {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 48px auto 0;
  border-radius: 16px 16px 0 0;
}

.punkter {
  list-style: none;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 0;
  margin: 48px 0 0;
  text-align: left;
}
.punkt { margin: 0; }
.punkt h2 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--accent);
}
.punkt p { margin: 0; font-size: 15px; color: var(--text-dim); }

.kilder {
  margin: 48px auto 0;
  max-width: 480px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dimmer);
}

/* ── Text pages (privacy, support) ── */

.doc { padding: 40px 24px 24px; }
.doc-inner { max-width: 680px; margin: 0 auto; }

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--accent);
  text-decoration: none;
  font-size: 15px;
}

.doc h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.doc .updated { margin: 0 0 32px; font-size: 14px; color: var(--text-dimmer); }
.doc .lead { font-size: 18px; margin: 0 0 32px; color: var(--text-dim); }

.doc section { margin-bottom: 32px; }
.doc h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
}
.doc h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.doc p { margin: 0 0 12px; color: var(--text-dim); }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 24px; color: var(--text-dim); }
.doc a { color: var(--accent); }

.faq-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.faq-item p { margin: 0; }

.provenance {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  font-style: italic;
  color: var(--text-dimmer);
}

/* ── Site footer (legal disclosure, all pages) ── */

.site-footer {
  margin-top: auto;
  padding: 48px 24px 56px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
}
.site-footer-nav a { color: var(--accent); text-decoration: none; }
.site-footer-nav .dot { color: var(--text-dimmer); }
.site-footer-legal {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dimmer);
}
.site-footer-legal a { color: var(--text-dimmer); }

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
