/* ==========================================================================
   Autumn Glow Studio — Design Tokens
   Display: Fraunces (warm, soft-serif, high personality)
   Body: Mulish (clean, rounded humanist sans)
   ========================================================================== */

:root {
  /* Color — bold fall foliage palette */
  --cream:        #F5DFB4;
  --cream-deep:    #E9C077;
  --card-bg:       #FCF0D4;
  --espresso:      #3A1B10;
  --espresso-soft: #6E3820;
  --amber:         #E0651A;
  --amber-light:   #F2A93C;
  --rust:          #A62A1B;
  --rust-dark:     #7A1E12;
  --sage:          #8A6A1E;
  --sage-light:    #C99A3C;
  --cream-rgb:     252, 239, 219;
  --espresso-rgb:  58, 27, 16;
  --amber-rgb:     224, 101, 26;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius-soft: 18px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--espresso);
}

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Paper grain texture overlay (subtle, applied to body)
   ========================================================================== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Skip link
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--espresso);
  color: var(--cream);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 10px 0;
}
.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 239, 219, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58, 27, 16, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--espresso);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--espresso-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover { background: rgba(200, 128, 46, 0.12); color: var(--rust); }
.nav-links a[aria-current="page"] {
  background: var(--espresso);
  color: var(--cream);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 12px 28px 20px;
    border-bottom: 1px solid rgba(58, 27, 16, 0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-links a { display: block; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--rust);
  color: var(--cream);
  box-shadow: 0 8px 20px rgba(162, 74, 34, 0.28);
}
.btn-primary:hover { background: var(--rust-dark); }

.btn-secondary {
  background: transparent;
  border-color: var(--espresso);
  color: var(--espresso);
}
.btn-secondary:hover { background: var(--espresso); color: var(--cream); }

.btn-disabled {
  background: rgba(58, 27, 16, 0.08);
  color: var(--espresso-soft);
  cursor: default;
  box-shadow: none;
}
.btn-disabled:hover { transform: none; background: rgba(58, 27, 16, 0.08); }

/* ==========================================================================
   Badge
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 138, 108, 0.15);
  color: var(--sage);
  border: 1px solid rgba(124, 138, 108, 0.35);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(224, 101, 26, 0.4) 0%, rgba(224, 101, 26, 0.0) 68%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-mark {
  width: 132px;
  height: 132px;
  margin: 0 auto 28px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-style: italic;
  font-weight: 500;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  max-width: 46ch;
  margin: 0 auto 32px;
  font-size: 1.15rem;
  color: var(--espresso-soft);
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--espresso-soft);
}

/* ==========================================================================
   Torn paper divider
   ========================================================================== */
.divider {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: -1px;
}

/* ==========================================================================
   Sections
   ========================================================================== */
section { position: relative; }

.section {
  padding: 88px 0;
}

.section-dark {
  background: var(--espresso);
  color: var(--cream-deep);
}
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark p { color: rgba(252, 239, 219, 0.78); }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
}
.section-dark .eyebrow { color: var(--amber-light); }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
}

.section-head p {
  color: var(--espresso-soft);
  font-size: 1.08rem;
}

/* ==========================================================================
   Category cards
   ========================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 980px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: 1fr; }
}

.cat-card {
  background: var(--card-bg);
  border-radius: var(--radius-soft);
  padding: 32px 26px;
  text-align: left;
  box-shadow: 0 4px 18px rgba(58, 27, 16, 0.06);
  border: 1px solid rgba(58, 27, 16, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(58, 27, 16, 0.12);
}

.cat-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
}

.cat-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.cat-card p {
  font-size: 0.95rem;
  color: var(--espresso-soft);
  margin-bottom: 0;
}

/* ==========================================================================
   About teaser / two-column
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

.about-photo {
  border-radius: var(--radius-soft);
  overflow: hidden;
  aspect-ratio: 4/5;
  position: relative;
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover;
}

.about-photo-ring {
  position: absolute;
  inset: -14px;
  border: 2px dashed rgba(242, 169, 60, 0.5);
  border-radius: calc(var(--radius-soft) + 14px);
  pointer-events: none;
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--cream);
  border-left: 3px solid var(--amber-light);
  padding-left: 20px;
  margin: 22px 0;
}

/* ==========================================================================
   Launch status strip
   ========================================================================== */
.launch-strip {
  background: var(--cream-deep);
  border-radius: var(--radius-soft);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.launch-strip h3 { margin-bottom: 6px; font-size: 1.4rem; }
.launch-strip p { margin: 0; color: var(--espresso-soft); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--espresso);
  color: rgba(252, 239, 219, 0.7);
  padding: 56px 0 32px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(252, 239, 219, 0.12);
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .brand-mark { width: 36px; height: 36px; }
.footer-brand-name {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer-links a { text-decoration: none; color: rgba(252, 239, 219, 0.75); font-size: 0.95rem; }
.footer-links a:hover { color: var(--amber-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero {
  padding: 64px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}
.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-style: italic;
  font-weight: 500;
}
.page-hero p {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--espresso-soft);
  font-size: 1.08rem;
}

/* ==========================================================================
   Shop page specifics
   ========================================================================== */
.shop-category {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid rgba(58, 27, 16, 0.1);
  align-items: start;
}
.shop-category:last-child { border-bottom: none; }

@media (max-width: 760px) {
  .shop-category { grid-template-columns: 1fr; gap: 20px; }
}

.shop-cat-icon-wrap {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--cream-deep);
  display: flex; align-items: center; justify-content: center;
}
.shop-cat-icon-wrap svg { width: 44px; height: 44px; }

.shop-cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.shop-cat-tags span {
  background: var(--card-bg);
  border: 1px solid rgba(58, 27, 16, 0.1);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--espresso-soft);
}

/* ==========================================================================
   Contact block
   ========================================================================== */
.contact-card {
  background: var(--card-bg);
  border-radius: var(--radius-soft);
  padding: 48px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(58, 27, 16, 0.07);
  max-width: 560px;
  margin: 0 auto;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--rust);
  text-decoration: none;
  margin: 18px 0 8px;
}
.contact-email:hover { text-decoration: underline; }

/* ==========================================================================
   Story columns (About page)
   ========================================================================== */
.story {
  max-width: 720px;
  margin: 0 auto;
}
.story p { font-size: 1.08rem; color: var(--espresso-soft); }
.story h2 { margin-top: 1.6em; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}
@media (max-width: 720px) {
  .values-grid { grid-template-columns: 1fr; }
}
.value-item {
  text-align: center;
  padding: 8px;
}
.value-item svg { width: 40px; height: 40px; margin: 0 auto 14px; }
.value-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.value-item p { font-size: 0.92rem; margin: 0; color: var(--espresso-soft); }

/* Visually hidden utility */
.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;
}
