/* ============================================================
   BALEINE — editorial lifestyle storefront
   Design: warm cream + deep ocean-teal + brand gold
   Type:   Fraunces (display serif) + Inter (sans)
   Namespace: bl-*
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --ocean:      #15333b;
  --ocean-deep: #0e242a;
  --gold:       #e6b84a;
  --gold-deep:  #bd8f29;
  --cream:      #faf6ec;
  --paper:      #fffdf8;
  --ink:        #1f1e1a;
  --ink-soft:   #44423a;
  --muted:      #79735f;
  --line:       #ece4d2;
  --shadow:     0 18px 40px -24px rgba(21,51,59,.45);
  --radius:     14px;
  --maxw:       1240px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
}

a { color: var(--ocean); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-deep); }
img { display: block; max-width: 100%; }

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

.bl-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.bl-btn {
  display: inline-block;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .9rem 1.9rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.bl-btn--solid { background: var(--gold); color: var(--ocean-deep); border-color: var(--gold); }
.bl-btn--solid:hover { background: var(--ocean); color: var(--gold); border-color: var(--ocean); transform: translateY(-2px); }
.bl-btn--ghost { background: transparent; color: var(--ocean); border-color: var(--ocean); }
.bl-btn--ghost:hover { background: var(--ocean); color: var(--paper); }

/* ---------- Header ---------- */
.bl-topbar {
  background: var(--ocean-deep);
  color: #e9e3d4;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  padding: .55rem 0;
}
.bl-topbar strong { color: var(--gold); font-weight: 600; }

.bl-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250,246,236,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bl-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}
.bl-brand img { height: 46px; width: auto; }
.bl-nav ul { list-style: none; display: flex; gap: 1.6rem; align-items: center; }
.bl-nav a {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: .35rem 0;
}
.bl-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
.bl-nav a:hover { color: var(--ocean); }
.bl-nav a:hover::after { width: 100%; }

.bl-burger { display: none; background: none; border: 0; width: 30px; height: 22px; position: relative; cursor: pointer; }
.bl-burger span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--ink); transition: .25s; }
.bl-burger span:nth-child(1) { top: 0; }
.bl-burger span:nth-child(2) { top: 10px; }
.bl-burger span:nth-child(3) { top: 20px; }
.bl-burger.is-open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.bl-burger.is-open span:nth-child(2) { opacity: 0; }
.bl-burger.is-open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.bl-hero {
  background:
    radial-gradient(120% 120% at 85% 0%, rgba(230,184,74,.18), transparent 55%),
    linear-gradient(160deg, var(--ocean) 0%, var(--ocean-deep) 100%);
  color: #f3eedd;
  overflow: hidden;
}
.bl-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 28px 5.5rem;
}
.bl-hero__copy .bl-eyebrow { color: var(--gold); }
.bl-hero__title {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  color: #fff;
  margin-bottom: 1.2rem;
}
.bl-hero__title em { font-style: italic; color: var(--gold); }
.bl-hero__copy p { font-size: 1.12rem; color: #d8d2c0; max-width: 38ch; margin-bottom: 2rem; }
.bl-hero__media {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 50% 50% 48% 52% / 52% 50% 50% 48%;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid rgba(255,255,255,.08);
}
.bl-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.bl-hero__seal {
  position: absolute; bottom: 18px; right: 18px;
  background: var(--gold); color: var(--ocean-deep);
  font-weight: 700; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .7rem 1rem; border-radius: 999px;
}

/* ---------- Section heading ---------- */
.bl-section { padding: 5rem 0; }
.bl-section--soft { background: var(--paper); }
.bl-section--ocean { background: var(--ocean); color: #ece6d6; }
.bl-head { max-width: 640px; margin-bottom: 2.8rem; }
.bl-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.bl-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: .6rem; }
.bl-head p { color: var(--muted); font-size: 1.05rem; }
.bl-section--ocean .bl-head h2 { color: #fff; }
.bl-section--ocean .bl-head p { color: #c3bca8; }

/* ---------- Category magazine grid ---------- */
.bl-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 230px;
  gap: 18px;
}
.bl-cat {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow);
}
.bl-cat:first-child { grid-column: span 2; grid-row: span 2; }
.bl-cat img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.bl-cat::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,36,42,.82), rgba(14,36,42,.05) 65%);
}
.bl-cat:hover img { transform: scale(1.07); }
.bl-cat__label { position: relative; z-index: 2; padding: 1.3rem 1.4rem; width: 100%; }
.bl-cat__label h3 { color: #fff; font-size: 1.25rem; margin-bottom: .15rem; }
.bl-cat__count { font-size: .8rem; color: var(--gold); letter-spacing: .06em; }
.bl-cat__arrow {
  position: absolute; top: 1.1rem; right: 1.2rem; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: background .2s, color .2s;
}
.bl-cat:hover .bl-cat__arrow { background: var(--gold); color: var(--ocean-deep); }

/* ---------- Product grid ---------- */
.bl-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.bl-prod {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.bl-prod:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.bl-prod__img { aspect-ratio: 1/1; background: #fff; padding: 14px; }
.bl-prod__img img { width: 100%; height: 100%; object-fit: contain; }
.bl-prod__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.bl-tag {
  align-self: flex-start;
  font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-deep); background: rgba(230,184,74,.13);
  padding: .25rem .6rem; border-radius: 999px; margin-bottom: .7rem;
}
.bl-prod__title {
  font-family: 'Inter', sans-serif;
  font-size: .95rem; font-weight: 600; line-height: 1.4; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.66em; margin-bottom: .8rem;
}
.bl-prod__price { display: flex; align-items: baseline; gap: .5rem; margin: auto 0 1rem; }
.bl-prod__now { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 600; color: var(--ocean); }
.bl-prod__was { font-size: .9rem; color: var(--muted); text-decoration: line-through; }
.bl-prod__cta {
  text-align: center; font-weight: 600; font-size: .88rem;
  padding: .75rem 1rem; border-radius: 999px;
  background: var(--ocean); color: var(--gold);
  border: 1.5px solid var(--ocean);
  transition: background .2s, color .2s;
}
.bl-prod__cta:hover { background: var(--gold); color: var(--ocean-deep); border-color: var(--gold); }

/* ---------- Stats band ---------- */
.bl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.bl-stat__num { font-family: 'Fraunces', serif; font-size: 3rem; color: var(--gold); line-height: 1; }
.bl-stat h3 { color: #fff; font-size: 1.15rem; margin: .6rem 0 .4rem; }
.bl-stat p { color: #b9b29e; font-size: .95rem; }

/* ---------- Prose / SEO ---------- */
.bl-prose { max-width: 880px; margin: 0 auto; }
.bl-prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.2rem; }
.bl-prose h3 { font-size: 1.4rem; color: var(--ocean); margin: 2.2rem 0 .8rem; }
.bl-prose p { margin-bottom: 1.1rem; }
.bl-prose ul { margin: 0 0 1.4rem 1.2rem; }
.bl-prose li { margin-bottom: .5rem; }
.bl-prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
.bl-prose th, .bl-prose td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.bl-prose thead th { background: var(--ocean); color: var(--gold); font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: .04em; }
.bl-prose tbody tr:nth-child(even) { background: var(--cream); }

/* ---------- Quotes ---------- */
.bl-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bl-quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.8rem; position: relative; }
.bl-quote::before { content: '\201C'; font-family: 'Fraunces', serif; font-size: 4rem; color: var(--gold); line-height: 1; position: absolute; top: .4rem; left: 1rem; opacity: .5; }
.bl-quote__stars { color: var(--gold); letter-spacing: .15em; margin-bottom: .8rem; }
.bl-quote p { color: var(--ink-soft); position: relative; z-index: 1; }
.bl-quote__by { margin-top: 1rem; font-weight: 600; color: var(--ocean); font-size: .92rem; }

/* ---------- Breadcrumb ---------- */
.bl-crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.8rem; letter-spacing: .03em; }
.bl-crumbs a { color: var(--ocean); }

/* ---------- Page hero (categories / legal) ---------- */
.bl-pagehero { background: linear-gradient(160deg, var(--ocean) 0%, var(--ocean-deep) 100%); color: #f3eedd; padding: 3.6rem 0; }
.bl-pagehero h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.bl-pagehero p { color: #cfc8b5; max-width: 60ch; margin-top: .7rem; }

/* ---------- Product detail ---------- */
.bl-pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.bl-pdp__media { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.bl-pdp__media img { width: 100%; object-fit: contain; }
.bl-pdp__info h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: .6rem 0 1rem; }
.bl-pdp__price { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1.4rem; }
.bl-pdp__now { font-family: 'Fraunces', serif; font-size: 2.2rem; color: var(--ocean); }
.bl-pdp__was { color: var(--muted); text-decoration: line-through; }
.bl-pdp__desc { margin-bottom: 1.8rem; }
.bl-pdp__note { margin-top: 1.2rem; font-size: .78rem; color: var(--muted); line-height: 1.6; }

/* ---------- Footer ---------- */
.bl-footer { background: var(--ocean-deep); color: #cfc8b5; padding: 4rem 0 2rem; }
.bl-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.bl-footer h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.bl-footer p { font-size: .92rem; color: #a89f88; }
.bl-footer ul { list-style: none; }
.bl-footer li { margin-bottom: .55rem; }
.bl-footer a { color: #cfc8b5; font-size: .92rem; }
.bl-footer a:hover { color: var(--gold); }
.bl-footer__brand img { height: 42px; margin-bottom: 1rem; }
.bl-footer__base { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.6rem; }
.bl-footer__base p { font-size: .78rem; color: #877f6a; }
.bl-disclaimer { display: block; font-size: .76rem; color: #6f6857; line-height: 1.6; margin-bottom: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .bl-hero__grid { grid-template-columns: 1fr; gap: 2.2rem; padding: 3.2rem 28px; }
  .bl-hero__media { max-width: 380px; }
  .bl-products { grid-template-columns: repeat(2, 1fr); }
  .bl-cats { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .bl-cat:first-child { grid-column: span 2; grid-row: span 1; }
  .bl-pdp { grid-template-columns: 1fr; gap: 2rem; }
  .bl-footer__cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .bl-stats { grid-template-columns: 1fr; gap: 2.4rem; }
  .bl-quotes { grid-template-columns: 1fr; }

  .bl-burger { display: block; }
  .bl-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .bl-nav.is-open { max-height: 70vh; }
  .bl-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: .5rem 28px 1.2rem; }
  .bl-nav li { width: 100%; }
  .bl-nav a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); width: 100%; }
}
@media (max-width: 560px) {
  .bl-products { grid-template-columns: 1fr 1fr; gap: 14px; }
  .bl-cats { grid-template-columns: 1fr; }
  .bl-cat:first-child { grid-column: span 1; }
  .bl-section { padding: 3.4rem 0; }
}
