/* Theme and base styles */
:root {
  --ink: #222a2b;
  --muted: #727a79;
  --bg: #faf9f6;
  --line: #e8e6e0;
  --accent: #9e4b3b;
  --paper: #fff;
  --soft: #f0eee8;
  --page-gutter: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

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

button {
  cursor: pointer;
}

/* Header and navigation */
.announcement {
  background: #263735;
  color: #fff;
  text-align: center;
  padding: 10px 15px;
  font-size: 12px;
  letter-spacing: .08em;
}

.header {
  background: rgba(250,249,246,.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.headin {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px var(--page-gutter);
  gap: 22px;
}

.brand {
  font-size: clamp(22px,2.5vw,30px);
  line-height: 1.05;
  letter-spacing: .19em;
  font-weight: 650;
  white-space: nowrap;
}

.brand small {
  display: block;
  letter-spacing: .16em;
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.nav {
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav a {
  font-size: 13px;
  color: #3f4645;
}

.nav a.active {
  color: var(--accent);
}

.cartbtn,.mobilebtn {
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px 14px;
  font-size: 13px;
}

.mobilebtn {
  display: none;
}

/* Shared layout and typography */
.wrap {
  max-width: 1200px;
  margin: auto;
  padding-inline: var(--page-gutter);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  min-height: 550px;
}

.herocopy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 75px clamp(24px,3vw,48px) 75px max(var(--page-gutter),calc(100% - 600px + var(--page-gutter)));
}

.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--accent);
  font-weight: 700;
}

.herocopy .eyebrow {
  font-size: clamp(14px,1.35vw,18px);
  line-height: 1.45;
  letter-spacing: .06em;
}

.hero h1 {
  font-family: Georgia,serif;
  font-weight: 400;
  font-size: clamp(44px,5.4vw,76px);
  line-height: 1.08;
  margin: 20px 0;
}

.lead {
  color: #606b69;
  line-height: 1.85;
  max-width: 500px;
  font-size: 15px;
}

.btn {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  padding: 15px 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.btn.light {
  background: transparent;
  color: var(--ink);
}

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* Homepage and product artwork */
.heroimage,.product-art {
  background: linear-gradient(145deg,#e7e4db,#d0d8d3);
  position: relative;
  overflow: hidden;
}

.heroimage {
  min-height: 440px;
}

.heroimage .product-photo {
  position: absolute;
  inset: 0;
}

/* Homepage sections and product cards */
.section {
  padding-block: 75px;
}

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

.section h2,.page-title,.shop-group h2 {
  font-family: Georgia,serif;
  font-weight: 400;
  font-size: clamp(32px,3.5vw,48px);
  margin: 12px 0;
}

.shop-group + .shop-group {
  margin-top: 48px;
}

.muted {
  color: var(--muted);
  line-height: 1.8;
}

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

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
}

.product-art {
  height: 310px;
  display: grid;
  place-items: center;
}

.product-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

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

.photo-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.photo-thumbnails button {
  width: 64px;
  height: 64px;
  padding: 3px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.photo-thumbnails button[aria-pressed="true"] {
  border: 2px solid var(--ink);
}

.photo-thumbnails img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.variant-picker {
  display: grid;
  gap: 6px;
  max-width: 220px;
  margin-block: 20px;
}

.variant-picker select {
  padding: 10px;
  border: 1px solid var(--line);
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.product-info {
  padding: 21px;
}

.tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.product-info h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 10px;
}

.product-info p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.price {
  font-weight: 650;
  margin-top: 15px;
}

.featureband {
  background: #e8ece7;
  padding: 62px 0;
}

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

.feature h3 {
  font-size: 16px;
  font-weight: 550;
}

.feature p {
  font-size: 13px;
  line-height: 1.8;
  color: #596562;
}

/* Footer */
.footer {
  background: #243431;
  color: #fff;
  padding: 55px 0 25px;
}

.footgrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 35px;
}

.footer a,.footer p {
  font-size: 13px;
  color: #c8d0cb;
  line-height: 2;
}

.footer .brand {
  color: white;
}

.footer .brand small {
  color: #c8d0cb;
}

.copyright {
  border-top: 1px solid #4c5955;
  margin-top: 45px;
  padding-top: 20px;
  color: #aeb9b3;
  font-size: 11px;
}

/* Shop, product details, and information pages */
.pageintro {
  padding: 65px 0 35px;
}

.pageintro p {
  max-width: 690px;
}

.filterbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filterbar button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: white;
  color: #525d59;
}

.filterbar button.selected {
  background: var(--ink);
  color: white;
}

.detail {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 55px;
  padding: 65px 0;
}

.detail .product-art {
  min-height: 500px;
}

.detail h1 {
  font: 400 clamp(35px,4vw,56px) Georgia,serif;
  margin: 15px 0;
}

.detail ul {
  color: #5c6663;
  line-height: 2;
  font-size: 14px;
  padding-left: 20px;
}

.qty {
  width: 85px;
  padding: 13px;
  border: 1px solid var(--line);
  background: white;
}

.notice {
  background: #f1eee6;
  padding: 18px 20px;
  font-size: 13px;
  line-height: 1.8;
  color: #505a57;
  margin: 25px 0;
}

.content {
  max-width: 780px;
  line-height: 1.95;
  color: #4f5b57;
  font-size: 15px;
  padding-bottom: 90px;
}

.content h2 {
  font: 400 29px Georgia,serif;
  color: var(--ink);
  margin-top: 38px;
}

.contactgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 85px;
}

.field {
  display: block;
  margin: 16px 0;
  font-size: 13px;
}

.field input,.field textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  padding: 14px;
  margin-top: 8px;
}

/* Shopping bag */
.bag-page {
  padding-bottom: 70px;
}

.checkout-acknowledgement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  line-height: 1.5;
}

.checkout-acknowledgement input {
  margin-top: 4px;
}

[data-checkout-message]:empty,
[data-bag-message]:empty {
  display: none;
}

#checkout-form {
  scroll-margin-top: 100px;
}

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

.cartrow button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  color: var(--accent);
}

.cartsummary {
  margin: 30px 0;
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  max-width: 500px;
}

.cartsummary strong {
  font-size: 22px;
}

.empty {
  padding: 40px;
  background: white;
  border: 1px solid var(--line);
}

.hide {
  display: none!important;
}

/* Responsive layouts */
@media (max-width:800px) {
  .headin {
    padding-block: 17px;
    gap: 12px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 22px;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .mobilebtn {
    display: block;
  }

  .hero,.detail,.contactgrid {
    grid-template-columns: 1fr;
  }

  .herocopy {
    padding: 65px var(--page-gutter);
  }

  .heroimage {
    min-height: 350px;
    grid-row: 1;
  }

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

  .product-art {
    height: 240px;
  }

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

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

  .detail .product-art {
    min-height: 360px;
  }
}

@media (max-width:500px) {
  .products {
    grid-template-columns: 1fr;
  }

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

  :root {
    --page-gutter: 20px;
  }

  .section {
    padding-block: 55px;
  }

  .sectionhead {
    display: block;
  }

  .brand {
    letter-spacing: .1em;
  }

  .cartbtn {
    padding: 9px;
  }
}
