/* Shared site styles — content pages for AdSense readiness */
:root {
  --bg: #f4f5f2;
  --ink: #1f241c;
  --muted: #5a6354;
  --lcd: #9aa392;
  --pixel: #2c3226;
  --card: #ffffff;
  --line: #d5d9cf;
  --accent: #2c3226;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 720px;
}

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

html { scroll-behavior: smooth; }

body.site {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(180deg, #e8ebe3 0%, var(--bg) 180px);
  line-height: 1.6;
  padding:
    calc(12px + var(--safe-top))
    calc(16px + var(--safe-right))
    calc(24px + var(--safe-bottom))
    calc(16px + var(--safe-left));
}

a { color: var(--pixel); }
a:hover { text-decoration: underline; }

.site-header {
  max-width: var(--max);
  margin: 0 auto 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-link img {
  width: 40px;
  height: 40px;
  border-radius: 22%;
  border: 1px solid var(--pixel);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--pixel);
  text-decoration: none;
}

.site-nav .play-link {
  background: var(--pixel);
  color: var(--lcd) !important;
  border-radius: 10px;
  padding: 0 14px;
  font-weight: 800;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.hero {
  background: var(--lcd);
  color: var(--pixel);
  border: 3px solid var(--pixel);
  border-radius: 16px;
  padding: 28px 22px;
  margin-bottom: 28px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.hero p {
  margin: 0 0 18px;
  max-width: 38ch;
  font-size: 1.05rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 2px solid var(--pixel);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--pixel);
  color: var(--lcd);
}

.btn-secondary {
  background: transparent;
  color: var(--pixel);
}

.btn:hover { filter: brightness(1.05); text-decoration: none; }

.content h2 {
  margin: 28px 0 10px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.content h3 {
  margin: 22px 0 8px;
  font-size: 1.1rem;
}

.content p,
.content li {
  color: var(--ink);
  font-size: 1.02rem;
}

.content ul { padding-left: 1.2rem; }
.content li { margin-bottom: 8px; }

.card-grid {
  display: grid;
  gap: 12px;
  margin: 18px 0 28px;
}

@media (min-width: 600px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 14px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.ad-slot {
  margin: 24px 0;
  width: 100%;
  min-height: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef0ea;
  border: 1px dashed #b7beb0;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
  overflow: hidden;
  box-sizing: border-box;
  /* CLS: fixed reservation so ads don't shove page content */
  contain: size layout;
}

.ad-slot.ad-slot--rect {
  min-height: 250px;
  height: 250px;
  padding: 12px;
}

.ad-slot[data-filled="true"] {
  border-style: solid;
  background: transparent;
  padding: 0;
  /* Keep reserved height even when filled */
  min-height: 250px;
  height: 250px;
}

.ad-slot.ad-slot--rect[data-filled="true"] {
  min-height: 250px;
  height: 250px;
}

.site-footer {
  max-width: var(--max);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.site-footer a:hover { color: var(--pixel); }

.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + var(--safe-bottom));
  z-index: 1000;
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 2px solid var(--pixel);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  display: none;
}

.cookie-banner.show { display: block; }

.cookie-banner p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--ink);
}

.cookie-banner .btn-row { justify-content: flex-end; }

.cookie-banner .btn {
  min-height: 44px;
  font-size: 0.9rem;
}

.prose-note {
  background: #e8ebe3;
  border-left: 4px solid var(--pixel);
  padding: 12px 14px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.contact-box a { font-weight: 700; }
