/* Homeware Edit — design system
   Adapted from the reference site's rhythm: 149px centered wordmark header,
   full-bleed photo strip, #E9E9E9 about band, 3-column portrait blog grid,
   #4B5768 quote and footer bands. */

:root {
  --ink: #161616;
  --ink-soft: #3a3a3a;
  --muted: #6f6f6f;
  --paper: #ffffff;
  --stone: #e9e9e9;
  --stone-dark: #dcdcdc;
  --slate: #4b5768;
  --slate-deep: #3d4757;
  --blush: #f3d9d3;
  --blush-deep: #e7c2b9;
  --line: #e3e3e3;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "League Spartan", "Helvetica Neue", Arial, sans-serif;
  --script: "Great Vibes", cursive;
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.72; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: 0.01em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.15em; }
li { margin-bottom: 0.45em; }

.wrap { width: min(100% - 60px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 48px, var(--wrap-narrow)); margin-inline: auto; }
.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;
}

/* ── header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s var(--ease);
}
.site-header[data-scrolled="true"] { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 149px;
  padding: 18px 34px;
  gap: 20px;
  transition: min-height 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-header[data-scrolled="true"] .header-inner { min-height: 92px; padding: 10px 34px; }

.header-left, .header-right { display: flex; align-items: center; }
.header-right { justify-content: flex-end; }

.menu-toggle,
.search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle .bars { display: grid; gap: 3px; }
.menu-toggle .bars span { display: block; width: 17px; height: 1px; background: var(--ink); }

.brand { text-align: center; display: block; }
.brand .eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.brand .wordmark {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 40px;
  line-height: 0.92;
  letter-spacing: 0.13em;
  text-indent: 0.13em;
}
.brand .script {
  display: block;
  font-family: var(--script);
  font-size: 33px;
  line-height: 1;
  margin-top: -6px;
  padding-right: 0.2em;
}
.site-header[data-scrolled="true"] .brand .wordmark { font-size: 27px; }
.site-header[data-scrolled="true"] .brand .script { font-size: 23px; }
.site-header[data-scrolled="true"] .brand .eyebrow { display: none; }

/* search field */
.search-field { display: none; align-items: center; gap: 8px; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.search-field[data-open="true"] { display: inline-flex; }
.search-field input {
  border: 0; outline: 0; background: none; width: 190px;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em; color: var(--ink);
}
.search-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* mega nav */
.nav-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(420px, 88vw);
  background: var(--paper);
  transform: translateX(-101%);
  transition: transform 0.42s var(--ease);
  z-index: 90;
  padding: 34px 34px 40px;
  overflow-y: auto;
}
.nav-drawer[data-open="true"] { transform: translateX(0); }
.nav-drawer h2 { font-size: 34px; margin-bottom: 18px; }
.nav-drawer ul { list-style: none; margin: 0; padding: 0; }
.nav-drawer li { border-bottom: 1px solid var(--line); }
.nav-drawer a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 13px 0; font-size: 13px; letter-spacing: 0.13em; text-transform: uppercase;
}
.nav-drawer .legal { margin-top: 26px; }
.nav-drawer .legal a { font-size: 11px; letter-spacing: 0.1em; text-transform: none; color: var(--muted); }
.nav-scrim {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.32);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); z-index: 80;
}
.nav-scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

/* ── hero strip ─────────────────────────────────────────── */
.hero-strip { background: var(--paper); overflow: hidden; }
.hero-track {
  display: flex;
  gap: 14px;
  height: 560px;
  padding: 0 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
  position: relative;
  flex: 0 0 clamp(300px, 29vw, 430px);
  scroll-snap-align: start;
  overflow: hidden;
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.hero-slide:hover img { transform: scale(1.03); }
.hero-slide span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 24px;
  color: #fff;
  font-family: var(--serif); font-size: 26px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
}

/* ── about band ─────────────────────────────────────────── */
.about-band { background: var(--stone); padding: 95px 50px; }
.about-grid { display: grid; grid-template-columns: 0.78fr 1fr; gap: 64px; align-items: center; }
.about-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-copy h2 { font-size: 44px; line-height: 1.06; margin-bottom: 20px; }
.about-copy p { color: var(--ink-soft); max-width: 46ch; }
.about-links { display: flex; gap: 26px; margin-top: 26px; }
.about-links a {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 4px;
}

/* ── section heads ──────────────────────────────────────── */
.section-head { text-align: center; padding: 74px 20px 40px; }
.section-head h2 { font-size: 42px; line-height: 1.05; }
.section-head .view-all {
  display: inline-block; margin-top: 12px;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.section-head.left { text-align: left; padding-inline: 0; }

/* ── post grid ──────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px 40px;
  padding-bottom: 84px;
}
.post-card { display: block; }
.post-card .thumb { overflow: hidden; background: var(--stone); }
.post-card .thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card h3 { font-size: 29px; line-height: 1.14; margin: 20px 0 10px; }
.post-card .meta,
.post-meta {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft);
}
.post-card .meta span + span::before,
.post-meta span + span::before { content: "•"; margin: 0 8px; color: var(--muted); }
.post-card p.excerpt { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ── quote band ─────────────────────────────────────────── */
.quote-band {
  background: var(--slate); color: #f4f1ec; text-align: center;
  padding: 92px 40px;
}
.quote-band blockquote {
  margin: 0 auto; max-width: 760px;
  font-family: var(--serif); font-size: 31px; line-height: 1.42; font-weight: 300;
}
.quote-band cite {
  display: block; margin-top: 22px; font-family: var(--sans);
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; font-style: normal; opacity: 0.8;
}

/* ── shop the look ──────────────────────────────────────── */
.shop-band { background: var(--paper); padding-bottom: 80px; }
.shop-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.shop-item { text-align: center; }
.shop-item .thumb { background: var(--stone); overflow: hidden; }
.shop-item img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; transition: transform 1.1s var(--ease); }
.shop-item:hover img { transform: scale(1.05); }
.shop-item span {
  display: block; margin-top: 11px; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.shop-note { text-align: center; margin-top: 26px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ── newsletter / contact strip ─────────────────────────── */
.signup-band { background: var(--stone); padding: 78px 40px; text-align: center; }
.signup-band h2 { font-size: 38px; margin-bottom: 12px; }
.signup-band p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 26px; }
.signup-form { display: flex; gap: 0; max-width: 520px; margin: 0 auto; }
.signup-form input {
  flex: 1; border: 1px solid #b9b9b9; background: transparent; padding: 15px 16px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em; color: var(--ink);
}
.signup-form button {
  border: 1px solid var(--ink); background: var(--blush); color: var(--ink);
  padding: 15px 26px; font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; white-space: nowrap;
}
.signup-form button:hover { background: var(--blush-deep); }

/* ── footer ─────────────────────────────────────────────── */
.site-footer { background: var(--slate); color: #efece7; padding: 64px 34px 30px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px;
  width: min(100%, var(--wrap)); margin: 0 auto;
}
.site-footer .wordmark { font-family: var(--serif); font-size: 30px; letter-spacing: 0.13em; }
.site-footer .script { font-family: var(--script); font-size: 26px; margin-top: -4px; }
.site-footer p { font-size: 13px; color: rgba(255, 255, 255, 0.72); max-width: 34ch; }
.footer-col h3 {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-bottom: 14px;
}
.footer-col a { display: block; font-size: 13px; padding: 4px 0; color: rgba(255, 255, 255, 0.9); }
.footer-bottom {
  width: min(100%, var(--wrap)); margin: 44px auto 0; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62);
}

/* ── article ────────────────────────────────────────────── */
.article-head { padding: 64px 0 34px; text-align: center; }
.article-head .cat {
  font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted);
}
.article-head h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.04; margin: 14px auto 20px; max-width: 18ch; }
.article-head .dek { color: var(--muted); max-width: 62ch; margin: 0 auto; font-size: 16px; }
.article-meta { justify-content: center; display: flex; margin-top: 18px; }
.article-hero { width: min(100% - 40px, 1040px); margin: 26px auto 0; }
.article-hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.article-hero figcaption { font-size: 11px; color: var(--muted); padding-top: 9px; text-align: center; letter-spacing: 0.04em; }

.prose { font-size: 17px; line-height: 1.78; color: var(--ink-soft); padding: 44px 0 20px; }
.prose > p:first-of-type { font-size: 19px; color: var(--ink); }
.prose h2 { font-size: 34px; line-height: 1.16; margin: 46px 0 14px; color: var(--ink); }
.prose h3 { font-size: 23px; margin: 32px 0 10px; color: var(--ink); }
.prose a { border-bottom: 1px solid rgba(22, 22, 22, 0.34); }
.prose a:hover { border-bottom-color: var(--ink); opacity: 1; }
.prose em { color: var(--ink); }
.prose blockquote {
  margin: 32px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--slate);
  font-family: var(--serif); font-size: 24px; line-height: 1.4; color: var(--ink);
}
.prose table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.prose tbody tr:hover { background: #faf9f7; }
.disclosure {
  background: #f7f4f0; border-left: 2px solid var(--blush-deep);
  padding: 16px 18px; font-size: 13px; line-height: 1.6; color: var(--muted);
  margin: 0 0 30px;
}
.disclosure em { color: inherit; font-style: italic; }
.article-foot { padding: 20px 0 70px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.tags span {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 6px 10px; color: var(--muted);
}
.author-box { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; border-top: 1px solid var(--line); padding-top: 26px; }
.author-box .avatar {
  width: 72px; height: 72px; border-radius: 50%; background: var(--stone);
  display: grid; place-items: center; font-family: var(--serif); font-size: 26px; color: var(--slate);
}
.author-box strong { font-weight: 400; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.author-box p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* ── category hero ──────────────────────────────────────── */
.cat-hero { position: relative; min-height: 340px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.cat-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-hero::after { content: ""; position: absolute; inset: 0; background: rgba(28, 32, 38, 0.42); }
.cat-hero .inner { position: relative; z-index: 2; padding: 60px 24px; }
.cat-hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1; }
.cat-hero p { margin: 16px auto 0; max-width: 56ch; color: rgba(255, 255, 255, 0.9); font-size: 15px; }
.cat-hero .count { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; margin-top: 18px; }

/* ── page (static) ──────────────────────────────────────── */
.page-head { padding: 70px 0 30px; text-align: center; }
.page-head h1 { font-size: clamp(38px, 5vw, 56px); }
.page-head p { color: var(--muted); max-width: 60ch; margin: 14px auto 0; }

/* ── misc ───────────────────────────────────────────────── */
.btn {
  display: inline-block; border: 1px solid var(--ink); padding: 14px 26px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}
.btn:hover { background: var(--ink); color: #fff; opacity: 1; }
.notice { background: var(--stone); padding: 16px 18px; font-size: 13px; color: var(--ink-soft); margin: 24px 0; }
.pagination { display: flex; justify-content: center; gap: 10px; padding: 0 0 70px; font-size: 11px; letter-spacing: 0.14em; }
.pagination a, .pagination span { border: 1px solid var(--line); padding: 9px 14px; }
.pagination [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); gap: 46px 30px; }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 108px; padding: 14px 18px; }
  .brand .wordmark { font-size: 29px; letter-spacing: 0.1em; }
  .brand .script { font-size: 25px; }
  .brand .eyebrow { font-size: 9px; letter-spacing: 0.24em; }
  .menu-toggle span.label, .search-label { display: none; }
  .hero-track { height: 420px; gap: 10px; padding: 0 10px; }
  .hero-slide { flex-basis: 78vw; }
  .about-band { padding: 56px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-copy h2 { font-size: 34px; }
  .section-head { padding: 52px 16px 30px; }
  .section-head h2 { font-size: 34px; }
  .post-card h3 { font-size: 24px; }
  .quote-band { padding: 60px 24px; }
  .quote-band blockquote { font-size: 24px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .signup-form { flex-direction: column; gap: 10px; }
  .signup-form button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .article-head { padding: 40px 0 22px; }
  .prose { font-size: 16px; padding-top: 32px; }
  .prose h2 { font-size: 28px; }
  .prose table { font-size: 13px; }
  .article-hero { width: calc(100% - 24px); }
}

@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-track { height: 360px; }
  .about-links { flex-wrap: wrap; gap: 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
