/*
 * Family Apps marketing site.
 * Token values are copied from src/app/globals.css (:root, and the dark
 * prefers-color-scheme block). This folder has no build step, so it cannot
 * import that file. Do not add a font file, a third-party URL, or a script.
 * --on-sage is the shipped primary button text (text-white on bg-sage).
 */

:root {
  --sage: #6e8f7a;
  --sage-soft: color-mix(in srgb, #6e8f7a 72%, white);
  --sage-deep: color-mix(in srgb, #6e8f7a 78%, black);
  --on-sage: #ffffff;
  --muted-sand: #d8cbb8;
  --canvas-neutral: #f6f5f2;
  --canvas: var(--canvas-neutral);
  --surface: #fcfbf8;
  --border: #e6e1da;
  --ink: #2e3733;
  --ink-muted: #68706b;
  --shadow-card: 0 1px 2px rgb(46 55 51 / 0.04), 0 8px 24px rgb(46 55 51 / 0.05);
  --illust-wash: color-mix(in srgb, var(--muted-sand) 28%, var(--surface));
  --duration-enter: 150ms;
  --ease-enter: ease-out;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sage: #6e8f7a;
    --sage-soft: color-mix(in srgb, #6e8f7a 38%, var(--surface));
    --sage-deep: color-mix(in srgb, #6e8f7a 52%, black);
    --canvas-neutral: #1b1f1c;
    --canvas: var(--canvas-neutral);
    --surface: #232825;
    --border: #333a35;
    --ink: #e8ebe8;
    --ink-muted: #9aa39d;
    --shadow-card: 0 1px 2px rgb(0 0 0 / 0.24), 0 8px 24px rgb(0 0 0 / 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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

html {
  font-size: 16px;
  color-scheme: light dark;
  background: var(--canvas);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 20px;
  overflow: visible;
  clip: auto;
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: 744px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .shell {
    padding-inline: 24px;
  }
}

.site-header {
  padding-top: 24px;
  padding-bottom: 8px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

main.shell {
  padding-top: 16px;
  padding-bottom: 24px;
}

h1 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

p {
  margin: 0;
}

.lead {
  max-width: 38rem;
  margin-bottom: 24px;
}

.back {
  margin-bottom: 16px;
}

.back a,
.card h2 a,
.hosts a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
}

.back a {
  min-height: 44px;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.card h2 a:hover,
.back a:hover,
.hosts a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.card p {
  color: var(--ink-muted);
}

.host {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.figure {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 16px;
  background: var(--illust-wash);
  border-radius: 24px;
}

.prose {
  max-width: 38rem;
}

.action {
  margin-top: 24px;
}

.open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--on-sage);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.open:hover,
.open:active {
  background: var(--sage-deep);
}

.open:focus-visible {
  outline-color: var(--ink);
}

.site-footer {
  padding-top: 8px;
  padding-bottom: 48px;
}

.site-footer nav {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.hosts {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
