/* ------------------------------------------------------------------
   Snoozabara landing page — placeholder styles
   ------------------------------------------------------------------
   Colours follow the proposed page palette in
   /workspace/side_hustles/sleep_sounds/social/landing_page/snoozabara_brand_pack.md
   (section B). That palette is a proposal sampled from the stills and
   thumbnail typography; it is not a formally approved brand palette.
   Outfit is self-hosted (SIL OFL 1.1) from the file named in the pack.
   No third-party font or script CDN.
   ------------------------------------------------------------------ */

@font-face {
  font-family: Outfit;
  src: url("assets/fonts/Outfit-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky-900: #120c08;         /* warm dark page background (thumbnail scrim) */
  --sky-800: #18120b;         /* panels, header surfaces, deep brown shadow */
  --sky-700: #18120b;         /* cards */
  --sky-600: #2d2417;         /* rules, quiet dividers, hover */
  --mist: #d4cab7;            /* secondary type */
  --mist-dim: #d4cab7;
  --moon: #f8ecd6;            /* main type (thumbnail cream) */
  --lantern: #e8b15a;         /* lantern and fire accent */
  --lantern-deep: #c45a16;    /* fire ember */
  --ink: #120c08;             /* type on a cream fill */
  --focus: #f8ecd6;
  --card-border: #2d2417;
  --overlay: rgba(18, 12, 8, 0.72);
  --night-cool: #0b151b;      /* reserved: cool night sections */

  --font-display: Outfit, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: Outfit, "Segoe UI", system-ui, -apple-system, sans-serif;

  --space: 1.25rem;
  --measure: 70rem;
  --radius: 0.85rem;
  --radius-pill: 999px;
  --shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.35);
}

/* --- Reset and base ------------------------------------------------ */

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--mist);
  background: var(--sky-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--lantern);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--moon);
}

:focus {
  outline: none;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--moon);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

/* --- Skip link ----------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: var(--moon);
  color: var(--ink);
  border-radius: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
  color: var(--ink);
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* --- Placeholder markers (remove .ph styles when copy is final) --- */

.ph {
  font-style: italic;
  border-bottom: 1px dashed rgba(232, 177, 90, 0.75);
}

a[href^="#PLACEHOLDER-"] {
  cursor: not-allowed;
}

/* --- Layout helpers ------------------------------------------------ */

.wrap {
  width: min(100% - 2rem, var(--measure));
  margin-inline: auto;
}

/* --- Header -------------------------------------------------------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  padding: 0.9rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--moon);
  text-decoration: none;
  min-height: 44px;
}

.brand:hover {
  color: var(--moon);
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  border-radius: 0.45rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.header-link {
  color: var(--moon);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.55rem 0.2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.header-link:hover {
  color: var(--lantern);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.7rem;
}

.btn-compact {
  min-height: 44px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
}

/* --- Hero ---------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Short enough on a phone that the title sits on the first screen
     and the still is not cropped into a tight close-up. */
  min-height: auto;
  padding: 7.25rem 0 3.25rem;
}

@media (min-width: 720px) {
  .hero {
    min-height: 88svh;
    padding: 7.5rem 0 4.5rem;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(18, 12, 8, 0.38) 0%,
      rgba(18, 12, 8, 0.58) 42%,
      rgba(18, 12, 8, 0.88) 78%,
      var(--sky-900) 100%
    ),
    linear-gradient(90deg, rgba(18, 12, 8, 0.35), transparent 55%),
    url("assets/hero-tent-still.jpg") 28% 42% / cover no-repeat;
}

/* Quiet starfield, CSS only */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 8% 18%, rgba(248, 236, 214, 0.7), transparent),
    radial-gradient(1px 1px at 22% 12%, rgba(248, 236, 214, 0.45), transparent),
    radial-gradient(1.5px 1.5px at 36% 22%, rgba(248, 236, 214, 0.55), transparent),
    radial-gradient(1px 1px at 54% 8%, rgba(248, 236, 214, 0.4), transparent),
    radial-gradient(1px 1px at 71% 16%, rgba(248, 236, 214, 0.65), transparent),
    radial-gradient(1px 1px at 86% 11%, rgba(248, 236, 214, 0.5), transparent),
    radial-gradient(1px 1px at 93% 28%, rgba(248, 236, 214, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 14% 36%, rgba(232, 177, 90, 0.45), transparent);
  opacity: 0.7;
}

.hero-copy {
  max-width: 38rem;
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lantern);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.05rem, 6vw, 3.6rem);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  font-weight: 900;
  text-shadow: 0 1px 18px rgba(18, 12, 8, 0.55);
}

.hero-promise {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.45;
  color: var(--moon);
  margin: 0 0 1.75rem;
  max-width: 36rem;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.45rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--sky-900);
  color: var(--moon);
  border: 2px solid var(--moon);
}

.btn-primary:hover {
  background: var(--moon);
  color: var(--ink);
}

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

/* --- Sections ------------------------------------------------------ */

.section {
  padding: 3.25rem 0;
}

.section-head {
  margin-bottom: 1.6rem;
}

.section-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lantern);
  font-weight: 600;
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  margin: 0;
}

.rule {
  display: block;
  width: 2.4rem;
  height: 2px;
  background: var(--lantern);
  margin: 0.85rem 0 0;
  border: 0;
}

/* --- Card grid ----------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--sky-700);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--moon);
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 100%;
}

.card:hover {
  color: var(--moon);
  border-color: rgba(232, 177, 90, 0.7);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

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

.card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sky-800);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Source thumbnails that carry a painted title along the bottom.
   The original files are untouched; this only hides the strip in the card. */
.card-media img.crop-titlebar {
  height: 114%;
  object-position: center top;
}

.card-body {
  padding: 0.95rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.card-kind {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist-dim);
}

.card-soon .card-kind {
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0;
  color: var(--moon);
}

/* --- Ask for a sound ---------------------------------------------- */

.ask {
  padding-bottom: 4rem;
}

.ask-panel {
  background:
    radial-gradient(1200px 280px at 10% 0%, rgba(232, 177, 90, 0.10), transparent 60%),
    var(--sky-800);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: 2rem 1.4rem;
  text-align: center;
}

@media (min-width: 720px) {
  .ask-panel {
    padding: 2.6rem 3rem;
  }
}

.ask-panel h2 {
  margin-bottom: 0.35rem;
}

.ask-panel .rule {
  margin-inline: auto;
  margin-bottom: 1.1rem;
}

.ask-text {
  margin: 0 auto 1.5rem;
  max-width: 38ch;
  color: var(--mist);
  font-size: 1.0625rem;
}

/* --- Footer -------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 1.5rem 0 2rem;
  color: var(--mist-dim);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}

.site-footer a {
  color: var(--mist);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-footer a:hover {
  color: var(--lantern);
}

/* --- 404 ----------------------------------------------------------- */

.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-404 main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
}

.page-404 h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.page-404 p {
  max-width: 36ch;
  margin-bottom: 1.5rem;
}

/* --- Reduced motion ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .card:hover {
    transition: none;
    transform: none;
  }
}

/* --- Button row and secondary ------------------------------------ */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-secondary {
  background: var(--moon);
  color: var(--ink);
  border: 2px solid var(--moon);
}

.btn-secondary:hover {
  background: transparent;
  color: var(--moon);
}

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

/* --- Prose blocks ------------------------------------------------ */

.narrow {
  max-width: 42rem;
}

.prose p {
  color: var(--mist);
}

.section h2 {
  font-weight: 900;
}

/* --- Coming soon cards ------------------------------------------- */

.card-soon {
  cursor: default;
}

.card-soon:hover {
  transform: none;
  border-color: var(--card-border);
  box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.18);
}

.card-kind {
  font-weight: 600;
}

.later {
  color: var(--mist-dim);
  font-style: italic;
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

li.later {
  margin-top: 0.35rem;
}

/* --- Sound families ---------------------------------------------- */

.family-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 720px) {
  .family-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.family {
  background: var(--sky-800);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.1rem;
}

.family h3 {
  font-size: 1.2rem;
  margin: 0 0 0.45rem;
  font-weight: 900;
}

.family p {
  margin: 0 0 0.8rem;
}

.family ul {
  margin: 0;
  padding-left: 1.1rem;
}

.family li {
  margin: 0 0 0.4rem;
}

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

/* --- FAQ --------------------------------------------------------- */

.faq h3 {
  font-size: 1.15rem;
  margin: 1.35rem 0 0.35rem;
  font-weight: 900;
}

.faq h3:first-child {
  margin-top: 0;
}

.faq p {
  margin: 0 0 0.2rem;
}

/* --- Footer ------------------------------------------------------ */

.footer-lead {
  margin: 0 0 0.7rem;
  color: var(--moon);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.4rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.footer-signoff {
  margin: 1rem 0 0;
  color: var(--moon);
  font-weight: 500;
}


@media (max-width: 719px) {
  .header-actions {
    display: none;
  }
}
