:root {
  --ink: #1a1714;
  --ink-soft: #3d3832;
  --muted: #6e675e;
  --line: #d9d2c6;
  --paper: #f3efe6;
  --paper-deep: #e8e1d4;
  --surface: #faf8f3;
  --forest: #2c4034;
  --forest-2: #1e2e25;
  --brass: #8a6a3b;
  --brass-soft: rgba(138, 106, 59, 0.12);
  --danger: #8f2f2f;
  --max: 1120px;
  --radius: 3px;
  --font-d: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-b: "Newsreader", Georgia, serif;
  --font-ui: "Figtree", "Segoe UI", sans-serif;
  --shadow: 0 1px 0 rgba(26, 23, 20, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-b);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 100% 55% at 50% -20%, #ebe4d5 0%, transparent 60%),
    linear-gradient(180deg, #f7f3ea 0%, var(--paper) 35%, var(--paper-deep) 100%);
  font-size: 1.05rem;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brass); }
h1, h2, h3, h4 {
  font-family: var(--font-d);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
p { margin: 0 0 1rem; }
.container { width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }
.section { padding: 3.25rem 0; }
.section.narrow { max-width: 720px; margin-inline: auto; }
.eyebrow {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 .55rem;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 38rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.price { font-family: var(--font-ui); font-weight: 600; color: var(--ink); }
.price.lg { font-size: 1.35rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .85rem 1.35rem;
  background: var(--forest); color: #f5f1ea !important; border: 0;
  font-family: var(--font-ui); font-size: .78rem; font-weight: 650;
  letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--radius); cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--forest-2); }
.btn-ghost {
  background: transparent; color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn-small { padding: .65rem .95rem; font-size: .68rem; }
.btn-text-danger {
  background: none; border: 0; color: var(--danger); cursor: pointer;
  font-family: var(--font-ui); font-size: .75rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; padding: .35rem 0;
}
.btn-text-danger:hover { text-decoration: underline; }

/* Header — classic shop, not dashboard */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 76px;
}
.logo img { height: 42px; width: auto; }
.logo-mobile { font-family: var(--font-ui); font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.nav {
  display: flex; align-items: center; gap: 1.35rem;
  font-family: var(--font-ui); font-size: .86rem; font-weight: 550;
}
.nav > a, .nav-drop > a { color: var(--ink-soft); padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav > a:hover, .nav > a.is-active, .nav-drop > a.is-active {
  color: var(--ink); border-bottom-color: var(--brass);
}
.nav-drop { position: relative; }
.nav-drop-panel {
  display: none; position: absolute; top: calc(100% + .55rem); left: -.5rem;
  min-width: 200px; padding: .55rem;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(26, 23, 20, .08);
}
.nav-drop:hover .nav-drop-panel { display: grid; gap: .15rem; }
.nav-drop-panel a {
  padding: .55rem .7rem; color: var(--ink-soft); font-size: .84rem;
}
.nav-drop-panel a:hover { background: var(--brass-soft); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: .35rem; }
.icon-btn {
  font-family: var(--font-ui); font-size: .8rem; font-weight: 550;
  color: var(--ink-soft); padding: .45rem .6rem;
}
.icon-btn:hover, .icon-btn.is-active { color: var(--ink); }
.cart-link { position: relative; }
.badge {
  display: inline-grid; place-items: center;
  min-width: 1.15rem; height: 1.15rem; padding: 0 .25rem;
  margin-left: .25rem; border-radius: 999px;
  background: var(--forest); color: #fff; font-size: .65rem; font-weight: 700;
}
.bar-mobile { display: none; }
.drawer {
  position: fixed; inset: 0 auto 0 0; width: min(300px, 88vw);
  background: var(--forest-2); color: #e8e4db; z-index: 80; padding: 1.35rem;
}
.drawer[hidden], .drawer-backdrop[hidden] { display: none !important; }
.drawer a { display: block; color: #e8e4db; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--font-ui); }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 70; }
.drawer-close {
  background: transparent; border: 0; color: #fff; margin-bottom: 1rem;
  font-family: var(--font-ui); cursor: pointer;
}
.nav-toggle {
  background: transparent; border: 0; color: var(--ink);
  font-family: var(--font-ui); font-weight: 600; cursor: pointer;
}

.flash {
  width: min(var(--max), calc(100% - 2.4rem)); margin: .85rem auto 0;
  padding: .8rem 1rem; border: 1px solid var(--line); background: var(--surface);
  font-family: var(--font-ui); font-size: .92rem;
}
.flash-ok { border-color: rgba(138,106,59,.35); background: var(--brass-soft); }
.flash-error { border-color: #c45c5c; background: #fdecec; }
.flash-hide { opacity: 0; transition: opacity .4s; }

/* Modal */
.cyhb-modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 1rem;
}
.cyhb-modal[hidden] { display: none !important; }
.cyhb-modal-backdrop { position: absolute; inset: 0; background: rgba(26, 23, 20, 0.55); }
.cyhb-modal-dialog {
  position: relative; z-index: 1; width: min(400px, 100%);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; padding: 1.35rem 1.4rem 1.25rem;
  box-shadow: 0 20px 50px rgba(26,23,20,.18);
}
.cyhb-modal-title { font-size: 1.25rem; margin: 0 0 .5rem; }
.cyhb-modal-text { color: var(--muted); margin: 0 0 1.2rem; }
.cyhb-modal-actions { display: flex; justify-content: flex-end; gap: .55rem; }
body.cyhb-modal-open { overflow: hidden; }

/* Hero — full bleed, brand-first */
.hero {
  position: relative; min-height: min(78vh, 640px);
  display: grid; align-items: end; overflow: hidden;
  color: #f4efe6;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.48) contrast(1.05);
}
.hero-copy {
  position: relative; z-index: 1; padding: 4.5rem 0 3.5rem;
  max-width: 34rem;
}
.hero-copy .eyebrow { color: #d4b57a; }
.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: #f7f2e9; margin: 0 0 .85rem;
  font-weight: 600;
}
.hero-copy .lede { color: #d7d0c4; font-family: var(--font-b); margin-bottom: 1.4rem; }
.hero .btn { background: #f4efe6; color: var(--ink) !important; }
.hero .btn:hover { background: #fff; }

.section-intro { margin-bottom: 1.75rem; max-width: 40rem; }
.section-intro h2 { margin: 0 0 .5rem; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.page-head { margin-bottom: 1.5rem; }
.page-head h1 { margin: 0 0 .4rem; font-size: clamp(2rem, 4vw, 2.75rem); }
.subhead { font-size: 1.35rem; margin: 2rem 0 1rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
}
.product-card { display: grid; gap: .7rem; }
.product-card-media {
  aspect-ratio: 1; overflow: hidden; background: #e5ddd0;
  border: 1px solid var(--line);
}
.product-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.product-card:hover .product-card-media img { transform: scale(1.03); }
.product-card h3 {
  font-family: var(--font-ui); font-size: .95rem; font-weight: 600;
  margin: 0; line-height: 1.35;
}
.product-card .price { margin: 0; font-size: .9rem; color: var(--muted); }
.inline-add { margin: 0; }

.split {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.split-links { display: grid; gap: .85rem; font-family: var(--font-ui); font-weight: 600; }
.split-links a { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: .55rem; }
.split-links a:hover { color: var(--brass); border-color: var(--brass); }

.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start;
}
.product-main {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: #e5ddd0; border: 1px solid var(--line);
}
.thumbs { display: flex; gap: .5rem; margin-top: .75rem; flex-wrap: wrap; }
.thumb {
  border: 1px solid var(--line); padding: 0; background: var(--surface); cursor: pointer;
  width: 64px; height: 64px; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.buy-box {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: end;
  margin: 1.25rem 0 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.buy-box label { font-family: var(--font-ui); font-size: .75rem; gap: .3rem; }
.buy-box input[type=number] { width: 5rem; }
.product-body { margin-top: .5rem; }

.rte h2, .rte h3, .rte h4 { margin: 1.6rem 0 .6rem; }
.rte p, .rte li { color: var(--ink-soft); }
.rte ul, .rte ol { padding-left: 1.2rem; }
.rte img { margin: 1rem 0; border: 1px solid var(--line); }
.collection-intro { margin: 0 0 1.5rem; max-width: 42rem; color: var(--muted); }
.page-continue {
  margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.page-continue-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .85rem; }

.empty-state {
  padding: 2rem 0; border-top: 1px dashed var(--line);
}
.lookbook-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem; margin: 1.5rem 0;
}
.lookbook-item {
  margin: 0; background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.lookbook-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.lookbook-item figcaption {
  padding: .6rem .75rem; font-family: var(--font-ui); font-size: .76rem; color: var(--muted);
}

.cart-table { display: grid; gap: 1rem; }
.cart-row {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 1rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.cart-thumb img { width: 92px; height: 92px; object-fit: cover; border: 1px solid var(--line); }
.cart-side { text-align: right; display: grid; gap: .55rem; justify-items: end; }
.cart-qty-form { display: flex; flex-wrap: wrap; gap: .45rem; align-items: end; margin-top: .55rem; }
.cart-actions {
  display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.35rem;
  flex-wrap: wrap; align-items: end;
}
.cart-summary { text-align: right; font-family: var(--font-ui); }

.checkout-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; }
.checkout-form, .auth-form, .search-form { display: grid; gap: .95rem; }
.search-form { grid-template-columns: 1fr auto; align-items: center; }
label {
  display: grid; gap: .4rem; font-weight: 600; font-size: .88rem;
  font-family: var(--font-ui);
}
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number] {
  padding: .8rem .9rem; border: 1px solid var(--line); background: var(--surface);
  font: inherit; border-radius: var(--radius); font-family: var(--font-ui);
}
.checkout-summary {
  padding: 1.25rem; border: 1px solid var(--line); background: var(--surface);
  height: fit-content;
}
.sum-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .95rem;
}
.sum-row.total { border: 0; font-weight: 700; padding-top: .9rem; font-family: var(--font-ui); }

.order-list { display: grid; gap: 1rem; margin-top: 1rem; }
.order-card {
  padding: 1.1rem; border: 1px solid var(--line); background: var(--surface);
}
.order-card header {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--font-ui); margin-bottom: .4rem;
}

.post-list { display: grid; gap: 0; }
.post-teaser {
  display: grid; grid-template-columns: 140px 1fr; gap: 1.15rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line); align-items: start;
}
.post-teaser-media {
  aspect-ratio: 1; overflow: hidden; background: #e5ddd0; border: 1px solid var(--line);
}
.post-teaser-media img { width: 100%; height: 100%; object-fit: cover; }
.post-teaser h2 {
  font-family: var(--font-d); font-size: 1.35rem; margin: 0 0 .4rem;
}
.post-teaser h2 a { color: var(--ink); }
.post-teaser h2 a:hover { color: var(--brass); }
.post-meta {
  font-family: var(--font-ui); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 .45rem;
}
.article-hero-img {
  width: 100%; max-height: 420px; object-fit: cover; margin: 0 0 1.5rem;
  border: 1px solid var(--line);
}

/* Blog index */
.blog-index { padding: 3rem 0 4rem; }
.blog-index-head {
  max-width: 40rem; margin-bottom: 2.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--line);
}
.blog-index-head h1 { margin: 0 0 .55rem; font-size: clamp(2rem, 4vw, 2.8rem); }
.blog-index-head .lede { margin: 0; }

.blog-feature {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem;
  align-items: center; margin-bottom: 2.75rem;
  padding-bottom: 2.75rem; border-bottom: 1px solid var(--line);
}
.blog-feature-media {
  display: block; overflow: hidden; background: #e5ddd0;
  border: 1px solid var(--line); aspect-ratio: 4 / 3;
}
.blog-feature-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.blog-feature:hover .blog-feature-media img { transform: scale(1.03); }
.blog-feature-copy h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin: 0 0 .7rem; line-height: 1.2;
}
.blog-feature-copy h2 a { color: var(--ink); }
.blog-feature-copy h2 a:hover { color: var(--brass); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.35rem;
}
.blog-card { display: grid; gap: .85rem; align-content: start; }
.blog-card-media {
  display: block; overflow: hidden; background: #e5ddd0;
  border: 1px solid var(--line); aspect-ratio: 4 / 3;
}
.blog-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.blog-card:hover .blog-card-media img { transform: scale(1.03); }
.blog-card-copy h3 {
  font-family: var(--font-d); font-size: 1.15rem; margin: 0 0 .4rem; line-height: 1.25;
}
.blog-card-copy h3 a { color: var(--ink); }
.blog-card-copy h3 a:hover { color: var(--brass); }
.blog-excerpt {
  margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55;
}
.text-link {
  display: inline-block; margin-top: .85rem;
  font-family: var(--font-ui); font-size: .78rem; font-weight: 650;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--forest); border-bottom: 1px solid currentColor; padding-bottom: .1rem;
}
.text-link:hover { color: var(--brass); }

/* Article page */
.article-page { padding: 2.75rem 0 4rem; }
.article-wrap { max-width: 720px; }
.article-head { margin-bottom: 1.75rem; }
.article-head h1 {
  margin: 0 0 .55rem; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15;
}
.article-head .eyebrow a { color: var(--brass); }
.article-hero {
  margin: 0 0 1.75rem; border: 1px solid var(--line); background: #e5ddd0;
  overflow: hidden;
}
.article-hero img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
}
.article-lede {
  font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 1.5rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--line);
}
.article-body {
  font-size: 1.05rem; line-height: 1.75;
}
.article-body > *:first-child { margin-top: 0; }
.article-body h2, .article-body h3, .article-body h4 {
  margin: 1.85rem 0 .55rem; line-height: 1.25;
}
.article-body h2 { font-size: 1.45rem; }
.article-body h3 { font-size: 1.2rem; }
.article-body h4 { font-size: 1.05rem; font-family: var(--font-ui); letter-spacing: .02em; }
.article-body p { margin: 0 0 1.05rem; }
.article-body img {
  width: 100%; height: auto; margin: 1.25rem 0;
  border: 1px solid var(--line);
}
.article-body iframe {
  max-width: 100%; margin: 1.25rem 0;
}
.article-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 1.35rem; border-top: 1px solid var(--line);
}
.article-foot .text-link { margin-top: 0; }

.site-footer {
  background: var(--forest-2); color: #c9c2b5; margin-top: 3.5rem;
  padding: 2.75rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 2rem;
}
.site-footer h3 {
  font-family: var(--font-ui); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: #e8e1d4; margin: 0 0 .85rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 .45rem; }
.site-footer a { color: #c9c2b5; font-family: var(--font-ui); font-size: .92rem; }
.site-footer a:hover { color: #f3ebe0; }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.1rem;
  font-family: var(--font-ui); font-size: .82rem; color: #9e9688;
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail, .checkout-grid, .split { grid-template-columns: 1fr; }
  .lookbook-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .blog-feature { grid-template-columns: 1fr; gap: 1.25rem; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-inner, .nav { display: none; }
  .bar-mobile {
    display: flex; align-items: center; justify-content: space-between;
    padding: .85rem 4%; background: var(--surface); border-bottom: 1px solid var(--line);
  }
  .hero { min-height: 440px; }
  .post-teaser { grid-template-columns: 96px 1fr; }
}
@media (max-width: 520px) {
  .product-grid, .lookbook-grid, .footer-grid, .blog-grid { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 72px 1fr; }
  .cart-side { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .blog-index { padding: 2rem 0 3rem; }
}
