@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/BricolageGrotesque-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Karla";
  src: url("assets/fonts/Karla-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --mat: #0d6b66;
  --mat-deep: #084d49;
  --mat-ink: #04312f;
  --paper: #f5ecd8;
  --paper-light: #fff8e9;
  --ink: #17150f;
  --muted: #625c4e;
  --orange: #ff5b2e;
  --yellow: #f7d842;
  --blue: #2f52e0;
  --pink: #e85d9e;
  --lime: #b4d82e;
  --cream: #fff7e5;
  --font-display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 28px 48px rgba(3, 41, 39, 0.32), 0 4px 0 rgba(3, 41, 39, 0.18);
  --shadow-small: 0 12px 22px rgba(3, 41, 39, 0.24), 0 2px 0 rgba(3, 41, 39, 0.16);
  --max: 1280px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--mat);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--mat);
  background-image:
    linear-gradient(rgba(245, 236, 216, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 236, 216, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(245, 236, 216, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 236, 216, 0.055) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  overflow-x: hidden;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 4;
  width: 20px;
  border-right: 1px solid rgba(245, 236, 216, 0.35);
  background:
    repeating-linear-gradient(to bottom, rgba(245, 236, 216, 0.8) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(to bottom, rgba(245, 236, 216, 0.32) 0 1px, transparent 1px 120px);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  opacity: 0.14;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

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

.brand:focus-visible,
.footer-brand:focus-visible,
.footer-links a:focus-visible,
.toolbelt :focus-visible {
  outline-color: var(--yellow);
}

body.dialog-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 100;
  transform: translate(-50%, -180%);
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease-out;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ——— Top bar ——— */

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 26px clamp(20px, 4.2vw, 64px) 18px;
  color: var(--paper);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  transform: rotate(-7deg);
  box-shadow: 3px 4px 0 rgba(3, 41, 39, 0.35);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  stroke-width: 2.2;
}

.brand-word {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.1vw, 2.7rem);
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: -0.04em;
  line-height: 0.8;
}

.brand-note {
  margin-left: 2px;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 236, 216, 0.95);
}

.topbar-meta {
  margin: 0;
  text-align: right;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar-meta span,
.topbar-meta strong {
  display: block;
}

.topbar-meta span {
  color: rgba(245, 236, 216, 0.92);
}

.topbar-meta strong {
  color: #ffe66d;
  font-weight: 700;
}

/* ——— Hero ——— */

.hero {
  position: relative;
  z-index: 2;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 8px clamp(14px, 4vw, 56px) clamp(46px, 6vw, 84px);
}

.hero-sheet {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.23fr) minmax(290px, 0.77fr);
  gap: clamp(28px, 4.8vw, 70px);
  padding: clamp(26px, 4.4vw, 60px);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(23, 21, 15, 0.075) 0.65px, transparent 0.8px),
    linear-gradient(112deg, transparent 0 48%, rgba(255, 255, 255, 0.2) 48% 49%, transparent 49%);
  background-size: 4px 4px, 100% 100%;
  box-shadow: var(--shadow);
  transform: rotate(-0.72deg);
  border: 1px solid rgba(23, 21, 15, 0.26);
}

.hero-sheet::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(23, 21, 15, 0.18);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 700px;
}

h1 {
  max-width: 10ch;
  margin: 0 0 clamp(20px, 2.4vw, 30px);
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 8.2vw, 6rem);
  font-weight: 800;
  font-stretch: 77%;
  line-height: 0.79;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

.title-line {
  display: block;
}

.title-highlight {
  display: inline-block;
  isolation: isolate;
  position: relative;
  margin-top: 0.08em;
  padding: 0 0.13em 0.07em 0.04em;
  color: var(--ink);
}

.title-highlight::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.08em -0.02em -0.01em 0;
  background: var(--yellow);
  transform: rotate(-1.4deg);
  clip-path: polygon(0 8%, 100% 0, 98% 92%, 2% 100%);
}

.hero-lede {
  max-width: 46ch;
  margin: 0 0 26px;
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
  line-height: 1.55;
  color: #3e392e;
  text-wrap: pretty;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin-bottom: 30px;
  padding: 13px 17px 13px 20px;
  background: var(--orange);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 7px 0 rgba(23, 21, 15, 0.16);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.hero-cta svg {
  width: 20px;
  height: 20px;
  transition: transform 180ms var(--ease);
}

.hero-cta:hover {
  background: var(--yellow);
  transform: translateY(-3px) rotate(-0.4deg);
  box-shadow: 5px 10px 0 rgba(23, 21, 15, 0.14);
}

.hero-cta:hover svg {
  transform: translateX(3px);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px dashed rgba(23, 21, 15, 0.35);
  list-style: none;
}

.hero-facts li {
  display: flex;
  flex-direction: column;
  min-width: 86px;
}

.hero-facts strong {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 800;
  font-stretch: 85%;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-facts span {
  margin-top: 3px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-photo {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-figure {
  position: relative;
  margin: 0;
  padding: 10px 10px 34px;
  background: var(--paper-light);
  border: 1px solid rgba(23, 21, 15, 0.32);
  box-shadow: var(--shadow-small);
  transform: rotate(2.1deg);
}

.hero-figure::before,
.hero-figure::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 72px;
  height: 22px;
  background: rgba(247, 216, 66, 0.76);
  border-left: 1px dashed rgba(23, 21, 15, 0.18);
  border-right: 1px dashed rgba(23, 21, 15, 0.18);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-figure::before {
  top: -8px;
  left: 22px;
  transform: rotate(-7deg);
}

.hero-figure::after {
  right: 12px;
  bottom: 28px;
  transform: rotate(4deg);
}

.hero-figure img {
  display: block;
  width: 100%;
  height: clamp(250px, 34vw, 405px);
  object-fit: cover;
  object-position: 48% 54%;
  filter: saturate(0.82) contrast(1.06);
}

.hero-figure figcaption {
  position: absolute;
  right: 14px;
  bottom: 9px;
  left: 14px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-sticker {
  position: absolute;
  right: -22px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  padding: 12px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 5px 0 rgba(23, 21, 15, 0.18);
  transform: rotate(8deg);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  font-stretch: 84%;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: center;
}

.hero-sticker span:nth-child(2) {
  color: var(--orange);
}

.hero-sticker span:last-child {
  margin-top: 5px;
  font-family: var(--font-body);
  font-size: 0.53rem;
  letter-spacing: 0.12em;
}

.hero-note {
  align-self: flex-end;
  margin: 22px 8px 0 0;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.13em;
  text-align: right;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-cutline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  grid-column: 1 / -1;
  gap: 12px;
  margin-top: 2px;
  padding-top: 18px;
  border-top: 2px dashed rgba(23, 21, 15, 0.33);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-cutline svg {
  width: 24px;
  height: 24px;
  color: var(--ink);
}

.hero-cutline span {
  transform: translateY(1px);
}

.hero-tab {
  position: absolute;
  top: 11%;
  right: -27px;
  z-index: 4;
  padding: 16px 5px;
  background: var(--blue);
  color: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 3px 4px 0 rgba(23, 21, 15, 0.18);
  transform: rotate(90deg);
  transform-origin: center;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ——— Toolbelt ——— */

.toolbelt {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 13px clamp(14px, 4vw, 56px);
  background: rgba(8, 77, 73, 0.97);
  border-top: 1px solid rgba(245, 236, 216, 0.32);
  border-bottom: 2px solid rgba(245, 236, 216, 0.44);
  box-shadow: 0 9px 20px rgba(3, 41, 39, 0.16);
}

.toolbelt-inner {
  display: grid;
  grid-template-columns: minmax(250px, 1.45fr) minmax(185px, 0.65fr) minmax(190px, auto);
  align-items: end;
  gap: 13px;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.field {
  min-width: 0;
}

.field label,
.field-label {
  display: block;
  margin: 0 0 6px;
  color: var(--paper);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
}

.input-shell,
.select-shell {
  position: relative;
}

.field-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  z-index: 2;
  width: 20px;
  height: 20px;
  color: var(--ink);
  transform: translateY(-50%);
  pointer-events: none;
}

.field-search input,
.field-category select {
  display: block;
  width: 100%;
  height: 52px;
  border: 2px solid var(--ink);
  border-radius: 1px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 3px 0 rgba(3, 41, 39, 0.38);
  font-size: 1rem;
  font-weight: 600;
  transition: box-shadow 160ms var(--ease), background 160ms var(--ease);
}

.field-search input {
  padding: 0 16px 0 44px;
}

.field-search input::placeholder {
  color: #6b6557;
  font-weight: 500;
  opacity: 1;
}

.field-search input {
  caret-color: var(--orange);
}

.field-search input:hover,
.field-category select:hover {
  background: var(--paper-light);
}

.field-search input:focus,
.field-category select:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  box-shadow: 0 4px 0 rgba(3, 41, 39, 0.42);
}

.field-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.field-category select {
  appearance: none;
  padding: 0 46px 0 15px;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 15px;
  z-index: 2;
  width: 19px;
  height: 19px;
  color: var(--ink);
  transform: translateY(-50%);
  pointer-events: none;
}

.field-saved {
  min-width: 190px;
}

.saved-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 52px;
  padding: 0 11px 0 14px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 1px;
  box-shadow: 0 3px 0 rgba(3, 41, 39, 0.38);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}

.saved-toggle:hover {
  background: var(--paper-light);
  transform: translateY(-1px);
}

.saved-toggle[aria-pressed="true"] {
  background: var(--pink);
  box-shadow: 0 1px 0 rgba(3, 41, 39, 0.38);
  transform: translateY(2px);
}

.saved-toggle svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.saved-count {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  margin-left: auto;
  padding: 0 7px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  font-size: 0.74rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ——— Workshop table ——— */

.workshops {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(42px, 5.4vw, 76px) clamp(16px, 4vw, 36px) clamp(80px, 10vw, 130px);
  scroll-margin-top: 100px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(270px, 0.62fr);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(30px, 4vw, 48px);
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(245, 236, 216, 0.35);
  color: var(--paper);
}

.section-head h2 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 5.2vw, 4.6rem);
  font-weight: 800;
  font-stretch: 77%;
  line-height: 0.84;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-intro {
  justify-self: end;
  max-width: 40ch;
}

.section-intro p {
  margin: 0 0 13px;
  color: rgba(245, 236, 216, 0.92);
  font-size: 0.98rem;
  line-height: 1.5;
}

.result-summary {
  display: inline-block;
  margin: 0 !important;
  padding: 4px 8px;
  background: var(--yellow);
  color: var(--ink) !important;
  font-size: 0.62rem !important;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

.patterns {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: start;
  gap: clamp(20px, 2.6vw, 34px);
}

.patterns[data-count="1"] .pattern {
  grid-column: 2 / span 10;
}

.patterns[data-count="2"] .pattern {
  grid-column: span 6;
}

.pattern {
  min-width: 0;
  position: relative;
  filter: drop-shadow(0 12px 16px rgba(3, 41, 39, 0.24)) drop-shadow(0 2px 0 rgba(3, 41, 39, 0.13));
  transition: filter 320ms var(--ease);
}

.pattern:hover,
.pattern:focus-within {
  filter: drop-shadow(0 30px 34px rgba(3, 41, 39, 0.36)) drop-shadow(0 4px 0 rgba(3, 41, 39, 0.16));
}

.pattern--wide {
  grid-column: span 7;
}

.pattern--tall {
  grid-column: span 5;
}

.pattern--half {
  grid-column: span 6;
}

.pattern-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100%;
  overflow: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 21, 15, 0.07) 0.65px, transparent 0.8px);
  background-size: 4px 4px;
  border: 1px solid rgba(23, 21, 15, 0.32);
  clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 0 100%);
  transform: rotate(var(--rot, 0deg));
  transition: transform 320ms var(--ease);
  will-change: transform;
}


.pattern--wide .pattern-inner {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.pattern-inner:hover,
.pattern-inner:focus-within {
  transform: rotate(0deg) translateY(-7px);
}

.pattern-media {
  position: relative;
  min-width: 0;
  min-height: 250px;
  overflow: hidden;
  background: var(--mat-deep);
}

.pattern--wide .pattern-media {
  min-height: 100%;
}

.pattern-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 700ms var(--ease);
}

.pattern-inner:hover .pattern-media img {
  transform: scale(1.035);
}

.pattern-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(23, 21, 15, 0.5), transparent 34%);
  pointer-events: none;
}

.tape {
  position: absolute;
  z-index: 3;
  width: 72px;
  height: 21px;
  background: rgba(247, 216, 66, 0.78);
  border-left: 1px dashed rgba(23, 21, 15, 0.18);
  border-right: 1px dashed rgba(23, 21, 15, 0.18);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.tape-a {
  top: 8px;
  left: -15px;
  transform: rotate(-36deg);
}

.tape-b {
  right: -14px;
  bottom: 36px;
  transform: rotate(-34deg);
}

.date-stamp {
  position: absolute;
  bottom: 13px;
  left: 13px;
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 9px 6px;
  background: var(--paper-light);
  border: 2px solid var(--ink);
  box-shadow: 3px 4px 0 rgba(23, 21, 15, 0.2);
  transform: rotate(-2.4deg);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.date-stamp .day {
  font-size: 2.15rem;
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.72;
  letter-spacing: -0.04em;
}

.date-stamp .month {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.saved-flag {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 5px;
  background: var(--pink);
  border: 1.5px solid var(--ink);
  transform: rotate(2deg);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}

.saved-flag svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.pattern-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(19px, 2.3vw, 30px);
}

.pattern-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.piece-no {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--muted);
}

.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 8px;
  background: var(--cat, var(--yellow));
  color: var(--cat-ink, var(--ink));
  border: 1.5px solid var(--ink);
  transform: rotate(-1.4deg);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
}

.pattern-date {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin: 0;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
}

.pattern-date span {
  color: var(--ink);
}

.pattern-copy h3 {
  max-width: 14ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.1vw, 2.95rem);
  font-weight: 800;
  font-stretch: 82%;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.pattern-desc {
  max-width: 36ch;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.48;
  color: #4d483c;
  text-wrap: pretty;
}

.pattern-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 13px;
  width: 100%;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px dashed rgba(23, 21, 15, 0.32);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
}

.pattern-meta .price {
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  font-stretch: 84%;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.open-pattern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  padding: 6px 0;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 2px solid var(--ink);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.1;
  text-transform: uppercase;
  transition: background 160ms var(--ease), padding 160ms var(--ease);
}

.open-pattern svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.open-pattern .open-arrow {
  width: 14px;
  height: 14px;
  margin-left: 2px;
  transition: transform 160ms var(--ease);
}

.open-pattern:hover {
  padding-right: 8px;
  padding-left: 8px;
  background: var(--yellow);
}

.open-pattern:hover .open-arrow {
  transform: translate(2px, -2px);
}

.pattern[data-saved="true"] .pattern-inner {
  outline: 2px dashed var(--orange);
  outline-offset: -8px;
}

.noscript-note {
  max-width: 55ch;
  margin: 0 0 24px;
  padding: 14px 16px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 700;
}

.loading-note {
  grid-column: 1 / -1;
  margin: 40px 0;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ——— Empty state ——— */

.empty-state {
  position: relative;
  max-width: 660px;
  margin: 28px auto 0;
  padding: clamp(30px, 5vw, 52px);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 21, 15, 0.08) 0.7px, transparent 0.85px);
  background-size: 4px 4px;
  border: 2px dashed var(--ink);
  box-shadow: var(--shadow-small);
  text-align: center;
  transform: rotate(-0.8deg);
}

.empty-scissors {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  transform: rotate(-7deg);
}

.empty-scissors svg {
  width: 38px;
  height: 38px;
}

.empty-state h3 {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.empty-state p {
  max-width: 44ch;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 0.97rem;
}

.reset-button {
  min-height: 44px;
  padding: 13px 18px;
  background: var(--orange);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 6px 0 rgba(23, 21, 15, 0.17);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.reset-button:hover {
  background: var(--yellow);
  transform: translateY(-2px);
  box-shadow: 4px 8px 0 rgba(23, 21, 15, 0.14);
}

/* ——— Detail dialog ——— */

.detail-dialog {
  width: min(1120px, calc(100vw - 40px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.detail-dialog::backdrop {
  background: rgba(3, 38, 36, 0.79);
  backdrop-filter: blur(5px) saturate(0.8);
}

.pattern-sheet {
  position: relative;
  max-height: min(91vh, 1000px);
  overflow: auto;
  overscroll-behavior: contain;
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(23, 21, 15, 0.07) 0.65px, transparent 0.8px),
    linear-gradient(112deg, transparent 0 50%, rgba(255, 255, 255, 0.17) 50% 51%, transparent 51%);
  background-size: 4px 4px, 100% 100%;
  border: 1px solid rgba(23, 21, 15, 0.35);
  box-shadow: 0 48px 90px rgba(0, 0, 0, 0.45);
  scrollbar-color: var(--ink) #e4d8be;
  transform-origin: 50% 0;
}

.detail-dialog[open] .pattern-sheet {
  animation: unfold 380ms var(--ease) both;
}

@keyframes unfold {
  from {
    opacity: 1;
    transform: translateY(26px) scaleY(0.965) rotate(-0.5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1) rotate(0);
  }
}

.pattern-sheet::-webkit-scrollbar {
  width: 14px;
}

.pattern-sheet::-webkit-scrollbar-track {
  background: #e4d8be;
}

.pattern-sheet::-webkit-scrollbar-thumb {
  background: var(--ink);
  border: 4px solid #e4d8be;
}

.sheet-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 3vw, 30px);
  background: rgba(245, 236, 216, 0.97);
  border-bottom: 1px dashed rgba(23, 21, 15, 0.4);
  backdrop-filter: blur(4px);
}

.sheet-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.17rem;
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -0.035em;
  line-height: 1;
}

.sheet-brand small {
  overflow: hidden;
  margin-left: 3px;
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}

.sheet-brand-mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  transform: rotate(-5deg);
  font-size: 1.1rem;
}

.close-detail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 10px 8px 8px;
  min-height: 40px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  cursor: pointer;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.close-detail:hover {
  background: var(--orange);
  color: var(--ink);
}

.close-detail svg {
  width: 19px;
  height: 19px;
}

.close-detail kbd {
  display: inline-block;
  margin-left: 2px;
  padding: 3px 5px;
  background: rgba(245, 236, 216, 0.17);
  border: 1px solid rgba(245, 236, 216, 0.4);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.close-detail:hover kbd {
  background: rgba(23, 21, 15, 0.1);
  border-color: rgba(23, 21, 15, 0.35);
}

.sheet-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(25px, 4vw, 54px);
  padding: clamp(20px, 3.6vw, 44px);
}

.sheet-photo {
  position: sticky;
  top: 78px;
  align-self: start;
  min-width: 0;
}

.sheet-figure {
  position: relative;
  margin: 0;
  padding: 10px 10px 34px;
  background: var(--paper-light);
  border: 1px solid rgba(23, 21, 15, 0.3);
  box-shadow: var(--shadow-small);
  transform: rotate(-1.3deg);
}

.sheet-figure::before,
.sheet-figure::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 84px;
  height: 23px;
  background: rgba(247, 216, 66, 0.78);
  border-left: 1px dashed rgba(23, 21, 15, 0.18);
  border-right: 1px dashed rgba(23, 21, 15, 0.18);
  mix-blend-mode: multiply;
}

.sheet-figure::before {
  top: -9px;
  left: 25px;
  transform: rotate(-8deg);
}

.sheet-figure::after {
  right: 12px;
  bottom: 28px;
  transform: rotate(5deg);
}

.sheet-figure img {
  display: block;
  width: 100%;
  height: clamp(280px, 44vw, 490px);
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
}

.sheet-figure figcaption {
  position: absolute;
  right: 14px;
  bottom: 9px;
  left: 14px;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--muted);
}

.sheet-stamp {
  position: absolute;
  right: -18px;
  bottom: 28px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 102px;
  height: 102px;
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 5px 0 rgba(23, 21, 15, 0.18);
  transform: rotate(-9deg);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  font-stretch: 82%;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-align: center;
  text-transform: uppercase;
}

.sheet-grain {
  display: block;
  margin: 22px 0 0 8px;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}

.sheet-grain::before {
  content: "↕";
  display: inline-block;
  margin-right: 6px;
  color: var(--ink);
}

.sheet-cat {
  display: inline-block;
  margin: 0 0 15px;
  padding: 5px 9px;
  background: var(--cat, var(--yellow));
  color: var(--cat-ink, var(--ink));
  border: 1.5px solid var(--ink);
  transform: rotate(-1.2deg);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.sheet-copy h2 {
  max-width: 13ch;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 5vw, 4.2rem);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.sheet-date {
  margin: 0 0 21px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.sheet-body {
  max-width: 58ch;
  margin: 0 0 24px;
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  line-height: 1.58;
  color: #38342b;
  text-wrap: pretty;
}

.sheet-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 26px;
  padding: 1px;
  background: rgba(23, 21, 15, 0.32);
  border: 1px solid rgba(23, 21, 15, 0.32);
}

.fact {
  min-width: 0;
  padding: 11px 12px 12px;
  background: var(--paper);
}

.fact dt {
  margin: 0 0 4px;
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--muted);
}

.fact dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 17px;
  padding-top: 4px;
}

.save-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 13px 17px 13px 14px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 6px 0 rgba(23, 21, 15, 0.17);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}

.save-item svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}

.save-item:hover {
  background: var(--paper-light);
  transform: translateY(-2px);
  box-shadow: 4px 8px 0 rgba(23, 21, 15, 0.14);
}

.save-item[aria-pressed="true"] {
  background: var(--pink);
  box-shadow: 2px 3px 0 rgba(23, 21, 15, 0.17);
  transform: translateY(2px);
}

.save-item[aria-pressed="true"] svg {
  fill: currentColor;
}

.save-item.just-pinned svg {
  animation: pin-pop 420ms var(--ease);
}

@keyframes pin-pop {
  0% { transform: scale(1) rotate(0); }
  35% { transform: scale(1.32) rotate(-9deg); }
  70% { transform: scale(0.92) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}

.save-note {
  flex: 1 1 190px;
  max-width: 31ch;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}

.sheet-fineprint {
  margin: 26px 0 0;
  padding-top: 13px;
  border-top: 1px dashed rgba(23, 21, 15, 0.3);
  font-size: 0.62rem;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.sheet-cutline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px clamp(20px, 3.6vw, 44px) 24px;
  border-top: 2px dashed rgba(23, 21, 15, 0.3);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}

.sheet-notch {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(to right, rgba(23, 21, 15, 0.35) 0 5px, transparent 5px 10px);
}

/* ——— Footer ——— */

.site-footer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 0 clamp(16px, 4vw, 56px);
  background: var(--mat-deep);
  border-top: 1px solid rgba(245, 236, 216, 0.35);
  color: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px 40px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 36px 0 28px;
}

.footer-brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.footer-brand span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0;
}

.footer-disclaimer {
  max-width: 65ch;
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(245, 236, 216, 0.72);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
  color: rgba(245, 236, 216, 0.7);
}

.footer-links a {
  color: var(--yellow);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

.footer-big {
  margin: 0 0 -0.15em;
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 13rem);
  font-weight: 800;
  font-stretch: 76%;
  line-height: 0.72;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(245, 236, 216, 0.16);
  transform: translateX(-0.02em);
}

/* ——— Responsive ——— */

@media (max-width: 1050px) {
  .hero-sheet {
    grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
    gap: 34px;
  }

  .hero-sticker {
    right: -10px;
    width: 94px;
    height: 94px;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .section-intro {
    justify-self: start;
    max-width: 52ch;
  }

  .sheet-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 30px;
  }
}

@media (max-width: 850px) {
  .hero-sheet {
    grid-template-columns: 1fr;
    gap: 28px;
    transform: rotate(-0.35deg);
  }

  .hero-photo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px;
    align-items: end;
    gap: 18px;
  }

  .hero-figure {
    transform: rotate(1.2deg);
  }

  .hero-figure img {
    height: clamp(220px, 44vw, 330px);
  }

  .hero-sticker {
    position: static;
    justify-self: center;
    transform: rotate(7deg);
  }

  .hero-note {
    display: none;
  }

  .hero-tab {
    display: none;
  }

  .toolbelt-inner {
    grid-template-columns: minmax(200px, 1fr) minmax(160px, 0.7fr) minmax(160px, auto);
  }

  .patterns[data-count="1"] .pattern,
  .patterns[data-count="2"] .pattern,
  .pattern--wide,
  .pattern--tall,
  .pattern--half {
    grid-column: 1 / -1;
  }

  .pattern--wide .pattern-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .pattern-media,
  .pattern--wide .pattern-media {
    min-height: 0;
  }

  .pattern-media img {
    min-height: 0;
    height: clamp(220px, 44vw, 350px);
  }

  .pattern--wide .pattern-media {
    height: clamp(220px, 44vw, 350px);
  }

  .pattern-copy h3 {
    max-width: 18ch;
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  .sheet-grid {
    grid-template-columns: 1fr;
  }

  .sheet-photo {
    position: static;
  }

  .sheet-figure img {
    height: clamp(250px, 55vw, 430px);
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-disclaimer {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .footer-links {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 680px) {
  body::before {
    display: none;
  }

  .topbar {
    align-items: center;
    padding: 15px 14px 11px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
  }

  .brand-mark svg {
    width: 22px;
    height: 22px;
  }

  .brand-word {
    font-size: 1.95rem;
  }

  .brand-note {
    display: none;
  }

  .topbar-meta {
    font-size: 0.58rem;
  }

  .topbar-meta span {
    display: none;
  }

  .hero {
    padding: 5px 11px 29px;
  }

  .hero-sheet {
    padding: 20px 17px 18px;
    transform: rotate(0);
  }

  .hero-sheet::before {
    inset: 8px;
  }

  h1 {
    font-size: clamp(3.05rem, 13.2vw, 3.6rem);
    margin-bottom: 18px;
  }

  .hero-lede {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .hero-cta {
    margin-bottom: 18px;
  }

  .hero-facts {
    gap: 7px 13px;
    padding-top: 10px;
  }

  .hero-facts strong {
    font-size: 0.98rem;
  }

  .hero-facts span {
    font-size: 0.55rem;
  }

  .hero-photo {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-sticker {
    display: none;
  }

  .hero-figure img {
    height: 150px;
  }

  .hero-cutline {
    padding-top: 13px;
  }

  .toolbelt {
    position: relative;
    padding-top: 13px;
    padding-bottom: 14px;
  }

  .toolbelt-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 9px;
  }

  .field-search {
    grid-column: 1 / -1;
  }

  .field label {
    margin-bottom: 5px;
    font-size: 0.56rem;
  }

  .field-search input,
  .field-category select,
  .saved-toggle {
    height: 48px;
  }

  .field-saved {
    min-width: 0;
  }

  .field-saved .field-label {
    display: none;
  }

  .saved-toggle {
    justify-content: flex-start;
    align-items: center;
  }

  .workshops {
    padding: 30px 12px 82px;
  }

  .section-head {
    margin-bottom: 26px;
  }

  .section-head h2 {
    max-width: 9ch;
    font-size: clamp(2.5rem, 13vw, 3.7rem);
  }

  .section-intro p {
    font-size: 0.92rem;
  }

  .patterns {
    gap: 18px;
  }

  .pattern-inner {
    clip-path: polygon(0 0, calc(100% - 19px) 0, 100% 19px, 100% 100%, 0 100%);
    transform: rotate(0);
  }


  .pattern-media img,
  .pattern--wide .pattern-media {
    height: 218px;
  }

  .pattern-copy {
    padding: 19px 18px 23px;
  }

  .pattern-copy h3 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .pattern-desc {
    font-size: 0.91rem;
  }

  .date-stamp {
    bottom: 11px;
    left: 11px;
  }

  .date-stamp .day {
    font-size: 1.85rem;
  }

  .open-pattern {
    min-height: 44px;
  }

  .empty-state {
    padding: 30px 21px;
  }

  .detail-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
  }

  .pattern-sheet {
    max-height: calc(100dvh - 12px);
  }

  .sheet-top {
    padding: 9px 10px;
    gap: 9px;
  }

  .sheet-brand {
    font-size: 1rem;
    gap: 7px;
  }

  .sheet-brand small {
    display: none;
  }

  .sheet-brand-mark {
    width: 26px;
    height: 26px;
    font-size: 0.95rem;
  }

  .close-detail {
    min-height: 44px;
    padding: 8px 9px;
  }

  .close-detail kbd {
    display: none;
  }

  .sheet-grid {
    gap: 24px;
    padding: 20px 18px 24px;
  }

  .sheet-figure img {
    height: 220px;
  }

  .sheet-stamp {
    right: -5px;
    bottom: 20px;
    width: 86px;
    height: 86px;
    font-size: 0.84rem;
  }

  .sheet-grain {
    display: none;
  }

  .sheet-copy h2 {
    font-size: clamp(2.45rem, 12vw, 3.2rem);
  }

  .sheet-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sheet-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .save-note {
    max-width: 36ch;
  }

  .sheet-cutline {
    padding: 15px 18px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 29px 0 24px;
  }

  .footer-links {
    grid-column: 1;
    grid-row: auto;
    align-items: flex-start;
  }

  .footer-disclaimer {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 390px) {
  .hero-sheet {
    padding: 18px 15px 16px;
  }

  h1 {
    font-size: 3.05rem;
  }

  .hero-facts li {
    min-width: 74px;
  }

  .pattern-media img,
  .pattern--wide .pattern-media {
    height: 195px;
  }

  .sheet-figure img {
    height: 195px;
  }

}

@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;
  }

  .detail-dialog[open] .pattern-sheet {
    animation: none;
  }
}
