/* Golampi site — Lamplight palette (brand-golampi.md). Lamp yellow is never used as text on cream. */

:root {
  --ink: #1f2a44;
  --muted: #5b6475;
  --cream: #fff8ec;
  --cream-deep: #f3ead6;
  --lamp: #f5a524;
  --ember: #b4470f;
  --teal: #0f6e66;
  --surface: #fffdf7;
  --line: rgba(31, 42, 68, 0.12);
  --shadow: 0 18px 40px rgba(31, 42, 68, 0.08);
  --serif-gap: -0.01em;
  --measure: 40rem;
  --page: 68rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, system-ui, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; border: 0; }

a {
  color: var(--ember);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--lamp);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--page), calc(100% - 2.5rem));
  margin: 0 auto;
}

.prose-wrap {
  width: min(46rem, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
}

.brand .name {
  font-family: Nunito, Inter, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: var(--serif-gap);
  line-height: 1;
}

.nav a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  margin-left: 1.25rem;
}

.nav a:hover { color: var(--ember); }

/* Hero */
.hero {
  position: relative;
  text-align: center;
  padding: 3.5rem 0 4.25rem;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.5rem;
  width: 22rem;
  height: 22rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(245, 165, 36, 0.32) 0%, rgba(245, 165, 36, 0.1) 42%, rgba(245, 165, 36, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: breathe 3.2s ease-in-out infinite;
  }
}

@keyframes breathe {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

.hero-inner { position: relative; z-index: 1; }

.hero-mark {
  width: 9.5rem;
  height: 9.5rem;
  margin: 0 auto 0.75rem;
  display: block;
}

.wordmark {
  margin: 0;
  font-family: Nunito, Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  letter-spacing: var(--serif-gap);
  line-height: 1.05;
}

.lede {
  max-width: 28rem;
  margin: 0.9rem auto 1.4rem;
  color: var(--muted);
  font-size: 1.1875rem;
  line-height: 1.45;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--lamp);
}

/* Features */
.features {
  padding: 0 0 3.5rem;
}

.features h2 {
  font-family: Nunito, Inter, sans-serif;
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: var(--serif-gap);
  text-align: center;
  margin: 0 0 1.5rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 1.15rem; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.35rem 1.4rem 1.4rem;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  color: var(--teal);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-family: Nunito, Inter, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: var(--serif-gap);
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Disclaimer */
.disclaimer {
  background: var(--cream-deep);
  border-radius: 1.15rem;
  padding: 1.25rem 1.4rem;
  margin: 0 0 3.5rem;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.disclaimer strong {
  font-family: Nunito, Inter, sans-serif;
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
}

.footer-links a { color: var(--ink); font-weight: 500; text-decoration: none; }
.footer-links a:hover { color: var(--ember); }

/* Privacy typography */
.legal-hero {
  padding: 2.25rem 0 1.5rem;
}

.legal-hero p.kicker {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0 0 0.6rem;
  font-family: Nunito, Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: var(--serif-gap);
  line-height: 1.15;
}

.meta {
  color: var(--muted);
  margin: 0;
}

.legal {
  padding-bottom: 3.5rem;
}

.legal h2 {
  font-family: Nunito, Inter, sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: var(--serif-gap);
  margin: 2.25rem 0 0.75rem;
  scroll-margin-top: 1rem;
}

.legal h3 {
  font-family: Nunito, Inter, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 1.4rem 0 0.5rem;
  scroll-margin-top: 1rem;
}

.legal p, .legal li { color: var(--ink); }

.legal p { margin: 0 0 0.85rem; }

.legal ul, .legal ol {
  margin: 0 0 0.95rem;
  padding-left: 1.25rem;
}

.legal li { margin: 0 0 0.35rem; }

.legal li ul { margin: 0.35rem 0 0.15rem; }

.legal strong { font-weight: 600; }

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0 0.5rem;
}

.toc p {
  margin: 0 0 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 1;
}

@media (min-width: 640px) {
  .toc ol { columns: 2; column-gap: 1.5rem; }
}

.toc a { color: var(--ink); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--ember); }

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 0 0 1.1rem;
}

.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

.legal th {
  background: var(--cream-deep);
  font-weight: 600;
}

.legal th:first-child, .legal td:first-child { padding-left: 0; }
.legal th:last-child, .legal td:last-child { padding-right: 0; }

@media (max-width: 639px) {
  .legal table, .legal thead, .legal tbody, .legal th, .legal td, .legal tr {
    display: block;
  }
  .legal thead { position: absolute; left: -9999px; }
  .legal tr {
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: var(--surface);
    margin: 0 0 0.75rem;
    padding: 0.7rem 0.9rem;
  }
  .legal td {
    border: 0;
    padding: 0.25rem 0;
  }
  .legal td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.1rem;
  }
}
