/* ==========================================================================
   AurorasBook | refined family atelier
   Quiet pastel luxury for home, mothers, and children
   ========================================================================== */

:root {
  --ink: #2a2624;
  --ink-soft: #5c554f;
  --muted: #8f867e;
  --cream: #faf6f1;
  --cream-deep: #f3ebe3;
  --cloud: #ffffff;
  --blush: #ebd4cb;
  --blush-deep: #c99586;
  --rose: #c47d6a;
  --rose-deep: #a86554;
  --sky: #d5e3ee;
  --sky-deep: #9fb8cb;
  --sage: #d7e4da;
  --sage-deep: #8fad9a;
  --sand: #efe2cf;
  --veil: linear-gradient(
    120deg,
    rgba(42, 38, 36, 0.52) 0%,
    rgba(42, 38, 36, 0.28) 45%,
    rgba(213, 227, 238, 0.22) 100%
  );

  --font-display: "Cormorant Infant", "Times New Roman", serif;
  --font-sans: "Outfit", "Helvetica Neue", sans-serif;

  --header-h: 4.5rem;
  --max: 70rem;
  --radius: 1.25rem;
  --radius-sm: 0.65rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.95s;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 1100px 640px at 0% -5%, rgba(235, 212, 203, 0.45), transparent 62%),
    radial-gradient(ellipse 900px 520px at 100% 0%, rgba(213, 227, 238, 0.4), transparent 60%),
    radial-gradient(ellipse 800px 480px at 70% 100%, rgba(215, 228, 218, 0.35), transparent 55%);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 1.1rem;
}

/* ==========================================================================
   Motifs (quiet, curated)
   ========================================================================== */

.motif {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.motif--wash {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  right: -8%;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(213, 227, 238, 0.55), rgba(235, 212, 203, 0.2) 55%, transparent 70%);
}

/* ==========================================================================
   Loader
   ========================================================================== */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--cream);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__mark {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.04em;
  animation: markFade 1.2s var(--ease) both;
}

@keyframes markFade {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.4rem, 4vw, 3.25rem);
  background: rgba(250, 246, 241, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(42, 38, 36, 0.06);
  background: rgba(250, 246, 241, 0.94);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(42, 38, 36, 0.14);
  color: var(--ink) !important;
  transition: border-color 0.25s ease, background 0.25s ease !important;
}

.nav-cta:hover {
  border-color: rgba(42, 38, 36, 0.28);
  background: rgba(255, 255, 255, 0.55);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.nav-toggle span + span {
  margin-top: 0.38rem;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.28rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.28rem) rotate(-45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.45rem;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  transition: transform 0.35s var(--ease), background 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

.btn--solid {
  background: var(--ink);
  color: var(--cream);
}

.btn--solid:hover {
  background: #1d1a18;
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  border-bottom: 1px solid rgba(42, 38, 36, 0.22);
  padding-bottom: 0.15rem;
  transition: border-color 0.25s ease, gap 0.25s ease;
}

.text-link::after {
  content: "→";
  font-size: 0.95em;
  transition: transform 0.25s var(--ease);
}

.text-link:hover {
  border-bottom-color: var(--ink);
  gap: 0.7rem;
}

.text-link:hover::after {
  transform: translateX(2px);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: -6% 0;
  z-index: 0;
  will-change: transform;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: var(--veil);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.75rem, var(--max));
  margin: 0 auto;
  padding: calc(var(--header-h) + 3.5rem) 0 5rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9.5vw, 6.25rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin-bottom: 1.35rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  max-width: 22ch;
  margin-bottom: 1.15rem;
  color: rgba(255, 255, 255, 0.96);
}

.hero__lede {
  max-width: 32rem;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn--solid {
  background: var(--cream);
  color: var(--ink);
}

.hero .btn--solid:hover {
  background: #fff;
}

/* ==========================================================================
   Story of the week
   ========================================================================== */

.story {
  position: relative;
  padding: clamp(5.5rem, 12vw, 8.5rem) 0;
  overflow: hidden;
}

.story__layout {
  position: relative;
  z-index: 1;
  width: min(100% - 2.75rem, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.story__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.story__copy > p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 33rem;
  line-height: 1.75;
}

.story__art {
  position: relative;
}

.story__frame {
  position: relative;
  border-radius: 1.75rem 1.75rem 2.5rem 1.75rem;
  overflow: hidden;
  background: linear-gradient(160deg, var(--sky), var(--blush));
  padding: 0.55rem;
}

.story__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1.4rem 1.4rem 2.1rem 1.4rem;
}

.story__art figcaption {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Shop
   ========================================================================== */

.shop {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  background: linear-gradient(180deg, transparent, rgba(243, 235, 227, 0.65) 18%, rgba(243, 235, 227, 0.65) 82%, transparent);
}

.section-intro {
  width: min(100% - 2.75rem, var(--max));
  margin: 0 auto 3.25rem;
  max-width: 36rem;
  text-align: center;
}

.section-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4vw, 3.15rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-intro > p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.7;
}

.shop__rail {
  width: min(100% - 2.75rem, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.shop-item {
  display: grid;
  gap: 1.05rem;
  transition: transform 0.5s var(--ease);
}

.shop-item:hover {
  transform: translateY(-4px);
}

.shop-item__media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-deep);
  padding: 0.35rem;
}

.shop-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.15rem);
}

.shop-item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.shop-item p {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  padding: clamp(5.5rem, 11vw, 8rem) 0;
}

.about__inner {
  width: min(100% - 2.75rem, 38rem);
  margin: 0 auto;
  text-align: center;
}

.about__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4vw, 3.1rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.about__inner > p:last-child {
  color: var(--ink-soft);
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.8;
}

/* ==========================================================================
   Subscribe
   ========================================================================== */

.subscribe {
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(5.5rem, 10vw, 7.5rem);
}

.subscribe__inner {
  width: min(100% - 2.75rem, 36rem);
  margin: 0 auto;
  padding: clamp(2.75rem, 5vw, 3.5rem);
  border-radius: 1.5rem;
  background: var(--cream-deep);
  border: 1px solid rgba(42, 38, 36, 0.05);
  text-align: center;
}

.subscribe__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.subscribe__inner > p {
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  font-weight: 300;
  font-size: 1.02rem;
}

.subscribe__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  max-width: 28rem;
  margin: 0 auto;
}

.subscribe__form input {
  min-height: 3rem;
  padding: 0 1.15rem;
  background: var(--cloud);
  border: 1px solid rgba(42, 38, 36, 0.1);
  border-radius: var(--radius-sm);
  font-weight: 300;
}

.subscribe__form input:focus {
  outline: 1px solid rgba(42, 38, 36, 0.28);
  outline-offset: 1px;
}

.subscribe__form input::placeholder {
  color: var(--muted);
}

.subscribe__toast {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--rose-deep);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 3rem clamp(1.4rem, 4vw, 3.25rem) 2.25rem;
  border-top: 1px solid rgba(42, 38, 36, 0.06);
}

.footer__top {
  width: min(100%, var(--max));
  margin: 0 auto 1.75rem;
  display: grid;
  gap: 0.7rem;
}

.footer__top p {
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
}

.footer__bottom {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(42, 38, 36, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer__bottom nav {
  display: flex;
  gap: 1.4rem;
}

.footer__bottom a:hover {
  color: var(--ink);
}

/* ==========================================================================
   Reveal motion
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

[data-reveal][data-delay="1"] {
  transition-delay: 0.1s;
}

[data-reveal][data-delay="2"] {
  transition-delay: 0.2s;
}

[data-reveal][data-delay="3"] {
  transition-delay: 0.3s;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page-loader__mark {
    animation: none;
  }

  .shop-item:hover {
    transform: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .story__layout {
    grid-template-columns: 1fr;
  }

  .story__art {
    order: -1;
    max-width: 24rem;
    margin: 0 auto;
  }

  .shop__rail {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.25rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.1rem 1.4rem 1.6rem;
    background: rgba(250, 246, 241, 0.98);
    border-bottom: 1px solid rgba(42, 38, 36, 0.06);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s var(--ease), opacity 0.35s ease, visibility 0.35s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 0.95rem 0;
    border-bottom: 1px solid rgba(42, 38, 36, 0.05);
  }

  .nav-cta {
    margin-top: 0.9rem;
    text-align: center;
  }

  .hero__content {
    padding-bottom: 3.5rem;
  }

  .hero__title {
    max-width: 28ch;
  }

  .subscribe__form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .shop__rail {
    grid-template-columns: 1fr;
  }

  .shop-item img {
    aspect-ratio: 5 / 4;
  }
}
