/* Lady Tides — marketing site
   Palette and type mirror constants/Colors.ts and components/ThemedText.tsx. */

@font-face {
  font-family: "DM Serif Display";
  src: url("fonts/DMSerifDisplay_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans_300Light.ttf") format("truetype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --stone-50:  #FAF9F7;
  --stone-200: #E2DDD6;
  --stone-500: #8B8680;
  --stone-900: #262421;
  --sage-400:  #9CAF88;
  --gold:      #E8D07C;

  --serif: "DM Serif Display", Georgia, serif;
  --sans:  "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--stone-900);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 36rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */

.hero { text-align: center; }

.mark {
  display: block;
  width: 132px;
  height: auto;
  margin: 0 auto 2.25rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 11vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.lede {
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0 auto 2.25rem;
  max-width: 26rem;
}

/* ─── App Store button ─────────────────────────────────────────────────── */

.appstore {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.appstore:hover { opacity: 0.82; }

.appstore:focus-visible {
  outline: 2px solid var(--sage-400);
  outline-offset: 4px;
}

.appstore svg {
  width: 168px;
  height: 56px;
  display: block;
}

.appstore.small {
  line-height: 1.65;
  font-size: 1rem;
  color: var(--stone-900);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  border-radius: 0;
}

/* ─── Sections ─────────────────────────────────────────────────────────── */

section {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--stone-200);
}

h2 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--stone-500);
  margin: 0 0 1rem;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

ul {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
}

li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

li:last-child { margin-bottom: 0; }

.quiet {
  font-size: 0.9375rem;
  color: var(--stone-500);
}

.hero .quiet { margin-top: 1rem; }

a { color: inherit; }

p a {
  text-decoration: none;
  border-bottom: 1px solid var(--stone-200);
  padding-bottom: 1px;
}

p a:hover { border-bottom-color: var(--stone-500); }

/* ─── Footer ───────────────────────────────────────────────────────────── */

footer {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--stone-200);
}

footer .quiet { margin-top: 1.75rem; }

@media (min-width: 40rem) {
  main { padding-top: 6.5rem; }
}
