/* Still Hours */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #eae5db;
  --paper-deep: #e0d9cc;
  --tile: #e5dfd5;
  --tile-hover: #ded7cb;
  --porcelain: #f6f3ee;
  --ink: #1d1a17;
  --ink-soft: #5e5750;
  --rule: rgba(29, 26, 23, 0.16);
  --error: #8e3a2b;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --header: 76px;

  color-scheme: light;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 360;
}

h2 {
  font-size: clamp(26px, 2.5vw, 34px);
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

img,
svg {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: #d6ccbb;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.display {
  font-size: clamp(42px, 5.4vw, 76px);
  font-weight: 340;
  line-height: 1.02;
  letter-spacing: -0.024em;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 30em;
}

.prose {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.62;
  max-width: 34em;
}
.prose p + p {
  margin-top: 1em;
}
.prose a {
  text-decoration-color: rgba(29, 26, 23, 0.4);
}
.prose a:hover {
  text-decoration-color: currentColor;
}

.muted {
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font: 500 15px/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.button:hover {
  background: #3b352f;
}
.button:disabled {
  opacity: 0.65;
  cursor: progress;
}
.button-block {
  width: 100%;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

/* ---------- Header ---------- */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header);
}

.wordmark {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 420;
  letter-spacing: -0.015em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
}
.nav a {
  padding-block: 8px;
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav-cart {
  display: inline-flex;
  align-items: center;
}
.nav-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 7px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- Home ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(24px, 4vw, 48px) clamp(8px, 2vw, 32px);
}
.hero-text .display {
  max-width: 11ch;
}
.hero-text .lede {
  margin: 28px 0 36px;
}

.hero-art {
  position: relative;
  margin: 0;
}
.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
.hero-art .leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.leaders path {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.leaders circle {
  fill: var(--ink);
}

.callouts {
  margin: 0;
  padding: 0;
  list-style: none;
}
.callout {
  position: absolute;
  transform: translateY(-50%);
  font-size: 13px;
  line-height: 1.35;
}
.callout-left {
  transform: translate(-100%, -50%);
  text-align: right;
}
.callout-top {
  transform: translate(-50%, -100%);
  text-align: center;
}
.callout a {
  display: flex;
  flex-direction: column;
  padding: 4px 6px;
  text-decoration: none;
  white-space: nowrap;
}
.callout-price {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.callout a:hover .callout-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section {
  padding-top: clamp(56px, 7vw, 112px);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head a {
  white-space: nowrap;
}

.note {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 6vw, 96px);
}
.note-title {
  max-width: 11ch;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.06;
}

.service {
  margin-top: clamp(72px, 9vw, 128px);
}
.service-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 40px;
  padding-block: 26px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---------- Product grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 3.2vw, 48px) clamp(14px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile-link {
  display: block;
  text-decoration: none;
}
.photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Product shots are on white; multiply lets the tile colour show through. */
  mix-blend-mode: multiply;
}

.tile-art {
  aspect-ratio: 4 / 5;
  background: var(--tile);
  transition: background-color 0.2s ease;
}
.tile-link:hover .tile-art {
  background: var(--tile-hover);
}
.tile-brand {
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-size: 13px;
}
.tile-text {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.tile-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}
.tile-link:hover .tile-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tile-price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.tile-finishes {
  margin-top: 9px;
  line-height: 0;
}
.dots {
  display: inline-flex;
  gap: 6px;
}
.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(29, 26, 23, 0.25);
}

/* ---------- Shop ---------- */

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  padding-block: clamp(24px, 4vw, 56px) clamp(24px, 3vw, 40px);
}
.filters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.filters a {
  color: var(--ink-soft);
  text-decoration: none;
}
.filters a:hover,
.filters a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.filter-count {
  margin-left: 4px;
  font-size: 11px;
  vertical-align: 0.5em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Product ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
  padding-top: clamp(8px, 1.5vw, 24px);
}
.gallery-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery-track:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.gallery-item {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--tile);
}
.gallery-wide {
  grid-column: 1 / -1;
}
.gallery-item .photo {
  width: 100%;
  height: 100%;
}
.photo-scene {
  object-fit: cover;
  mix-blend-mode: normal;
}
.gallery-count {
  display: none;
}
.product-brand {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 15px;
}
.product-info {
  max-width: 520px;
  padding-top: clamp(0px, 2vw, 28px);
}

.crumbs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 14px;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.product-name {
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.04;
}
.product-price {
  margin-top: 12px;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.product-summary {
  margin: 26px 0 34px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
}

.finish {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}
.finish legend {
  margin-bottom: 12px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.finish legend span {
  color: var(--ink);
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.swatch {
  position: relative;
  display: block;
  cursor: pointer;
}
.swatch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.swatch-dot {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(29, 26, 23, 0.22);
  outline: 1px solid transparent;
  outline-offset: 4px;
  transition: outline-color 0.15s ease;
}
.swatch:hover .swatch-dot {
  outline-color: var(--rule);
}
.swatch input:checked + .swatch-dot {
  outline-color: var(--ink);
}
.swatch input:focus-visible + .swatch-dot {
  outline: 2px solid var(--ink);
}
.option {
  position: relative;
  display: block;
  cursor: pointer;
}
.option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.option-label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(29, 26, 23, 0.22);
  border-radius: 2px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: border-color 0.15s ease;
}
.option:hover .option-label {
  border-color: rgba(29, 26, 23, 0.5);
}
.option input:checked + .option-label {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.option input:focus-visible + .option-label {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.tile-options {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.finish-single {
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 14px;
}
.buy-note {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 13px;
}

.product-description {
  margin-top: 48px;
  font-size: 17px;
}

.specs {
  margin: 36px 0 0;
  border-top: 1px solid var(--rule);
}
.specs div {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.specs dt {
  color: var(--ink-soft);
}
.specs dd {
  margin: 0;
}

/* ---------- Cart ---------- */

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(440px, 100vw);
  max-width: 100vw;
  height: 100%;
  max-height: 100%;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--porcelain);
  color: var(--ink);
}
.drawer::backdrop {
  background: rgba(29, 26, 23, 0.3);
}
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] {
    animation: drawer-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .drawer[open]::backdrop {
    animation: fade-in 0.32s ease;
  }
  @keyframes drawer-in {
    from {
      transform: translateX(100%);
    }
  }
  @keyframes fade-in {
    from {
      opacity: 0;
    }
  }
}
.drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--rule);
}
.drawer-head h2 {
  font-size: 24px;
}
.drawer-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding: 0 28px 28px;
}
.drawer-body .cart {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.cart-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cart-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.cart-thumb {
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--tile);
}
.cart-line-brand {
  color: var(--ink-soft);
  font-size: 13px;
}
.cart-line-name {
  display: block;
  font-weight: 500;
  text-decoration: none;
}
.cart-line-name:hover {
  text-decoration: underline;
}
.cart-line-finish {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 14px;
}
.qty {
  display: inline-flex;
  align-items: center;
  height: 34px;
  margin-top: 10px;
  border: 1px solid rgba(29, 26, 23, 0.22);
  border-radius: 2px;
}
.qty button {
  width: 34px;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.qty button:disabled {
  opacity: 0.3;
  cursor: default;
}
.qty output {
  min-width: 22px;
  font-size: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cart-line-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.cart-line-price {
  font-variant-numeric: tabular-nums;
}
.cart-line-side .text-button {
  color: var(--ink-soft);
  font-size: 13px;
}

.cart-summary {
  margin-top: auto;
  padding-top: 28px;
}
.cart-shipping {
  margin-bottom: 10px;
  font-size: 14px;
}
.cart-progress {
  height: 2px;
  margin-bottom: 22px;
  background: var(--rule);
}
.cart-progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  transition: width 0.3s ease;
}
.cart-totals {
  margin: 0 0 22px;
}
.cart-totals div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}
.cart-totals dt {
  color: var(--ink-soft);
}
.cart-totals dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.cart-totals .cart-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 17px;
}
.cart-totals .cart-total dt {
  color: var(--ink);
}
.cart-error {
  margin-top: 12px;
  color: var(--error);
  font-size: 14px;
}
.cart-note {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}
.cart-empty {
  padding-block: 36px;
}
.cart-empty p {
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: 21px;
}

.cart-page {
  max-width: calc(760px + 2 * var(--gutter));
  padding-top: clamp(24px, 4vw, 56px);
}
.cart-page h1 {
  margin-bottom: 12px;
}
.cart-page .cart-summary {
  max-width: 400px;
  margin-left: auto;
}

/* ---------- About, help, contact ---------- */

.about {
  padding-top: clamp(24px, 4vw, 56px);
}
.about-head .display {
  max-width: 13ch;
}
.about-body {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(36px, 5vw, 72px);
}
.makers h2 {
  margin-bottom: 22px;
}
.makers-list div {
  grid-template-columns: 8.5em minmax(0, 1fr);
  font-size: 15px;
}
.makers-list dt {
  color: var(--ink);
  font-weight: 500;
}
.maker-products {
  margin-top: 6px;
  color: var(--ink-soft);
}
.maker-products a {
  text-decoration-color: rgba(29, 26, 23, 0.35);
}

.help {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
  padding-top: clamp(24px, 4vw, 56px);
}
.help-head {
  position: sticky;
  top: 32px;
  align-self: start;
}
.help-nav ul {
  display: grid;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.help-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.help-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.help-section {
  scroll-margin-top: 24px;
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.help-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}
.help-section h2 {
  margin-bottom: 20px;
}
.help-section .specs {
  margin-top: 0;
}
.care div {
  grid-template-columns: 12em minmax(0, 1fr);
  font-size: 15px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  padding-top: clamp(24px, 4vw, 56px);
}
.contact-head .lede {
  margin-top: 20px;
}
.contact-direct {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 15px;
}
.contact-direct a {
  color: var(--ink);
}
.contact-form {
  display: grid;
  gap: 20px;
  max-width: 560px;
}
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}
.optional {
  color: var(--ink-soft);
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(29, 26, 23, 0.24);
  border-radius: 2px;
  background: var(--porcelain);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.field textarea {
  resize: vertical;
}
.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 0;
}
.field-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-error {
  color: var(--error);
}
.contact-form .button {
  justify-self: start;
}
.notice h2 {
  margin-bottom: 12px;
}
.notice p + p {
  margin-top: 16px;
}

/* ---------- Checkout ---------- */

.checkout {
  padding-top: clamp(24px, 4vw, 56px);
}
.checkout-title {
  margin-bottom: clamp(24px, 3vw, 40px);
}
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
}
.checkout-form {
  max-width: 600px;
}
.checkout-step {
  margin: 0 0 40px;
  padding: 0;
  border: 0;
}
.checkout-step legend {
  margin-bottom: 18px;
  padding: 0;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
}
.field-note {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
}
.stripe-slot {
  min-height: 48px;
}
.checkout-error {
  margin-bottom: 16px;
  color: var(--error);
  font-size: 14px;
}
.checkout-note {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}
.checkout-empty p {
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: 21px;
}

.checkout-summary {
  position: sticky;
  top: 24px;
  padding: 28px;
  background: var(--porcelain);
}
.checkout-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.checkout-summary-head h2 {
  font-size: 24px;
}
.checkout-summary-head a {
  font-size: 14px;
}
.summary-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}
.summary-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.summary-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--tile);
}
.summary-qty {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 500;
}
.summary-brand,
.summary-finish {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
}
.summary-price {
  font-variant-numeric: tabular-nums;
}
.summary-totals {
  margin: 16px 0 0;
}
.summary-totals div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-size: 15px;
}
.summary-totals dt {
  color: var(--ink-soft);
}
.summary-totals dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.summary-totals .summary-total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 18px;
}
.summary-totals .summary-total dt {
  color: var(--ink);
}

.order-address {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.order-address h2 {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
}

/* ---------- Order confirmed, not found ---------- */

.confirmed {
  max-width: calc(680px + 2 * var(--gutter));
  padding-top: clamp(32px, 5vw, 72px);
}
.confirmed .lede {
  margin: 20px 0 36px;
}
.confirmed > p + p {
  margin-top: 28px;
}
.order {
  margin-bottom: 32px;
  border-top: 1px solid var(--rule);
}
.order-ref {
  margin: 16px 0 4px;
  color: var(--ink-soft);
  font-size: 14px;
}
.order-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}
.order-lines li,
.order-totals div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.order-totals {
  margin: 0;
}
.order-totals dd {
  margin: 0;
}
.order-total {
  font-weight: 600;
}

.not-found {
  padding-top: clamp(48px, 8vw, 120px);
}
.not-found .lede {
  margin: 18px 0 32px;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(72px, 9vw, 128px);
  padding-block: 56px 28px;
  background: var(--paper-deep);
}
.service + .site-footer,
main:has(> .service:last-child) + .site-footer {
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 36px 32px;
}
.footer-brand p {
  max-width: 20ch;
  margin-top: 14px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.4;
}
.footer-col h2 {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
}
.footer-col ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col a {
  text-decoration: none;
}
.footer-col a:hover {
  text-decoration: underline;
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 64px;
  color: var(--ink-soft);
  font-size: 13px;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
  .hero,
  .note,
  .product,
  .about-body,
  .help,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
  .help-head,
  .checkout-summary {
    position: static;
  }
  /* Photos become a swipeable row that runs to the screen edges. */
  .product-gallery {
    margin-inline: calc(-1 * var(--gutter));
  }
  .gallery-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .gallery-track::-webkit-scrollbar {
    display: none;
  }
  .gallery-item {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }
  .gallery-count {
    display: block;
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: 13px;
    text-align: center;
    font-variant-numeric: tabular-nums;
  }
  .checkout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .checkout-summary {
    order: -1;
  }
  .hero-art {
    margin-top: 16px;
  }
  .product-info {
    max-width: none;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  :root {
    --header: 64px;
  }
  .wordmark {
    font-size: 22px;
  }
  .nav {
    gap: 16px;
  }
  .callouts,
  .leaders {
    display: none;
  }

  .grid {
    gap: 28px 12px;
  }
  .tile-text {
    flex-direction: column;
    gap: 2px;
  }
  .cart-line {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 14px;
  }
  .drawer-head,
  .drawer-body {
    padding-inline: 20px;
  }
  .specs div,
  .care div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html:has(.drawer[open]) {
  overflow: hidden;
}
