:root {
  --surface: #fcf8f7;
  --washi-bg: #f5f1e9;
  --paper-deep: #ebe4d5;
  --ink-black: #151816;
  --charcoal-heavy: #242826;
  --on-surface: #1c1b1b;
  --on-surface-variant: #444845;
  --vermilion-refined: #8c3224;
  --gold-accent: #a37b3d;
  --moss-deep: #445c3e;
  --line-subtle: #d1c7b5;
  --container: 1280px;
  --gutter: 32px;
  --shadow: 0 28px 90px rgba(21, 24, 22, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--washi-bg);
  color: var(--ink-black);
  font-family: "Hanken Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

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

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

button {
  border: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
}

select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(245, 241, 233, 0.86);
  border-bottom: 1px solid var(--line-subtle);
  backdrop-filter: blur(20px);
}

.nav-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  width: min(1360px, calc(100% - 48px));
  height: 80px;
  margin: 0 auto;
}

h1,
h2,
h3,
blockquote p,
.footer-brand {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 146px;
  height: 72px;
  overflow: hidden;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 24px;
}

.nav-links a {
  white-space: nowrap;
}

.nav-links a,
.nav-actions button,
.nav-select,
.nav-select select,
.section-heading a,
.button,
.product-card button,
.journal-grid a,
.footer-grid a,
.cart-header button {
  color: var(--on-surface-variant);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-transform: none;
}

.nav-actions {
  justify-content: end;
  gap: 12px;
  white-space: nowrap;
}

.nav-actions button {
  background: transparent;
}

.cart-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink-black);
}

.cart-icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-icon-button #cartCount {
  position: absolute;
  top: 2px;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  margin-left: 0;
  padding: 0 5px;
  color: #fff;
  background: var(--vermilion-refined);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.nav-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--on-surface-variant);
}

.nav-select span {
  margin-left: 0;
  color: var(--on-surface-variant);
  font-weight: 500;
}

.nav-select select {
  min-height: 34px;
  padding: 0 22px 0 9px;
  color: var(--ink-black);
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(209, 199, 181, 0.9);
  border-radius: 0;
}

.nav-actions span {
  margin-left: 6px;
  color: var(--vermilion-refined);
  font-weight: 700;
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 760px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
}

.hero-overlay {
  background:
    linear-gradient(rgba(21, 24, 22, 0.2), rgba(21, 24, 22, 0.32)),
    radial-gradient(circle at 50% 55%, rgba(21, 24, 22, 0.1), rgba(21, 24, 22, 0.34));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 64px));
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: currentColor;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.gold {
  color: var(--gold-accent);
}

.hero h1 {
  margin: 16px 0 0;
  font-size: 84px;
  line-height: 1.05;
}

.hero-lede {
  max-width: 650px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 48px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 44px;
  font-size: 14px;
  font-weight: 700;
}

.button.primary {
  color: #fff;
  background: var(--vermilion-refined);
}

.button.primary:hover {
  background: var(--ink-black);
}

.button.ghost-light {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.button.ghost-light:hover {
  color: var(--ink-black);
  background: #fff;
}

.button.dark {
  color: #fff;
  background: var(--ink-black);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 2;
  color: #fff;
  font-size: 20px;
  transform: translateX(-50%);
}

.section {
  padding: 150px 0;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 96px;
  align-items: center;
}

.copy-column {
  padding-right: 48px;
  border-right: 1px solid var(--line-subtle);
}

.copy-column h2,
.section-heading h2 {
  margin: 14px 0 24px;
  font-size: 42px;
  line-height: 1.14;
}

.copy-column p:not(.eyebrow),
.section-heading p,
.quote-column > p,
.journal-title p:not(.eyebrow),
.journal-grid p,
.footer-grid p,
.cart-line p {
  color: var(--on-surface-variant);
  font-size: 16px;
  line-height: 1.75;
}

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

.value-grid article {
  min-height: 190px;
  padding: 34px;
  background: rgba(235, 228, 213, 0.58);
  border: 1px solid rgba(209, 199, 181, 0.48);
}

.value-grid span,
.product-kicker,
.journal-grid .meta {
  color: var(--gold-accent);
  font-size: 12px;
  font-weight: 700;
}

.value-grid h3 {
  margin: 18px 0 10px;
  font-size: 22px;
}

.value-grid p {
  margin: 0;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.collections {
  background: rgba(235, 228, 213, 0.32);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
}

.section-heading h2 {
  margin-top: 0;
}

.section-heading a {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink-black);
}

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

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(209, 199, 181, 0.72);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.product-card:hover img {
  transform: scale(1.045);
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  color: var(--ink-black);
  background: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 8px 0 4px;
  font-size: 22px;
  line-height: 1.25;
}

.product-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.product-card strong {
  font-size: 16px;
}

.product-card button {
  padding: 0;
  color: var(--vermilion-refined);
  background: transparent;
}

.artisan-editorial {
  background: var(--washi-bg);
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1fr);
  gap: 90px;
  align-items: center;
}

.artisan-image {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line-subtle);
}

.artisan-image::before {
  content: "";
  position: absolute;
  left: -28px;
  top: -28px;
  width: 110px;
  height: 110px;
  border-left: 2px solid var(--gold-accent);
  border-top: 2px solid var(--gold-accent);
}

.artisan-image img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

blockquote {
  margin: 0 0 28px;
}

blockquote p {
  margin: 0 0 18px;
  font-size: 42px;
  line-height: 1.12;
  font-style: italic;
}

blockquote cite {
  color: var(--gold-accent);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.quote-column .button {
  margin-top: 28px;
}

.journal {
  background: var(--surface);
}

.journal-title {
  max-width: 720px;
  margin: 0 auto 70px;
  text-align: center;
}

.journal-title h2 {
  margin: 12px 0 18px;
  font-size: 56px;
  line-height: 1.1;
}

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

.journal-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line-subtle);
}

.journal-grid .meta {
  margin: 22px 0 8px;
  text-transform: uppercase;
}

.journal-grid h3 {
  margin: 0 0 14px;
  font-size: 28px;
}

.journal-grid a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--ink-black);
  border-bottom: 1px solid currentColor;
}

.journal-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 75;
  display: grid;
  grid-template-rows: 330px minmax(0, 1fr);
  width: min(680px, 100%);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.journal-panel.is-open {
  transform: translateX(0);
}

.journal-panel > img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-bottom: 1px solid var(--line-subtle);
}

.journal-close {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 1;
  min-height: 38px;
  padding: 0 16px;
  color: #fff;
  background: rgba(21, 24, 22, 0.72);
}

.journal-panel-copy {
  overflow: auto;
  padding: 42px 56px 64px;
}

.journal-panel-copy .meta {
  margin: 0 0 12px;
  color: var(--gold-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.journal-panel-copy h2 {
  margin: 0 0 26px;
  font-size: 46px;
  line-height: 1.08;
}

.journal-panel-copy p {
  color: var(--on-surface-variant);
  font-size: 17px;
  line-height: 1.85;
}

.policy-section {
  scroll-margin-top: 80px;
  background: var(--washi-bg);
  border-top: 1px solid rgba(209, 199, 181, 0.58);
}

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

.policy-section.compact {
  padding: 100px 0;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
  gap: 72px;
  align-items: start;
}

.policy-intro {
  position: sticky;
  top: 120px;
}

.policy-intro h2,
.policy-copy h2 {
  margin: 14px 0 24px;
  font-size: 46px;
  line-height: 1.1;
}

.policy-intro p:not(.eyebrow),
.policy-copy p:not(.eyebrow),
.policy-grid p {
  color: var(--on-surface-variant);
  font-size: 16px;
  line-height: 1.8;
}

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

.policy-grid article {
  min-height: 220px;
  padding: 34px;
  background: rgba(252, 248, 247, 0.64);
  border: 1px solid rgba(209, 199, 181, 0.7);
}

.policy-grid span {
  color: var(--gold-accent);
  font-size: 12px;
  font-weight: 700;
}

.policy-grid h3 {
  margin: 18px 0 12px;
  font-size: 24px;
}

.policy-copy {
  max-width: 860px;
}

.site-footer {
  padding: 90px 0 40px;
  background: var(--paper-deep);
  border-top: 1px solid var(--line-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 100px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 22px;
  width: 210px;
}

.footer-brand img {
  width: 100%;
  height: auto;
}

.footer-grid h2 {
  margin: 0 0 18px;
  color: var(--gold-accent);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin-top: 12px;
  color: var(--on-surface-variant);
  font-size: 15px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-top: 70px;
  padding-top: 26px;
  border-top: 1px solid rgba(209, 199, 181, 0.6);
  color: var(--on-surface-variant);
  font-size: 13px;
}

.cart-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 70;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 470px;
  background: var(--washi-bg);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-header,
.cart-footer {
  padding: 34px;
  border-bottom: 1px solid var(--line-subtle);
}

.cart-header h2 {
  margin: 10px 0 0;
  font-size: 34px;
}

.cart-header button {
  position: absolute;
  right: 28px;
  top: 28px;
  background: transparent;
}

.cart-items {
  overflow: auto;
  padding: 10px 34px;
}

.cart-line {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-subtle);
}

.cart-line img {
  width: 86px;
  height: 110px;
  object-fit: cover;
}

.cart-line h3 {
  margin: 0;
  font-size: 21px;
}

.cart-line-copy > p {
  margin: 7px 0;
}

.quantity-control {
  display: grid;
  grid-template-columns: 32px 54px 32px 32px;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.quantity-control button,
.quantity-control input {
  width: 32px;
  height: 32px;
  color: var(--ink-black);
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(209, 199, 181, 0.9);
  text-align: center;
}

.quantity-control input {
  width: 54px;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.quantity-control .remove-line {
  color: var(--vermilion-refined);
}

.empty-cart {
  margin: 0;
  padding: 28px 0;
  color: var(--on-surface-variant);
  line-height: 1.7;
}

.cart-footer {
  border-top: 1px solid var(--line-subtle);
  border-bottom: 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  font-size: 16px;
}

.cart-total strong {
  font-family: "Libre Caslon Text", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}

.cart-footer .button {
  width: 100%;
}

.detail-page {
  padding-top: 80px;
  background: var(--washi-bg);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  min-height: calc(100vh - 80px);
  border-bottom: 1px solid var(--line-subtle);
}

.detail-hero figure {
  margin: 0;
  background: var(--surface);
}

.detail-hero img {
  width: 100%;
  height: 100%;
  min-height: 680px;
  object-fit: cover;
}

.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px;
}

.detail-copy h1 {
  margin: 18px 0 24px;
  font-size: 58px;
  line-height: 1.05;
}

.detail-meta {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
}

.detail-meta span,
.detail-meta strong,
.detail-note {
  color: var(--on-surface-variant);
  font-size: 14px;
}

.detail-copy > p:not(.eyebrow):not(.detail-note) {
  margin: 28px 0;
  color: var(--on-surface-variant);
  font-size: 17px;
  line-height: 1.85;
}

.detail-note {
  margin-top: 18px;
}

.detail-story,
.detail-specs {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
  padding: 120px 0;
}

.detail-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 96px;
  border-bottom: 1px solid var(--line-subtle);
}

.detail-story h2,
.detail-specs h2 {
  margin: 14px 0 24px;
  font-size: 42px;
  line-height: 1.12;
}

.detail-story p:not(.eyebrow) {
  color: var(--on-surface-variant);
  font-size: 17px;
  line-height: 1.85;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.spec-grid article {
  min-height: 150px;
  padding: 28px;
  background: rgba(235, 228, 213, 0.58);
  border: 1px solid rgba(209, 199, 181, 0.7);
}

.spec-grid span {
  display: block;
  margin-bottom: 16px;
  color: var(--gold-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.spec-grid strong {
  color: var(--on-surface-variant);
  font-size: 15px;
  line-height: 1.6;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(21, 24, 22, 0.36);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .nav-links {
    display: none;
  }

  .nav-inner {
    gap: 24px;
  }

  .nav-actions {
    gap: 10px;
  }

  .product-grid,
  .journal-grid,
  .philosophy-grid,
  .editorial-grid,
  .footer-grid,
  .policy-layout,
  .policy-grid,
  .detail-hero,
  .detail-story,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .policy-intro {
    position: static;
  }

  .copy-column {
    padding-right: 0;
    border-right: 0;
  }
}
