/* style.css */

/* ── TOKENS ── */
:root {
  --red:      #d8807f;
  --red-lt:   #f5d9d9;
  --yellow:   #ffda91;
  --yellow-lt:#fff6e0;
  --teal:     #71b3a8;
  --teal-lt:  #d4edea;
  --mustard:  #c6984a;
  --rust:     #a05720;
  --beige:    #fff9f4;
  --cream:    #faf3ec;
  --ink:      #3a2e28;
  --ink-lt:   #7a6a62;
  --line:     #e8ddd5;
  --white:    #ffffff;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--beige);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font-family: inherit; }

/* ── PAGE LAYERS & HOUSING ── */
.page { 
  display: none; 
  position: relative;
  width: 100%;
}
.page.active { 
  display: block; 
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.nav-logo-text {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
}
.nav-logo-text span {
  color: var(--red);
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-lt);
  transition: color .2s;
  cursor: pointer;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a.active { font-weight: 500; }
.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 500 !important;
  font-size: 14px !important;
  transition: background .2s !important;
  cursor: pointer;
}
.nav-cta:hover { background: #c46f6e !important; color: var(--white) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .2s;
}
.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 10px 0;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.mobile-menu a:last-child { border-bottom: none; }

/* ── LAYOUT CONTENT CONTAINER ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }

/* ── FIXED BACKGROUND SIDE MARGIN DECORATIONS ── */
.side-decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}
.side-decor-left-top {
  top: 40px;
  left: 2%;
  width: clamp(120px, 12vw, 220px);
  opacity: 0.85;
}
.side-decor-right-mid {
  top: 45%;
  right: 1.5%;
  width: clamp(140px, 15vw, 260px);
  opacity: 0.8;
}
.side-decor-left-bottom {
  bottom: 80px;
  left: 3%;
  width: clamp(130px, 14vw, 240px);
  opacity: 0.85;
}

/* ── IMAGE WRAPPERS ── */
.site-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-md);
}

/* ── TYPE HELPERS ── */
.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 10px;
}
.display {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  color: var(--ink);
}
.heading {
  font-family: var(--serif);
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.25;
  color: var(--ink);
}
.subheading {
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.3;
  color: var(--ink);
}
.body-lg { font-size: 16px; line-height: 1.75; color: var(--ink-lt); }
.body    { font-size: 14px; line-height: 1.7;  color: var(--ink-lt); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #c46f6e; }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-outline { background: transparent; color: var(--mustard); border: 1.5px solid var(--mustard); }
.btn-outline:hover { background: var(--mustard); color: var(--white); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: #5c9e93; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ── CHIP ── */
.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 500;
}
.chip-teal  { background: var(--teal-lt); color: #3a7a72; }
.chip-red   { background: var(--red-lt);  color: #a05050; }
.chip-yellow{ background: var(--yellow-lt);color: var(--rust); }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ── LIVE YOUTUBE EMBED SYSTEM ── */
.video-container {
  background: var(--ink);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── HOME LAYOUTS ── */
.hero {
  background: var(--cream);
  padding: 72px 0 80px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mustard);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 58px);
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero-title em { font-style: italic; color: var(--red); }
.hero-sub { font-size: 16px; line-height: 1.75; color: var(--ink-lt); margin-bottom: 32px; max-width: 440px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img { position: relative; }
.hero-img-frame { aspect-ratio: 4/3; height: 380px; border-radius: var(--r-xl); background: #e8ddd5; overflow: hidden; }
.hero-badge { position: absolute; bottom: -16px; left: -16px; background: var(--yellow); border-radius: var(--r-md); padding: 12px 18px; font-size: 13px; font-weight: 500; color: var(--rust); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.stats-bar { background: var(--ink); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: var(--serif); font-size: clamp(26px, 3.5vw, 40px); font-weight: 600; color: var(--yellow); line-height: 1; margin-bottom: 6px; }
.stats-label { font-size: 12px; color: rgba(255,249,244,0.65); line-height: 1.4; }

.pattern-card { background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; display: grid; grid-template-columns: 240px 1fr; gap: 0; }
.pattern-card-img { height: 100%; min-height: 220px; overflow: hidden; }
.pattern-card-body { padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; }
.pattern-meta { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pattern-divider { border: none; border-top: 1px solid var(--line); margin: 16px 0; }

.bears-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bear-photo-wrap { aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--line); }
.bear-photo-wrap.tall { aspect-ratio: 2/3; grid-row: span 2; }

.quote-section { background: var(--cream); padding: 72px 0; }
.quote-inner { display: grid; grid-template-columns: 160px 1fr; gap: 40px; align-items: center; }
.quote-asset { width: 160px; height: 160px; border-radius: var(--r-lg); overflow: hidden; background: var(--line); }
blockquote { font-family: var(--serif); font-size: clamp(20px, 2.5vw, 28px); font-style: italic; line-height: 1.45; color: var(--ink); margin-bottom: 16px; }
.quote-attr { font-size: 13px; color: var(--ink-lt); }

.explore-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.explore-card { border-radius: var(--r-lg); overflow: hidden; position: relative; cursor: pointer; transition: transform .2s; }
.explore-card:hover { transform: translateY(-3px); }
.explore-card-img-wrap { aspect-ratio: 4/3; transition: opacity .2s; background: var(--line); overflow: hidden; }
.explore-card:hover .explore-card-img-wrap { opacity: 0.85; }
.explore-label { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(58,46,40,0.75); color: var(--white); padding: 14px 18px; font-size: 16px; font-weight: 500; font-family: var(--serif); }

/* ── ZINE PAGE ── */
.zine-hero { background: linear-gradient(135deg, var(--yellow-lt) 0%, var(--cream) 100%); padding: 80px 0; }
.zine-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.zine-cover-frame { aspect-ratio: 3/4; max-width: 320px; border-radius: var(--r-lg); background: #e8ddd5; overflow: hidden; }
.zine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.zine-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: transform .2s; cursor: pointer; }
.zine-item:hover { transform: translateY(-3px); }
.zine-item-img-wrap { aspect-ratio: 3/4; background: var(--line); overflow: hidden; }
.zine-item-body { padding: 14px; }
.zine-item-body h4 { font-family: var(--serif); font-size: 15px; margin-bottom: 4px; }
.zine-item-body p { font-size: 12px; color: var(--ink-lt); }

/* ── PATTERNS PAGE ── */
.patterns-hero { background: var(--teal-lt); padding: 72px 0; }
.patterns-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.download-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.download-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s; }
.download-card:hover { transform: translateY(-4px); }
.download-card-img-wrap { aspect-ratio: 1; background: var(--line); overflow: hidden; }
.download-card-body { padding: 20px; }
.download-card-body h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 6px; }
.download-card-body p { font-size: 13px; color: var(--ink-lt); margin-bottom: 14px; }
.download-meta { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

/* ── GALLERY PAGE ── */
.gallery-hero { background: var(--cream); padding: 64px 0; text-align: center; }
.gallery-masonry { columns: 3; column-gap: 16px; }
.gallery-img-card { margin-bottom: 16px; break-inside: avoid; border-radius: var(--r-md); overflow: hidden; background: var(--line); }
.submit-box { background: var(--cream); border: 1.5px dashed var(--mustard); border-radius: var(--r-lg); padding: 48px 40px; text-align: center; }
.submit-box h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 10px; }
.submit-box p { color: var(--ink-lt); margin-bottom: 24px; max-width: 420px; margin-left: auto; margin-right: auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.form-field label { font-size: 13px; font-weight: 500; color: var(--ink); }
.form-field input, .form-field textarea { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; background: var(--white); color: var(--ink); outline: none; transition: border-color .2s; width: 100%; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--teal); }
.form-field textarea { resize: vertical; min-height: 80px; }

/* ── ABOUT PAGE ── */
.about-hero { background: var(--red-lt); padding: 80px 0; }
.about-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: none; }
.timeline-year { font-family: var(--serif); font-size: 20px; color: var(--mustard); font-weight: 500; padding-top: 2px; }
.timeline-body h4 { font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.timeline-body p { font-size: 13px; color: var(--ink-lt); }

/* ── FOOTER ── */
footer { background: var(--ink); color: rgba(255,249,244,0.75); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand h2 { font-family: var(--serif); font-size: 22px; color: var(--white); margin-bottom: 10px; }
.footer-brand h2 span { color: var(--red); }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 13px; font-weight: 500; color: var(--white); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 13px; cursor: pointer; transition: color .2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,249,244,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,249,244,0.1); display: flex; align-items: center; justify-content: center; font-size: 14px; }

.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 24px; flex-wrap: wrap; }
.section-header-left { flex: 1; }

/* ── RESPONSIVE Breakpoints ── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-inner, .zine-hero-inner, .patterns-hero-inner, .about-hero-inner { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bears-grid { grid-template-columns: repeat(2, 1fr); }
  .zine-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .pattern-card { grid-template-columns: 1fr; }
  .side-decor { display: none; }
}
@media (max-width: 480px) {
  .stats-grid, .bears-grid, .zine-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 1; }
}