:root {
  --ink: #1e201c;
  --paper: #f4efe4;
  --paper-deep: #e7ddca;
  --copper: #b14b2d;
  --copper-dark: #7c2e1b;
  --pine: #25463b;
  --acid: #d9ef78;
  --line: rgba(30, 32, 28, 0.18);
  --display: "Rockwell", "Roboto Slab", "Courier New", serif;
  --body: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(177, 75, 45, 0.2), transparent 28rem),
    linear-gradient(135deg, var(--paper) 0%, #f8f5ec 48%, var(--paper-deep) 100%);
  font-family: var(--body);
  min-height: 100vh;
}

a { color: inherit; }

button, select { font: inherit; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.store-header,
.store-footer,
main {
  width: min(1420px, calc(100% - 48px));
  margin-inline: auto;
}

.store-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.wordmark-seal {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 900;
  transform: rotate(-4deg);
}

.wordmark-seal span,
.hero-object span { color: var(--copper); }

.wordmark strong,
.wordmark small { display: block; }

.wordmark strong {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wordmark small {
  margin-top: 2px;
  color: rgba(30, 32, 28, 0.68);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.store-header nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.store-header nav a,
.footer-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.store-header nav a:hover,
.store-header nav a[aria-current="page"] { color: var(--copper-dark); }

.cart-toggle,
.cart-close {
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
}

.cart-toggle span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-left: 6px;
  color: var(--paper);
  background: var(--ink);
  font-size: 0.74rem;
}

.home-hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(48px, 8vw, 140px);
  padding: 80px 4vw 96px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--copper-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 0.98;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(4rem, 7.5vw, 7.4rem);
  letter-spacing: -0.07em;
}

h1 em {
  color: var(--copper);
  font-style: italic;
  font-weight: 500;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.2vw, 4.6rem);
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.4vw, 2.4rem);
  letter-spacing: -0.03em;
}

.hero-lead,
.shop-hero > p {
  max-width: 660px;
  margin-bottom: 34px;
  font-size: clamp(1.08rem, 1.6vw, 1.38rem);
  line-height: 1.55;
}

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 20px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 rgba(30, 32, 28, 0.2);
}

.button-primary { color: var(--paper); background: var(--copper-dark); }
.button-secondary { border-color: var(--ink); background: transparent; }
.button-dark { color: var(--paper); background: var(--ink); }
.button-light { color: var(--ink); background: var(--acid); }
.button:disabled { cursor: not-allowed; opacity: 0.58; }

.hero-object {
  position: relative;
  aspect-ratio: 0.82;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 48% 52% 45% 55%;
  color: var(--paper);
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, 0.03) 14px 15px),
    var(--pine);
  box-shadow: 22px 24px 0 var(--copper), -12px -12px 0 var(--acid);
  transform: rotate(2deg);
}

.hero-object strong {
  font-family: var(--display);
  font-size: clamp(5rem, 11vw, 10rem);
  letter-spacing: -0.09em;
}

.hero-object small {
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.object-stitch {
  position: absolute;
  top: 32px;
  left: 50%;
  color: var(--acid) !important;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.home-categories {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.section-heading { max-width: 760px; margin-bottom: 48px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.category-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 34px;
  border: 1px solid var(--ink);
}

.category-card p { line-height: 1.6; }
.category-card > a { font-weight: 900; text-decoration: none; }
.category-card > a:hover { text-decoration: underline; }
.category-print { color: var(--paper); background: var(--copper-dark); }
.category-print .kicker { color: var(--acid); }
.category-prompt { background: var(--acid); }
.category-operations { background: rgba(255, 255, 255, 0.42); }
.card-number { font-family: var(--display); font-size: 0.88rem; font-weight: 900; }

.principles-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--ink);
}

.principles-strip span {
  padding: 24px;
  text-align: center;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
}

.principles-strip span + span { border-left: 1px solid var(--ink); }

.store-footer {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.store-footer strong { font-family: var(--display); text-transform: uppercase; }
.store-footer p { margin: 6px 0 0; color: rgba(30, 32, 28, 0.65); font-size: 0.82rem; }

@media (max-width: 1050px) {
  .store-header nav { display: none; }
  .home-hero { grid-template-columns: 1fr 0.7fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card:last-child { grid-column: 1 / -1; min-height: 300px; }
}

@media (max-width: 720px) {
  .store-header, .store-footer, main { width: min(100% - 28px, 1420px); }
  .store-header { min-height: 78px; }
  .wordmark-seal { width: 44px; height: 44px; }
  .wordmark small { display: none; }
  .home-hero { grid-template-columns: 1fr; min-height: auto; padding: 62px 0 80px; }
  .hero-object { width: min(82vw, 420px); margin: 10px auto 0; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card, .category-card:last-child { grid-column: auto; min-height: 360px; padding: 26px; }
  .principles-strip { grid-template-columns: 1fr 1fr; }
  .principles-strip span + span { border-left: 0; }
  .principles-strip span:nth-child(even) { border-left: 1px solid var(--ink); }
  .principles-strip span:nth-child(n + 3) { border-top: 1px solid var(--ink); }
  .store-footer { align-items: flex-start; flex-direction: column; padding: 36px 0; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
