/* Loved Ones — shared site styles. Palette from LODesign.swift (light-only, like the app). */
:root {
  --cream: #FDF9F2;          /* page background */
  --ink: #3A2A1E;            /* primary text, 13.08:1 on cream */
  --ink-secondary: #8A6A52;  /* secondary text, 4.69:1 on cream */
  --coral: #E2653F;          /* accent; large text and decoration only (3.24:1) */
  --surface: #FFFFFF;        /* cards */
  --hairline: #EFE4D4;       /* dividers (decorative) */
  --radius: 20px;
  --shadow: 0 1px 2px rgba(58, 42, 30, 0.06), 0 8px 24px rgba(58, 42, 30, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { left: 16px; }

/* Header */
.site-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 16px 0;
  padding-top: max(16px, env(safe-area-inset-top));
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-rounded);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}
.brand img { border-radius: 9px; display: block; }

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Landing */
.hero {
  text-align: center;
  padding: 40px 0 24px;
  max-width: 640px;
  margin: 0 auto;
}
.hero-icon {
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: block;
  margin: 0 auto 20px;
}
.hero h1 {
  font-family: var(--font-rounded);
  font-size: 44px;
  line-height: 1.1;
  margin: 0;
  color: var(--coral);
  letter-spacing: -0.01em;
}
.subtitle {
  font-family: var(--font-rounded);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin: 6px 0 24px;
}
.lead {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 12px;
}
.blurb { margin: 0 0 28px; }
.soon {
  display: inline-block;
  margin: 0;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--coral);
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--shadow);
}

.features { padding: 24px 0 8px; }
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.feature {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.feature h3 {
  font-family: var(--font-rounded);
  font-size: 18px;
  margin: 0 0 4px;
}
.feature p { margin: 0; color: var(--ink-secondary); }

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 64px; }
  .hero h1 { font-size: 56px; }
}
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Long-form documents (legal, support) */
.doc {
  max-width: 720px;
  margin: 24px auto 0;
  padding: 0 0 8px;
}
.doc h1 {
  font-family: var(--font-rounded);
  font-size: 30px;
  line-height: 1.2;
  margin: 8px 0 16px;
}
.doc h2 {
  font-family: var(--font-rounded);
  font-size: 22px;
  line-height: 1.3;
  margin: 32px 0 10px;
}
.doc h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 24px 0 8px;
}
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin: 0 0 8px; }
.doc li::marker { color: var(--ink-secondary); }
.doc hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 28px 0;
}

@media (min-width: 760px) {
  .doc {
    margin-top: 32px;
    background: var(--surface);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 40px 48px 32px;
  }
  .doc h1 { font-size: 36px; }
}

/* 404 */
.notfound {
  text-align: center;
  padding: 72px 0 40px;
}
.notfound h1 {
  font-family: var(--font-rounded);
  font-size: 36px;
  color: var(--coral);
  margin: 0 0 8px;
}
.button {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--coral);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
  max-width: 960px;
  margin: 48px auto 0;
  padding: 24px 16px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  text-align: center;
  font-size: 15px;
  color: var(--ink-secondary);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 10px;
}
.site-footer a { color: var(--ink); }
.footer-contact { margin: 0; }

.page-home .site-header { display: none; }
