:root {
  --paper: #f3ece2;
  --card: #fffaf4;
  --ink: #241910;
  --soft: #6a584c;
  --pine: #24382d;
  --berry: #8d3d36;
  --line: rgba(36, 25, 16, 0.14);
  --shadow: 0 24px 50px rgba(55, 32, 18, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% -10%, #fff 0%, transparent 55%),
    linear-gradient(180deg, #f7f1e8 0%, #efe4d4 100%);
  font-family: "Outfit", sans-serif;
  font-weight: 360;
  font-size: 17px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.top, .foot, .hero, .band, .grid, .sheet {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px 0 8px;
}
.mark {
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.top nav { display: flex; gap: 22px; }
.top nav a { text-decoration: none; font-size: 15px; }
.top nav span {
  display: inline-grid;
  place-items: center;
  min-width: 1.3em;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--pine);
  color: #f6f1e8;
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 36px;
  align-items: end;
  padding: 28px 0 10px;
}
.kicker {
  margin: 0 0 8px;
  color: var(--berry);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}
.kicker a { color: inherit; }
h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.lede { color: var(--soft); font-size: 18px; max-width: 38ch; }
.hero-photo img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.button {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--pine);
  color: #f6f1e8;
  text-decoration: none;
  cursor: pointer;
}
.button.ghost { background: transparent; color: var(--pine); border: 1px solid var(--pine); margin-right: 8px; }
.band {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-size: 14px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 28px 0 10px;
}
.card {
  text-decoration: none;
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.card div { padding: 14px 16px 18px; }
.card h2, .buy h2, .lines h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  font-weight: 500;
}
.card p { margin: 4px 0 8px; color: var(--soft); }
.card strong { font-weight: 580; }

.product {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 10px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
}
.gallery img { width: 100%; border-radius: 18px; background: #efe6da; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs a { width: 72px; border-radius: 10px; overflow: hidden; outline: 1px solid transparent; }
.thumbs a.on { outline-color: var(--pine); }
.thumbs img { height: 72px; object-fit: cover; border-radius: 0; }
.buy h1 { font-size: clamp(42px, 5vw, 68px); }
.line { margin-top: 8px; color: var(--soft); }
.price { font-size: 22px; margin: 8px 0; }
.story { max-width: 46ch; }
.label { margin: 18px 0 8px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--soft); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices a {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--card);
}
.choices a.on { background: var(--pine); color: #f6f1e8; border-color: var(--pine); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 2px #fff;
}
.swatch.on { outline: 2px solid var(--pine); outline-offset: 2px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size input { position: absolute; opacity: 0; }
.size span {
  display: inline-grid; place-items: center;
  min-width: 46px; height: 40px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
}
.size input:checked + span { background: var(--pine); color: #f6f1e8; border-color: var(--pine); }
.size input:focus-visible + span { outline: 2px solid var(--berry); }
.qty { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; max-width: 120px; font-size: 14px; }
input, select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.buy h2 { margin-top: 28px; font-size: 28px; }
.buy ul { margin: 8px 0 0; padding-left: 18px; color: var(--soft); }

.sheet { padding: 18px 0 24px; }
.sheet h1, .sheet h2 { font-family: "Cormorant Garamond", serif; font-weight: 500; }
.sheet h1 { font-size: clamp(46px, 6vw, 76px); }
.sheet h2 { margin: 0; font-size: clamp(36px, 5vw, 64px); }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.lines img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.lines p, .hint { color: var(--soft); margin: 4px 0; }
.lines button, .studio-head button, .orders button {
  margin-top: 6px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}
.total { font-size: 18px; }
.checkout .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout label, .narrow label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.checkout .wide { grid-column: 1 / -1; }
.mini { list-style: none; padding: 0; }
.mini li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.errors {
  background: #f8e7e2;
  border-radius: 12px;
  padding: 10px 14px;
  color: #6d241e;
}
.narrow { max-width: 460px; }
.studio-head, .orders li { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.orders { list-style: none; padding: 0; }
.orders li { border-top: 1px solid var(--line); padding: 14px 0; }
.orders ul { margin: 6px 0; padding-left: 18px; }
.orders img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; vertical-align: middle; }
.foot {
  padding: 28px 0 40px;
  color: var(--soft);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.foot a { color: var(--soft); }

@media (max-width: 800px) {
  .hero, .product, .grid, .checkout .fields, .band { grid-template-columns: 1fr; display: grid; }
  .band { display: grid; }
  .foot { display: grid; }
  .lines li { grid-template-columns: 72px 1fr; }
  .lines strong { grid-column: 2; }
}
