:root {
  --ink: #2f2528;
  --muted: #7f6f70;
  --paper: #fffaf7;
  --soft: #f5ece8;
  --rose: #c98f94;
  --wine: #7c2036;
  --wine-dark: #4d1424;
  --sage: #758474;
  --line: rgba(78, 45, 50, 0.16);
  --shadow: 0 18px 60px rgba(65, 31, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.7;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 250, 247, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--wine);
  border-radius: 50%;
  color: var(--wine);
  font-family: Georgia, serif;
  font-size: 15px;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.05;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav,
.header-actions,
.hero-actions,
.filter-tabs {
  display: flex;
  align-items: center;
}

.main-nav {
  gap: clamp(20px, 3vw, 42px);
  color: #57464a;
  font-size: 14px;
}

.header-actions {
  gap: 8px;
}

.icon-btn {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  cursor: pointer;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.cart-count {
  position: absolute;
  right: -2px;
  top: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 74px));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 250, 247, 0.94) 0%, rgba(255, 250, 247, 0.72) 32%, rgba(255, 250, 247, 0.06) 66%),
    linear-gradient(0deg, rgba(255, 250, 247, 0.55), transparent 36%);
}

.hero img {
  height: min(760px, calc(100vh - 74px));
  min-height: 560px;
  object-fit: cover;
}

.hero-copy {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: clamp(22px, 7vw, 96px);
  width: min(500px, calc(100% - 44px));
  transform: translateY(-50%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  line-height: 1.15;
}

h1 {
  margin-bottom: 24px;
  color: #2b1219;
  font-size: clamp(42px, 6vw, 76px);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.45;
}

.hero-copy p:not(.eyebrow) {
  max-width: 430px;
  color: #59494c;
  font-size: 16px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.ghost-link,
.primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
}

.primary-link,
.primary-button {
  border: 1px solid var(--wine);
  background: var(--wine);
  color: #fff;
  box-shadow: 0 14px 30px rgba(124, 32, 54, 0.22);
}

.ghost-link {
  border: 1px solid rgba(124, 32, 54, 0.3);
  background: rgba(255, 255, 255, 0.48);
  color: var(--wine);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.trust-strip div {
  padding: 24px clamp(18px, 4vw, 58px);
  background: #fff6f2;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 15px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: clamp(66px, 8vw, 118px) clamp(18px, 5vw, 72px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.filter-tabs {
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  cursor: pointer;
}

.filter-tab.active {
  border-color: var(--wine);
  background: var(--wine);
  color: #fff;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.35fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: start;
}

.feature-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.feature-panel img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.feature-panel div {
  padding: 24px;
}

.feature-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: grid;
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #fff, #fff6f3);
}

.product-card .meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.product-card small {
  color: var(--sage);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-card p {
  color: var(--muted);
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price-row strong {
  font-family: Georgia, serif;
  font-size: 22px;
}

.add-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--wine-dark);
  color: #fff;
  cursor: pointer;
}

.add-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.size-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  background: #f8f1ed;
}

.size-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.size-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.size-copy p:not(.eyebrow) {
  color: var(--muted);
}

.size-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 18px;
}

.size-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.size-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.size-form .primary-button {
  grid-column: 1 / -1;
  border-radius: 8px;
}

.size-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(124, 32, 54, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.size-result span {
  color: var(--muted);
  font-size: 13px;
}

.size-result strong {
  color: var(--wine);
  font-family: Georgia, serif;
  font-size: 30px;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.journal-grid article {
  min-height: 190px;
  padding: 24px;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.44);
}

.journal-grid span {
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 38px;
}

.journal-grid p {
  color: var(--muted);
}

.text-link {
  color: var(--wine);
  font-weight: 700;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  justify-content: end;
  background: rgba(47, 37, 40, 0.42);
}

.cart-drawer.open {
  display: flex;
}

.cart-panel {
  position: relative;
  width: min(420px, 100%);
  height: 100%;
  padding: 34px;
  background: var(--paper);
  box-shadow: -20px 0 60px rgba(36, 18, 24, 0.22);
}

.close-cart {
  position: absolute;
  top: 22px;
  right: 22px;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line strong {
  display: block;
}

.cart-line span {
  color: var(--muted);
  font-size: 13px;
}

.full {
  width: 100%;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 68px;
  }

  .main-nav {
    display: none;
  }

  .brand small {
    display: none;
  }

  .hero,
  .hero img {
    min-height: 650px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(255, 250, 247, 0.92) 0%, rgba(255, 250, 247, 0.58) 42%, rgba(255, 250, 247, 0.08) 100%),
      linear-gradient(0deg, rgba(255, 250, 247, 0.7), transparent 36%);
  }

  .hero-copy {
    top: 44%;
  }

  .trust-strip,
  .product-layout,
  .size-section,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand-mark,
  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 18px;
  }

  .hero-copy {
    left: 18px;
    width: calc(100% - 36px);
  }

  .hero-actions,
  .hero-actions a {
    width: 100%;
  }

  .size-form {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    padding: 28px 20px;
  }
}
