:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --ink: #1d1b18;
  --muted: #6f6a62;
  --line: #e2ddd4;
  --accent: #8a5a3c;
  --accent-ink: #ffffff;
  --sale: #a8432f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--sans);
  letter-spacing: .01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: .01em; margin: 0; }

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

/* ---------- Announcement + header ---------- */
.announce {
  background: var(--ink);
  color: #efe9df;
  text-align: center;
  font-size: 12px;
  letter-spacing: .08em;
  padding: 8px 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 243, 238, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
}
.main-nav { display: flex; gap: 28px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.main-nav a { padding: 4px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a.active { border-color: var(--ink); }
.logo {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: .32em;
  display: flex; align-items: center; gap: 10px;
  justify-self: center;
}
.header-actions { justify-self: end; display: flex; gap: 22px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.menu-btn { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.menu-btn span { display: block; width: 20px; height: 1px; background: var(--ink); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; height: min(78vh, 720px); min-height: 460px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,18,15,.55), rgba(20,18,15,.05) 65%); }
.hero-copy {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 12%;
  color: #fff;
}
.hero-copy .eyebrow { color: #efe6d8; }
.hero-copy h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.05; max-width: 640px; margin: 10px 0 18px; }
.hero-copy p { max-width: 460px; color: #f1ece4; margin: 0 0 28px; }

.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 30px;
  border: 1px solid var(--ink);
  background: var(--ink); color: #fff;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.light:hover { background: transparent; color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.link-arrow { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 2px; white-space: nowrap; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #e9e4dc; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.cat-card:hover img { transform: scale(1.04); }
.cat-card span {
  position: absolute; left: 20px; bottom: 20px;
  background: var(--bg); padding: 10px 18px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 20px; }
.card { display: block; }
.card .media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #ebe6de; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover .media img { transform: scale(1.035); }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--bg); padding: 3px 10px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.card .meta { padding-top: 14px; display: flex; justify-content: space-between; gap: 12px; }
.card h3 { font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.card .color { font-size: 13px; color: var(--muted); }
.card .price { font-size: 14px; white-space: nowrap; }

/* ---------- Editorial split ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.split .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split .duo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.split .duo img:last-child { margin-top: 64px; }
.split h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; margin: 12px 0 18px; }
.split p { color: var(--muted); max-width: 440px; margin: 0 0 28px; }

/* ---------- Values strip ---------- */
.values { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.values div { padding: 30px 24px; border-left: 1px solid var(--line); }
.values div:first-child { border-left: 0; padding-left: 0; }
.values strong { display: block; font-weight: 500; font-size: 14px; margin-bottom: 4px; }
.values span { color: var(--muted); font-size: 13px; }

/* ---------- Newsletter + footer ---------- */
.newsletter { text-align: center; padding: 80px 0; }
.newsletter h2 { font-size: 34px; margin-bottom: 10px; }
.newsletter p { color: var(--muted); margin: 0 0 26px; }
.nl-form { display: flex; max-width: 460px; margin: 0 auto; border-bottom: 1px solid var(--ink); }
.nl-form input { flex: 1; border: 0; background: transparent; padding: 12px 4px; outline: none; }
.nl-form button { border: 0; background: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.nl-note { font-size: 13px; color: var(--accent); min-height: 20px; margin-top: 12px; }

.site-footer { background: #ece7df; padding: 64px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.footer-grid a:hover { color: var(--ink); }
.footer-brand p { color: var(--muted); max-width: 300px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid #d9d2c6; font-size: 12px; color: var(--muted); }

/* ---------- Shop page ---------- */
.page-head { padding: 56px 0 28px; }
.page-head h1 { font-size: clamp(34px, 4.5vw, 54px); }
.page-head p { color: var(--muted); margin: 10px 0 0; max-width: 560px; }
.crumbs { font-size: 12px; color: var(--muted); letter-spacing: .06em; margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0 28px; border-top: 1px solid var(--line); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs a { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.tabs a.active, .tabs a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.toolbar select { border: 1px solid var(--line); background: var(--surface); padding: 8px 12px; }
.count { font-size: 13px; color: var(--muted); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; padding: 24px 0 80px; }
.pdp-media { background: #ebe6de; aspect-ratio: 4 / 5; overflow: hidden; }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { position: sticky; top: 100px; align-self: start; }
.pdp-info h1 { font-size: clamp(30px, 3.4vw, 42px); margin: 6px 0 8px; }
.pdp-price { font-size: 18px; }
.pdp-price small { color: var(--muted); font-size: 12px; margin-left: 6px; }
.pdp-desc { color: var(--muted); margin: 22px 0; }
.opt-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 22px 0 10px; display: flex; justify-content: space-between; }
.opt-label a { text-transform: none; letter-spacing: 0; color: var(--muted); text-decoration: underline; }
.swatch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.swatch i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: inline-block; background: var(--accent); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes button { min-width: 54px; height: 42px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.sizes button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.qty { display: inline-flex; border: 1px solid var(--line); background: var(--surface); }
.qty button { width: 40px; height: 42px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty input { width: 44px; text-align: center; border: 0; background: none; }
.buy-row { display: flex; gap: 12px; margin-top: 24px; }
.buy-row .btn { flex: 1; }
.pdp-msg { font-size: 13px; color: var(--accent); min-height: 20px; margin-top: 12px; }
.perks { list-style: none; padding: 0; margin: 22px 0 0; font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.perks li::before { content: "—  "; }
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 16px; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; font-size: 14px; }

/* ---------- Cart ---------- */
.cart { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; padding-bottom: 90px; }
.cart-line { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-line img { aspect-ratio: 4 / 5; object-fit: cover; }
.cart-line h3 { font-family: var(--sans); font-size: 15px; font-weight: 500; }
.cart-line .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.cart-line .remove { background: none; border: 0; padding: 0; margin-top: 14px; font-size: 12px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.summary { background: var(--surface); padding: 28px; align-self: start; }
.summary h2 { font-size: 24px; margin-bottom: 18px; }
.summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary .total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 16px; }
.summary .note { font-size: 12px; color: var(--muted); margin: 14px 0 18px; }
.notice { background: #efe6d8; border-left: 3px solid var(--accent); padding: 14px 16px; font-size: 13px; margin-top: 16px; display: none; }
.notice.show { display: block; }
.empty { padding: 60px 0 100px; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 20px; }

/* ---------- Content pages ---------- */
.prose { max-width: 760px; padding-bottom: 90px; }
.prose h2 { font-size: 28px; margin: 44px 0 12px; }
.prose p, .prose li { color: #4b4740; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; background: var(--surface); }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { font-weight: 500; background: #f1ece4; }
.about-hero { aspect-ratio: 16 / 7; object-fit: cover; width: 100%; margin-bottom: 48px; }
.lookbook { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0; }
.lookbook img { aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .main-nav { gap: 18px; }
  .split { gap: 40px; }
}
@media (max-width: 860px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .menu-btn { display: block; }
  .logo { justify-self: center; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .main-nav a { padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .site-header.open .main-nav { display: flex; }
  .header-actions .hide-sm { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid .cat-card:last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
  .split, .pdp, .cart { grid-template-columns: 1fr; }
  .pdp-info { position: static; }
  .values .wrap { grid-template-columns: 1fr 1fr; }
  .values div:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .section { padding: 56px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .logo { font-size: 22px; letter-spacing: .26em; }
  .card .meta { flex-direction: column; gap: 2px; }
  .lookbook { grid-template-columns: 1fr 1fr; }
  .cart-line { grid-template-columns: 84px 1fr; }
  .cart-line .price { grid-column: 2; }
}
