/* Forma — editorial studio styles */

@font-face {
  font-family: "Fraunces";
  src: url("/artifacts/forma-frontend--v1--s2--deepseek-4.1-flash-1017--web-design-guidelines--2026-10-17T19-56-53-986Z/assets/fraunces-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/artifacts/forma-frontend--v1--s2--deepseek-4.1-flash-1017--web-design-guidelines--2026-10-17T19-56-53-986Z/assets/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/artifacts/forma-frontend--v1--s2--deepseek-4.1-flash-1017--web-design-guidelines--2026-10-17T19-56-53-986Z/assets/dm-sans-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/artifacts/forma-frontend--v1--s2--deepseek-4.1-flash-1017--web-design-guidelines--2026-10-17T19-56-53-986Z/assets/dm-sans-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f3eee3;
  --paper-deep: #ebe3d3;
  --card: #fbf8f0;
  --ink: #20251f;
  --ink-soft: #3b4038;
  --muted: #666a5f;
  --line: #d8cfbd;
  --line-strong: #bbb09a;
  --terracotta: #ad4527;
  --terracotta-dark: #8f351c;
  --moss: #59624d;
  --gold: #c79a54;
  --focus: #9c3d22;
  --white: #fffdf8;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow-soft: 0 18px 50px -34px rgba(48, 41, 27, 0.55);
  --shadow-card: 0 24px 44px -32px rgba(48, 41, 27, 0.55);
  --ease: cubic-bezier(0.22, 0.7, 0.24, 1);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 620px at 82% -8%, rgba(199, 154, 84, 0.14), transparent 65%),
    radial-gradient(900px 520px at -12% 30%, rgba(173, 69, 39, 0.055), transparent 70%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(173, 69, 39, 0.16);
  touch-action: manipulation;
  overflow-x: hidden;
}

body.dialog-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

.shell {
  width: min(1220px, calc(100% - clamp(32px, 6vw, 88px)));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 14px;
}

:where(a, button, input, select):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.btn-ink:focus-visible,
.saved-filter[aria-pressed="true"]:focus-visible,
.detail-save[aria-pressed="true"]:focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 6px var(--focus);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terracotta);
  flex: none;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  width: 21px;
  height: 21px;
  color: var(--terracotta);
  transition: transform 500ms var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(60deg);
}

.header-note {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding-left: 28px;
  border-left: 1px solid var(--line-strong);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.site-footer nav a {
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 7px;
  transition: background-color 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-footer nav a:hover {
  background: var(--paper-deep);
  color: var(--terracotta-dark);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
  padding-block: clamp(38px, 5vw, 62px) clamp(46px, 6vw, 72px);
}

.hero-copy {
  max-width: 620px;
}

.hero h1 {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 440;
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero h1 em {
  display: block;
  color: var(--terracotta);
  font-weight: 380;
  font-style: italic;
  letter-spacing: -0.035em;
}

.hero-lede {
  margin-top: 20px;
  max-width: 47ch;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.2vw, 1.05rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ink {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: 0 12px 25px -18px rgba(32, 37, 31, 0.9);
}

.btn-ink:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
}

.btn .arrow {
  font-size: 1.1em;
  transition: transform 250ms var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.hero-meta {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.hero-figure {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 500px;
}

.hero-image-wrap {
  position: relative;
  border-radius: 120px 120px 10px 10px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
  background: var(--paper-deep);
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.24);
  pointer-events: none;
}

.hero-image-wrap img {
  width: 100%;
  height: clamp(280px, 30vw, 390px);
  object-fit: cover;
  object-position: 50% 55%;
}

.hero-stamp {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  gap: 2px;
  text-align: center;
  color: var(--ink);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid rgba(32, 37, 31, 0.35);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
  transform: rotate(7deg);
  box-shadow: 0 8px 22px -16px rgba(32, 37, 31, 0.7);
}

.hero-stamp span:first-child {
  font-family: var(--serif);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
}

.hero-figure figcaption {
  margin: 14px 4px 0 auto;
  max-width: 320px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.5;
  text-align: right;
}

.hero-figure figcaption span {
  color: var(--ink);
  font-weight: 600;
  margin-right: 6px;
}

/* Workshops */

.workshops {
  padding-block: 0 clamp(70px, 8vw, 110px);
  scroll-margin-top: 24px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.section-head h2,
.about h2 {
  margin-top: 5px;
  font-family: var(--serif);
  font-weight: 440;
  font-size: clamp(2rem, 3.1vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.results {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-bottom: 5px;
  font-variant-numeric: tabular-nums;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  align-items: end;
  gap: 16px;
  margin-top: 20px;
  padding: 16px;
  background: color-mix(in srgb, var(--card) 74%, var(--paper));
  border: 1px solid var(--line);
  border-radius: 15px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field > label,
.field-label {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.field-label {
  display: block;
  visibility: hidden;
}

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

.field-icon,
.select-icon {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.field-icon {
  left: 14px;
}

.select-icon {
  right: 13px;
}

.toolbar input,
.toolbar select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.87rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.toolbar input {
  padding: 0 14px 0 42px;
}

.toolbar input::placeholder {
  color: #888a7f;
}

.toolbar select {
  appearance: none;
  padding: 0 38px 0 13px;
  cursor: pointer;
}

.toolbar input:hover,
.toolbar select:hover {
  border-color: var(--muted);
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: var(--focus);
}

.saved-filter {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.saved-filter:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.bookmark-icon {
  width: 17px;
  height: 17px;
  flex: none;
}

.saved-count {
  display: inline-grid;
  place-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.saved-filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.saved-filter[aria-pressed="true"] .bookmark-icon {
  fill: currentColor;
}

.saved-filter[aria-pressed="true"] .saved-count {
  background: var(--terracotta);
  color: var(--white);
}

.clear-button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: -2px;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--terracotta-dark);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clear-button:hover {
  color: var(--ink);
}

/* Cards */

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.workshop {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 253, 248, 0.7) inset;
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 320ms var(--ease);
}

.workshop:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.workshop-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-deep);
}

.workshop-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(25, 27, 23, 0.28), transparent 42%);
  pointer-events: none;
}

.workshop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

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

.workshop-index {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: grid;
  place-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 10px -6px rgba(0, 0, 0, 0.6);
}

.category-pill {
  position: absolute;
  z-index: 1;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.saved-badge {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px 5px 7px;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.saved-badge svg {
  width: 11px;
  height: 11px;
}

.category-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
}

.workshop-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 19px 17px;
}

.workshop-title {
  font-family: var(--serif);
  font-weight: 480;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.workshop-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.workshop-facts {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.7fr;
  gap: 0;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.workshop-facts > div {
  min-width: 0;
  padding-right: 10px;
}

.workshop-facts > div + div {
  padding-left: 11px;
  border-left: 1px solid var(--line);
}

.workshop-facts dt {
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.workshop-facts dd {
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.77rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workshop-facts dd.price {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.workshop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
}

.seats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--moss);
  font-size: 0.7rem;
  font-weight: 600;
}

.seats::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.workshop-link {
  color: var(--terracotta-dark);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.workshop-link span {
  display: inline-block;
  margin-left: 3px;
  transition: transform 240ms var(--ease);
}

.workshop:hover .workshop-link span {
  transform: translateX(4px);
}

.workshop-open {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: transparent;
  font-size: 0;
}

.workshop-open:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -4px;
  box-shadow: inset 0 0 0 1px var(--white);
}

/* Empty state */

.empty-state {
  margin-top: 24px;
  padding: clamp(38px, 7vw, 76px) 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 15px;
  background: color-mix(in srgb, var(--card) 55%, transparent);
  text-align: center;
}

.empty-mark {
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
}

.empty-state h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 460;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  letter-spacing: -0.025em;
}

.empty-state p:not(.empty-mark) {
  margin: 9px auto 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.89rem;
  text-wrap: pretty;
}

.empty-state .btn {
  margin-top: 24px;
}

/* About */

.about {
  padding-block: clamp(58px, 7vw, 92px);
  background: var(--ink);
  color: var(--paper);
  scroll-margin-top: 24px;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: start;
}

.about .eyebrow {
  color: #b9b4a5;
}

.about .eyebrow-dot {
  background: var(--gold);
}

.about h2 {
  margin-top: 10px;
  max-width: 16ch;
  color: var(--paper);
}

.about-lead > p:last-child {
  margin-top: 20px;
  max-width: 48ch;
  color: #c9c6b9;
  font-size: 0.93rem;
  line-height: 1.7;
}

.principles {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(243, 238, 227, 0.2);
}

.principles > div {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(243, 238, 227, 0.2);
}

.principles dt {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.principles dt span {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.principles dd {
  color: #b8b5a8;
  font-size: 0.83rem;
  line-height: 1.65;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: #aaa699;
  border-top: 1px solid rgba(243, 238, 227, 0.18);
  padding-block: 34px calc(34px + env(safe-area-inset-bottom));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 32px;
}

.brand-footer {
  color: var(--paper);
  font-size: 1.35rem;
}

.footer-note {
  margin-top: 10px;
  max-width: 54ch;
  color: #8f8c80;
  font-size: 0.7rem;
  line-height: 1.6;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.site-footer nav a {
  color: #c4c0b2;
}

.site-footer nav a:hover {
  background: rgba(243, 238, 227, 0.1);
  color: var(--paper);
}

/* Detail dialog */

.detail {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  max-width: none;
  max-height: none;
  overflow: visible;
}

.detail::backdrop {
  background: rgba(21, 24, 20, 0.62);
  backdrop-filter: blur(4px);
}

.detail[open] {
  animation: detail-in 280ms var(--ease);
}

.detail[open]::backdrop {
  animation: backdrop-in 280ms ease;
}

@keyframes detail-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.detail-panel {
  position: relative;
  width: min(1020px, calc(100vw - 48px));
  max-height: calc(100svh - 48px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  background: var(--card);
  border: 1px solid rgba(255, 253, 248, 0.25);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.65);
}

.detail-close {
  position: absolute;
  z-index: 6;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(32, 37, 31, 0.22);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 650;
  box-shadow: 0 6px 18px -14px rgba(0, 0, 0, 0.7);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

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

.detail-layout {
  display: contents;
}

.detail-media {
  position: relative;
  background: var(--paper-deep);
  min-height: 100%;
  overflow: hidden;
}

.detail-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.detail-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 25, 21, 0.58), transparent 52%);
  pointer-events: none;
}

.detail-media-caption {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  bottom: 22px;
  color: var(--paper);
}

.detail-media-caption span {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ded8c9;
}

.detail-media-caption strong {
  display: block;
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 430;
  letter-spacing: -0.02em;
}

.detail-copy {
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 58px 38px 36px;
  scrollbar-width: thin;
}

.detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-topline .category-pill {
  position: static;
}

.detail-topline .workshop-index {
  position: static;
  width: auto;
  height: auto;
  padding: 3px 0 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-title {
  margin-top: 16px;
  font-family: var(--serif);
  font-weight: 440;
  font-size: clamp(2.35rem, 3.6vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.detail-body {
  margin-top: 16px;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 25px;
  border-top: 1px solid var(--line);
}

.detail-facts > div {
  padding: 13px 14px 13px 0;
  border-bottom: 1px solid var(--line);
}

.detail-facts > div:nth-child(even) {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.detail-facts dt {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.detail-facts dd {
  margin-top: 3px;
  font-size: 0.85rem;
  font-weight: 550;
  line-height: 1.4;
}

.detail-facts dd.price {
  font-variant-numeric: tabular-nums;
}

.detail-price-note {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 500;
}

.detail-note {
  margin-top: 17px;
  padding: 12px 14px;
  border-left: 2px solid var(--gold);
  background: color-mix(in srgb, var(--paper) 66%, transparent);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.detail-save {
  flex: 1 1 220px;
  min-height: 48px;
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
  box-shadow: 0 12px 24px -18px rgba(143, 53, 28, 0.8);
}

.detail-save:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
}

.detail-save svg {
  width: 17px;
  height: 17px;
}

.detail-save[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

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

.detail-back {
  min-height: 48px;
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.detail-back:hover {
  background: var(--paper-deep);
  border-color: var(--ink);
}

.save-live {
  min-height: 1.2em;
  margin-top: 9px;
  color: var(--moss);
  font-size: 0.71rem;
  font-weight: 550;
}

.noscript {
  margin: 40px auto;
  max-width: 560px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--card);
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive */

@media (max-width: 1080px) {
  .workshop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    gap: 40px;
  }

  .detail-panel {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (max-width: 820px) {
  .header-note {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 40px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-figure {
    justify-self: stretch;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
  }

  .hero-image-wrap img {
    height: 300px;
  }

  .hero-figure figcaption {
    max-width: 170px;
    text-align: left;
    margin: 0 0 6px;
  }

  .toolbar {
    grid-template-columns: minmax(0, 1fr) 200px;
  }

  .saved-field {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }

  .field-label {
    visibility: visible;
    min-width: 90px;
  }

  .saved-filter {
    justify-content: flex-start;
    flex: 1;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about h2 {
    max-width: 22ch;
  }

  .detail-panel {
    width: calc(100vw - 32px);
    max-height: calc(100svh - 32px);
    grid-template-columns: 1fr;
    grid-template-rows: 220px minmax(0, 1fr);
    overflow: hidden;
  }

  .detail-media {
    min-height: 0;
  }

  .detail-media img {
    min-height: 0;
    height: 100%;
  }

  .detail-media-caption {
    bottom: 14px;
    left: 18px;
  }

  .detail-media-caption strong {
    display: none;
  }

  .detail-copy {
    max-height: none;
    min-height: 0;
    padding: 26px 24px 30px;
    overflow-y: auto;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 36px);
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 62px;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    font-size: 0.78rem;
    padding: 6px 8px;
  }

  .hero {
    padding-block: 28px 40px;
  }

  .hero-figure {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.3rem);
  }

  .hero-lede {
    margin-top: 16px;
    font-size: 0.93rem;
  }

  .hero-actions {
    margin-top: 20px;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-meta {
    display: none;
  }

  .section-head {
    align-items: center;
  }

  .toolbar {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    padding: 14px;
  }

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

  .saved-field {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .field-label {
    display: none;
  }

  .saved-filter {
    width: 100%;
    justify-content: center;
  }

  .workshop-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .workshop-media {
    aspect-ratio: 16 / 10;
  }

  .workshop-title {
    font-size: 1.65rem;
  }

  .workshop-desc {
    font-size: 0.86rem;
  }

  .workshop-facts dd {
    font-size: 0.8rem;
  }

  .principles > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 22px;
  }

  .detail-panel {
    width: 100vw;
    height: 100svh;
    max-height: 100svh;
    border: 0;
    border-radius: 0;
    grid-template-rows: 200px minmax(0, 1fr);
  }

  .detail-close {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    height: 44px;
    padding: 0 15px;
  }

  .detail-copy {
    padding: 24px max(20px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }

  .detail-title {
    font-size: 2.3rem;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

  .detail-facts > div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .detail-save {
    flex-basis: 100%;
  }

  .detail-back {
    flex: 1;
  }

  .empty-state {
    padding-inline: 18px;
  }
}

@media (max-width: 380px) {
  .site-nav a {
    padding-inline: 6px;
  }

  .workshop-facts {
    grid-template-columns: 1.15fr 0.85fr 0.7fr;
  }

  .workshop-facts > div + div {
    padding-left: 8px;
  }
}

@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;
    scroll-behavior: auto !important;
  }

  .workshop:hover {
    transform: none;
  }

  .workshop:hover .workshop-media img {
    transform: none;
  }

  .brand:hover .brand-mark,
  .workshop:hover .workshop-link span,
  .btn:hover .arrow {
    transform: none;
  }

  .detail[open]::backdrop {
    animation: none;
  }
}
