:root {
  color-scheme: light;
  --ink: #1f211d;
  --muted: #6e7169;
  --paper: #f7f4ed;
  --surface: #fffdf8;
  --line: #d9d4c8;
  --moss: #4c5c47;
  --amber: #be6e32;
  --soft-amber: #efe2cf;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  scroll-behavior: smooth;
}

html.reva-runtime-loading body {
  opacity: 0;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  opacity: 1;
  transition: opacity 120ms ease;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.announcement {
  padding: 9px 20px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: center;
}

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 237, 0.96);
}

.wordmark {
  justify-self: center;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.site-nav a,
.header-actions a {
  text-decoration: none;
}

.site-nav a:hover,
.header-actions a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-actions {
  justify-self: end;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 11px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  min-height: min(720px, calc(100vh - 105px));
  border-bottom: 1px solid var(--line);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(56px, 9vw, 132px) clamp(28px, 8vw, 120px);
  background: var(--surface);
}

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

.hero h1,
.page-heading h1,
.product-detail h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(50px, 6.4vw, 100px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.hero__copy > p:not(.eyebrow) {
  max-width: 480px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
}

.hero__media {
  min-height: 520px;
  background: #d9cfc0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--moss);
}

.button--secondary {
  background: transparent;
  color: var(--ink);
}

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

.button--wide {
  width: 100%;
}

.section {
  padding: clamp(72px, 9vw, 132px) clamp(20px, 5vw, 72px);
}

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

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

.section-heading h2 {
  max-width: 820px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 64px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.text-link {
  flex: none;
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 5px;
}

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

.product-card {
  min-width: 0;
}

.product-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: #ece6dc;
}

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

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

.product-card__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 18px;
  padding: 20px 2px 0;
}

.product-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.product-card__body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.product-card__body strong {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.editorial-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background: var(--moss);
  color: white;
}

.editorial-band__image {
  overflow: hidden;
}

.editorial-band__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-band__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(60px, 9vw, 132px);
}

.editorial-band h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 4.5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.editorial-band p {
  max-width: 500px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.6;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle {
  min-height: 250px;
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle span {
  color: var(--amber);
  font-family: var(--serif);
  font-size: 30px;
}

.principle h3 {
  margin: 50px 0 10px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
}

.principle p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 540px);
  align-items: end;
  gap: 60px;
  padding: clamp(72px, 8vw, 116px) clamp(20px, 5vw, 72px);
  background: var(--soft-amber);
}

.newsletter h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 400;
  line-height: 1;
}

.newsletter form {
  display: flex;
  gap: 10px;
}

.newsletter input {
  min-width: 0;
  flex: 1;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
}

.site-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding: 70px clamp(20px, 5vw, 72px) 30px;
  background: var(--ink);
  color: #fff;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: 0.06em;
}

.site-footer h2 {
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer nav {
  display: grid;
  gap: 12px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.site-footer a:hover {
  color: white;
}

.demo-disclaimer {
  grid-column: 1 / -1;
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.page-heading {
  padding: clamp(64px, 8vw, 116px) clamp(20px, 5vw, 72px) 50px;
}

.page-heading h1 {
  font-size: clamp(54px, 7vw, 100px);
}

.page-heading p {
  max-width: 590px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: clamp(42px, 7vw, 108px);
  padding: 40px clamp(20px, 5vw, 72px) 100px;
}

.product-gallery {
  display: grid;
  gap: 20px;
}

.product-gallery img {
  width: 100%;
  background: #ece6dc;
}

.product-gallery__detail {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 40px;
  background: var(--soft-amber);
}

.product-gallery__detail p {
  max-width: 520px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.15;
  text-align: center;
}

.product-detail {
  align-self: start;
  position: sticky;
  top: 30px;
  padding-top: 20px;
}

.product-detail h1 {
  font-size: clamp(48px, 5vw, 74px);
}

.product-detail__price {
  margin: 22px 0 30px;
  font-size: 21px;
  font-weight: 700;
}

.product-detail__description {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.finish-selector {
  margin: 30px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.finish-selector strong {
  display: block;
  margin-bottom: 14px;
}

.swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
}

.swatch::before {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #b76a2c;
  content: "";
}

.product-detail details {
  border-bottom: 1px solid var(--line);
}

.product-detail summary {
  padding: 20px 0;
  font-weight: 700;
  cursor: pointer;
}

.product-detail details p {
  margin: -8px 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(40px, 7vw, 100px);
  padding: 20px clamp(20px, 5vw, 72px) 110px;
}

.cart-lines {
  border-top: 1px solid var(--line);
}

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

.cart-line img {
  width: 150px;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ece6dc;
}

.cart-line h2 {
  margin: 8px 0 8px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.muted {
  color: var(--muted);
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 38px 38px 38px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.quantity-control button,
.quantity-control span {
  display: grid;
  place-items: center;
  height: 36px;
  border: 0;
  background: transparent;
}

.quantity-control button {
  cursor: pointer;
}

.cart-line__price {
  padding-top: 10px;
}

.cart-summary {
  align-self: start;
  position: sticky;
  top: 30px;
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.cart-summary h2 {
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 14px 0;
}

.summary-row--total {
  margin: 26px 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  font-weight: 700;
}

.cart-summary__note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.cart-empty {
  padding: 60px 0;
}

.cart-empty h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
}

.store-toast {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100vw - 48px));
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

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

.qa-toolbar {
  position: fixed;
  z-index: 50;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: calc(100vw - 32px);
  padding: 12px 14px;
  border: 1px solid #2f60db;
  border-radius: 12px;
  background: white;
  box-shadow: 0 14px 40px rgba(20, 30, 60, 0.18);
  font-size: 12px;
}

.qa-toolbar div {
  display: grid;
  gap: 2px;
}

.qa-toolbar span {
  color: var(--muted);
}

.qa-toolbar button {
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: #eef3ff;
  color: #1949bf;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .wordmark {
    justify-self: start;
  }

  .hero,
  .editorial-band,
  .newsletter,
  .product-layout,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    min-height: 520px;
  }

  .hero__media {
    min-height: 62vw;
  }

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

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

  .site-footer > :first-child,
  .demo-disclaimer {
    grid-column: 1 / -1;
  }

  .product-detail,
  .cart-summary {
    position: static;
  }
}

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

  .header-actions > a:first-child {
    display: none;
  }

  .hero__copy {
    padding: 64px 24px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .product-grid,
  .principles-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

  .newsletter form {
    display: grid;
  }

  .cart-line {
    grid-template-columns: 96px 1fr;
  }

  .cart-line img {
    width: 96px;
  }

  .cart-line__price {
    grid-column: 2;
  }

  .qa-toolbar {
    left: 12px;
    right: 12px;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
