:root {
  --ink: #141414;
  --muted: #66625d;
  --line: #e7e1d8;
  --paper: #fbfaf7;
  --warm: #eee8df;
  --white: #ffffff;
  --navy: #11253d;
  --wine: #7b1e2b;
  --sage: #6e7f67;
  --gold: #b28a4a;
  --shadow: 0 18px 45px rgba(17, 37, 61, .12);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: .58rem 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(390px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0 1.4rem;
}

.primary-nav,
.utility-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.primary-nav a {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
  color: #282623;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--wine);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .62rem;
  text-align: left;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}

.brand-crest {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.brand-copy {
  display: block;
}

.brand-copy strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.98rem, 1.24vw, 1.18rem);
  line-height: 1;
  letter-spacing: .045em;
  font-weight: 700;
}

.brand-copy span {
  display: block;
  font-size: .43rem;
  letter-spacing: .18em;
  color: var(--wine);
  margin-top: .22rem;
  font-weight: 800;
}

.utility-nav {
  justify-content: flex-end;
  gap: .45rem;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: var(--line);
  background: var(--white);
  outline: 0;
}

.icon-btn svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--wine);
  color: var(--white);
  font-size: .67rem;
  font-weight: 800;
}

.mobile-menu {
  display: none;
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 88vw);
  z-index: 40;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform .24s ease;
  padding: 1rem;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: .8rem;
}

.drawer nav {
  display: grid;
  gap: .3rem;
  margin-top: 1rem;
}

.drawer nav a {
  padding: .95rem .2rem;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .86rem;
}

.search-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.search-panel.open {
  display: block;
}

.search-panel form {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.4rem;
  display: flex;
  gap: .7rem;
}

.search-panel input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: .95rem 1rem;
  border-radius: 0;
}

.btn,
.btn-outline,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .76rem 1.05rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .075em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.btn-outline,
.chip {
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover,
.chip:hover,
.chip.active {
  background: var(--ink);
  color: var(--white);
}

.page {
  min-height: 70vh;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 108px);
  display: grid;
  align-items: end;
  position: relative;
  color: var(--white);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(17, 37, 61, .78), rgba(20, 20, 20, .32) 55%, rgba(20, 20, 20, .12));
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-content {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto 8vh;
  text-align: center;
}

.eyebrow {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 850;
  color: var(--wine);
}

.hero .eyebrow {
  color: #f3d9b4;
}

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

h1,
.display {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6.4vw, 5.9rem);
  line-height: .92;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 4vw, 4rem);
  line-height: .98;
  letter-spacing: 0;
  margin-bottom: .8rem;
}

h3 {
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: .02em;
  margin-bottom: .45rem;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.hero p {
  color: rgba(255, 255, 255, .9);
  font-size: 1.05rem;
  max-width: 620px;
  margin-inline: auto;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.section.alt {
  background: var(--warm);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-head p {
  max-width: 520px;
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 1.2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card,
.product-card,
.article-card,
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
}

.feature-card .media,
.article-card .media {
  aspect-ratio: 4 / 5;
}

.feature-card.large .media {
  aspect-ratio: 16 / 11;
}

.card-body {
  padding: 1.1rem;
}

.product-card {
  position: relative;
  padding: .72rem;
}

.product-media {
  aspect-ratio: 1 / 1.16;
  background: #f3f0eb;
  overflow: hidden;
}

.product-media img {
  object-position: center;
}

.product-card:hover img,
.article-card:hover img,
.feature-card:hover img {
  transform: scale(1.035);
}

.product-card img,
.article-card img,
.feature-card img {
  transition: transform .35s ease;
}

.product-info {
  padding: .9rem .12rem .05rem;
}

.product-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: .8rem;
  margin-bottom: .28rem;
}

.product-row h3 {
  font-size: .95rem;
}

.price {
  color: var(--navy);
  font-weight: 850;
}

.tag {
  display: inline-block;
  margin-bottom: .7rem;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wine);
}

.quick-add {
  width: 100%;
  margin-top: .5rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  align-items: center;
}

.split-media {
  min-height: 480px;
}

.panel {
  padding: clamp(1.4rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: var(--white);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1.4rem;
}

.metric {
  background: var(--paper);
  padding: 1rem;
}

.metric strong {
  display: block;
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: .2rem;
}

.metric span {
  color: var(--muted);
  font-size: .82rem;
}

.page-hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 2.5rem;
  background: var(--warm);
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 2rem;
  align-items: end;
}

.page-hero p {
  max-width: 650px;
}

.page-hero .media {
  aspect-ratio: 5 / 4;
}

.filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.journal-list {
  display: grid;
  gap: 1rem;
}

.journal-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.journal-item .media {
  aspect-ratio: 4 / 3;
}

.form {
  display: grid;
  gap: .85rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: .95rem 1rem;
  border-radius: 0;
  color: var(--ink);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.cart-layout,
.account-layout,
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 1.6rem;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.cart-item .media {
  aspect-ratio: 1;
  background: var(--warm);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}

.qty button {
  border: 0;
  background: transparent;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.qty span {
  min-width: 34px;
  text-align: center;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.summary-line strong {
  color: var(--ink);
}

.product-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}

.product-gallery .media:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 11;
}

.product-gallery .media {
  aspect-ratio: 1;
  background: var(--warm);
}

.product-detail h1 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .7rem 0 1.2rem;
}

.notice {
  padding: 1rem;
  background: #f7f0e7;
  border-left: 3px solid var(--gold);
  color: #51463a;
}

.site-footer {
  background: #101820;
  color: var(--white);
  padding: 3.2rem 0 1.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1.5rem;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, .74);
}

.site-footer h3 {
  color: var(--white);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .12em;
}

.site-footer .brand {
  display: inline-flex;
  color: var(--white);
  margin-bottom: 1rem;
}

.site-footer .brand-crest {
  border-color: rgba(255, 255, 255, .82);
  background: transparent;
  color: var(--white);
}

.site-footer .brand-copy strong {
  color: var(--white);
}

.site-footer .brand-copy span {
  color: #f3d9b4;
}

.site-footer nav {
  display: grid;
  gap: .55rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 2rem;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, .62);
  font-size: .86rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translate(-50%, 130%);
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  padding: .85rem 1rem;
  box-shadow: var(--shadow);
  transition: transform .22s ease;
  font-weight: 750;
}

.toast.show {
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .nav-wrap {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .primary-nav {
    display: none;
  }

  .mobile-menu {
    display: inline-grid;
  }

  .brand {
    text-align: left;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .page-hero .container,
  .cart-layout,
  .account-layout,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .split-media {
    min-height: 360px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    font-size: .66rem;
    line-height: 1.35;
    white-space: normal;
  }

  .nav-wrap {
    min-height: 64px;
    padding: 0 .8rem;
    gap: .45rem;
  }

  .brand {
    gap: .48rem;
  }

  .brand-crest {
    width: 34px;
    height: 34px;
    font-size: .66rem;
  }

  .brand-copy strong {
    font-size: .88rem;
    letter-spacing: .035em;
  }

  .brand-copy span {
    font-size: .38rem;
    letter-spacing: .14em;
  }

  .utility-nav .hide-mobile {
    display: none;
  }

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

  .hero {
    min-height: calc(100vh - 96px);
  }

  .hero::before {
    background: linear-gradient(0deg, rgba(17, 37, 61, .82), rgba(20, 20, 20, .28));
  }

  .hero-content {
    width: min(310px, calc(100% - 2.5rem));
    margin-bottom: 6vh;
  }

  h1,
  .display {
    font-size: clamp(2.45rem, 12vw, 3.35rem);
  }

  .hero p {
    font-size: .92rem;
  }

  .hero .eyebrow {
    font-size: .68rem;
    line-height: 1.35;
  }

  .section-head,
  .footer-bottom {
    display: block;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: .62rem;
  }

  .product-media {
    aspect-ratio: 4 / 3.7;
  }

  .journal-item,
  .cart-item {
    grid-template-columns: 88px 1fr;
  }

  .cart-item > .price {
    grid-column: 2;
  }

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