@font-face {
  font-family: 'Fragment Mono';
  src: url('/assets/fonts/FragmentMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #f8f7f2;
  --ink: #20211f;
  --muted: #64645e;
  --line: #d6d5cd;
  --serif: 'Baskerville', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Helvetica Neue', Helvetica, sans-serif;
  --mono: 'Fragment Mono', 'Courier New', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 13px/1.6 var(--mono); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: default; opacity: .35; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
::selection { background: var(--ink); color: var(--paper); }
h1, h2, h3, p { margin: 0; font-weight: 400; }
/* Paper and ink surfaces adapted from 21st.dev's Camel Linen theme. */
.shell { width: min(1380px, calc(100% - clamp(40px, 9vw, 176px))); margin-inline: auto; }
.header { min-height: 87px; display: flex; align-items: center; gap: 38px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: flex-end; gap: 8px; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand img { display: block; width: 88px; height: auto; }
.brand span { font-size: 8px; line-height: 1; letter-spacing: .09em; }
.header nav { display: flex; align-items: center; gap: 28px; }
.header nav a, .bag-button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font: 13px var(--sans); }
.header nav [aria-current=page] { text-decoration: underline; text-underline-offset: 6px; }
.bag-button { padding: 0 0 0 30px; position: relative; }
.bag-button::before { content: ''; position: absolute; left: 0; height: 20px; border-left: 1px solid var(--line); }
#bag-count { background: #e6e5df; border-radius: 50%; min-width: 19px; text-align: center; font: 10px/19px var(--mono); }
.shop { display: grid; grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr); column-gap: clamp(32px,6vw,110px); align-items: center; padding-block: clamp(28px,4.1vw,70px); }
.shop-details { width: min(100%, 425px); justify-self: center; }
.eyebrow, .timer-meta, .console-heading { font: 10px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.product-index { display: flex; gap: 12px; align-items: center; }
.product-index > span:not(.index-mark) { color: #90908a; }
.index-mark { width: 14px; height: 14px; display: inline-grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
.index-mark::after { content: ''; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
h1 { font: 400 clamp(68px,7.8vw,119px)/.97 var(--serif); letter-spacing: -.076em; }
h1 em { font-weight: normal; }
.period { color: #777970; }
.product-heading h1 { margin: 24px 0 22px; }
.product-description { font: 400 clamp(21px,2.1vw,30px)/1.25 var(--serif); letter-spacing: -.035em; }
.product-copy, #timer-description { font: 15px/1.65 var(--sans); color: var(--muted); max-width: 33ch; margin-top: 8px; }
.product-facts { display: flex; align-items: baseline; gap: 15px; padding: 23px 0 17px; border-bottom: 1px solid var(--line); }
.product-facts span:first-child { font: 22px var(--sans); letter-spacing: -.04em; }
.product-facts span:last-child { font-size: 11px; color: var(--muted); }
.product-form { display: grid; grid-template-columns: minmax(0,1fr) 115px; gap: 16px 12px; margin-top: 18px; }
.product-form label { font: 12px var(--sans); display: block; margin-bottom: 8px; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; width: 100%; border: 1px solid var(--line); border-radius: 0; background: transparent; height: 50px; padding: 0 35px 0 14px; font-size: 12px; cursor: pointer; }
.select-wrap svg { position: absolute; right: 15px; top: 21px; pointer-events: none; }
.quantity-control { display: flex; border: 1px solid var(--line); height: 50px; align-items: center; }
.quantity-control button { width: 38px; flex-shrink: 0; height: 48px; padding: 0; font-size: 18px; }
.quantity-control input { width: 100%; min-width: 18px; text-align: center; border: 0; background: none; font-size: 12px; appearance: textfield; -moz-appearance: textfield; padding: 0; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.primary { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 50px; padding: 15px 20px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); font-size: 12px; line-height: 1.5; transition: background .15s; }
.primary:hover { background: #48493f; }
.primary:focus-visible { outline-color: var(--ink); }
.add-button { grid-column: 1/-1; justify-content: space-between; }
.shop-note { grid-column: 1/-1; font-size: 10px; color: var(--muted); }

.select-wrap select, .quantity-control, .primary { border-radius: 3px; }
.primary { font-family: var(--sans); font-size: 14px; }
.button-end { display: flex; align-items: center; gap: 15px; }
.shop-note { font-size: 10px; }
.gallery { margin: 0; min-width: 0; }
.gallery-stage { overflow: hidden; aspect-ratio: 1.07; position: relative; background: #deded9; touch-action: pan-y; }
.gallery-stage img, .gallery-stage video { width: 100%; height: 100%; display: block; object-fit: cover; }
.gallery figcaption { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 10px var(--mono); }
.gallery-buttons { display: flex; gap: 4px; }
.gallery-buttons button { font: 20px var(--sans); width: 42px; height: 42px; }
.gallery-buttons .film-link { width: auto; padding: 0 12px; font: 11px var(--mono); }
.gallery-buttons button:hover { background: #eae9e3; }
.footer { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 10px; }
.preview-caption { font-size: 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px; background: var(--ink); color: var(--paper); z-index: 20; }
.skip-link:focus { top: 10px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); background: var(--ink); color: var(--paper); padding: 14px 22px; opacity: 0; pointer-events: none; transition: .2s; z-index: 30; font-size: 12px; max-width: 90%; text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
dialog{color:var(--ink);background:var(--paper);border:0;padding:0}dialog::backdrop{background:rgb(28 29 24 / .35);backdrop-filter:blur(3px)}.bag-dialog{width:min(100%,480px);height:100dvh;max-height:100dvh;max-width:100%;margin:0 0 0 auto;position:fixed;inset:0}.bag-dialog[open]{display:flex;flex-direction:column;animation:drawer-in .25s ease-out}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;padding:32px 30px 26px;border-bottom:1px solid var(--line);flex-shrink:0}.dialog-header .eyebrow{font-size:8px;margin:0 0 9px}.dialog-header h2{font-size:32px;letter-spacing:-1.2px;font-weight:400;margin:0}.dialog-header h2>span{font-size:18px;color:var(--muted)}.icon-button{width:35px;height:35px;font-size:30px;line-height:1;padding:0}.bag-content{padding:0 30px;flex:1;overflow:auto;min-height:100px}.cart-item{display:grid;grid-template-columns:85px 1fr;gap:18px;padding:27px 0;border-bottom:1px solid var(--line)}.cart-item img{width:85px;height:110px;object-fit:cover;mix-blend-mode:multiply}.cart-item-info{display:flex;flex-direction:column;justify-content:center;min-width:0}.cart-item-top{display:flex;justify-content:space-between;gap:10px}.cart-item h3{font-size:18px;font-weight:400;margin:0}.cart-item-price{font-size:14px}.cart-item-info>p{font-size:11px;color:var(--muted);margin:8px 0 14px}.cart-item-controls{display:flex;align-items:center;justify-content:space-between}.cart-item .quantity-control{width:100px;height:30px}.cart-item .quantity-control button{height:28px;min-width:30px}.cart-item .quantity-control span{font-size:11px;text-align:center;flex:1}.remove-item{color:var(--muted);text-decoration:underline;font-size:10px;padding:8px 0}.empty-bag{height:100%;min-height:260px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:16px}.empty-bag h3{font-size:29px;font-weight:400;letter-spacing:-1px;margin:0}.empty-bag p{font-size:14px;color:var(--muted);line-height:1.6;margin:0 0 10px}.bag-bottom{padding:23px 30px 18px;flex-shrink:0}.shipping-progress{font-size:11px;margin:0 0 10px;color:var(--muted)}.shipping-track{height:2px;background:var(--line)}.shipping-track>span{display:block;height:100%;background:var(--ink);transition:width .2s}.totals{margin:23px 0}.totals>div{display:flex;justify-content:space-between;font-size:12px;margin:12px 0}.totals dd{margin:0}.totals .total-row{border-top:1px solid var(--line);padding-top:17px;font-size:18px}.preview-note{background:#e8e6de;padding:13px;font-size:11px;line-height:1.6;color:#5a5b52;margin:16px 0}.checkout-button{width:100%}.quiet-button{display:block;margin:10px auto 0;font-size:11px;padding:10px;text-decoration:underline;text-underline-offset:3px}.checkout-dialog{width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 32px);margin:auto;overscroll-behavior:contain}.checkout-preview{margin:24px 30px 0;display:flex;align-items:flex-start;gap:10px}.checkout-preview>.square{margin-top:5px}.checkout-preview p{margin:0}.checkout-form{padding:24px 30px 25px;display:flex;flex-direction:column;gap:18px}.checkout-form label{font-size:11px;display:flex;flex-direction:column;gap:8px}.checkout-form input,.checkout-form select{border:1px solid var(--line);background:transparent;border-radius:0;padding:12px;width:100%;min-width:0;height:44px;font-size:14px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.checkout-summary{border-top:1px solid var(--line);padding-top:12px}.checkout-summary p{display:flex;justify-content:space-between;font-size:12px}.checkout-summary .checkout-total{padding-top:14px;border-top:1px solid var(--line);font-size:18px}.checkout-footnote{text-align:center;font-size:10px;color:var(--muted);margin:0}.order-success{padding:35px 30px}.order-success .success-mark{display:grid;place-items:center;width:50px;height:50px;border:1px solid var(--ink);border-radius:50%;font-size:23px;margin-bottom:30px}.order-success h3{font-size:43px;font-weight:400;line-height:1.04;letter-spacing:-1.5px;margin:17px 0}.order-success>p:not(.eyebrow){font-size:13px;color:var(--muted);line-height:1.7}.success-summary{border-block:1px solid var(--line);padding:12px 0;margin:24px 0;font-size:12px;line-height:1.8}.order-success .primary{width:100%}.noscript{padding:20px;text-align:center;background:var(--ink);color:var(--paper)}[hidden]{display:none!important}

/* Cart typography follows the same quiet, functional type as the storefront. */
.dialog-header h2 { font-size: 27px; letter-spacing: -.05em; }
.cart-item h3 { font-size: 16px; }
.order-success h3 { font-size: 30px; letter-spacing: -.05em; line-height: 1.2; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }

@media (max-width: 800px) {
  .header { min-height: 68px; gap: 18px; }
  .header nav { gap: 18px; }
  .bag-button { padding-left: 15px; }
  .shop { gap: 28px; grid-template-columns: 1fr 1.1fr; }
  h1 { font-size: clamp(58px,8.8vw,78px); }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 36px); }
  .header { gap: 13px; }
  .header nav { gap: 15px; }
  .header nav a, .bag-button { font-size: 12px; }
  .header nav svg { display: none; }
  .brand { flex-direction: column; align-items: flex-start; gap: 4px; }
  .brand img { width: 69px; }
  .brand span { font-size: 6px; letter-spacing: .25em; }
  .bag-button { padding-left: 12px; gap: 4px; }
  .shop { display: flex; flex-direction: column; align-items: stretch; padding-block: 18px 34px; gap: 20px; }
  .gallery { order: -1; }
  .gallery-stage { aspect-ratio: 1.28; max-height: 450px; }
  .gallery figcaption { border-bottom: 1px solid var(--line); }
  .shop-details { width: 100%; }
  .product-heading h1 { margin: 11px 0; font-size: clamp(64px,15vw,82px); }
  .product-facts { padding: 15px 0 14px; }
  .footer { flex-wrap: wrap; }
  .bag-content { padding-inline: 20px; }
  .bag-bottom { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
