/* Soft Hill Stories™ — landing page
   Brand: Fredoka + Nunito, sky #62aff9, ink #341a5c, lavender #9b87c9
   No third-party scripts, cookies, or trackers. */

:root {
  --ink: #341a5c;
  --ink-soft: #4a3470;
  --text: #3a2d4f;
  --muted: #53466a;
  --lavender: #9b87c9;
  --lavender-deep: #6e3da2;
  --lavender-soft: #e7def4;
  --sky: #62aff9;
  --sky-deep: #3d96ef;
  --peach: #f6cbbd;
  --peach-soft: #fde6dc;
  --cream: #fff8f2;
  --snow: #f7f4fb;
  --paper: #ffffff;
  --line: rgba(52, 26, 92, 0.12);
  --shadow: 0 10px 30px rgba(52, 26, 92, 0.1);
  --shadow-lg: 0 18px 50px rgba(52, 26, 92, 0.14);
  --radius: 1.25rem;
  --radius-sm: 0.85rem;
  --header-h: 4.25rem;
  --max: 70rem;
  --font-head: "Fredoka", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Nunito", "Segoe UI", "Helvetica Neue", sans-serif;
  color-scheme: light;
}

@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 450;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--snow);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lavender-deep); }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 0.3rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.5rem;
}
.skip:focus {
  top: 0.75rem;
  color: #fff;
}

sup.tm {
  font-family: var(--font-head);
  font-size: 0.58em;
  font-weight: 600;
  line-height: 1;
  vertical-align: super;
  letter-spacing: 0;
  position: relative;
  top: -0.05em;
}

.logo-name .tm {
  font-size: 0.52em;
  top: -0.15em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 244, 251, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.logo img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--lavender);
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-head);
  font-weight: 650;
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem 0.15rem;
}

.nav a {
  font-family: var(--font-head);
  font-weight: 550;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--lavender-soft);
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      #4ea3f8 0%,
      #62aff9 16%,
      #8fc4f8 38%,
      #d8c4d4 52%,
      #f3cfc6 60%,
      #f6e8e8 70%,
      #f4eef6 82%,
      #f7f4fb 100%
    );
  padding: 2.25rem 1.25rem 2rem;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: end;
  min-height: 28rem;
}

.hero-copy {
  text-align: center;
  padding: 1rem 0 0.5rem;
  position: relative;
  z-index: 2;
}

.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 13vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 0.85rem;
}

.wordmark .line { display: block; }
.wordmark .tm { font-size: 0.46em; top: -0.12em; }

.tagline {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.15rem, 3.2vw, 1.6rem);
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1;
  text-decoration: none;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  border: 2px solid transparent;
  min-height: 3rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(52, 26, 92, 0.25);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: #452276;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(52, 26, 92, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-color: rgba(52, 26, 92, 0.18);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #fff;
  color: var(--ink);
  transform: translateY(-1px);
}

.hero-art {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0 0 1.25rem;
}

.hero-art img {
  width: min(72vw, 22rem);
  height: auto;
  filter: drop-shadow(0 18px 18px rgba(52, 26, 92, 0.16));
  animation: bob 6s ease-in-out infinite;
  transform-origin: 50% 100%;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.4rem); }
}

/* ---------- Sections ---------- */
.section {
  padding: 3.75rem 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-head);
  font-weight: 650;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 0.6rem;
  line-height: 1.15;
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 38rem;
  font-size: 1.15rem;
}

.section-watch { background: var(--snow); }

/* ---------- Video grid ---------- */
.video-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(52, 26, 92, 0.05), var(--shadow);
  border: 1px solid rgba(52, 26, 92, 0.06);
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.video-card:hover,
.video-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #2a1b45;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* hqdefault is 4:3 with 16:9 letterbox bars — crop them out */
  transform: scale(1.34);
  transform-origin: center center;
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.play span {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: rgba(52, 26, 92, 0.88);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.play svg { width: 1.25rem; height: 1.25rem; margin-left: 0.15rem; }

.video-card:hover .play span,
.video-card:focus-visible .play span {
  background: var(--lavender-deep);
  transform: scale(1.06);
}

.duration {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  background: rgba(22, 12, 36, 0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.15rem 0.4rem;
  border-radius: 0.3rem;
}

.video-meta {
  padding: 0.9rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.series {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 550;
  letter-spacing: 0;
  color: var(--lavender-deep);
}

.video-meta h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.watch-more {
  margin: 1.75rem 0 0;
  text-align: center;
}

.link-more {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--lavender);
  padding-bottom: 0.15rem;
}
.link-more:hover { border-bottom-color: var(--ink); color: var(--ink); }

/* ---------- Meet ---------- */
.section-meet {
  background:
    linear-gradient(180deg, #fff8f2 0%, #fdeee4 100%);
}

.meet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.meet-photo {
  margin: 0 auto;
  width: min(18rem, 70%);
}

.meet-photo img {
  width: 100%;
  border-radius: 50%;
  box-shadow:
    0 0 0 8px #fff,
    0 0 0 12px var(--lavender-soft),
    0 20px 40px rgba(52, 26, 92, 0.12);
}

.meet-copy p {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
}

.mantra {
  margin: 0;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  border-left: 4px solid var(--lavender);
  border-radius: 0 0.8rem 0.8rem 0;
}

.mantra p {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 550;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  color: var(--ink);
  line-height: 1.35;
}

.mantra cite {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Colouring ---------- */
.section-colour { background: var(--snow); padding-bottom: 5.5rem; }

.colour-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

.page-preview {
  margin: 0 auto;
  width: min(22rem, 85%);
  background: #fff;
  padding: 0.6rem;
  border-radius: 0.4rem;
  box-shadow:
    0 1px 2px rgba(52, 26, 92, 0.05),
    0 18px 40px rgba(52, 26, 92, 0.12);
  transform: rotate(-1.2deg);
}

.page-preview img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(52, 26, 92, 0.06);
}

.colour-copy .lede { margin-bottom: 1.25rem; }

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.coming-soon {
  margin: 0;
  padding: 0.9rem 1rem;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--text);
}

.coming-soon a { font-weight: 700; }

/* ---------- Find ---------- */
.section-find {
  background:
    linear-gradient(180deg, #efe8f8 0%, #e7def4 40%, #f3eef8 100%);
}

.find-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.find-grid a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(52, 26, 92, 0.08);
  box-shadow: 0 4px 14px rgba(52, 26, 92, 0.06);
  min-height: 3.15rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.find-grid a:hover,
.find-grid a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(52, 26, 92, 0.12);
  color: var(--ink);
}

.icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
  background: var(--lavender-soft);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.icon svg { width: 1.15rem; height: 1.15rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #f3eef8;
  padding: 2.5rem 1.25rem 2.75rem;
  text-align: center;
}

.site-footer .section-inner { max-width: 42rem; }

.site-footer p {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  line-height: 1.55;
}

.site-footer p:last-child { margin-bottom: 0; }

.legal {
  font-weight: 600;
}

.privacy {
  color: #d7cce8;
  font-size: 0.95rem;
}

.site-footer .tm { color: inherit; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .video-grid { grid-template-columns: 1fr 1fr; }
  .find-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .header-inner { padding: 0.7rem 1.75rem; }
  .logo-name { font-size: 1.2rem; }
  .section { padding: 4.5rem 1.75rem; }
  .hero { padding-left: 1.75rem; padding-right: 1.75rem; }
}

@media (min-width: 900px) {
  .hero {
    padding-top: 1.5rem;
    padding-bottom: 1.25rem;
  }
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    min-height: min(36rem, calc(100vh - var(--header-h) - 1rem));
    gap: 1rem;
  }
  .hero-copy {
    text-align: left;
    padding: 2rem 0 3rem;
  }
  .hero-actions { justify-content: flex-start; }
  .hero-art {
    justify-content: flex-end;
    align-self: end;
    margin-right: -1rem;
  }
  .hero-art img { width: min(100%, 28rem); }

  .video-grid { grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; }

  .meet-grid {
    grid-template-columns: 18rem 1fr;
    gap: 3.5rem;
    align-items: center;
  }
  .meet-photo { width: 18rem; margin: 0; }

  .colour-grid {
    grid-template-columns: minmax(14rem, 20rem) 1fr;
    gap: 3.5rem;
  }
  .page-preview { width: 100%; margin: 0; }

  .section { padding: 5rem 2rem; }
}

@media (min-width: 1200px) {
  .hero-art { margin-right: 0; }
  .hero-art img { width: 30rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img,
  .btn,
  .video-card,
  .find-grid a {
    animation: none;
    transition: none;
  }
}

@media (max-width: 399px) {
  .logo-name { font-size: 0.95rem; }
  .nav a { padding: 0.35rem 0.5rem; font-size: 0.88rem; }
  .find-grid { gap: 0.55rem; }
  .find-grid a { font-size: 0.9rem; padding: 0.7rem 0.65rem; }
}

@media (max-width: 719px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
  }
  .nav {
    flex-basis: 100%;
    justify-content: space-between;
    padding: 0 0 0.15rem;
  }
  .nav a { padding: 0.45rem 0.35rem; }
}

.page-404 .section-inner { text-align: center; max-width: 36rem; }
.page-404 .wordmark { font-size: clamp(2.2rem, 7vw, 3.4rem); margin-bottom: 1rem; }
.page-404 .lede { margin-inline: auto; }
.page-404 .hero-actions { justify-content: center; }

#watch, #meet, #colour, #find {
  scroll-margin-top: 7.5rem;
}
@media (min-width: 720px) {
  #watch, #meet, #colour, #find {
    scroll-margin-top: 5.25rem;
  }
}
