/* EPVision public site — shared stylesheet.
   Colors and font match lib/app_theme.dart exactly (light + dark palettes),
   so this site reads as the same product as the app, not a separate brand. */

:root {
  --bg: #FAEFDC;      /* kBg — warm parchment */
  --dark: #2B1F0E;    /* kDark — deep espresso brown */
  --chip: #F5E6C8;    /* kChipBg — warm sand */
  --accent-border: rgba(43, 31, 14, 0.18);
  --max-width: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #302218;
    --dark: #F0DFB8;
    --chip: #3F2D1F;
    --accent-border: rgba(240, 223, 184, 0.22);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--dark);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--dark); }
a:hover { opacity: 0.75; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* ── Header ─────────────────────────────────────────────────────────── */

header.site-header {
  padding: 28px 20px 20px;
  border-bottom: 1px solid var(--accent-border);
  margin-bottom: 32px;
}

.site-header .wrap {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
}

.brand img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.brand span {
  font-size: 22px;
  font-weight: 700;
}

nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 15px;
}

nav.site-nav a {
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

nav.site-nav a.current,
nav.site-nav a:hover {
  border-bottom-color: var(--dark);
}

/* ── Content ────────────────────────────────────────────────────────── */

main h1 {
  font-size: 30px;
  margin: 0 0 6px;
}

main .tagline {
  opacity: 0.75;
  margin: 0 0 28px;
  font-size: 16px;
}

.card {
  background: var(--chip);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 0 0 20px;
}

.notice {
  background: var(--chip);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  margin: 0 0 28px;
}

.notice strong { display: block; margin-bottom: 4px; }

.placeholder {
  background: repeating-linear-gradient(
    45deg,
    var(--chip),
    var(--chip) 10px,
    var(--bg) 10px,
    var(--bg) 20px
  );
  border: 1px dashed var(--dark);
  border-radius: 8px;
  padding: 2px 8px;
  font-style: italic;
  font-size: 0.95em;
}

h2 {
  font-size: 21px;
  margin: 36px 0 10px;
  padding-top: 6px;
  border-top: 1px solid var(--accent-border);
}

h2:first-of-type {
  border-top: none;
  margin-top: 0;
}

h3 {
  font-size: 17px;
  margin: 20px 0 6px;
}

ul, ol {
  padding-left: 22px;
}

li { margin: 4px 0; }

.grid-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0 8px;
}

@media (max-width: 480px) {
  .grid-links { grid-template-columns: 1fr; }
}

.grid-links a {
  display: block;
  background: var(--chip);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  font-weight: 700;
}

.grid-links a small {
  display: block;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 4px;
  font-size: 13px;
}

.btn {
  display: inline-block;
  background: var(--dark);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.btn:hover { opacity: 0.9; }

/* ── Footer ─────────────────────────────────────────────────────────── */

footer.site-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--accent-border);
  font-size: 14px;
  opacity: 0.85;
}

footer.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 10px;
}

footer.site-footer a { text-decoration: underline; }
