:root {
  --ink: #102a56;
  --paper: #fffdf8;
  --blue: #1d54d8;
  --yellow: #f6bd27;
  --tomato: #ed4f2f;
  --leaf: #2e754b;
  --lavender: #dcdaf8;
  --line: #b9c4d4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.skip-link {
  position: fixed; z-index: 100; top: 1rem; left: 1rem;
  padding: .7rem 1rem; background: var(--ink); color: white;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: 78px;
  padding: 14px 3vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--ink);
}
.brand {
  width: max-content;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -.12em;
  line-height: .8;
  text-decoration: none;
}
.brand span { color: var(--tomato); }
.header-note {
  margin: 0;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.25;
}
.browse-link {
  justify-self: end;
  font-size: .86rem;
  font-weight: 700;
  text-underline-offset: 5px;
}
.browse-link span { color: var(--tomato); font-size: 1.1rem; }

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(410px, .92fr) 1.28fr;
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(34px, 5vw, 76px) 3vw 45px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--yellow);
}
.hero-intro {
  margin: 0 0 auto;
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  font-weight: 700;
  line-height: 1.2;
}
.hero h1 {
  margin: 70px 0 42px;
  font-family: var(--serif);
  font-size: clamp(4.25rem, 7.2vw, 7.4rem);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: .79;
}
.hero-sub {
  max-width: 31rem;
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.35;
}
.hero-image { position: relative; margin: 0; min-width: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,42,86,.04), transparent 35%);
  pointer-events: none;
}
.hero-image figcaption {
  position: absolute; z-index: 2; right: 20px; bottom: 20px;
  max-width: 230px; padding: 10px 13px;
  background: var(--paper);
  font-size: .8rem; font-weight: 700; line-height: 1.25;
  transform: rotate(-1deg);
}
.hero-stamp {
  position: absolute; z-index: 3; left: calc(46% - 62px); top: 52px;
  width: 124px; height: 124px;
  color: var(--paper);
  background: var(--tomato);
  border-radius: 50%;
  transform: rotate(9deg);
}
.hero-stamp svg { width: 100%; height: 100%; overflow: visible; }
.hero-stamp text { fill: currentColor; font: 700 10px var(--sans); letter-spacing: 1.1px; }
.hero-stamp > svg > path { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; }

.browse { padding: 78px 3vw 96px; }
.browse-heading {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 34px;
}
.browse-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .95;
}
.browse-heading p { margin: 0 0 .4rem; font-weight: 700; }

.controls {
  position: sticky; z-index: 10; top: 0;
  display: grid; grid-template-columns: minmax(260px, 1fr) 260px 210px;
  align-items: end; gap: 1px;
  margin: 0 -3vw 42px;
  padding: 12px 3vw;
  background: var(--ink);
}
.field { min-width: 0; }
.field label {
  display: block; margin-bottom: 6px;
  color: white; font-size: .75rem; font-weight: 700;
}
.input-wrap { position: relative; }
.input-wrap svg {
  position: absolute; left: 13px; top: 50%; width: 20px;
  fill: none; stroke: var(--ink); stroke-width: 2;
  transform: translateY(-50%); pointer-events: none;
}
input, select, .saved-toggle {
  width: 100%; height: 48px;
  border: 0; border-radius: 0;
  background: var(--paper);
  font-weight: 700;
}
input { padding: 0 16px 0 43px; }
input::placeholder { color: #66748d; font-weight: 400; }
select {
  padding: 0 42px 0 15px;
  appearance: none;
  background-image: linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%);
  background-position: calc(100% - 19px) 21px,calc(100% - 13px) 21px;
  background-size: 6px 6px,6px 6px;
  background-repeat: no-repeat;
}
.saved-toggle {
  display: grid; grid-template-columns: 22px 1fr auto;
  gap: 9px; align-items: center;
  padding: 0 12px;
  background: var(--yellow);
  text-align: left;
}
.saved-toggle svg, .save-button svg {
  width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8;
}
.saved-toggle[aria-pressed="true"] svg, .save-button[aria-pressed="true"] svg { fill: currentColor; }
.saved-count {
  display: grid; place-items: center;
  min-width: 25px; height: 25px; padding: 0 4px;
  border: 1px solid currentColor; border-radius: 50%;
  font-size: .78rem;
}
.result-note { min-height: 0; font-size: .9rem; font-weight: 700; }
.result-note:not(:empty) { margin: -17px 0 24px; }

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 52px 22px;
}
.workshop-card { grid-column: span 4; min-width: 0; }
.workshop-card:nth-child(1), .workshop-card:nth-child(5) { grid-column: span 5; }
.workshop-card:nth-child(2), .workshop-card:nth-child(6) { grid-column: span 3; }
.workshop-card:nth-child(3) { grid-column: span 4; }
.workshop-card:nth-child(4) { grid-column: 2 / span 4; }
.card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--lavender);
}
.workshop-card:nth-child(2) .card-image, .workshop-card:nth-child(4) .card-image { aspect-ratio: 1 / 1.15; }
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.workshop-card:hover .card-image img { transform: scale(1.025); }
.card-save-mark {
  position: absolute; right: 12px; top: 12px;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  color: var(--ink); background: var(--yellow); border-radius: 50%;
}
.card-save-mark svg { width: 21px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; }
.card-topline {
  display: flex; justify-content: space-between; gap: 12px;
  margin: 14px 0 9px;
  color: var(--leaf); font-size: .76rem; font-weight: 800;
}
.card-topline span:last-child { color: var(--ink); text-align: right; }
.workshop-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 2.8vw, 3rem);
  font-weight: 400; letter-spacing: -.05em; line-height: .98;
}
.card-description {
  max-width: 39rem;
  margin: 12px 0 0;
  font-size: .98rem; line-height: 1.45;
}
.card-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 16px; padding-top: 11px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}
.card-open {
  padding: 2px 0;
  border: 0;
  background: none;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.empty-state {
  max-width: 640px; margin: 15px auto 0; padding: 70px 20px;
  text-align: center; border: 2px dashed var(--line);
}
.empty-state[hidden] { display: none; }
.empty-state svg { width: 90px; fill: none; stroke: var(--leaf); stroke-width: 3; stroke-linecap: round; }
.empty-state h3 { margin: 15px 0 7px; font: 400 2.2rem/1 var(--serif); letter-spacing: -.04em; }
.empty-state p { margin: 0 0 22px; }
.empty-state button {
  padding: 12px 18px; border: 0; background: var(--yellow); font-weight: 800;
}

.manifesto {
  padding: clamp(70px, 10vw, 150px) 3vw;
  background: var(--blue); color: white;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7.5vw, 8.2rem);
  letter-spacing: -.065em; line-height: .91;
}
.manifesto p { margin: 0; }
.manifesto p:nth-child(2) { margin-left: 12vw; color: var(--yellow); }
.manifesto p:nth-child(3) { margin-left: 30vw; }

footer {
  min-height: 200px; padding: 45px 3vw;
  display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end;
  background: var(--yellow);
}
.footer-brand { font-size: 3.4rem; }
footer p { margin: 0; font-size: .85rem; font-weight: 700; line-height: 1.4; }
footer p:nth-child(2) { justify-self: center; }
footer p:last-child { justify-self: end; text-align: right; }

.detail-dialog {
  width: min(1160px, calc(100% - 42px));
  max-height: min(850px, calc(100vh - 42px));
  padding: 0; border: 0; color: var(--ink); background: var(--paper);
  box-shadow: none;
}
.detail-dialog::backdrop { background: rgba(16,42,86,.76); backdrop-filter: blur(3px); }
.detail-shell { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; min-height: 660px; }
.detail-close {
  position: absolute; z-index: 3; top: 17px; right: 17px;
  display: grid; place-items: center;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid var(--ink); border-radius: 50%; background: var(--paper);
}
.detail-close svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.detail-photo { min-height: 100%; overflow: hidden; background: var(--lavender); }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-content { padding: 68px clamp(30px, 4vw, 66px) 48px; overflow-y: auto; }
.detail-category { margin: 0 0 16px; color: var(--leaf); font-size: .8rem; font-weight: 800; }
.detail-content h2 {
  margin: 0 0 23px;
  font: 400 clamp(3rem, 5vw, 5.3rem)/.88 var(--serif);
  letter-spacing: -.065em;
}
.detail-body { margin: 0 0 32px; font-size: 1.15rem; line-height: 1.5; }
.detail-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border-top: 1px solid var(--line); }
.detail-facts div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.detail-facts div:nth-child(odd) { padding-right: 16px; }
.detail-facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.detail-facts dt { margin-bottom: 4px; color: #61708a; font-size: .72rem; font-weight: 700; }
.detail-facts dd { margin: 0; font-weight: 800; }
.detail-includes { margin: 20px 0; font-size: .9rem; }
.save-button {
  width: 100%; min-height: 54px; padding: 12px 20px;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  border: 2px solid var(--ink); background: var(--yellow); font-weight: 800;
}
.save-button[aria-pressed="true"] { color: white; background: var(--blue); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 620px; }
  .hero h1 { font-size: clamp(3.8rem, 8.5vw, 5.8rem); }
  .hero-stamp { left: calc(50% - 53px); width: 106px; height: 106px; }
  .controls { grid-template-columns: 1fr 210px 180px; }
  .workshop-card, .workshop-card:nth-child(n) { grid-column: span 6; }
  .workshop-card:nth-child(2) .card-image, .workshop-card:nth-child(4) .card-image { aspect-ratio: 4 / 3; }
}

@media (max-width: 620px) {
  .site-header { min-height: 66px; padding: 12px 18px; grid-template-columns: 1fr auto; }
  .header-note { display: none; }
  .browse-link { font-size: .76rem; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-copy { min-height: 415px; padding: 28px 18px 31px; }
  .hero-intro { font-size: .9rem; }
  .hero h1 { margin: 54px 0 25px; font-size: clamp(3.55rem, 17.5vw, 4.6rem); }
  .hero-sub { font-size: 1rem; }
  .hero-image { height: 310px; }
  .hero-image figcaption { left: 14px; right: auto; bottom: 14px; max-width: 200px; }
  .hero-stamp { left: auto; right: 18px; top: 371px; width: 90px; height: 90px; }
  .hero-stamp text { font-size: 10.5px; }

  .browse { padding: 58px 18px 70px; }
  .browse-heading { display: block; margin-bottom: 26px; }
  .browse-heading h2 { font-size: 3.4rem; }
  .browse-heading p { margin: 10px 0 0; }
  .controls {
    position: relative; top: auto;
    grid-template-columns: 1fr 1fr; gap: 9px;
    margin: 0 0 35px; padding: 14px;
  }
  .search-field { grid-column: 1 / -1; }
  .field label { font-size: .68rem; }
  input, select, .saved-toggle { height: 46px; }
  .saved-toggle { margin-top: 21px; grid-template-columns: 19px 1fr auto; padding: 0 9px; font-size: .78rem; }
  .saved-toggle svg { width: 18px; }
  .saved-count { min-width: 22px; height: 22px; }
  .workshop-grid { display: block; }
  .workshop-card { margin-bottom: 46px; }
  .workshop-card:last-child { margin-bottom: 0; }
  .workshop-card:nth-child(n) .card-image { aspect-ratio: 1.25 / 1; }
  .workshop-card h3 { font-size: 2.35rem; }
  .card-description { font-size: .94rem; }
  .card-topline { margin-top: 12px; }

  .manifesto { padding: 78px 18px; font-size: 3.55rem; }
  .manifesto p:nth-child(2) { margin: 12px 0; }
  .manifesto p:nth-child(3) { margin-left: 10vw; }
  footer { min-height: 250px; padding: 35px 18px; grid-template-columns: 1fr 1fr; gap: 50px 15px; }
  .footer-brand { font-size: 2.6rem; }
  footer p:nth-child(2) { justify-self: end; text-align: right; }
  footer p:last-child { grid-column: 1 / -1; justify-self: start; text-align: left; }

  .detail-dialog {
    width: 100%; max-width: none; max-height: calc(100% - 28px);
    margin: auto 0 0; transform: none;
  }
  .detail-shell { display: block; min-height: 0; }
  .detail-photo { height: 270px; }
  .detail-content { padding: 35px 20px 28px; overflow: visible; }
  .detail-content h2 { font-size: 3.45rem; }
  .detail-body { font-size: 1.03rem; }
  .detail-close { position: fixed; width: 42px; height: 42px; top: 14px; right: 14px; }
}

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