:root {
  color-scheme: light;
  --ink: #132d3c;
  --ink-soft: #38515c;
  --paper: #f4f2e9;
  --white: #fffefa;
  --line: #d7d8ce;
  --sun: #eabf3d;
  --sun-light: #f4dc8e;
  --muted: #69746f;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid #a66c00; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.masthead { min-height: 76px; padding: 0 6.1vw; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--ink); color: var(--paper); }
.wordmark { text-decoration: none; font-size: 29px; font-weight: 750; letter-spacing: -2px; line-height: 1; }
.wordmark span { color: var(--sun); font-size: 21px; margin-left: 2px; }
.mast-note { margin: 0 auto 0 42px; color: #cfdbd5; font-family: var(--serif); font-size: 16px; font-style: italic; }
.mast-link { text-decoration: none; font-size: 13px; font-weight: 650; }
.mast-link span { color: var(--sun); padding-left: 8px; font-size: 17px; }

.intro { display: grid; grid-template-columns: minmax(320px, 1.05fr) minmax(300px, 1fr) 126px; min-height: 310px; max-width: 1440px; margin: 0 auto; padding: 42px 6.1vw 40px; gap: clamp(24px, 4vw, 62px); align-items: center; }
.intro-copy { max-width: 460px; }
.intro-kicker, .section-note { margin: 0 0 12px; color: #53675f; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.intro h1 { margin: 0; font-family: var(--serif); font-size: clamp(42px, 5.1vw, 67px); line-height: .99; font-weight: 500; letter-spacing: -2px; }
.intro-text { max-width: 385px; margin: 20px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.intro-image { height: 225px; position: relative; background: linear-gradient(0deg, rgba(19,45,60,.23), transparent 45%), url('/artifacts/forma-frontend--v1--s1--gpt-6-luna-codex--frontend-design--2026-10-12T07-36-26-981Z/assets/studio.jpg') center 48% / cover; }
.image-caption { position: absolute; bottom: 13px; left: 15px; color: white; font-family: var(--serif); font-size: 15px; font-style: italic; text-shadow: 0 1px 5px #152e37; }
.intro-aside { align-self: end; display: flex; align-items: center; gap: 9px; padding-bottom: 4px; color: var(--ink-soft); font-family: var(--serif); font-size: 13px; line-height: 1.45; }
.sun-mark { align-self: flex-start; color: #bd901b; font-size: 25px; line-height: 1; }

.catalog { background: var(--white); padding: 38px 6.1vw 68px; }
.catalog-heading { max-width: 1265px; margin: 0 auto; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-note { margin-bottom: 7px; color: #6d766f; }
.catalog h2 { margin: 0; font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); font-weight: 500; letter-spacing: -.7px; }
.catalog-date { margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.browse-tools { max-width: 1265px; min-height: 64px; margin: 18px auto 17px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.search-wrap { min-width: 220px; width: min(28vw, 310px); height: 40px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #b8c0b8; }
.search-icon { font-size: 25px; color: #60736e; line-height: 1; transform: rotate(-15deg); }
.search-wrap input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-wrap input::placeholder { color: #7a817a; }
.search-wrap:focus-within { border-color: var(--ink); box-shadow: 0 1px var(--ink); }
.filter-wrap { display: flex; align-items: center; gap: 8px; margin-left: 8px; color: var(--muted); font-size: 13px; }
.filter-wrap select { padding: 9px 27px 9px 10px; border: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); font-size: 13px; }
.saved-filter { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 11px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: 13px; }
.saved-filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.saved-icon { font-size: 17px; line-height: 1; }
.saved-count { min-width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--sun-light); color: var(--ink); font-size: 11px; font-weight: 700; }
.result-count { margin: 0 0 0 auto; color: var(--muted); font-size: 12px; }

.workshop-grid { max-width: 1265px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px 20px; }
.workshop-card { min-width: 0; background: var(--white); }
.card-image-wrap { display: block; position: relative; height: clamp(125px, 13vw, 175px); overflow: hidden; background: #e7e5dc; }
.card-image { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 250ms ease; }
.workshop-card:hover .card-image { transform: scale(1.025); }
.category-tag { position: absolute; top: 11px; left: 11px; padding: 6px 9px; background: var(--paper); color: var(--ink); font-size: 11px; font-weight: 650; }
.card-copy { padding: 13px 1px 0; }
.card-meta { margin: 0 0 5px; color: #65726d; font-size: 11px; font-weight: 650; letter-spacing: .025em; }
.card-title { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2vw, 26px); font-weight: 500; letter-spacing: -.35px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; padding-top: 9px; border-top: 1px solid #e2e3da; }
.card-price { font-size: 13px; font-weight: 700; }
.card-open { padding: 7px 0 7px 8px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; text-decoration: underline; text-decoration-color: #c1a64e; text-underline-offset: 4px; }
.card-open:hover { color: #75580d; }
.empty-state { max-width: 1265px; margin: 0 auto; padding: 55px 20px 30px; text-align: center; }
.empty-state[hidden] { display: none; }
.empty-flower { color: #bd901b; font-size: 34px; }
.empty-state h3 { margin: 12px 0 6px; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.empty-state p { margin: 0 0 15px; color: var(--muted); font-size: 14px; }
.text-button { padding: 5px; border: 0; background: none; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

.footer { min-height: 90px; padding: 20px 6.1vw; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--ink); color: var(--paper); }
.footer .wordmark { font-size: 23px; }
.footer p, .footer > a:last-child { margin: 0; color: #d1ddd7; font-size: 12px; }
.footer > a:last-child { text-underline-offset: 4px; }

.detail-dialog { width: min(820px, calc(100vw - 32px)); max-width: none; max-height: min(760px, calc(100dvh - 32px)); padding: 0; overflow: auto; border: 0; background: var(--white); color: var(--ink); box-shadow: 0 22px 70px rgba(8, 25, 32, .34); }
.detail-dialog::backdrop { background: rgba(10, 27, 35, .72); }
.detail-panel { min-height: 440px; display: grid; grid-template-columns: .9fr 1.1fr; position: relative; }
.close-detail { position: absolute; z-index: 1; top: 12px; right: 13px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; font-size: 27px; line-height: 1; }
.detail-photo { min-height: 100%; background: #e6e4d9; }
.detail-image { width: 100%; height: 100%; min-height: 440px; display: block; object-fit: cover; }
.detail-content { align-self: center; padding: 56px 43px 40px; }
.detail-category { margin: 0 0 8px; color: #66766f; font-size: 12px; font-weight: 700; }
.detail-title { margin: 0; max-width: 400px; font-family: var(--serif); font-size: clamp(32px, 4vw, 46px); font-weight: 500; line-height: 1.05; letter-spacing: -1px; }
.detail-body { margin: 16px 0 21px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 23px; border-top: 1px solid var(--line); }
.fact { padding: 12px 8px 10px 0; border-bottom: 1px solid var(--line); }
.fact dt { color: var(--muted); font-size: 11px; }
.fact dd { margin: 4px 0 0; font-size: 14px; font-weight: 650; }
.save-item { width: 100%; min-height: 47px; border: 0; background: var(--ink); color: white; cursor: pointer; font-weight: 700; }
.save-item:hover { background: #244958; }
.save-item[aria-pressed="true"] { background: #e9c148; color: var(--ink); }
.detail-footnote { margin: 13px 0 0; color: var(--muted); font-family: var(--serif); font-size: 13px; font-style: italic; }

@media (min-width: 1200px) { .workshop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 920px) {
  .intro { grid-template-columns: minmax(260px, 1fr) minmax(250px, .95fr); }
  .intro-aside { display: none; }
  .workshop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-image-wrap { height: clamp(150px, 22vw, 210px); }
}
@media (max-width: 600px) {
  .masthead { min-height: 64px; padding: 0 20px; }
  .mast-note { display: none; }
  .mast-link { font-size: 12px; }
  .intro { display: flex; flex-direction: column; align-items: stretch; gap: 22px; padding: 33px 20px 28px; }
  .intro h1 { font-size: 48px; }
  .intro-text { margin-top: 14px; font-size: 14px; }
  .intro-image { height: 175px; }
  .catalog { padding: 30px 20px 48px; }
  .catalog-heading { align-items: start; }
  .catalog-date { max-width: 90px; text-align: right; line-height: 1.4; font-size: 11px; }
  .browse-tools { flex-wrap: wrap; gap: 9px; padding: 12px 0; margin: 14px auto; }
  .search-wrap { order: 0; flex: 1 1 100%; width: 100%; }
  .filter-wrap { margin-left: 0; }
  .filter-wrap select { max-width: 145px; }
  .saved-filter { margin-left: auto; }
  .result-count { width: 100%; margin: -2px 0 0; }
  .workshop-grid { grid-template-columns: 1fr; gap: 23px; }
  .card-image-wrap { height: 205px; }
  .card-copy { padding-top: 11px; }
  .card-title { font-size: 26px; }
  .footer { padding: 19px 20px; }
  .footer p { display: none; }
  .detail-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .detail-panel { display: block; }
  .detail-photo { height: 220px; min-height: 0; }
  .detail-image { height: 220px; min-height: 0; }
  .detail-content { padding: 27px 23px 26px; }
  .detail-title { font-size: 36px; }
  .detail-body { margin: 12px 0 17px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
