@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-wdth.woff2') format('woff2-variations'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('/fonts/courier-prime-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('/fonts/courier-prime-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url('/fonts/courier-prime-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* Prelit brand palette */
:root {
  --ink: #141414;
  --ink-2: #1D1C1A;
  --ink-3: #2A2826;
  --line: #3A3733;
  --paper: #EDE4D3;
  --paper-dim: #B9B1A4;
  --sun: #C8412F;
  --sun-bright: #E0533F;
  --ash: #9C948A;
  --fog: #BCB2A7;

  --wide: 'Archivo', 'Arial', sans-serif;
  --type: 'Courier Prime', 'Courier New', monospace;
  --measure: 36rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 1.0625rem/1.65 var(--type);
  -webkit-font-smoothing: antialiased;
}
/* print grain over everything, like the brand texture */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .89 0 0 0 0 .83 0 0 0 1.3 -.45'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .16; mix-blend-mode: screen;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sun-bright); outline-offset: 3px; }

/* the brand's wide, tracked capitals */
.caps, h2, h3, .btn, .site-nav a, .cart-btn, .kind, .price, legend, summary {
  font-family: var(--wide); font-stretch: 125%; text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.05; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 4.4vw, 3.2rem); letter-spacing: .04em; }
h3 { font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; }
p { margin: 0 0 1em; }
.lede { color: var(--paper-dim); max-width: var(--measure); }
.dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--sun); vertical-align: .02em; margin-right: .55em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 3rem; padding: .7rem 1.5rem;
  border: 2px solid var(--paper); border-radius: 2px;
  background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: .85rem; letter-spacing: .16em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: #fff8ea; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--paper); }
.btn.red { background: var(--sun); border-color: var(--sun); color: var(--paper); }
.btn.red:hover { background: var(--sun-bright); border-color: var(--sun-bright); }
.btn.small { min-height: 2.6rem; padding: .45rem 1rem; font-size: .74rem; }
.btn.wide { width: 100%; }

/* ---------- header ---------- */
.announce { background: var(--sun); color: var(--paper); text-align: center; padding: .5rem var(--gutter); font: 700 .78rem/1.4 var(--wide); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; }
.announce:empty { display: none; }
.site-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 2rem;
  padding: .85rem var(--gutter);
  background: rgba(20, 20, 20, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.logo-link img { height: 2.6rem; width: auto; }
.site-nav { display: flex; gap: 2.2rem; margin-left: auto; align-items: center; }
.site-nav a { text-decoration: none; color: var(--paper-dim); font-weight: 600; font-size: .74rem; letter-spacing: .2em; }
.site-nav a:hover { color: var(--paper); }
.cart-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: none; border: 0; padding: .4rem 0; cursor: pointer;
  font-weight: 600; font-size: .74rem; letter-spacing: .2em; color: var(--paper);
}
.cart-btn svg { width: 1.35rem; height: 1.35rem; }
.cart-count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .3rem; border-radius: 1rem; background: var(--sun); color: var(--paper); font: 700 .72rem/1 var(--wide); letter-spacing: 0; }
.cart-count[data-n="0"] { background: var(--ink-3); color: var(--paper-dim); }
@media (max-width: 760px) {
  .site-nav { gap: 1.2rem; }
  .site-nav a { display: none; }
  .site-nav a.keep { display: inline; }
  .logo-link img { height: 2.1rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; min-height: min(88vh, 54rem); overflow: hidden; }
.hero-copy { position: relative; z-index: 2; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 6rem) var(--gutter); }
.hero-place { font: 600 .9rem/1 var(--wide); font-stretch: 125%; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 1.4rem; }
.hero-logo { width: min(100%, 36rem); margin: 0 0 .4rem -1.5%; }
.hero-sub { font: 600 clamp(.85rem, 1.4vw, 1.05rem)/1 var(--wide); font-stretch: 125%; letter-spacing: .32em; text-transform: uppercase; margin: 0 0 2.4rem; padding-left: 22%; white-space: nowrap; }
.hero h1 { font: 700 clamp(1.15rem, 1.8vw, 1.4rem)/1.45 var(--type); margin: 0 0 1rem; max-width: 26rem; }
.hero-copy p { color: var(--paper-dim); max-width: 28rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-art { position: relative; align-self: stretch; margin-left: -12%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, rgba(20,20,20,.55) 22%, rgba(20,20,20,0) 45%), linear-gradient(0deg, var(--ink) 0%, rgba(20,20,20,0) 18%); }
@media (prefers-reduced-motion: no-preference) {
  .hero-logo { animation: brush .9s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-art img { animation: sunrise 1.6s ease-out both; }
}
@keyframes brush { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sunrise { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { order: -1; margin: 0; height: 22rem; }
  .hero-art::after { background: linear-gradient(0deg, var(--ink) 0%, rgba(20,20,20,0) 45%); }
  .hero-copy { padding: 0 var(--gutter) 3.5rem; margin-top: -3.5rem; }
  .hero-sub { padding-left: 18%; }
}

/* ---------- film frames (every product picture) ---------- */
.frame {
  --edge-ink: var(--sun-bright);
  background: #0B0B0A;
  padding: 24px 10px 30px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.frame[data-stock="bw"] { --edge-ink: var(--fog); }
.frame::before, .frame::after {
  content: ''; position: absolute; left: 8px; right: 8px; height: 9px;
  background: repeating-linear-gradient(90deg, transparent 0 6px, var(--ink-3) 6px 16px, transparent 16px 22px);
}
.frame::before { top: 7px; }
.frame::after { bottom: 6px; }
.frame .pic { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-2); }
.frame .pic > svg, .frame .pic > img { width: 100%; height: 100%; object-fit: cover; }
.edge {
  position: absolute; left: 14px; right: 14px; bottom: 16px;
  display: flex; justify-content: space-between;
  font: 600 .58rem/1 var(--wide); font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase;
  color: var(--edge-ink); pointer-events: none;
}

/* ---------- sections ---------- */
section { padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); }
.section-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); max-width: 56rem; }
.eyebrow { font: 600 .78rem/1 var(--wide); font-stretch: 125%; letter-spacing: .24em; text-transform: uppercase; color: var(--paper-dim); margin: 0; }

/* about: the three steps are a real sequence */
.about { border-top: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  border: 2px solid var(--paper); font: 800 1.1rem/1 var(--wide);
  margin-bottom: 1.4rem;
}
.steps li:first-child::before { background: var(--sun); border-color: var(--sun); }
.steps h3 { margin-bottom: .8rem; }
.steps p { color: var(--paper-dim); max-width: 24rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- shop ---------- */
.shop { background: var(--ink-2); border-block: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin-bottom: 2.75rem; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 2px; }
.seg button {
  background: none; border: 0; padding: .7rem 1.1rem; cursor: pointer; color: var(--paper-dim);
  font: 600 .72rem/1 var(--wide); font-stretch: 125%; letter-spacing: .18em; text-transform: uppercase;
}
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { color: var(--paper); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.series-note { color: var(--paper-dim); margin: -1.5rem 0 2.5rem; max-width: var(--measure); min-height: 1.6em; }

.rolls { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 3.5rem 2rem; }
.roll { display: grid; gap: .8rem; align-content: start; }
.roll > a { text-decoration: none; }
.roll-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-top: .4rem; }
.roll h3 { font-size: 1.25rem; }
.roll h3 a { text-decoration: none; }
.roll h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--sun); }
.roll .price { font-weight: 700; font-size: 1rem; letter-spacing: .06em; white-space: nowrap; }
.roll .kind, .detail .kind { color: var(--paper-dim); font-size: .68rem; letter-spacing: .18em; margin: 0; font-weight: 600; }
.roll .tagline { margin: 0; max-width: 30rem; }
.roll .note { font-size: .92rem; color: var(--sun-bright); margin: 0; }
.roll-actions { display: flex; gap: .6rem; margin-top: .3rem; }
.empty { color: var(--paper-dim); padding: 2rem 0; }
.empty button { background: none; border: 0; color: var(--paper); text-decoration: underline; cursor: pointer; padding: 0; }

/* ---------- gifting ---------- */
.gift { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.gift-art { position: relative; }
.gift-art .frame { max-width: 30rem; transform: rotate(-2.5deg); }
.gift-art .frame + .frame { transform: rotate(2deg); margin: -16% 0 0 18%; }
.gift ul { padding: 0; list-style: none; max-width: var(--measure); margin: 1.5rem 0 2rem; }
.gift li { padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--paper-dim); }
.gift li::before { content: ''; display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--sun); margin-right: .9em; vertical-align: .1em; }
@media (max-width: 860px) { .gift { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq-wrap { border-top: 1px solid var(--line); }
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.3rem 0; font-weight: 600; font-size: .82rem; letter-spacing: .14em; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid var(--paper); }
.faq details[open] summary::after { background: var(--sun); border-color: var(--sun); }
.faq details p { color: var(--paper-dim); max-width: var(--measure); padding-bottom: .6rem; }

/* ---------- footer ---------- */
.site-foot { padding: 3.5rem var(--gutter) 4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; color: var(--paper-dim); }
.site-foot .logo-link img { height: 2.4rem; }
.site-foot a { color: var(--paper); }
.site-foot small { margin-left: auto; }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(2rem, 5vw, 4rem) var(--gutter) clamp(4rem, 8vw, 6rem); align-items: start; }
.product .back { grid-column: 1 / -1; color: var(--paper-dim); text-decoration: none; font: 600 .72rem/1 var(--wide); font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; }
.product .back:hover { color: var(--paper); }
.gallery { display: grid; gap: 1rem; position: sticky; top: 6rem; }
.thumbs { display: flex; gap: .6rem; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 2px; background: none; cursor: pointer; width: 5.5rem; aspect-ratio: 3/2; overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--sun); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { font: 800 clamp(2.4rem, 5vw, 3.8rem)/1 var(--wide); font-stretch: 125%; text-transform: uppercase; letter-spacing: .02em; margin: .9rem 0 0; }
.detail .price { font-size: 1.4rem; font-weight: 700; margin: 1.5rem 0; letter-spacing: .04em; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.5rem; margin: 2rem 0; padding: 1.25rem 0; border-block: 1px solid var(--line); }
.specs dt { color: var(--paper-dim); }
.specs dd { margin: 0; font-weight: 700; }
.buy { display: flex; gap: .75rem; align-items: stretch; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 2px; }
.qty button { width: 2.75rem; background: none; border: 0; cursor: pointer; font-size: 1.2rem; }
.qty button:hover { background: var(--ink-3); }
.qty output, .qty span { min-width: 2.2rem; display: grid; place-items: center; font-weight: 700; }
.detail .description { margin-top: 2rem; max-width: var(--measure); }
.detail .custom-note { background: var(--ink-2); border-left: 3px solid var(--sun); padding: 1rem 1.2rem; margin-top: 1.5rem; max-width: var(--measure); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .gallery { position: static; } }

/* ---------- cart drawer ---------- */
.cart {
  margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(100%, 28rem);
  border: 0; padding: 0; background: var(--ink); color: var(--paper);
  border-left: 1px solid var(--line);
}
.cart::backdrop { background: rgba(0, 0, 0, .6); }
@media (prefers-reduced-motion: no-preference) { .cart[open] { animation: slide .28s cubic-bezier(.2, .8, .2, 1); } }
@keyframes slide { from { transform: translateX(100%); } to { transform: none; } }
.cart-inner { display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 1.3rem; letter-spacing: .14em; }
.close { background: none; border: 1px solid var(--line); border-radius: 2px; width: 2.5rem; height: 2.5rem; cursor: pointer; font-size: 1.3rem; line-height: 1; }
.cart-items { list-style: none; margin: 0; padding: .5rem 1.5rem; overflow-y: auto; }
.cart-items li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-items .thumb { aspect-ratio: 3/2; border-radius: 2px; overflow: hidden; }
.cart-items .thumb svg, .cart-items .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-items strong { display: block; }
.cart-items .sub { color: var(--paper-dim); font-size: .9rem; }
.cart-items .row { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; gap: .5rem; }
.cart-items .qty button { width: 2.1rem; height: 2.1rem; }
.cart-items .remove { background: none; border: 0; color: var(--paper-dim); text-decoration: underline; cursor: pointer; font-size: .88rem; padding: 0; }
.cart-items li.cart-empty { display: block; color: var(--paper-dim); padding: 2rem 0; border: 0; }
.cart-foot { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); display: grid; gap: .8rem; }
.cart-foot .total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; }
.cart-foot .ship { color: var(--paper-dim); font-size: .9rem; margin: 0; }
.cart-error { color: #FF9C8F; margin: 0; font-size: .95rem; }
.cart-error:empty { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 50; transform: translate(-50%, 160%);
  background: var(--paper); color: var(--ink); padding: .8rem 1.2rem; border-radius: 2px; font-weight: 700;
  transition: transform .25s;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- simple pages ---------- */
.simple { min-height: 60vh; padding: clamp(4rem, 10vw, 8rem) var(--gutter); max-width: 48rem; }
.simple h1 { font: 800 clamp(2.2rem, 6vw, 4rem)/1.05 var(--wide); font-stretch: 125%; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 1.5rem; }
.simple p { color: var(--paper-dim); max-width: var(--measure); }
