/* Little Layers Co — design system and storefront styles. */

@layer reset, tokens, base, layout, components, sections, utilities;

@layer tokens {
  :root {
    /* Warm paper neutrals, an ink near-black, and a filament orange accent. */
    --paper: #fbf8f3;
    --paper-sunk: #f4eee4;
    --paper-raised: #ffffff;
    --ink: #17171b;
    --ink-soft: #3d3d46;
    --ink-muted: #75757f;
    --line: rgb(23 23 27 / 10%);
    --line-strong: rgb(23 23 27 / 18%);

    --accent: #d2663a;
    --accent-deep: #ab4f2a;
    --accent-wash: #fbeade;
    --success: #2f7d5b;
    --danger: #b3382f;

    --display: "Fraunces", "Iowan Old Style", Georgia, serif;
    --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

    /* Fluid type: comfortable on a phone, generous on a desktop. */
    --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
    --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
    --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
    --step-2: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
    --step-3: clamp(1.9rem, 1.6rem + 1.5vw, 2.9rem);
    --step-4: clamp(2.4rem, 1.85rem + 2.75vw, 4.4rem);

    --gutter: clamp(1.25rem, 0.9rem + 1.75vw, 2.5rem);
    --section-gap: clamp(4.5rem, 3rem + 7vw, 9rem);
    --measure: 68ch;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgb(23 23 27 / 6%), 0 2px 6px rgb(23 23 27 / 4%);
    --shadow: 0 2px 4px rgb(23 23 27 / 5%), 0 12px 28px -12px rgb(23 23 27 / 18%);
    --shadow-lg: 0 4px 8px rgb(23 23 27 / 5%), 0 32px 64px -24px rgb(23 23 27 / 28%);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
  }
}

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

  * {
    margin: 0;
  }

  html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
  }

  body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  img,
  svg,
  video {
    display: block;
    max-width: 100%;
    height: auto;
  }

  button,
  input,
  select,
  textarea {
    font: inherit;
    color: inherit;
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}

@layer base {
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: var(--step-0);
    line-height: 1.65;
  }

  h1,
  h2,
  h3,
  h4 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;

    /* Fraunces' softness axis keeps large headings friendly. The "wonk" axis
       is left off: its alternate ampersand reads as a trademark symbol. */
    font-variation-settings: "SOFT" 28, "WONK" 0;
  }

  h1 {
    font-size: var(--step-4);
  }

  h2 {
    font-size: var(--step-3);
  }

  h3 {
    font-size: var(--step-1);
  }

  p {
    text-wrap: pretty;
  }

  a {
    color: inherit;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 0.22em;
    transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
  }

  a:hover {
    color: var(--accent-deep);
    text-decoration-color: currentcolor;
  }

  :focus-visible {
    outline: 2.5px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
  }

  ::selection {
    background: var(--accent-wash);
    color: var(--accent-deep);
  }
}

@layer layout {
  .wrap {
    width: min(100% - (var(--gutter) * 2), 1180px);
    margin-inline: auto;
  }

  .wrap--narrow {
    width: min(100% - (var(--gutter) * 2), 760px);
    margin-inline: auto;
  }

  .section {
    padding-block: var(--section-gap);
  }

  .section--sunk {
    background: var(--paper-sunk);
  }

  .section--ink {
    background: var(--ink);
    color: var(--paper);
  }

  .section--ink h2,
  .section--ink h3 {
    color: var(--paper);
  }

  .stack > * + * {
    margin-block-start: var(--stack-gap, 1rem);
  }
}

@layer components {
  /* ---------- Skip link ---------- */
  .skip-link {
    position: absolute;
    left: 50%;
    translate: -50% -150%;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 0 0 var(--radius) var(--radius);
    transition: translate 0.2s var(--ease);
  }

  .skip-link:focus {
    translate: -50% 0;
  }

  /* ---------- Header ---------- */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--paper) 80%, transparent);
    backdrop-filter: blur(14px) saturate(140%);
    border-block-end: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  }

  .site-header[data-scrolled="true"] {
    border-block-end-color: var(--line);
    background: color-mix(in srgb, var(--paper) 92%, transparent);
  }

  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1rem;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
  }

  .brand:hover {
    color: inherit;
  }

  .brand__mark {
    flex: none;
    width: 34px;
    height: 34px;
  }

  .brand__name small {
    display: block;
    font-family: var(--body);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-block-start: -0.15rem;
  }

  .nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2rem);
  }

  .nav a {
    font-size: var(--step--1);
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: var(--ink-soft);
  }

  .nav a:hover {
    color: var(--ink);
  }

  .nav__toggle {
    display: none;
    padding: 0.5rem;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
  }

  @media (width < 820px) {
    .nav__toggle {
      display: inline-flex;
    }

    .nav {
      position: fixed;
      inset: 4.5rem var(--gutter) auto;
      flex-direction: column;
      align-items: stretch;
      gap: 0.25rem;
      padding: 1rem;
      background: var(--paper-raised);
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-lg);
      opacity: 0;
      translate: 0 -0.75rem;
      visibility: hidden;
      transition: opacity 0.2s var(--ease), translate 0.2s var(--ease), visibility 0.2s;
    }

    .nav[data-open="true"] {
      opacity: 1;
      translate: 0;
      visibility: visible;
    }

    .nav a {
      padding: 0.7rem 0.75rem;
      border-radius: var(--radius-sm);
      font-size: var(--step-0);
    }

    .nav a:hover {
      background: var(--paper-sunk);
    }

    .nav .btn {
      margin-block-start: 0.5rem;
      justify-content: center;
    }
  }

  /* ---------- Buttons ---------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: var(--paper);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease),
      translate 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
  }

  .btn:hover:not(:disabled) {
    translate: 0 -2px;
    box-shadow: var(--shadow);
    color: var(--paper);
  }

  .btn:active:not(:disabled) {
    translate: 0;
    box-shadow: none;
  }

  .btn:disabled,
  .btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .btn--accent {
    background: var(--accent);
  }

  .btn--accent:hover:not(:disabled) {
    background: var(--accent-deep);
  }

  .btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
  }

  .btn--ghost:hover:not(:disabled) {
    background: var(--paper-raised);
    color: var(--ink);
    border-color: var(--ink);
  }

  .section--ink .btn--ghost {
    color: var(--paper);
    border-color: rgb(251 248 243 / 28%);
  }

  .section--ink .btn--ghost:hover:not(:disabled) {
    background: rgb(251 248 243 / 10%);
    color: var(--paper);
    border-color: var(--paper);
  }

  .btn--sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
  }

  .btn--block {
    width: 100%;
  }

  /* ---------- Eyebrow + section headings ---------- */
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-deep);
  }

  .eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 2px;
    background: currentcolor;
    border-radius: 2px;
  }

  .section--ink .eyebrow {
    color: #e8a17c;
  }

  .section-head {
    max-width: var(--measure);
    margin-block-end: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  }

  .section-head p {
    margin-block-start: 1rem;
    font-size: var(--step-1);
    line-height: 1.5;
    color: var(--ink-soft);
  }

  .section--ink .section-head p {
    color: rgb(251 248 243 / 72%);
  }

  .section-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: none;
  }

  .section-head--split > div {
    max-width: var(--measure);
  }

  /* ---------- Cards ---------- */
  .card {
    position: relative;
    padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: translate 0.3s var(--ease), box-shadow 0.3s var(--ease),
      border-color 0.3s var(--ease);
  }

  .card:hover {
    translate: 0 -4px;
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
  }

  .card__icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-block-end: 1.25rem;
    background: var(--accent-wash);
    border-radius: var(--radius);
    color: var(--accent-deep);
  }

  .card h3 {
    margin-block-end: 0.6rem;
  }

  .card p {
    color: var(--ink-soft);
    font-size: var(--step--1);
    line-height: 1.7;
  }

  /* ---------- Product cards ---------- */
  /* auto-fit rather than auto-fill so a short row stretches to fill the
     container instead of leaving a phantom empty column. The track maximum
     stays 1fr because auto-fit counts repetitions from it; the per-card cap
     below is what stops a lone product spanning the whole page. */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    justify-items: center;
    gap: clamp(1.25rem, 1rem + 1vw, 2rem);
  }

  .product-grid > * {
    width: 100%;
    max-width: 420px;
  }

  .product-card {
    display: flex;
    flex-direction: column;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: translate 0.3s var(--ease), box-shadow 0.3s var(--ease),
      border-color 0.3s var(--ease);
  }

  .product-card:hover {
    translate: 0 -4px;
    color: inherit;
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
  }

  .product-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--paper-sunk);
    overflow: hidden;
  }

  .product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.5s var(--ease);
  }

  .product-card:hover .product-card__media img {
    scale: 1.04;
  }

  .product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.4rem;
    padding: 1.25rem;
  }

  .product-card__name {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.015em;
  }

  .product-card__tagline {
    flex: 1;
    font-size: var(--step--1);
    line-height: 1.6;
    color: var(--ink-muted);
  }

  .product-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-block-start: 0.6rem;
  }

  .price {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }

  /* ---------- Badges ---------- */
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.7rem;
    border-radius: var(--radius-pill);
    background: var(--paper-sunk);
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .badge--made {
    background: var(--accent-wash);
    color: var(--accent-deep);
  }

  .badge--out {
    background: #f0eceb;
    color: var(--ink-muted);
  }

  .badge--floating {
    position: absolute;
    inset-block-start: 0.85rem;
    inset-inline-start: 0.85rem;
    background: color-mix(in srgb, var(--paper-raised) 92%, transparent);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
  }

  /* ---------- Forms ---------- */
  .field {
    display: grid;
    gap: 0.45rem;
  }

  .field > span,
  .field > label {
    font-size: var(--step--1);
    font-weight: 600;
  }

  .field__hint {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--ink-muted);
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  select,
  textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--paper-raised);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: var(--step-0);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  }

  input:focus,
  select:focus,
  textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-wash);
  }

  textarea {
    min-height: 8rem;
    resize: vertical;
  }

  .field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1rem;
  }

  .checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--step--1);
    font-weight: 500;
    cursor: pointer;
  }

  .checkbox input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--accent);
    cursor: pointer;
  }

  /* ---------- Messages ---------- */
  .notice {
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid;
    font-size: var(--step--1);
  }

  .notice--error {
    background: #fdf1f0;
    border-color: #f0c8c4;
    color: var(--danger);
  }

  .notice--success {
    background: #eef7f2;
    border-color: #bfe0d0;
    color: var(--success);
  }

  .notice--info {
    background: var(--accent-wash);
    border-color: #f0cdb6;
    color: var(--accent-deep);
  }

  [hidden] {
    display: none !important;
  }

  /* ---------- Loading + empty states ---------- */
  .skeleton {
    background: linear-gradient(
      90deg,
      var(--paper-sunk) 25%,
      color-mix(in srgb, var(--paper-sunk) 55%, var(--paper-raised)) 50%,
      var(--paper-sunk) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite;
    border-radius: var(--radius-lg);
  }

  @keyframes shimmer {
    to {
      background-position: -200% 0;
    }
  }

  .empty-state {
    grid-column: 1 / -1;
    padding: clamp(2.5rem, 2rem + 3vw, 4rem);
    background: var(--paper-raised);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--ink-muted);
  }

  .empty-state h3 {
    margin-block-end: 0.5rem;
    color: var(--ink);
  }

  /* ---------- Cart drawer ---------- */
  .cart-button {
    position: relative;
  }

  .cart-count {
    display: grid;
    place-items: center;
    min-width: 1.3rem;
    height: 1.3rem;
    padding-inline: 0.35rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .drawer {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr min(100%, 26rem);
    visibility: hidden;
  }

  .drawer[data-open="true"] {
    visibility: visible;
  }

  .drawer__scrim {
    background: rgb(23 23 27 / 45%);
    opacity: 0;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s var(--ease);
  }

  .drawer[data-open="true"] .drawer__scrim {
    opacity: 1;
  }

  .drawer__panel {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    box-shadow: var(--shadow-lg);
    translate: 100% 0;
    transition: translate 0.35s var(--ease);
  }

  .drawer[data-open="true"] .drawer__panel {
    translate: 0 0;
  }

  .drawer__head,
  .drawer__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem var(--gutter);
  }

  .drawer__head {
    border-block-end: 1px solid var(--line);
  }

  .drawer__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    border-block-start: 1px solid var(--line);
  }

  .drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem var(--gutter);
  }

  .icon-btn {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
  }

  .icon-btn:hover {
    background: var(--paper-sunk);
    color: var(--ink);
  }

  .cart-line {
    display: grid;
    grid-template-columns: 4rem 1fr;
    gap: 0.9rem;
    padding-block: 1rem;
    border-block-end: 1px solid var(--line);
  }

  .cart-line__thumb {
    aspect-ratio: 1;
    background: var(--paper-sunk);
    border-radius: var(--radius-sm);
    overflow: hidden;
  }

  .cart-line__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cart-line__name {
    font-weight: 600;
    font-size: var(--step--1);
  }

  .cart-line__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-block-start: 0.5rem;
  }

  .qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    overflow: hidden;
  }

  .qty button {
    width: 1.9rem;
    height: 1.9rem;
    background: none;
    border: none;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s var(--ease);
  }

  .qty button:hover {
    background: var(--paper-sunk);
    color: var(--ink);
  }

  .qty span {
    min-width: 1.75rem;
    text-align: center;
    font-size: var(--step--1);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }

  .cart-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 600;
  }

  .cart-total small {
    font-family: var(--body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-muted);
  }
}

@layer sections {
  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3.5rem, 2rem + 8vw, 7.5rem) clamp(4rem, 2rem + 8vw, 8rem);
  }

  /* Layer lines: a nod to the striations left by a print head. */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      to bottom,
      rgb(23 23 27 / 3.5%) 0 1px,
      transparent 1px 9px
    );
    mask-image: radial-gradient(120% 85% at 70% 15%, #000 20%, transparent 75%);
    pointer-events: none;
  }

  .hero::after {
    content: "";
    position: absolute;
    inset-block-start: -22rem;
    inset-inline-end: -14rem;
    width: 44rem;
    aspect-ratio: 1;
    background: radial-gradient(circle, var(--accent-wash) 0%, transparent 62%);
    opacity: 0.85;
    pointer-events: none;
  }

  .hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  }

  @media (width < 900px) {
    .hero__inner {
      grid-template-columns: 1fr;
    }
  }

  /* Wide enough for the three proof statistics to share one row. */
  .hero__copy {
    max-width: 44ch;
  }

  .hero h1 {
    margin-block: 1.5rem 1.5rem;
  }

  .hero h1 em {
    font-style: normal;
    color: var(--accent-deep);
  }

  .hero__lede {
    max-width: 46ch;
    font-size: var(--step-1);
    line-height: 1.55;
    color: var(--ink-soft);
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-block-start: 2.25rem;
  }

  /* Equal thirds rather than a wrapping flex row, so the three statistics
     always sit on one line whatever the copy column width. */
  .hero__proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.75rem, 2vw, 1.75rem);
    margin-block-start: 3rem;
    padding-block-start: 2rem;
    border-block-start: 1px solid var(--line);
  }

  .hero__proof div strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.2rem, 1rem + 0.7vw, 1.5rem);
    font-weight: 600;
    line-height: 1.1;
  }

  .hero__proof div span {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }

  .hero__art {
    position: relative;
  }

  .hero__art img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }

  .hero__chip {
    position: absolute;
    inset-block-end: 1.5rem;
    inset-inline-start: -1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 15rem;
    padding: 0.9rem 1.1rem;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 0.82rem;
    line-height: 1.45;
  }

  @media (width < 560px) {
    .hero__chip {
      inset-inline-start: 0.75rem;
    }
  }

  .hero__chip svg {
    flex: none;
    color: var(--accent);
  }

  /* ---------- Process steps ---------- */
  .steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    margin-block-end: clamp(3rem, 2rem + 3vw, 4.5rem);
    counter-reset: step;
  }

  .step {
    position: relative;
    counter-increment: step;
    padding-block-start: 3.25rem;
  }

  .step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    inset-block-start: 0;
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
  }

  .step::after {
    content: "";
    position: absolute;
    inset-block-start: 1.1rem;
    inset-inline: 3rem 0;
    height: 1px;
    background: var(--line-strong);
  }

  .step:last-child::after {
    display: none;
  }

  @media (width < 700px) {
    .step::after {
      display: none;
    }
  }

  .section--ink .step::after {
    background: rgb(251 248 243 / 18%);
  }

  .step h3 {
    margin-block-end: 0.5rem;
  }

  .step p {
    font-size: var(--step--1);
    line-height: 1.7;
    color: var(--ink-soft);
  }

  .section--ink .step p {
    color: rgb(251 248 243 / 70%);
  }

  /* ---------- Gallery ---------- */
  /* Six tiles on a three-column grid: the first fills a 2×2 block and the
     remaining five fill the rest exactly, with no ragged holes. */
  .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
    gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
  }

  .gallery figure {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper-sunk);
  }

  .gallery img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: scale 0.6s var(--ease);
  }

  .gallery figure:hover img {
    scale: 1.05;
  }

  .gallery figcaption {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    padding: 2.5rem 1rem 0.9rem;
    background: linear-gradient(to top, rgb(23 23 27 / 78%), transparent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
  }

  .gallery figure:hover figcaption,
  .gallery figure:focus-within figcaption {
    opacity: 1;
  }

  .gallery figure:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery figure:first-child img {
    aspect-ratio: 1;
  }

  @media (width < 900px) {
    .gallery {
      grid-template-columns: repeat(2, 1fr);
    }

    /* Two columns divide six square tiles evenly on their own. */
    .gallery figure:first-child {
      grid-column: span 1;
      grid-row: span 1;
    }
  }

  @media (width < 560px) {
    .gallery {
      grid-template-columns: 1fr;
    }
  }

  /* ---------- About ---------- */
  .about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  }

  @media (width < 860px) {
    .about {
      grid-template-columns: 1fr;
    }
  }

  .about__body p + p {
    margin-block-start: 1.1rem;
  }

  .about__body p {
    color: var(--ink-soft);
    line-height: 1.75;
  }

  .about__signature {
    margin-block-start: 2rem;
    font-family: var(--display);
    font-size: 1.1rem;
    font-style: italic;
  }

  .about__signature span {
    display: block;
    font-family: var(--body);
    font-size: 0.78rem;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }

  .about__art img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }

  /* ---------- Quote form ---------- */
  .quote-card {
    padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }

  /* The card sits on the dark section but has a light surface of its own, so
     its headings need the ink colour back. */
  .section--ink .quote-card,
  .section--ink .quote-card :is(h1, h2, h3, h4) {
    color: var(--ink);
  }

  .quote-form {
    display: grid;
    gap: 1.1rem;
  }

  /* ---------- Footer ---------- */
  .site-footer {
    padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
    background: var(--ink);
    color: rgb(251 248 243 / 70%);
  }

  .site-footer a {
    color: rgb(251 248 243 / 70%);
    text-decoration: none;
  }

  .site-footer a:hover {
    color: var(--paper);
  }

  .site-footer .brand {
    color: var(--paper);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  }

  @media (width < 720px) {
    .footer-grid {
      grid-template-columns: 1fr 1fr;
    }

    .footer-grid > :first-child {
      grid-column: 1 / -1;
    }
  }

  .footer-grid h4 {
    margin-block-end: 1rem;
    font-family: var(--body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(251 248 243 / 45%);
  }

  .footer-grid ul {
    display: grid;
    gap: 0.6rem;
    padding: 0;
    list-style: none;
    font-size: var(--step--1);
  }

  .footer-note {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-block-start: clamp(2.5rem, 2rem + 2vw, 4rem);
    padding-block-start: 1.5rem;
    border-block-start: 1px solid rgb(251 248 243 / 12%);
    font-size: 0.8rem;
    color: rgb(251 248 243 / 45%);
  }

  /* ---------- Page header (shop / product / confirmation) ---------- */
  .page-head {
    padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(2rem, 1.5rem + 2vw, 3rem);
  }

  .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-block-end: 1rem;
    font-size: 0.8rem;
    color: var(--ink-muted);
  }

  .breadcrumb a {
    text-decoration: none;
  }

  /* ---------- Product detail ---------- */
  .product {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 1.5rem + 3vw, 4rem);
    align-items: start;
  }

  @media (width < 880px) {
    .product {
      grid-template-columns: 1fr;
    }
  }

  .product__gallery {
    display: grid;
    gap: 0.75rem;
  }

  .product__hero {
    aspect-ratio: 4 / 3;
    background: var(--paper-sunk);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }

  .product__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.6rem;
  }

  .product__thumbs button {
    aspect-ratio: 1;
    padding: 0;
    background: var(--paper-sunk);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
  }

  .product__thumbs button[aria-current="true"] {
    border-color: var(--accent);
  }

  .product__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .product__price {
    margin-block: 1.25rem;
    font-family: var(--display);
    font-size: var(--step-2);
    font-weight: 600;
  }

  .product__description {
    margin-block-end: 1.75rem;
    color: var(--ink-soft);
    line-height: 1.75;
    white-space: pre-line;
  }

  .spec-list {
    display: grid;
    gap: 0;
    margin-block: 1.75rem;
    padding: 0;
    border-block-start: 1px solid var(--line);
  }

  .spec-list div {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 0.8rem;
    border-block-end: 1px solid var(--line);
    font-size: var(--step--1);
  }

  .spec-list dt {
    color: var(--ink-muted);
  }

  .spec-list dd {
    margin: 0;
    font-weight: 600;
    text-align: end;
  }

  .buy-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
  }

  /* ---------- Confirmation ---------- */
  .confirm {
    display: grid;
    justify-items: center;
    gap: 1rem;
    padding-block: clamp(3rem, 2rem + 5vw, 6rem);
    text-align: center;
  }

  .confirm__mark {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: var(--accent-wash);
    border-radius: 50%;
    color: var(--accent-deep);
  }

  .confirm__summary {
    width: min(100%, 30rem);
    margin-block-start: 1.5rem;
    padding: 1.5rem;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-align: start;
  }

  .confirm__summary li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.6rem;
    border-block-end: 1px solid var(--line);
    font-size: var(--step--1);
  }

  .confirm__summary ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
}

@layer utilities {
  .reveal {
    opacity: 0;
    translate: 0 1.25rem;
    transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
  }

  .reveal[data-visible="true"] {
    opacity: 1;
    translate: 0;
  }

  @media (prefers-reduced-motion: reduce) {
    .reveal {
      opacity: 1;
      translate: 0;
    }
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

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

  .mt-0 {
    margin-block-start: 0;
  }
}
