/* ============ Baglorious ============ */

:root {
  --paper: #fbf8f3;
  --paper-deep: #f3ede3;
  --ink: #211a13;
  --ink-soft: #5f544a;
  --rust: #b8490c;
  --rust-dark: #8e3508;
  --navy: #0d4f8b;
  --brass: #a57332;
  --cream: #f7f0e5;
  --line: rgba(33, 26, 19, 0.12);
  --shadow: 0 22px 60px rgba(50, 32, 16, 0.14);
  --shadow-sm: 0 10px 28px rgba(50, 32, 16, 0.10);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --shell: min(1180px, calc(100% - 48px));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 480; line-height: 1.08; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--rust); font-weight: 420; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.1rem;
}
.eyebrow.light { color: var(--brass); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem clamp(1.2rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand-badge { width: 44px; height: 44px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand-name { font-family: var(--serif); font-size: 1.45rem; font-weight: 560; font-style: italic; color: var(--navy); }

.site-nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 2rem); }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; }
.site-nav a:hover { color: var(--rust); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-shop { background: var(--ink); color: var(--paper) !important; padding: 0.55rem 1.25rem; }
.btn-shop:hover { background: var(--rust); }
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); display: inline-block; }

.btn-primary { background: var(--rust); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--rust-dark); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--rust); color: var(--rust); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #fff; }
.btn-outline-cream { border: 1.5px solid rgba(247, 240, 229, 0.45); color: var(--cream); }
.btn-outline-cream:hover { border-color: var(--cream); }

/* ---------- hero ---------- */
.hero {
  width: var(--shell);
  margin: clamp(3rem, 7vw, 5.5rem) auto clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); margin-bottom: 1.4rem; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-media img {
  border-radius: 24px;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
}
.hero-media figcaption, .mission-media figcaption {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- ribbon ---------- */
.ribbon {
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 0;
  transform: rotate(-1.1deg) scale(1.02);
}
.ribbon-track {
  display: flex;
  gap: 2.2rem;
  white-space: nowrap;
  width: max-content;
  animation: slide 30s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}
.ribbon-track i { color: var(--brass); font-style: normal; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; } }

/* ---------- mission ---------- */
.mission {
  width: var(--shell);
  margin: clamp(4rem, 8vw, 6.5rem) auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.mission-media img { border-radius: 24px; box-shadow: var(--shadow); }
.mission h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 1.4rem; }
.mission-text p { margin-bottom: 1.1rem; color: var(--ink-soft); max-width: 36rem; }
.mission-text p:first-of-type { color: var(--ink); }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--rust) !important; }

/* ---------- collection ---------- */
.collection { width: var(--shell); margin: clamp(4rem, 8vw, 6.5rem) auto; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto clamp(2.2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 0.9rem; }
.section-sub { color: var(--ink-soft); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.5vw, 1.8rem);
}
.card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card img { aspect-ratio: 4 / 4.6; object-fit: cover; width: 100%; }
.card figcaption { padding: 1rem 1.2rem 1.15rem; }
.card figcaption strong { display: block; font-family: var(--serif); font-weight: 560; font-size: 1.08rem; letter-spacing: -0.01em; }
.card figcaption span { font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- values ---------- */
.values {
  background: var(--paper-deep);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-left: calc((100% - min(1180px, calc(100% - 48px))) / 2);
  padding-right: calc((100% - min(1180px, calc(100% - 48px))) / 2);
}
.value h3 { font-size: 1.35rem; margin-bottom: 0.7rem; color: var(--rust-dark); }
.value p { color: var(--ink-soft); font-size: 0.97rem; }
.value-kicker { margin-top: 0.7rem; font-family: var(--serif); font-style: italic; color: var(--ink) !important; }

/* ---------- interlude (one of one-ish) ---------- */
.interlude { width: var(--shell); margin: clamp(4rem, 8vw, 6.5rem) auto; }
.interlude-card {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.2rem, 5vw, 3.2rem) 1rem;
}
.interlude-card h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-bottom: 1rem; }
.interlude-card p { color: var(--ink-soft); max-width: 30rem; margin: 0 auto 0.5rem; }
.interlude-beat { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink) !important; }

/* ---------- flipped feature ---------- */
.mission.flip .mission-media { order: 2; }
.mission.flip .mission-text { order: 1; }

/* ---------- shop follow sub-block ---------- */
.shop-follow {
  margin-top: clamp(2.2rem, 5vw, 3.2rem);
  padding-top: clamp(1.8rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(247, 240, 229, 0.18);
}
.shop-follow h3 { font-size: 1.5rem; margin-bottom: 0.7rem; color: var(--cream); }

/* ---------- about ---------- */
.about {
  width: var(--shell);
  margin: clamp(4rem, 8vw, 6.5rem) auto;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: 1.3rem; }
.about-text p { margin-bottom: 1.05rem; color: var(--ink-soft); max-width: 38rem; }
.about-aside { font-style: italic; }
.text-link { color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--navy) 25%, transparent); }
.text-link:hover { border-bottom-color: var(--navy); }

.portrait-placeholder {
  position: sticky;
  top: 6rem;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  border: 1.5px dashed var(--brass);
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(165, 115, 50, 0.05) 14px 28px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
.portrait-placeholder img { width: 84px; border-radius: 50%; opacity: 0.85; }
.portrait-placeholder p { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); }
.portrait-placeholder p span { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; font-style: normal; font-family: var(--sans); color: var(--brass); }

/* ---------- quiz ---------- */
.quiz { width: var(--shell); margin: 0 auto clamp(4rem, 8vw, 6.5rem); }
.quiz-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.8rem, 4vw, 3.2rem);
  box-shadow: var(--shadow-sm);
}
.quiz-card .eyebrow { color: var(--navy); margin-bottom: 0.6rem; }
.quiz-card h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 0.6rem; }
.quiz-card h2 em { color: var(--navy); }
.quiz-card p:last-child { margin: 0; }
.quiz-text p { color: var(--ink-soft); max-width: 34rem; }
.quiz-card .btn { flex-shrink: 0; }

/* ---------- shop ---------- */
.shop { background: var(--ink); color: var(--cream); }
.shop-inner {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) 0;
  text-align: center;
}
.shop h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 1.1rem; }
.shop h2 em { color: var(--brass); }
.shop p { max-width: 38rem; margin: 0 auto 1.4rem; color: rgba(247, 240, 229, 0.78); }
.shop-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin: 1.8rem 0; }
.shop-note { font-size: 0.92rem; font-style: italic; }

/* ---------- footer ---------- */
.site-footer {
  text-align: center;
  padding: 2.8rem 1.5rem 3.2rem;
  border-top: 1px solid var(--line);
}
.footer-badge { width: 56px; border-radius: 50%; margin: 0 auto 0.9rem; }
.footer-tagline { font-family: var(--serif); font-style: italic; color: var(--rust); margin-top: 0.2rem; }
.site-footer .fine { font-size: 0.8rem; color: var(--ink-soft); max-width: 40rem; margin: 0.5rem auto 0; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero, .mission, .about { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .mission.flip .mission-media { order: 0; }
  .mission.flip .mission-text { order: 1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: 1fr; padding-left: 24px; padding-right: 24px; }
  .mission-media { max-width: 30rem; }
  .portrait-placeholder { position: static; max-width: 22rem; }
  .site-nav a:not(.btn-shop) { display: none; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
}
