:root {
  --ink: #22211f;
  --muted: #706e68;
  --surface: #fff;
  --subtle: #f4f1eb;
  --accent: #2f4238;
  --border: #dedad2;
  --section-space: 5rem;
  --max: 75rem;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--ink);
  background: var(--surface);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}
body.palette-mono {
  --subtle: #f4f4f4;
  --accent: #171717;
  --border: #dedede;
}
body.palette-sage {
  --subtle: #edf1ec;
  --accent: #365343;
  --border: #d5ded4;
}
body.type-editorial h1,
body.type-editorial h2,
body.type-editorial h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: -0.025em;
}
body.density-compact {
  --section-space: 3.25rem;
}
body.density-airy {
  --section-space: 7rem;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
}
.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}
.skip-link:focus {
  top: 1rem;
}
.announcement {
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.site-header {
  min-height: 4.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0 max(1.25rem, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  position: sticky;
  top: 0;
  z-index: 20;
}
.wordmark {
  font-size: 1.1rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}
.wordmark img {
  max-height: 2.25rem;
  width: auto;
}
.nav-list,
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}
.header-actions {
  justify-self: end;
}
.header-actions span {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.2rem;
  border-radius: 999px;
  background: var(--subtle);
  font-size: 0.75rem;
}
.section-shell {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  padding-block: var(--section-space);
}
.section-stack {
  display: grid;
  gap: 2rem;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-copy {
  padding-block: 2rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--accent);
  margin: 0 0 0.9rem;
}
.hero h1,
.product-detail h1,
.message-page h1 {
  font-size: clamp(2.65rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 0;
  max-width: 12ch;
}
.hero-body {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 1.5rem 0 0;
}
.hero-media {
  min-height: 32rem;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--subtle);
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 32rem;
  object-fit: cover;
}
.button-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 0.55rem;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid var(--accent);
  cursor: pointer;
}
.button-primary {
  background: var(--accent);
  color: #fff;
}
.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.section-heading h1,
.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
}
.section-heading p {
  color: var(--muted);
  margin: 0;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--border);
}
.value-card {
  padding: 2rem;
}
.value-card + .value-card {
  border-left: 1px solid var(--border);
}
.value-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}
.value-card p {
  margin: 0;
  color: var(--muted);
}
.product-grid,
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.product-media,
.collection-media {
  aspect-ratio: 4/5;
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--subtle);
}
.collection-media {
  aspect-ratio: 4/3;
}
.product-media img,
.collection-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-card a:hover img,
.collection-card:hover img {
  transform: scale(1.025);
}
.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0.1rem;
}
.product-meta h2,
.product-meta h3,
.collection-card h3 {
  font-size: 0.95rem;
  margin: 0;
}
.product-meta p,
.collection-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}
.collection-card h3 {
  margin-top: 0.85rem;
}
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.product-detail-media {
  aspect-ratio: 4/5;
  border-radius: 1rem;
  background: var(--subtle);
  overflow: hidden;
}
.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail-copy {
  max-width: 32rem;
}
.product-detail-copy .price {
  font-size: 1.25rem;
  font-weight: 700;
}
.cart-page {
  max-width: 55rem;
}
.commerce-feedback {
  min-height: 1.4em;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.cart-lines {
  border-top: 1px solid var(--border);
}
.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-line h2 {
  font-size: 1rem;
  margin: 0;
}
.cart-line p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}
.cart-line-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.cart-line-actions input {
  width: 4.25rem;
  min-height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.45rem;
}
.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.cart-summary {
  margin-left: auto;
  width: min(100%, 24rem);
  padding-top: 1.5rem;
}
.cart-summary p {
  display: flex;
  justify-content: space-between;
}
.cart-summary .button {
  width: 100%;
  margin-top: 1rem;
}
.checkout-page {
  max-width: 55rem;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
  gap: 2rem;
  align-items: start;
}
.checkout-form,
.checkout-summary {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface);
}
.checkout-field {
  display: grid;
  gap: 0.4rem;
}
.checkout-field label {
  font-size: 0.85rem;
  font-weight: 700;
}
.checkout-field input,
.checkout-field textarea {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 0.7rem 0.8rem;
  background: var(--surface);
  color: var(--ink);
}
.checkout-field textarea {
  min-height: 6rem;
  resize: vertical;
}
.tracking-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}
.tracking-result {
  display: grid;
  gap: 0.5rem;
  padding-top: 1.5rem;
}
.checkout-summary h2 {
  margin: 0;
  font-size: 1rem;
}
.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.checkout-summary-row.total {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-weight: 750;
}
.commerce-error {
  margin: 0;
  color: #b42318;
  font-size: 0.9rem;
}
.empty-state {
  padding: 3rem;
  border: 1px dashed var(--border);
  border-radius: 0.75rem;
  background: var(--subtle);
  text-align: center;
  color: var(--muted);
}
.text-link {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.prose-page,
.message-page {
  max-width: 50rem;
  min-height: 55vh;
}
.prose-page h1,
.message-page h1 {
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.05em;
}
.prose-page p,
.message-page > p {
  font-size: 1.1rem;
  color: var(--muted);
  white-space: pre-line;
}
.message-page .button {
  margin-top: 1rem;
}
.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 4rem max(1.25rem, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--border);
  background: var(--subtle);
}
.site-footer div:last-child {
  text-align: right;
}
.site-footer p {
  color: var(--muted);
  margin: 0.35rem 0;
}
@media (max-width: 850px) {
  .tracking-form {
    grid-template-columns: 1fr;
  }
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 1.25rem;
  }
  .site-header nav {
    display: none;
  }
  .hero,
  .product-detail,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
    min-height: 20rem;
  }
  .hero-media img {
    min-height: 20rem;
  }
  .product-grid,
  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .value-grid {
    grid-template-columns: 1fr;
  }
  .value-card + .value-card {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}
@media (max-width: 520px) {
  .section-shell {
    width: min(100% - 1.5rem, var(--max));
  }
  .header-actions {
    gap: 0.8rem;
  }
  .hero h1 {
    font-size: 2.75rem;
  }
  .product-grid,
  .collection-grid {
    gap: 0.75rem;
  }
  .product-meta {
    display: block;
  }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 1.25rem;
  }
  .site-footer div:last-child {
    text-align: left;
  }
}
