/* AayuLog website. Colors match the app (AayuLog/Views/Theme.swift). */
:root {
  color-scheme: light dark;
  --bg: #FBF6EF;
  --card: #FFFFFF;
  --text: #1F1A16;
  --muted: #665C53;
  --accent: #A64B24;
  --diaper: #356660;
  --hero: linear-gradient(135deg, #FFF3E9, #FBDFCB);
  --line: rgba(0, 0, 0, 0.08);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171310;
    --card: #26201B;
    --text: #F4EEE8;
    --muted: #BDB2A7;
    --accent: #F0A272;
    --diaper: #8CC7BE;
    --hero: linear-gradient(135deg, #3A291E, #2B1F18);
    --line: rgba(255, 255, 255, 0.1);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--card); padding: 8px 14px; border-radius: 10px;
}
.skip:focus { left: 8px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
nav.site a { margin-left: 18px; font-weight: 600; text-decoration: none; }
nav.site a:first-child { margin-left: 0; }
nav.site a[aria-current="page"] { text-decoration: underline; }

main { padding: 36px 0 56px; }

h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 23px; line-height: 1.3; margin: 40px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 4px; }
p, ul { margin: 0 0 14px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }

.lead { font-size: 20px; color: var(--muted); max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

.hero {
  background: var(--hero);
  border-radius: 28px;
  padding: 32px 28px;
  display: grid;
  gap: 20px;
}
.hero .icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); }

.badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
@media (prefers-color-scheme: dark) { .badge { color: #171310; } }
.badge[aria-disabled="true"] { opacity: 0.75; cursor: default; }

.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 28px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }

.shots { display: flex; gap: 16px; overflow-x: auto; padding: 8px 2px 16px; margin-top: 28px; scroll-snap-type: x mandatory; }
.shots img {
  width: 220px; height: auto; flex: 0 0 auto;
  border-radius: 26px; border: 1px solid var(--line);
  scroll-snap-align: start;
}

.doc h2 { border-top: 1px solid var(--line); padding-top: 28px; }
.doc h2:first-of-type { border-top: 0; padding-top: 0; }

.contact {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 20px 0 8px;
}
.contact .email { font-size: 20px; font-weight: 700; word-break: break-all; }

details {
  background: var(--card);
  border-radius: 16px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 650; }
details[open] summary { margin-bottom: 8px; }

footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 15px; color: var(--muted); }
footer.site a { margin-right: 16px; }

.contact p { margin: 0; }
.contact p + p { margin-top: 4px; }
.contact p.small { margin-top: 10px; }
