
:root {
  color-scheme: light;
  --paper: #F8F0E4;
  --paper-light: #FFFBF4;
  --ink: #44213D;
  --plum: #6E3A62;
  --plum-dark: #44213D;
  --sage: #87977A;
  --sage-light: #D8DFCC;
  --coral: #D96C57;
  --wool: #E5D6BC;
  --muted: #68586A;
  --line: #A99383;
  --display: Recoleta, Georgia, "Times New Roman", serif;
  --body: "Atkinson Hyperlegible", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--plum); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; }
h1 { margin-bottom: 26px; font-size: clamp(3.6rem, 6.5vw, 6.8rem); letter-spacing: -.045em; }
h2 { margin-bottom: 20px; font-size: clamp(2.65rem, 4.5vw, 4.65rem); letter-spacing: -.035em; }
h3 { font-size: 2rem; }
em { color: var(--plum); font-weight: 400; }
button, input { font-family: var(--body); }
.skip-link { position: fixed; top: -90px; left: 18px; z-index: 3000; padding: 12px 18px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper-light); color: var(--ink); }
.skip-link:focus { top: 16px; }
.demo-ribbon { padding: 8px 20px; background: var(--ink); color: var(--paper-light); font-size: 12px; letter-spacing: .09em; text-align: center; text-transform: uppercase; }
.site-header { width: min(100% - 64px, 1376px); min-height: 108px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); font: 400 2rem/1 var(--display); text-decoration: none; }
.brand small { display: block; margin-top: 7px; font: 700 10px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.brand-stitch { display: grid; place-items: center; width: 49px; height: 49px; border: 2px dashed var(--paper-light); border-radius: 50%; background: var(--plum); color: var(--paper-light); box-shadow: 0 0 0 2px var(--plum); font-size: 1.65rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 9px 30px; }
.site-nav a { position: relative; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.site-nav a::after { position: absolute; right: 0; bottom: 7px; left: 0; height: 2px; background: var(--coral); content: ""; transform: scaleX(0); transform-origin: left; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.eyebrow { margin-bottom: 19px; color: var(--plum); font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { margin-right: 10px; color: var(--coral); content: "✳"; }
.lead { color: var(--muted); font-size: 20px; line-height: 1.55; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 26px; margin-top: 34px; }
.button-link { min-height: 50px; padding: 13px 24px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--plum); border-radius: 9px; background: var(--plum); color: var(--paper-light); font-size: 13px; font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.button-link:hover { border-color: var(--ink); background: var(--ink); }
.text-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; }
.text-link::after { margin-left: 10px; content: "→"; }
.home-hero { width: min(100% - 64px, 1376px); margin: 0 auto; padding: 70px 0 82px; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 24px; align-items: center; }
.hero-copy { grid-column: 1 / span 11; padding: 24px 0; }
.hero-copy .lead { max-width: 590px; }
.hero-art { position: relative; grid-column: 13 / span 12; margin: 0; transform: rotate(1.2deg); }
.hero-art img { width: 100%; border: 2px solid var(--ink); border-radius: 26px; }
.hero-art figcaption { margin: 16px 8px 0; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.hero-art figcaption span { color: var(--plum); font-weight: 700; text-transform: uppercase; }
.hero-notes { margin: 38px 0 0; padding: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; border-top: 1px dashed var(--line); list-style: none; color: var(--muted); font-size: 13px; }
.hero-notes li::before { margin-right: 8px; color: var(--sage); content: "●"; }
.swatch-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.swatch { min-height: 90px; padding: 18px clamp(16px, 3vw, 46px); display: flex; align-items: flex-end; border-right: 2px solid var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.swatch:last-child { border-right: 0; }
.swatch.plum { background: var(--plum); color: var(--paper-light); }
.swatch.wool { background: repeating-linear-gradient(8deg, #E5D6BC 0 3px, #DCC9AA 3px 5px); color: var(--ink); }
.swatch.sage { background: repeating-linear-gradient(90deg, #87977A 0 2px, #91A184 2px 6px); color: var(--ink); }
.swatch.coral { background: repeating-linear-gradient(-35deg, #D96C57 0 8px, #D47762 8px 10px); color: var(--ink); }
.home-section { padding: 88px max(32px, calc((100vw - 1312px) / 2)); }
.section-heading { max-width: 1312px; margin: 0 auto 44px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 50px; align-items: end; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading > p { padding-bottom: 7px; color: var(--muted); }
.category-grid { max-width: 1312px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.category-card { position: relative; min-width: 0; padding: 13px 13px 24px; border: 2px solid var(--ink); border-radius: 18px; background: var(--paper-light); color: var(--ink); text-decoration: none; }
.category-card:nth-child(even) { transform: translateY(16px); }
.category-card img { width: 100%; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 12px; }
.category-card .card-number { color: var(--plum); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.category-card h3 { margin: 12px 0 8px; }
.category-card p { min-height: 72px; margin-bottom: 19px; color: var(--muted); font-size: 14px; }
.card-link { padding-bottom: 3px; border-bottom: 2px solid var(--coral); font-size: 13px; font-weight: 700; }
.category-card:hover { box-shadow: 7px 7px 0 var(--sage); transform: translate(-2px, -2px); }
.category-card:nth-child(even):hover { transform: translate(-2px, 14px); }
.ledger-preview { padding: 94px max(32px, calc((100vw - 1240px) / 2)); display: grid; grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr); gap: 76px; align-items: center; background: var(--plum); color: var(--paper-light); }
.ledger-intro .eyebrow { color: var(--paper-light); }
.ledger-intro h2 { font-size: clamp(2.7rem, 4.2vw, 4.2rem); }
.ledger-intro p:not(.eyebrow) { color: #F0DFF0; }
.ledger-intro .button-link { margin-top: 17px; border-color: var(--paper-light); background: var(--paper-light); color: var(--plum); }
.ledger-book { padding: 18px 28px; border: 2px solid var(--ink); border-radius: 9px; background: var(--paper-light); color: var(--ink); box-shadow: 12px 12px 0 #4E2948; transform: rotate(-1deg); }
.ledger-line { padding: 22px 0; display: grid; grid-template-columns: 74px 1fr auto; gap: 17px; align-items: center; border-bottom: 1px solid var(--line); }
.ledger-line time { color: var(--plum); font-family: var(--display); font-size: 23px; }
.ledger-line strong, .ledger-line span { display: block; }
.ledger-line strong { font-family: var(--display); font-size: 21px; font-weight: 400; }
.ledger-line div span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.ledger-line > span { color: var(--plum); font-size: 13px; font-weight: 700; }
.ledger-note { margin: 18px 0 3px; color: var(--muted); font-size: 12px; }
.mending-note { padding: 94px 32px 102px; text-align: center; }
.mending-note h2 { margin-bottom: 24px; }
.mending-note > p:last-child { max-width: 660px; margin: 0 auto; color: var(--muted); }
.page-intro { padding: 70px max(32px, calc((100vw - 1312px) / 2)) 54px; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); gap: 60px; align-items: end; }
.page-intro h1 { margin-bottom: 0; font-size: clamp(3.5rem, 5.8vw, 6rem); }
.intro-copy { padding-bottom: 8px; }
.intro-copy p { margin-bottom: 17px; }
.intro-copy .lead { font-size: 18px; }
.sample-note { padding-left: 16px; border-left: 3px solid var(--coral); color: var(--muted); font-size: 13px; }
.supply-section, .workshop-section { padding: 0 max(32px, calc((100vw - 1312px) / 2)) 100px; }
.shelf-label { margin-bottom: 26px; padding: 12px 0; display: flex; justify-content: space-between; gap: 20px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product-list .list-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px 22px; }
.product-list-item { min-width: 0; }
.product-list-item-link { text-decoration: none; }
.product-list-item-link > span { display: block; font: 400 1.45rem/1.2 var(--display); }
.product-price { color: var(--muted); font-size: 15px; }
.workshop-section { max-width: 1376px; margin: 0 auto; }
.custom-table-block { font-family: var(--body); }
.ledger-foot { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.ledger-foot p { max-width: 620px; margin: 0; color: var(--muted); font-size: 14px; }
.site-footer { padding: 58px max(32px, calc((100vw - 1312px) / 2)) 30px; display: grid; grid-template-columns: 1fr .65fr 1.2fr; gap: 40px; align-items: start; border-top: 2px solid var(--ink); background: var(--ink); color: var(--paper-light); }
.footer-brand { color: var(--paper-light); font: 400 clamp(3rem, 5vw, 5rem)/1 var(--display); text-decoration: none; }
.site-footer nav { display: grid; gap: 10px; }
.site-footer nav a { min-height: 34px; display: inline-flex; align-items: center; color: var(--paper-light); }
.site-footer p { margin: 0; color: #E7DCE4; font-size: 14px; }
.site-footer .footer-small { grid-column: 1 / -1; margin-top: 20px; padding-top: 20px; border-top: 1px solid #897887; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a:focus-visible { outline-color: var(--coral); }
.custom-filter-container { --cf-border: #6E3A62; --cf-active-bg: #6E3A62; --cf-active-fg: #FFFBF4; --cf-focus: #D96C57; --cf-list-bg: #FFFBF4; --cf-list-fg: #44213D; --cf-panel-bg: #F8F0E4; --cf-panel-fg: #44213D; }
.custom-table-block { --ct-border: #A99383; --ct-focus: #D96C57; --ct-stripe: #F1E5D4; }
@media (min-width: 768px) and (max-width: 1100px) {
  .site-header, .home-hero { width: calc(100% - 48px); }
  .home-hero { gap: 18px; padding-top: 52px; }
  .hero-copy { grid-column: 1 / span 12; }
  .hero-art { grid-column: 13 / span 12; }
  .hero-copy .lead { font-size: 18px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .category-card:nth-child(even) { transform: none; }
  .category-card:nth-child(even):hover { transform: translate(-2px, -2px); }
  .category-card p { min-height: 0; }
  .ledger-preview { gap: 42px; }
  .product-list .list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 18px; }
  .page-intro { gap: 36px; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(3.15rem, 15vw, 4.4rem); }
  h2 { font-size: 2.75rem; }
  .demo-ribbon { padding: 8px 14px; font-size: 10px; }
  .site-header { width: calc(100% - 32px); min-height: 124px; padding: 16px 0 12px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .brand { font-size: 1.8rem; }
  .brand-stitch { width: 43px; height: 43px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 8px 14px; }
  .site-nav a { font-size: 11px; }
  .home-hero { width: calc(100% - 32px); padding: 44px 0 58px; display: flex; flex-direction: column; gap: 36px; }
  .hero-copy { width: 100%; padding: 0; }
  .hero-copy .lead { font-size: 18px; }
  .hero-art { width: 100%; }
  .hero-art figcaption { align-items: flex-start; flex-direction: column; gap: 4px; }
  .button-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .button-link { width: 100%; }
  .hero-notes { display: grid; gap: 8px; }
  .swatch-strip { grid-template-columns: repeat(2, 1fr); }
  .swatch { min-height: 70px; }
  .swatch:nth-child(2) { border-right: 0; }
  .swatch:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
  .home-section { padding: 58px 16px 68px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading h2 { margin-bottom: 20px; }
  .category-grid { grid-template-columns: 1fr; gap: 22px; }
  .category-card:nth-child(even) { transform: none; }
  .category-card:nth-child(even):hover { transform: translate(-2px, -2px); }
  .category-card p { min-height: 0; }
  .ledger-preview { padding: 62px 20px 70px; grid-template-columns: 1fr; gap: 42px; }
  .ledger-book { padding: 14px 18px; box-shadow: 7px 7px 0 #4E2948; }
  .ledger-line { grid-template-columns: 62px 1fr; gap: 12px; }
  .ledger-line > span { grid-column: 2; }
  .mending-note { padding: 68px 20px 76px; }
  .page-intro { padding: 46px 20px 36px; display: block; }
  .page-intro h1 { margin-bottom: 30px; }
  .intro-copy .lead { font-size: 17px; }
  .supply-section, .workshop-section { padding: 0 16px 70px; }
  .shelf-label { align-items: flex-start; flex-direction: column; gap: 4px; }
  .product-list .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .product-list-item-link > span { font-size: 1.18rem; }
  .product-price { font-size: 13px; }
  .ledger-foot { align-items: flex-start; flex-direction: column; }
  .site-footer { padding: 48px 20px 26px; grid-template-columns: 1fr; gap: 28px; }
  .site-footer .footer-small { margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
