/* Cheek Puff Hamster — site styles. Colours from the app theme (Theme.kt). Fonts are self-hosted (OFL). */
@font-face { font-family: "Nunito"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/nunito-semibold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/nunito-extrabold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-style: normal; font-display: swap; src: url("/assets/fonts/nunito-black.woff2") format("woff2"); }

:root {
  --cream: #FFF7EC;
  --ink: #3B2A20;
  --muted: #6F5B4B;
  --primary: #B4561B;
  --primary-dark: #8F4111;
  --primary-soft: #FFEAD4;
  --link: #9E4813; /* darker than primary so links pass AA on every light background */
  --gold: #FFC93C;
  --gold-edge: #D99A1E;
  --card: #FFFFFF;
  --line: #EEDCC8;
  --band: #FFF0DD;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; font-weight: 900; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 7vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 4.5vw, 1.85rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
strong { font-weight: 800; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { background: var(--card); border-bottom: 3px dotted var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 12px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 1.2rem; }
.brand img { width: 44px; height: 44px; }
.main-nav ul, .langs ul, .footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.main-nav a, .langs a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; font-weight: 800; color: var(--ink);
}
.main-nav a:hover, .langs a:hover { background: var(--primary-soft); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--primary-soft); }
.langs { padding-bottom: 8px; }
.langs a { min-height: 44px; font-size: .95rem; color: var(--muted); padding: 0 12px; }
.langs a[aria-current="true"] { color: var(--ink); background: var(--gold); }

/* Home */
.hero { padding: 40px 0 32px; }
.hero-row { display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: space-between; gap: 24px; }
.hero-text { flex: 1 1 20rem; }
.hero-art { width: clamp(140px, 34vw, 240px); height: auto; filter: drop-shadow(0 10px 0 var(--line)); }
.lead { font-size: 1.2rem; color: var(--ink); max-width: 36rem; }
.badge {
  display: inline-block; background: var(--card); border: 2px solid var(--gold-edge);
  border-radius: 999px; padding: 8px 18px; font-weight: 800;
}
.actions { margin-top: 6px; }
.button {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px;
  background: var(--primary); color: #fff; text-decoration: none; font-weight: 900;
  border-radius: 999px; box-shadow: 0 4px 0 var(--primary-dark);
}
.button:hover { color: #fff; background: var(--primary-dark); }

.band { background: var(--band); padding: 8px 0 28px; border-top: 3px dotted var(--line); border-bottom: 3px dotted var(--line); }
section > .wrap > h2:first-child { padding-top: 4px; }

.starters { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.starter { background: var(--card); border-radius: var(--radius); padding: 16px 14px 14px; text-align: center; border: 2px solid var(--line); }
.starter .pic { display: flex; align-items: flex-end; justify-content: center; height: 108px; }
.starter h3 { margin: 6px 0 2px; }
.starter p { margin: 0; font-size: .95rem; }
.species { color: var(--muted); }
.size { font-weight: 800; }
.fav { margin-top: 6px !important; background: var(--primary-soft); border-radius: 12px; padding: 4px 8px; }

.features { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.feature { background: var(--card); border-radius: var(--radius); padding: 18px 20px 6px; border: 2px solid var(--line); }

.seed-list { padding-left: 0; list-style: none; }
.seed-list li, .doc ul li { position: relative; padding-left: 28px; margin-bottom: .55em; }
.seed-list li::before, .doc ul li::before {
  content: ""; position: absolute; left: 4px; top: .5em; width: 11px; height: 15px;
  background: var(--gold); border: 2px solid var(--gold-edge); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: rotate(-20deg);
}
.doc ul { list-style: none; padding-left: 0; }
.doc ol { padding-left: 1.4em; }

/* Documents (privacy, terms, parents, delete) */
.doc { max-width: 48rem; padding-top: 32px; padding-bottom: 40px; }
.meta { color: var(--muted); }
.toc { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 20px 6px; margin: 20px 0 8px; }
.toc h2 { font-size: 1.15rem; margin: 0 0 .4em; }
.toc ol { margin: 0 0 10px; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; line-height: 1.3; }
.doc-section { scroll-margin-top: 16px; }
.note { background: var(--primary-soft); border-radius: 16px; padding: 12px 16px; }

/* Tables: cards on phones, normal tables on wide screens */
.table { margin: 0 0 1.2em; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 2px solid var(--line); border-radius: 16px; overflow: hidden; font-size: .97rem; }
.table-title { font-size: 1.25rem; margin: 1em 0 .5em; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
thead th { background: var(--primary-soft); font-weight: 900; }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 800; }
@media (max-width: 639px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tbody tr { border-bottom: 2px solid var(--line); padding: 6px 0; }
  tbody tr:last-child { border-bottom: 0; }
  tbody th, td { border: 0; padding: 4px 14px; }
  tbody th { padding-top: 10px; font-size: 1.05rem; }
  td::before { content: attr(data-label); display: block; font-weight: 800; color: var(--muted); font-size: .85rem; }
}

/* Footer */
.site-footer { background: var(--ink); color: #FFF3E6; padding: 28px 0 36px; margin-top: 24px; }
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.15rem; }
.footer-links { margin: 4px 0 12px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px 0 0; font-weight: 800; }
.small { font-size: .9rem; opacity: .92; }

/* 404 */
.nf-art { margin: 0; }
.nf { border-top: 3px dotted var(--line); padding-top: 12px; }
.nf .footer-links a { color: var(--link); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .site-header, .site-footer, .toc, .skip { display: none; }
  body { background: #fff; }
}
