/* Calm Catalog — editorial home-inspiration catalogue
   Palette: warm neutrals + soft sage. Type: Fraunces (display) / Inter (text). */

:root {
  --paper:      #f7f4ef;
  --paper-2:    #f1ece4;
  --card:       #fffdfa;
  --ink:        #2b2823;
  --ink-soft:   #5c564d;
  --muted:      #948c7f;
  --line:       #e4ddd2;
  --sage:       #7f8a72;
  --sage-deep:  #5f6a54;
  --shadow:     0 1px 2px rgba(43,40,35,.04), 0 12px 40px rgba(43,40,35,.07);
  --shadow-lg:  0 20px 70px rgba(43,40,35,.18);
  --radius:     14px;
  --wrap:       1180px;
  --ease:       cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, .serif {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--sage-deep);
}

/* ── Header ─────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,239,.82);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .mark { font-family: "Fraunces", serif; font-size: 25px; letter-spacing: -.02em; }
.brand .tag { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { font-size: 14.5px; color: var(--ink-soft); transition: color .2s var(--ease); }
.nav a:hover, .nav a.active { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink); }

/* ── Hero ───────────────────────────────────────────── */
.hero { padding: 92px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(40px, 7vw, 74px); margin: 16px 0 0; }
.hero .lede {
  max-width: 560px; margin: 22px auto 0;
  font-size: 19px; color: var(--ink-soft);
}
.hero .cta-row { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 500;
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease), color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.sage { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }

/* ── Section headers ────────────────────────────────── */
.sec-head { text-align: center; margin: 0 auto 40px; max-width: 620px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 12px 0 0; }
.sec-head p { color: var(--ink-soft); margin: 14px 0 0; }
section { padding: 68px 0; }
section.tint { background: var(--paper-2); }

/* ── Collection cards (home) ────────────────────────── */
.collections { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.col-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--card); box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.col-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.col-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.col-card:hover img { transform: scale(1.04); }
.col-card .cap {
  position: absolute; inset: auto 0 0 0; padding: 26px 24px 22px;
  background: linear-gradient(to top, rgba(28,25,21,.72), rgba(28,25,21,0));
  color: #fff;
}
.col-card .cap .eyebrow { color: #d9e0cf; }
.col-card .cap h3 { color: #fff; font-size: 27px; margin: 6px 0 2px; }
.col-card .cap .count { font-size: 13px; opacity: .82; }

/* ── Gallery (collection page) ──────────────────────── */
.gallery {
  columns: 3; column-gap: 20px;
}
.tile {
  break-inside: avoid; margin-bottom: 20px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card); box-shadow: var(--shadow); cursor: zoom-in;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.tile:hover img { transform: scale(1.03); }

/* ── Lightbox ───────────────────────────────────────── */
.lb { position: fixed; inset: 0; z-index: 100; display: none; }
.lb.open { display: grid; grid-template-columns: 1fr; place-items: center; }
.lb-scrim { position: absolute; inset: 0; background: rgba(24,21,18,.86); backdrop-filter: blur(6px); }
.lb-panel {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0,1.3fr) minmax(280px,.9fr);
  gap: 0; max-width: 1000px; width: calc(100% - 40px); max-height: 90vh;
  background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.lb-panel img { width: 100%; height: 100%; object-fit: cover; max-height: 90vh; }
.lb-info { padding: 40px 36px; display: flex; flex-direction: column; }
.lb-info h3 { font-size: 30px; margin: 10px 0 4px; }
.lb-info .feat { list-style: none; padding: 0; margin: 22px 0 0; }
.lb-info .feat li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-soft); display: flex; gap: 10px; }
.lb-info .feat li::before { content: "✓"; color: var(--sage); font-weight: 700; }
.lb-info .shop { margin-top: auto; padding-top: 26px; }
.lb-info .shop .btn { width: 100%; justify-content: center; }
.lb-info .disc { font-size: 11.5px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.lb-close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); font-size: 20px; color: var(--ink);
  display: grid; place-items: center;
}

/* ── Subscribe ──────────────────────────────────────── */
.subscribe { text-align: center; }
.sub-form { display: flex; gap: 10px; max-width: 440px; margin: 26px auto 0; }
.sub-form input {
  flex: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font: inherit; font-size: 15px; color: var(--ink);
}
.sub-form input:focus { outline: none; border-color: var(--sage); }
.sub-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; min-height: 18px; }

/* ── Footer ─────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); padding: 54px 0 40px; background: var(--paper-2); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-foot .brand .mark { font-size: 22px; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.foot-links a { font-size: 14px; color: var(--ink-soft); }
.foot-links a:hover { color: var(--ink); }
.foot-fine { margin-top: 34px; font-size: 12.5px; color: var(--muted); max-width: 560px; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 860px) {
  .gallery { columns: 2; }
  .lb-panel { grid-template-columns: 1fr; overflow-y: auto; }
  .lb-panel img { max-height: 48vh; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 8px 0;
  }
  .nav.open a { padding: 13px 24px; }
  .nav-toggle { display: block; }
  .collections { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .sub-form { flex-direction: column; }
  .sub-form .btn { justify-content: center; }
}
