/* ============================================================
   SLEEPY LEAF HOLLOW — Main Stylesheet
   ============================================================
   To retheme the site, edit the variables in :root below.
   Colors, fonts, and spacing all flow from these tokens.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&family=Lora:ital,wght@0,400;0,500;1,400&family=Jost:wght@300;400;500&display=swap');

/* ------------------------------------------------------------
   DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --clr-forest:      #0e3524;   /* primary dark green */
  --clr-forest-mid:  #1a4a30;   /* nav / card hover */
  --clr-forest-light:#2a6644;   /* accents */
  --clr-cream:       #f5f0e8;   /* light bg */
  --clr-cream-dark:  #ece5d6;   /* section alt bg */
  --clr-text:        #1c1c1c;   /* body text */
  --clr-text-muted:  #555;      /* secondary text */
  --clr-white:       #ffffff;
  --clr-mauve:       #8a6a6a;   /* accent from cat-bed illustration */

  /* Typography */
  --font-display:    'Pinyon Script', cursive;       /* logo / hero headline */
  --font-serif:      'Lora', Georgia, serif;         /* headings */
  --font-body:       'Jost', system-ui, sans-serif;  /* body / nav / labels */

  /* Spacing */
  --gap-xs:  0.5rem;
  --gap-sm:  1rem;
  --gap-md:  2rem;
  --gap-lg:  4rem;
  --gap-xl:  7rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
  --radius-sm: 6px;
  --radius-lg: 999px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--clr-text);
  background: var(--clr-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ------------------------------------------------------------
   TYPOGRAPHY SCALE
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   LAYOUT HELPERS
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gap-md);
}

.section {
  padding-block: var(--gap-xl);
}

.section--alt {
  background: var(--clr-cream-dark);
}

/* ------------------------------------------------------------
   NAVIGATION
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--clr-forest);
  display: flex;
  align-items: center;
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gap-md);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  color: var(--clr-white);
}

.nav__logo-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.9;
}

.nav__wordmark {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--clr-white);
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-lg);
}

.nav__links a {
  color: var(--clr-white);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--clr-white);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}

.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }
.nav__links a.active { opacity: 1; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  justify-self: end;
  grid-column: 3;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-white);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.15s;
}

.btn:active { transform: scale(0.98); }

.btn--light {
  background: var(--clr-white);
  color: var(--clr-forest);
  border-color: var(--clr-white);
}

.btn--light:hover {
  background: transparent;
  color: var(--clr-white);
}

.btn--outline-dark {
  background: transparent;
  color: var(--clr-forest);
  border-color: var(--clr-forest);
}

.btn--outline-dark:hover {
  background: var(--clr-forest);
  color: var(--clr-white);
}

.btn--etsy {
  background: var(--clr-forest);
  color: var(--clr-white);
  border-color: var(--clr-forest);
}

.btn--etsy:hover {
  background: var(--clr-forest-light);
  border-color: var(--clr-forest-light);
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--clr-forest);
  color: var(--clr-white);
  padding-block: var(--gap-lg);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--gap-md);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 2rem;
  opacity: 0.9;
}

.footer__tagline {
  font-size: 0.85rem;
  opacity: 0.55;
  margin-top: 0.25rem;
  font-style: italic;
}

.footer__socials {
  display: flex;
  gap: var(--gap-md);
  align-items: center;
}

.footer__socials a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer__socials a:hover { opacity: 1; }

.footer__socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--gap-md);
  padding-top: var(--gap-sm);
  font-size: 0.75rem;
  opacity: 0.4;
  text-align: center;
}

/* ------------------------------------------------------------
   PAGE OFFSET (fixed nav)
   ------------------------------------------------------------ */
.page-body {
  padding-top: var(--nav-height);
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  :root {
    --gap-xl: 4rem;
    --gap-lg: 2.5rem;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--clr-forest);
    flex-direction: column;
    gap: 0;
    padding-bottom: var(--gap-sm);
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav__links.open { display: flex; }

  .nav__links a {
    padding: 1rem 2rem;
    width: 100%;
  }

  .nav__links a::after { display: none; }

  .nav__toggle { display: flex; }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__socials {
    justify-content: center;
  }
}

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