:root {
  --paper: #e7dccb;
  --paper-2: #f4ecdf;
  --ink: #2a2118;
  --ink-soft: #5e5146;
  --line: #d4c4ae;
  --clay: #8c3b28;
  --moss: #3e4a38;
  --shadow: 0 16px 40px rgba(48, 32, 16, 0.12);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
}

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

a { color: var(--moss); }

h1, h2, .mark, .price, .price-lg {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 { font-size: clamp(2.4rem, 7vw, 5.2rem); margin: 0 0 0.3em; overflow-wrap: break-word; }
h2 { font-size: 1.45rem; margin: 0 0 0.2em; overflow-wrap: break-word; }

h2.small {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 1.6rem 0 0.6rem;
}

p { overflow-wrap: anywhere; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: white;
  padding: 8px 12px;
  z-index: 5;
}
.skip:focus { top: 12px; }

.top {
  position: sticky;
  top: 0;
  z-index: 3;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.bar, .wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 14px 0;
}

.mark {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.55rem;
}
.mark span { color: var(--clay); }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: flex-end;
  max-width: 100%;
}
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { color: var(--clay); }

.count {
  display: inline-block;
  min-width: 1.3em;
  padding: 0 0.35em;
  border-radius: 99px;
  background: var(--clay);
  color: var(--paper-2);
  font-family: var(--sans);
  font-size: 0.8rem;
  text-align: center;
}

.studio-pill {
  border: 1px solid var(--moss);
  padding: 2px 8px;
}

main { padding: 12px 0 64px; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: end;
  padding: 18px 0 42px;
}

.hero.narrow, .narrow { max-width: 640px; }

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
}

.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36rem; }

.hero-links { margin-top: 1.2rem; }

.frame {
  position: relative;
  background: var(--paper-2);
  padding: 7% 7% 10%;
  box-shadow: var(--shadow);
  min-width: 0;
}

.hero, .product, .grid, .set-grid, .card { min-width: 0; }
.hero > *, .product > * { min-width: 0; }

.frame img {
  width: 100%;
  max-width: 100%;
  height: auto;
  background: #ddd2c2;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
}

.frame-lg { padding: 8% 8% 11%; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 28px;
}
.filters a {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}
.filters a.on, .filters a:hover { background: var(--clay); color: var(--paper-2); border-color: var(--clay); }

.shelf { margin: 0 0 42px; }
.group-title { margin: 4px 0 16px; font-size: 1.8rem; }
.group-title a { color: inherit; text-decoration: none; }
.group-title a:hover { color: var(--clay); }

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

.card { color: inherit; text-decoration: none; }
.card .summary { color: var(--ink-soft); margin: 0.2rem 0; min-height: 3em; }
.card .price { margin: 0.15rem 0 0; font-size: 1.35rem; }
.card h2 { font-size: 1.35rem; }

.meta { padding-top: 12px; }

.set-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 48px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.set-band h2 { margin: 0; }
.set-band p { margin: 0.2rem 0 0; color: var(--ink-soft); }
.set-band .price { font-size: 2rem; margin: 0; }
.set-band div { flex: 1 1 220px; }

.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  padding-top: 12px;
}

.price-lg { font-size: clamp(2rem, 4vw, 3rem); margin: 0.1em 0 0.4em; }

.summary { font-size: 1.15rem; }

.includes { padding-left: 1.1rem; }
.includes li { margin: 0.35rem 0; }

.sizes { display: grid; gap: 8px; margin: 8px 0 16px; }
.sizes label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.sizes input { margin-top: 0.35rem; }

.hint { color: var(--ink-soft); font-size: 0.95rem; }

.button, button.button {
  display: inline-block;
  background: var(--clay);
  color: #f8f1e8;
  text-decoration: none;
  border: 0;
  font: inherit;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
}
.button:hover, button.button:hover { background: #732f20; }
.button.disabled { background: #b5a89a; cursor: default; }

button.text {
  background: none;
  border: 0;
  color: var(--moss);
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}

.flash {
  background: #f7f1e6;
  border-left: 4px solid var(--moss);
  padding: 10px 14px;
}

.cart { max-width: 720px; }
.order-ready { max-width: none; }
.downloads { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; gap: 36px; }
.downloads li { display: block; padding: 0; border: 0; }
.download { display: grid; gap: 16px; color: inherit; text-decoration: none; }
.download-name { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }
.download .button { font-size: 1.35rem; padding: 1rem 1.4rem; justify-self: start; }
.lines, .plain { list-style: none; padding: 0; margin: 0; }
.lines li, .plain li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.lines h2, .plain h2 { font-size: 1.25rem; }
.plain a { font-family: var(--serif); font-size: 1.25rem; }

.stack { display: grid; gap: 12px; margin: 16px 0 24px; }
.stack label { display: grid; gap: 4px; font-size: 0.92rem; }
.stack input, .stack textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 0.55rem 0.65rem;
  width: 100%;
}
.check { display: flex !important; flex-direction: row; align-items: center; gap: 8px; }
.check input { width: auto; }

.note {
  background: var(--paper-2);
  padding: 12px 14px;
  border: 1px solid var(--line);
}

.set-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.set-grid a { color: inherit; text-decoration: none; font-size: 0.92rem; }
.set-grid span { display: block; margin-top: 6px; }

.prose { max-width: 40rem; }
.prose p { font-size: 1.08rem; }

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: end;
}
.admin-head p { display: flex; gap: 16px; align-items: center; }

.site { padding: 8px 0 36px; color: var(--ink-soft); }
.foot { border-top: 1px solid var(--line); padding-top: 18px; }
.foot p { margin: 0.25rem 0; }
.fine { font-size: 0.9rem; }
.legal a, .fine a { color: var(--ink-soft); }

@media (max-width: 800px) {
  .hero, .product { display: block; }
  .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero { align-items: start; }
  .bar { align-items: flex-start; }
  nav { flex: 1 1 100%; justify-content: flex-start; }
  .frame { max-width: 100%; }
}

@media (max-width: 520px) {
  .grid, .set-grid { grid-template-columns: 1fr; }
  .bar { width: min(1080px, calc(100% - 24px)); }
  .wrap { width: min(1080px, calc(100% - 24px)); }
  h1 { font-size: 2.3rem; }
}
