@font-face {
  font-family: "Luke Barger Script";
  src: url("/fonts/luke-barger-script.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #22211d;
  --muted: #625e54;
  --paper: #fff;
  --stone: #f5f5f5;
  --line: #dedede;
  --accent: #62513e;
  --serif: "Baskerville", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(90%, 1430px); margin-inline: auto; }

.top {
  min-height: 80px; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 2rem; padding: 0 5%; border-bottom: 1px solid var(--line);
}
.brand {
  font: 400 clamp(2rem, 3.45vw, 3.1rem)/1.15 "Luke Barger Script", var(--serif);
  white-space: nowrap;
}
.top nav { display: flex; justify-content: center; gap: clamp(1rem, 3vw, 3.25rem); }
.top nav a, .top-link { font-size: .79rem; letter-spacing: .035em; }
.top-link { justify-self: end; }
.top-link span { margin-left: .45rem; }
.top a:hover, footer a:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero { display: grid; }
.intro { padding: clamp(2rem, 4vw, 4rem) 5%; text-align: center; }
.eyebrow { margin: 0 0 1.55rem; color: var(--accent); font-size: .68rem; font-weight: 650; text-transform: uppercase; letter-spacing: .20em; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.047em; line-height: .98; }
.intro h1 { font-size: clamp(3.15rem, 6.1vw, 6.8rem); }
.intro h1 em { font-weight: 400; }
.intro-scripture { max-width: 38rem; margin: 1.2rem auto 0; }
.intro-scripture p { margin: 0; font: italic 1.15rem/1.45 var(--serif); }
.intro-scripture cite { display: block; margin-top: .35rem; color: var(--muted); font: .74rem/1.4 var(--sans); }
.intro > p:not(.eyebrow) { margin: 1.65rem 0 2rem; color: var(--muted); font-size: .96rem; }
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1.65rem;
  min-height: 50px; padding: .75rem 1.15rem; background: var(--ink);
  border: 1px solid var(--ink); color: white; font-size: .77rem; letter-spacing: .035em;
}
.button:hover { background: #4a4034; border-color: #4a4034; }

.wheel {
  min-width: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center;
  gap: 13px; padding: 20px 0 28px; background: var(--paper); touch-action: pan-y;
}
.wheel-track { position: relative; height: clamp(325px, 42vw, 555px); isolation: isolate; }
.wheel-card {
  position: absolute; left: 50%; bottom: 0; width: 43%; max-width: 550px; display: block; opacity: 0; pointer-events: none;
  transform: translate(calc(-50% + var(--x) * 2.12), var(--y)) rotate(var(--tilt)) scale(var(--scale));
  transition: transform 550ms cubic-bezier(.16,1,.3,1), opacity 450ms ease; transform-origin: 50% 68%;
}
.wheel-card:is([data-slot="-2"], [data-slot="2"]) { opacity: var(--card-opacity, .18); pointer-events: auto; }
.wheel-card:is([data-slot="-1"], [data-slot="1"]) { opacity: var(--card-opacity, .5); pointer-events: auto; }
.wheel-card[data-slot="0"] { opacity: var(--card-opacity, 1); pointer-events: auto; }
.wheel-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.wheel-card img.wheel-cutout { mix-blend-mode: normal; filter: drop-shadow(0 9px 10px #231e181c); }
.wheel-caption { position: relative; z-index: 11; min-height: 57px; padding: 0 7%; display: grid; justify-items: center; align-content: center; gap: 4px; text-align: center; }
.wheel-caption strong { font: 400 clamp(1.13rem, 1.9vw, 1.6rem)/1.15 var(--serif); }
.wheel-caption a { font-size: .75rem; color: var(--muted); }
.wheel-caption a:hover { text-decoration: underline; text-underline-offset: 4px; }
.wheel-controls { position: relative; z-index: 11; display: flex; justify-content: center; align-items: center; gap: 7px; }
.wheel-controls button { width: 41px; height: 41px; background: transparent; border: 1px solid #bfb8a9; border-radius: 100%; }
.wheel-controls button:hover { background: var(--ink); border-color: var(--ink); color: white; }

.collections { padding: clamp(3.2rem, 6vw, 6rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(2.8rem, 5.5vw, 5.5rem); }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.55rem, 1.7vw, 1.65rem); margin-top: 2rem; }
.tile { min-width: 0; display: grid; gap: .7rem; }
.tile img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: contain; display: block; background: white; }
.tile strong { min-height: 44px; display: flex; justify-content: space-between; align-items: start; gap: .35rem; font-size: .82rem; font-weight: 500; }
.tile:hover strong { text-decoration: underline; text-underline-offset: 4px; }

.shop { padding-block: clamp(3.2rem, 7vw, 6.6rem); scroll-margin-top: 1rem; }
.shop-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.search { display: grid; gap: .3rem; width: min(100%, 250px); font-size: .73rem; color: var(--muted); }
.search input { width: 100%; min-height: 40px; border: 0; border-bottom: 1px solid #a79f8f; border-radius: 0; background: transparent; }
.filters { display: flex; flex-wrap: wrap; gap: .2rem 1.5rem; margin-top: 1.9rem; border-bottom: 1px solid var(--line); }
.filters button { padding: .65rem 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--muted); font-size: .77rem; }
.filters button[aria-pressed="true"] { border-bottom-color: var(--ink); color: var(--ink); }
.controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; font-size: .72rem; color: var(--muted); }
.controls select { margin-left: .4rem; border: 0; background: transparent; font-size: .73rem; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 3rem) clamp(.65rem, 1.7vw, 1.65rem); }
.product { display: block; min-width: 0; }
.product figure { margin: 0 0 .75rem; background: white; overflow: hidden; }
.product img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: contain; display: block; transition: transform 350ms ease; }
.product:hover img { transform: scale(1.035); }
.product h3 { margin: 0; font: 400 clamp(.96rem, 1.45vw, 1.3rem)/1.22 var(--serif); }
.product p { margin: .35rem 0 0; color: var(--muted); font-size: .76rem; }
.more { margin-top: 2.75rem; text-align: center; }
footer { border-top: 1px solid var(--line); padding: 2rem 0; }
footer .wrap, footer .wrap > div { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
footer .wrap { justify-content: space-between; }
footer p, footer .wrap > div { margin: 0; color: var(--muted); font-size: .76rem; }

@media (max-width: 760px) {
  .top { gap: .7rem 1rem; grid-template-columns: 1fr 1fr; padding-block: .85rem; }
  .top nav { grid-row: 2; grid-column: 1 / -1; justify-content: start; flex-wrap: wrap; }
  .hero { display: block; }
  .intro { padding: 2.5rem 5% 3rem; }
  .intro h1 { font-size: clamp(3.6rem, 12vw, 6rem); }
  .wheel { padding-block: 1rem 2rem; }
  .wheel-track { height: clamp(265px, 74vw, 505px); }
  .wheel-card { width: 74%; max-width: 495px; transform: translate(calc(-50% + var(--x) * 1.84), var(--y)) rotate(var(--tilt)) scale(var(--scale)); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
  .shop-heading { display: grid; }
  .search { width: 100%; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.wheel-track { cursor: grab; user-select: none; }
.wheel-card { cursor: inherit; }
.wheel-track.is-dragging, .wheel-track.is-dragging .wheel-card { cursor: grabbing; }
.wheel-track.is-dragging .wheel-card { transition: none; }
.wheel-controls button { width: auto; min-width: 44px; padding-inline: .7rem; border-radius: 0; font-size: .74rem; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.detail-gallery { margin: 0; background: var(--paper); }
.detail-gallery img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.detail-copy h1 { font-size: clamp(2.8rem, 4.7vw, 5rem); margin-top: .7rem; text-wrap: balance; }
.detail-copy p { color: var(--muted); }
.detail-copy .detail-checkout { font-size: .8rem; }
.detail-copy .eyebrow:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
}

#product-options, #shipping { display: grid; gap: .8rem; align-items: start; }
#product-options .button, #shipping .button { justify-self: start; }
#product-options label, #shipping label { display: grid; gap: .25rem; font-size: .85rem; }
#product-options label[hidden] { display: none; }
#detail-preview-status { padding: .5rem 1rem; font-size: .85rem; }
#product-options select, #shipping input { border: 1px solid var(--line); padding: .65rem; background: var(--paper); }
.checkout-page { max-width: 810px; }
.checkout-page h1 { font-size: clamp(2.8rem, 5vw, 4.5rem); }
.checkout-page h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin-block: 1rem .35rem; }
#bag { padding: 0; list-style: none; }
#bag li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; border-bottom: 1px solid var(--line); }
#bag button { border: 0; background: none; text-decoration: underline; }
.text-link { text-decoration: underline; font-size: .85rem; }

#product-options fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
#product-options legend { margin-bottom: .45rem; padding: 0; font-size: .85rem; }
.variant-choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.variant-choice {
  display: grid; justify-items: center; align-content: center; gap: .25rem;
  min-width: 46px; min-height: 44px; padding: .35rem .65rem;
  border: 1px solid var(--line); background: white; font-size: .8rem;
}
.variant-choice:hover { border-color: var(--ink); }
.variant-choice[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #f4f4f4; font-weight: 600; }
.variant-thumbnail { width: 86px; align-content: start; }
.variant-thumbnail img { display: block; width: 68px; height: 68px; object-fit: contain; mix-blend-mode: multiply; }
