/* Stilltide website. Colours are the app's Light and Dark schemes (StilltideColors.kt). */
:root {
  --bg: #F6F1E9; --ink: #1E2A33; --muted: #4A535A; --primary: #2F5A73; --on-primary: #FFFFFF;
  --card: #F1EBE2; --card-high: #E6DFD3; --line: #CBC3B6; --container: #CFE1EA; --on-container: #123B4F;
  --deep: #1F4357; --on-deep: #F2E3C6; --on-deep-muted: #C9D6DC;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1B24; --ink: #E8E1D5; --muted: #B9BCB8; --primary: #9CC4D8; --on-primary: #0A3346;
    --card: #15222C; --card-high: #1E2C37; --line: #3A4952; --container: #224B60; --on-container: #D3E6EF;
    --deep: #15222C;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg); padding: 8px 12px; border-radius: 10px; z-index: 5; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 400 26px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.wordmark svg { width: 28px; height: 28px; color: var(--primary); flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 600 16px/1.2 var(--sans); text-decoration: none; text-align: center; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-outline { border: 1px solid var(--line); color: var(--ink); }
.btn-light { background: var(--on-deep); color: #1F4357; }
.btn-ghost { border: 1px solid rgba(242, 227, 198, .45); color: var(--on-deep); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }

.hero { display: grid; gap: 40px; align-items: center; padding-top: 32px; padding-bottom: 64px; }
.eyebrow { display: block; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, 7vw, 60px); }
.hero-sub { font-size: 19px; color: var(--muted); margin: 20px 0 28px; max-width: 34em; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.phone { width: 46%; max-width: 250px; border-radius: 28px; overflow: hidden; border: 6px solid var(--card-high); background: var(--card-high); }
.phone.second { margin-bottom: 36px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.05fr .95fr; padding-top: 56px; padding-bottom: 96px; } }

.band { padding: 64px 0; }
.band h2 { font-size: clamp(28px, 4.5vw, 38px); margin-bottom: 28px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--card); border-radius: 24px; padding: 24px; }
.card h3 { font-size: 22px; margin: 14px 0 8px; }
.card p { color: var(--muted); }
.icon-tile { flex: none; display: inline-flex; width: 48px; height: 48px; border-radius: 16px; align-items: center; justify-content: center; background: var(--container); color: var(--on-container); }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.otter-band { background: var(--card); }
.otter-row { display: grid; gap: 32px; align-items: center; }
.otter-pool { position: relative; display: flex; justify-content: center; padding: 28px 0; }
.otter-pool::before, .otter-pool::after { content: ''; position: absolute; top: 50%; left: 50%; border: 1px solid var(--line); border-radius: 50%; transform: translate(-50%, -50%); }
.otter-pool::before { width: 240px; height: 240px; }
.otter-pool::after { width: 330px; height: 330px; opacity: .55; }
.otter-pool img { position: relative; height: 260px; width: auto; }
.otter-row p { color: var(--muted); font-size: 18px; max-width: 32em; }
.otter-row p + p { margin-top: 14px; }
@media (min-width: 760px) { .otter-row { grid-template-columns: 380px 1fr; } }

.cta { background: var(--deep); color: var(--on-deep); padding: 72px 0; text-align: center; }
.cta .soon { display: inline-block; font-size: 14px; color: var(--on-deep-muted); margin-bottom: 14px; }
.cta h2 { font-size: clamp(28px, 5vw, 40px); }
.cta p { color: var(--on-deep-muted); margin: 16px auto 28px; max-width: 34em; }
.cta .ctas { justify-content: center; }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 36px; font-size: 15px; color: var(--muted); }
.footer-left { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a, .footer-left a:not(.wordmark) { color: var(--muted); }

/* Privacy, terms, contact */
.info-header { border-bottom: 1px solid var(--line); }
.info-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; }
.tabs { display: flex; gap: 6px; flex: 1; }
.tabs a { padding: 12px 16px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.tabs a[aria-current] { background: var(--container); color: var(--on-container); }
.back { font-size: 15px; color: var(--muted); }
.info-main { max-width: 720px; margin: 0 auto; padding: 48px 20px 64px; }
.info-main h1 { font-size: clamp(34px, 6vw, 46px); }
.updated { color: var(--muted); font-size: 15px; margin-top: 8px; }
.intro { font-size: 19px; margin-top: 22px; }
.sections { margin-top: 36px; display: grid; gap: 30px; }
.sections h2 { font-size: 25px; margin-bottom: 10px; }
.sections p, .sections li { color: var(--muted); }
.sections p + p, .sections ul + p { margin-top: 12px; }
.sections ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.sections b { color: var(--ink); }
.contact-grid { display: grid; gap: 14px; margin-top: 30px; }
.info-card { display: flex; gap: 16px; align-items: center; background: var(--card); border-radius: 24px; padding: 18px 20px; }
.info-card b { display: block; }
.info-card span:not(.icon-tile) { color: var(--muted); }
.write-card { background: var(--card); border-radius: 24px; padding: 24px; margin-top: 14px; }
.write-card h2 { font-size: 25px; }
.write-card p { color: var(--muted); margin: 8px 0 20px; }

.lost { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 20px; }
.lost h1 { font-size: 36px; }
.lost p { color: var(--muted); margin-bottom: 10px; }
.lost img { height: 180px; width: auto; }

@media (prefers-reduced-motion: no-preference) {
  .otter-pool img { animation: drift 9s ease-in-out infinite; }
  @keyframes drift { 50% { transform: translateY(-6px); } }
}
