:root {
  color-scheme: light;
  --paper: #f8f7ef;
  --canvas: #efeee3;
  --ink: #22271b;
  --muted: #585c4c;
  --line: #d7d8c7;
  --olive: #293020;
  --lime: #d8f466;
  --white: #fffef8;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; }
p, ul, ol, dl, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -.055em; font-family: var(--display); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.8vw, 3.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.55rem); }
:focus-visible { outline: 3px solid #59721d; outline-offset: 4px; }
.skip { position: absolute; transform: translateY(-200%); padding: .8rem 1rem; z-index: 10; background: var(--lime); }
.skip:focus { transform: translateY(0); }
.wrap { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.section { padding-block: clamp(2.55rem, 6vw, 5.25rem); }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: end; gap: 1rem; justify-content: space-between; margin-bottom: 1.5rem; }
.eyebrow { font: 700 .71rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .10em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 48px; max-width: 100%; padding: .65rem 1rem; border: 1px solid var(--ink); border-radius: 4px; background: var(--lime); color: var(--ink); font: 750 .9rem/1.2 var(--body); text-decoration: none; cursor: pointer; }
.button:hover { background: #c2e24c; }
.button.secondary, .button.nav-cta { background: transparent; }
.button.secondary:hover, .button.nav-cta:hover { background: var(--canvas); }
.button-row { display: flex; flex-wrap: wrap; gap: .65rem; }
.text-link { display: inline-flex; align-items: baseline; gap: .45rem; font-size: .88rem; font-weight: 750; text-decoration: underline; text-decoration-color: #adb095; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: currentColor; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 73px; display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.wordmark { display: inline-flex; align-items: center; gap: .48rem; font: 850 .96rem/1 var(--body); letter-spacing: -.05em; text-decoration: none; }
.wordmark-end { color: var(--muted); }
.index-mark { display: grid; flex: none; grid-template-columns: 1fr 1fr; gap: 2px; width: 25px; height: 25px; padding: 5px; border-radius: 3px; background: var(--ink); }
.index-mark i { background: var(--lime); border-radius: 1px; }
.index-mark i:last-child { opacity: .48; }
.header-inner nav, .footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem clamp(.8rem, 2vw, 1.7rem); justify-content: center; }
.header-inner nav a, .footer nav a { text-decoration: none; font-size: .86rem; font-weight: 650; }
.header-inner nav a:hover, .footer nav a:hover, .header-inner nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { min-height: 40px; white-space: nowrap; }

.hero { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(1.4rem, 4.5vw, 4.5rem); padding-block: clamp(1.8rem, 4vw, 3.5rem); }
.hero-copy .eyebrow { display: flex; align-items: center; gap: .6rem; }
.signal { width: 9px; height: 9px; border: 1px solid #4b5e21; background: var(--lime); border-radius: 50%; }
.hero h1 { font-size: clamp(3.25rem, 6.1vw, 6.6rem); letter-spacing: -.075em; line-height: .88; margin: .33em 0 .24em; }
.hero-dot { color: #819533; }
.hero-description { max-width: 32rem; margin-bottom: 1.5rem; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.55; }
.hero-photo { overflow: hidden; background: #a69b72; border-radius: 3px; aspect-ratio: 1.2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.shortcut-bar { border-block: 1px solid var(--line); background: var(--canvas); }
.shortcut-bar nav { display: flex; overflow-x: auto; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; justify-content: space-between; padding: .95rem 0; }
.shortcut-bar a { font-size: .85rem; font-weight: 750; white-space: nowrap; text-decoration: none; }
.shortcut-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }

.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; }
.category-card, .guide-grid a, .journal-grid a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: 5px; background: var(--white); text-decoration: none; overflow: hidden; }
.category-card:hover, .guide-grid a:hover, .journal-grid a:hover { border-color: #6d7757; box-shadow: 0 0 0 1px #6d7757; }
.category-photo { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; background: #d1ceba; }
.category-photo::before { content: ''; position: absolute; inset-inline: 0; top: 50%; aspect-ratio: 1; transform: translateY(-50%); background: url('/assets/categories.jpg') var(--photo-position, 0 0) / 300% 200% no-repeat; }
.art-layers { --photo-position: 50% 0; }
.art-tees { --photo-position: 100% 0; }
.art-outerwear { --photo-position: 0 100%; }
.art-denim { --photo-position: 50% 100%; }
.art-carry { --photo-position: 100% 100%; }
.category-card-copy { display: flex; align-items: start; justify-content: space-between; gap: .45rem; padding: .83rem .75rem .95rem; }
.category-card-copy h3 { font-size: 1rem; letter-spacing: -.035em; }
.category-card-copy p { color: var(--muted); font-size: .76rem; margin-top: .35rem; line-height: 1.35; }
.category-card-copy > span { line-height: 1; font-size: 1.05rem; }

.more-categories { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; margin-top: 1rem; }
.sources li + li { margin-top: .4rem; }

.cost-band { background: var(--olive); color: var(--paper); }
.cost-inner { display: grid; grid-template-columns: 1fr .82fr; gap: clamp(1.5rem, 6vw, 6rem); align-items: center; padding-block: clamp(2.55rem, 6vw, 4.6rem); }
.cost-inner .eyebrow { color: var(--lime); }
.cost-inner h2 { margin: .4rem 0 .75rem; max-width: 12ch; }
.cost-inner p:not(.eyebrow) { max-width: 36ch; color: #e2e2d0; margin-bottom: 1.1rem; }
.receipt { border: 1px solid #647057; border-radius: 4px; padding: clamp(1rem, 3vw, 2rem); background: #343d2a; }
.receipt dl { margin-top: .65rem; }
.receipt dl > div { display: flex; gap: .4rem; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #637056; padding: .55rem 0; }
.receipt dl > div:last-child { border: 0; padding-bottom: 0; font-weight: 800; }
.receipt dd { margin: 0; white-space: nowrap; font: 650 clamp(.8rem, 1.4vw, 1rem)/1.3 ui-monospace, monospace; }
.receipt dl > div:last-child dd { color: var(--lime); }
.guide-grid, .journal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.guide-grid a { flex-direction: row; justify-content: space-between; gap: .8rem; padding: 1.05rem 1.15rem; }
.guide-grid a > span, .journal-copy > span { font-size: 1.2rem; font-weight: 700; }
.guide-grid a:hover > span, .journal-grid a:hover .journal-copy > span { color: #52671c; }
.guide-grid .eyebrow, .journal-copy .eyebrow { color: #576331; margin-bottom: .5rem; }
.guide-grid h3 + p, .journal-copy h3 + p { color: var(--muted); margin-top: .55rem; font-size: .91rem; }
.journal-band { background: var(--canvas); }
.journal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.journal-grid .category-photo { aspect-ratio: 1.35; }
.journal-copy { padding: 1rem 1.15rem 1.25rem; }
.journal-copy > span { display: block; margin-top: .65rem; }

.shop-band { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--canvas); border: 1px solid var(--line); padding: clamp(1.1rem, 4vw, 2.6rem); border-radius: 5px; }
.shop-band h2 { font-size: clamp(1.45rem, 3.4vw, 2.4rem); }
.shop-band p { color: var(--muted); margin-top: .45rem; }
.shop-band .button { flex-shrink: 0; }
.footer { border-top: 1px solid var(--line); background: var(--canvas); }
.footer-inner { display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: start; gap: 1rem; padding-block: 2.25rem; }
.footer p { margin-top: .6rem; color: var(--muted); font-size: .84rem; max-width: 30ch; }
.footer .text-link { white-space: nowrap; }

.intro { background: var(--canvas); border-bottom: 1px solid var(--line); padding-block: clamp(2rem, 6vw, 4.5rem); }
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; font-size: .85rem; color: var(--muted); }
.crumbs a { text-underline-offset: 3px; }
.intro h1 { margin: .3em 0 .24em; max-width: 22ch; font-size: clamp(2.25rem, 5vw, 4.9rem); overflow-wrap: anywhere; }
.intro p { max-width: 65ch; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.18rem); }
.reading { max-width: 750px; }
.reading-layout, .category-detail { display: grid; grid-template-columns: minmax(175px, .35fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); }
.category-detail { grid-template-columns: minmax(0, 1fr) minmax(0, .6fr); }
.category-detail .category-photo { border-radius: 4px; }
.reading-layout aside { align-self: start; position: sticky; top: 1.5rem; padding: .9rem 1.15rem; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.reading-layout aside h2 { font-size: 1rem; letter-spacing: -.025em; }
.reading-layout aside ol { padding-left: 1.2rem; margin-top: .55rem; }
.reading-layout aside li { font-size: .86rem; margin-bottom: .45rem; }
.prose { font-size: 1.05rem; }
.prose h2 { font-size: clamp(1.38rem, 3vw, 2rem); line-height: 1.12; margin: 0 0 .55rem; }
.prose p { max-width: 66ch; margin-bottom: .9rem; }
.prose section { scroll-margin-top: 1.4rem; margin-bottom: 1.6rem; }
.prose .lead { font-size: 1.16rem; margin-bottom: 1.65rem; }
.prose > p + h2 { margin-top: 1.5rem; }
.inline-links { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: .95rem 0; }
.faq summary { cursor: pointer; font-weight: 750; }
.faq details p { margin: .65rem 0 0 1rem; color: var(--muted); }

.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: start; gap: clamp(1.5rem, 4vw, 4rem); }
.calculator { border: 1px solid var(--line); background: var(--white); border-radius: 5px; overflow: hidden; }
.calculator-inputs, .calculator-result { padding: clamp(1rem, 3vw, 2rem); }
.calculator h2 { font-size: clamp(1.3rem, 2.5vw, 1.85rem); }
#cost-help { margin: .55rem 0 1rem; color: var(--muted); }
.amount-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: .85rem; margin-block: .85rem 1.25rem; }
.calculator label { display: flex; flex-direction: column; gap: .25rem; font-size: .87rem; font-weight: 700; }
.calculator input, .calculator select { border: 1px solid #a5a690; border-radius: 4px; color: var(--ink); font: 550 1rem var(--body); width: 100%; min-width: 0; min-height: 43px; padding: .45rem .6rem; background: var(--paper); }
.calculator input:invalid { border-color: #a93d29; }
.calculator-result { background: var(--olive); color: var(--white); }
.calculator-result output { display: block; color: var(--lime); font: 750 clamp(1.2rem, 3vw, 2.1rem)/1.25 var(--body); margin: .5rem 0 .4rem; overflow-wrap: anywhere; }
.calculator-result p { font-size: .88rem; color: #e2e2d0; }
.calculator noscript p { padding: 1rem; }

@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-card .category-photo { aspect-ratio: 1.45; }
  .footer-inner { grid-template-columns: 1fr 1.1fr; }
  .footer nav { justify-content: flex-start; }
}
@media (max-width: 850px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .6rem 1rem; padding-top: .65rem; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; padding-bottom: .65rem; }
  .nav-cta { grid-column: 2; grid-row: 1; }
}
@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 1.45; }
  .hero h1 { font-size: clamp(2.55rem, 11.25vw, 5.6rem); }
  .calculator-layout { grid-template-columns: 1fr; }
  .reading-layout { grid-template-columns: 1fr; }
  .reading-layout aside { position: static; }
}
@media (max-width: 590px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner nav { column-gap: .8rem; }
  .header-inner nav a { font-size: .79rem; }
  .hero { padding-top: 1.55rem; }
  .hero-photo { aspect-ratio: 1.3; }
  .cost-inner, .guide-grid, .journal-grid, .footer-inner, .category-detail { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-grid .category-photo { aspect-ratio: 1.65; }
  .category-detail .category-photo { max-width: 320px; }
  .section-head { align-items: start; flex-direction: column; gap: .6rem; }
  .shop-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .header-inner { column-gap: .45rem; }
  .header-inner .wordmark { font-size: .82rem; white-space: normal; }
  .nav-cta { padding-inline: .55rem; font-size: .79rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
