:root {
  --red: #E8421C;        /* accent, used as a background */
  --on: #121212;         /* text on the accent */
  --mark: #F5EFE2;       /* the big wordmark on the accent */
  --red-text: #E8421C;   /* accent text on the light background */
  --red-dark: #E8421C;   /* accent text on the dark background */
  --ink: #121212;
  --bone: #F5EFE2;
  --ph: #E4DCCB;
  --ph-dark: #2B2825;
  --muted-on-dark: #B9B2A4;
  --disp: 'Work Sans', system-ui, sans-serif;    /* headings are redrawn in the house letters by letters.js */
  --serif: 'Work Sans', system-ui, sans-serif;   /* statements and asides */
  --mono: 'Work Sans', system-ui, -apple-system, sans-serif;
  --pad: 48px;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: var(--mono); font-size: 18px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.has-cart { padding-bottom: 68px; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .cart-bar :focus-visible { outline-color: var(--bone); }
[hidden] { display: none !important; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.mono { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.disp { font-family: var(--disp); font-weight: 900; }
.red { color: var(--red-text); }
.dark .red { color: var(--red-dark); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 60; background: var(--ink); color: var(--bone); padding: 12px 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; background: var(--ink); color: var(--bone); padding: 20px 32px; font-family: var(--disp); font-weight: 900; font-size: 26px; text-decoration: none; min-height: 46px; transition: transform 0.15s ease; }
.btn:hover { transform: translate(-2px, -2px); }
.btn-red { background: var(--red); color: var(--on); }
.btn-small { padding: 10px 20px; font-size: 20px; }
.btn[disabled] { opacity: 0.55; cursor: progress; transform: none; }

/* Top */
.top { background: var(--red); color: var(--on); }

.hero { padding-top: 8px; padding-bottom: 44px; }
@keyframes bubble { 0% { transform: translateY(10px) scale(0.5); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(-22px) scale(1.08); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.clock { font-variant-numeric: tabular-nums; }
.hero-foot { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.lede { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; max-width: 15em; }
.lede em { font-style: italic; }

/* Ticker */
@keyframes ticker { to { transform: translateX(-50%); } }


/* Sections */
.section { padding-top: 84px; padding-bottom: 72px; }
.dark { background: var(--ink); color: var(--bone); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.head h2 { margin: 0; font-family: var(--disp); font-weight: 900; font-size: clamp(64px, 11.7vw, 150px); line-height: 0.86; }
.head h2.long { font-size: clamp(48px, 9.2vw, 118px); }
.head .aside { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-bottom: 6px; white-space: nowrap; }

.card { border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card .meta { display: flex; justify-content: space-between; gap: 12px; }
.card .photo { height: 230px; background: var(--ph); }
.dark .card .photo { background: var(--ph-dark); }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.art { display: grid; place-items: center; overflow: hidden; }
.photo.art svg { width: 100%; height: 100%; padding: 6%; transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1); }
.card h3 { margin: 0; font-family: var(--disp); font-weight: 900; font-size: 38px; line-height: 1; }
.card .note { margin: 0; font-style: italic; font-size: 21px; line-height: 1.25; flex-grow: 1; }
.card .buy { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { font-family: var(--mono); font-size: 16px; white-space: nowrap; }
.price small { font-size: 12px; opacity: 0.75; }
.dark .btn-red { background: var(--bone); }

.stepper { display: inline-flex; align-items: center; border: 2px solid currentColor; font-family: var(--mono); font-size: 17px; }
.stepper button { width: 44px; height: 44px; background: transparent; border: 0; }
.stepper button:hover { background: var(--red); color: var(--on); }
.stepper output { min-width: 36px; text-align: center; }

.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps .n { font-family: var(--disp); font-weight: 900; font-size: 150px; line-height: 0.86; color: var(--red-text); }
.steps .t { font-family: var(--disp); font-weight: 900; font-size: 32px; line-height: 1.05; }
.steps .d { font-size: 18px; }



/* Cart bar */
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--ink); color: var(--bone); border-top: 2px solid var(--bone); }
.cart-bar .btn { white-space: nowrap; flex-shrink: 0; }
.cart-what { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mini-jar { position: relative; flex-shrink: 0; width: 24px; height: 32px; border: 2px solid var(--bone); border-top-width: 6px; border-radius: 3px 3px 7px 7px; overflow: hidden; }
.mini-jar i { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--red-dark); transition: height 0.5s cubic-bezier(0.3, 1.5, 0.5, 1); }
.cart-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }

/* Order page */
.order { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; padding-top: 56px; padding-bottom: 72px; }
.order h1, .done h1 { margin: 8px 0 22px; font-family: var(--disp); font-weight: 900; font-size: clamp(72px, 11.7vw, 150px); line-height: 0.86; }
.lines { border-top: 2px solid var(--ink); }
.line { display: grid; grid-template-columns: 110px 1fr auto auto; gap: 22px; align-items: center; padding: 18px 0; border-bottom: 2px solid var(--ink); }
.line .photo { height: 110px; background: var(--ph); }
.line .what { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.line .name { font-family: var(--disp); font-weight: 900; font-size: 36px; line-height: 1; }
.line .unit { font-style: italic; }
.line .sum { font-family: var(--mono); font-size: 17px; min-width: 72px; text-align: right; }
.more { margin: 22px 0 0; font-style: italic; font-size: 21px; }
.panel { background: var(--ink); color: var(--bone); padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.panel h2 { margin: 0; font-family: var(--disp); font-weight: 900; font-size: 44px; line-height: 0.95; color: var(--red-dark); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--bone); margin: 0; padding: 0; min-width: 0; }
.seg.single { grid-template-columns: 1fr; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 13px 8px; font-family: var(--disp); font-weight: 900; font-size: 20px; text-align: center; cursor: pointer; }
.seg input:checked + label { background: var(--bone); color: var(--ink); }
.seg input:focus-visible + label { outline: 3px solid var(--red-dark); outline-offset: 3px; }
.where { margin: 0; line-height: 1.7; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field textarea { background: transparent; border: 2px solid var(--bone); padding: 12px 14px; font-family: var(--serif); font-size: 19px; color: var(--bone); border-radius: 0; width: 100%; }
.field textarea { min-height: 84px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-on-dark); }
.field .err { font-family: var(--serif); font-size: 17px; letter-spacing: 0; text-transform: none; color: #FF9A7E; }
.field.bad input, .field.bad textarea { border-color: #FF9A7E; }
.hp { position: absolute; left: -9999px; }
.totals { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--bone); padding-top: 16px; font-family: var(--mono); font-size: 15px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font-family: var(--disp); font-weight: 900; font-size: 34px; margin-top: 6px; }
.panel .legal { margin: 0; font-family: var(--mono); font-size: 10px; line-height: 1.6; color: var(--muted-on-dark); }
.panel .pay { margin: 0; font-style: italic; }
.form-error { margin: 0; color: #FF9A7E; }
.empty, .done { padding-top: 72px; padding-bottom: 96px; }
.done .receipt { border: 2px solid var(--ink); padding: 24px 28px; max-width: 640px; margin: 28px 0; font-family: var(--mono); font-size: 15px; display: flex; flex-direction: column; gap: 8px; }
.done .receipt div { display: flex; justify-content: space-between; gap: 16px; }
.done p { font-size: 26px; max-width: 26em; margin: 0 0 12px; }

@media (max-width: 900px) {
  :root { --pad: 20px; }
  .order { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
}

@media (max-width: 700px) {
  body { font-size: 18px; }
  .mono { font-size: 11px; }
  .hero { padding-bottom: 28px; }
  .hero-foot { margin-top: 30px; }
  .hero-foot .btn { width: 100%; font-size: 22px; padding: 18px 20px; }
  .hero-cta { width: 100%; align-items: stretch; }
  .section { padding-top: 44px; padding-bottom: 36px; }
  .head { flex-direction: column-reverse; align-items: flex-start; gap: 6px; margin-bottom: 14px; }
  .head h2 { font-size: 84px; }
  .head h2.long { font-size: 66px; line-height: 0.88; }
  .head .aside { align-items: flex-start; gap: 2px; white-space: normal; padding: 0; }
  .btn-small { font-size: 17px; padding: 0 16px; min-height: 44px; }
  .steps { gap: 20px; }
  .steps li { display: grid; grid-template-columns: 104px 1fr; column-gap: 12px; row-gap: 4px; }
  .steps .n { font-size: 64px; grid-row: span 2; }
  .steps .t { font-size: 22px; }
  .line { grid-template-columns: 72px 1fr; gap: 12px 14px; }
  .line .photo { height: 72px; }
  .line .name { font-size: 28px; }
  .line .stepper { grid-column: 2; grid-row: 2; justify-self: start; }
  .line .sum { grid-column: 2; grid-row: 2; justify-self: end; align-self: center; }
  .panel { padding: 22px 18px; }
  .done p { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mini-jar i { transition: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
