/* littleGallery — the app's own palette (lib/core/theme/app_palette.dart):
   ivory paper, warm ink, terracotta for anything that acts. */
:root {
  --canvas: #fffff4;
  --surface: #f7f4e4;
  --raised: #ffffff;
  --terracotta: #9c3d16;
  --terracotta-soft: #f6e4dd;
  --sage: #cde7d6;
  --sage-deep: #2f6b47;
  --ink: #22221a;
  --ink-muted: #6c6a5b;
  --hairline: #e6e2ce;
  --measure: 34rem;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--terracotta); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

/* Focus that is visible on ivory without shouting. */
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

/* ---- Header ---------------------------------------------------------- */

.site-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0 0;
}

.site-head img { width: 38px; height: 38px; border-radius: 9px; }

.site-head strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }

.site-head nav {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
  font-size: 0.93rem;
}

.site-head nav a { color: var(--ink-muted); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current='page'] {
  color: var(--terracotta);
}

/* ---- Hero ------------------------------------------------------------ */

.hero { padding: clamp(3rem, 9vw, 5.5rem) 0 clamp(2rem, 6vw, 3.5rem); }

.hero h1 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.1rem, 6.5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.hero p {
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  color: var(--ink-muted);
  max-width: var(--measure);
  margin: 0 0 2rem;
}

.button {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
}

.button:hover { background: #82320f; }

.button-note { display: block; margin-top: 0.7rem; font-size: 0.9rem; color: var(--ink-muted); }

/* ---- Content sections ------------------------------------------------ */

section { padding-block: clamp(2rem, 6vw, 3.25rem); }

h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.4rem, 3.6vw, 1.85rem);
  line-height: 1.25;
  margin: 0 0 1rem;
}

h3 { font-size: 1.05rem; font-weight: 600; margin: 2rem 0 0.5rem; }

p, li { max-width: var(--measure); }

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.features li {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  max-width: none;
}

.features strong { display: block; margin-bottom: 0.25rem; }
.features span { color: var(--ink-muted); font-size: 0.95rem; }

/* The promise that matters most on this app, so it gets the sage card. */
.pledge {
  background: var(--sage);
  border-radius: 18px;
  padding: clamp(1.4rem, 4vw, 2rem);
}

.pledge h2 { color: var(--sage-deep); margin-bottom: 0.5rem; }
.pledge p:last-child { margin-bottom: 0; }

/* ---- Legal pages ----------------------------------------------------- */

.legal { padding-block: clamp(2.5rem, 7vw, 4rem); }

.legal h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  margin: 0 0 0.35rem;
}

.updated { color: var(--ink-muted); font-size: 0.93rem; margin: 0 0 2.5rem; }

.legal h2 { margin-top: 2.5rem; }

.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }

.callout {
  background: var(--terracotta-soft);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  max-width: var(--measure);
}

.callout p { margin: 0; }

hr { border: 0; border-top: 1px solid var(--hairline); margin: 3rem 0; }

/* ---- Footer ---------------------------------------------------------- */

footer {
  border-top: 1px solid var(--hairline);
  margin-top: 3rem;
  padding: 2rem 0 3rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 0.75rem; }
footer a { color: var(--ink-muted); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
