:root {
  color-scheme: light dark;
  --page: #f2f0eb;
  --surface: #e7e4de;
  --surface-strong: #d9d5cd;
  --ink: #171717;
  --muted: #5d5b57;
  --line: #817e78;
  --accent: #2446d8;
  --accent-text: #f7f6f2;
  --accent-soft: #dce3ff;
  --shadow: rgba(32, 38, 66, 0.18);
  --radius: 0px;
  --max: 1320px;
  --display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #151515;
    --surface: #222222;
    --surface-strong: #303030;
    --ink: #f0efeb;
    --muted: #bbb9b3;
    --line: #77746f;
    --accent: #6f8aff;
    --accent-text: #111322;
    --accent-soft: #242e59;
    --shadow: rgba(0, 0, 0, 0.38);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-text);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 64px), var(--max));
  height: 72px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 17px;
  font-weight: 900;
}

.nav-link {
  font-size: 14px;
  font-weight: 650;
  text-underline-offset: 4px;
}

.nav-note {
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
}

.hero {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(30px, 5vw, 86px);
  align-items: center;
  width: min(calc(100% - 64px), var(--max));
  min-height: calc(100dvh - 72px);
  margin: 0 auto;
  padding: 54px 0;
}

.hero-copy {
  padding-left: clamp(0px, 3vw, 44px);
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

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

h1 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(62px, 6.4vw, 102px);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

h1 em {
  display: inline-block;
  padding-bottom: 0.08em;
  color: var(--accent);
  font-style: italic;
  line-height: 1.1;
}

.hero-intro {
  max-width: 43ch;
  margin: 34px 0 26px;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.45;
}

.primary-link,
.secondary-button,
.save-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.primary-link {
  padding: 0 22px;
}

.hero-figure {
  position: relative;
  align-self: stretch;
  min-height: 500px;
  margin: 0;
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: calc(100% - 44px);
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06);
}

.hero-figure::after {
  position: absolute;
  inset: 14% -1px 44px auto;
  width: 7px;
  background: var(--accent);
  content: "";
}

.hero-figure figcaption {
  height: 44px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.workshop-section {
  width: min(calc(100% - 64px), var(--max));
  margin: 0 auto;
  padding: 120px 0 140px;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 54px;
}

.section-heading h2,
.studio-note h2 {
  margin: 0;
  font-size: clamp(46px, 6vw, 84px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.section-heading p {
  max-width: 58ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.controls {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) minmax(190px, 0.7fr) minmax(180px, 0.6fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
  padding: 24px;
  background: var(--surface);
}

.field label,
.control-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.035em;
}

.input-wrap {
  position: relative;
}

input,
select,
.saved-toggle {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--page);
  color: var(--ink);
}

input,
select {
  padding: 0 16px;
}

input::placeholder {
  color: var(--muted);
  opacity: 1;
}

select {
  cursor: pointer;
}

.saved-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px 0 16px;
  font-weight: 700;
  cursor: pointer;
}

.saved-toggle[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.saved-count {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 13px;
}

.list-summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.list-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: pointer;
}

.workshop-grid,
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 54px 24px;
}

.workshop-card {
  grid-column: span 6;
  min-width: 0;
}

.workshop-card:nth-child(4n + 1),
.workshop-card:nth-child(4n) {
  grid-column: span 7;
}

.workshop-card:nth-child(4n + 2),
.workshop-card:nth-child(4n + 3) {
  grid-column: span 5;
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  overflow: hidden;
  background: var(--surface-strong);
}

.workshop-card:nth-child(4n + 1) .card-image-wrap,
.workshop-card:nth-child(4n) .card-image-wrap {
  aspect-ratio: 16 / 10;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), filter 300ms ease;
}

.workshop-card:hover .card-image {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.025);
}

.card-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.card-category {
  color: var(--accent);
}

.card-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}

.card-title {
  margin: 0;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 1;
}

.card-price {
  padding-top: 4px;
  font-size: 18px;
  font-weight: 800;
}

.card-description {
  max-width: 55ch;
  margin: 13px 0 17px;
  color: var(--muted);
}

.open-item {
  display: inline-flex;
  align-items: center;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 2px solid var(--accent);
  background: transparent;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.skeleton {
  grid-column: span 5;
  height: 430px;
  background: var(--surface);
}

.skeleton.large {
  grid-column: span 7;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-figure {
    animation: enter 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-figure {
    animation-delay: 120ms;
  }

  .workshop-card {
    animation: card-in 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--index) * 55ms);
  }

  .skeleton {
    animation: pulse 1.2s ease-in-out infinite alternate;
  }

  @keyframes enter {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes card-in {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes pulse {
    from { opacity: 0.45; }
    to { opacity: 0.85; }
  }
}

.empty-state,
.error-state {
  max-width: 720px;
  margin: 50px auto 0;
  padding: 70px 36px;
  border: 1px solid var(--line);
  text-align: center;
}

.empty-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.empty-state h3,
.error-state h3 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.empty-state > p:not(.empty-kicker),
.error-state p {
  margin: 18px auto 24px;
  color: var(--muted);
}

.secondary-button {
  padding: 0 20px;
}

.studio-note {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(390px, 1.28fr);
  gap: clamp(40px, 9vw, 150px);
  align-items: center;
  width: min(calc(100% - 64px), var(--max));
  margin: 0 auto 140px;
  padding: 84px 7vw 84px 0;
  background: var(--surface);
}

.studio-note img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.08);
}

.studio-note h2 {
  max-width: 9ch;
}

.studio-note p {
  max-width: 44ch;
  margin: 28px 0 24px;
  color: var(--muted);
  font-size: 18px;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 36px;
  align-items: center;
  width: min(calc(100% - 64px), var(--max));
  min-height: 130px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-dialog {
  width: min(1120px, calc(100% - 48px));
  max-width: none;
  max-height: min(860px, calc(100dvh - 48px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--page);
  color: var(--ink);
  box-shadow: 0 24px 80px var(--shadow);
  overflow: auto;
}

.detail-dialog::backdrop {
  background: rgba(17, 19, 26, 0.72);
  backdrop-filter: blur(5px);
}

.detail-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  min-height: 690px;
}

.close-detail {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  width: auto;
  height: 46px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--page);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.detail-image-wrap {
  min-height: 690px;
  background: var(--surface-strong);
}

.detail-image {
  width: 100%;
  height: 100%;
  min-height: 690px;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.04);
}

.detail-content {
  align-self: center;
  padding: 76px clamp(36px, 6vw, 78px) 58px;
}

.detail-category {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.detail-content h2 {
  margin: 0;
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.94;
}

.detail-body {
  max-width: 48ch;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 17px;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 18px;
  margin: 0 0 34px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-facts div {
  min-width: 0;
}

.detail-facts dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 720;
}

.save-button {
  width: 100%;
  padding: 0 20px;
}

.save-button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--ink);
}

.save-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

button:active,
.primary-link:active,
.open-item:active {
  transform: translateY(1px);
}

[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 68px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    width: calc(100% - 32px);
    height: 64px;
  }

  .nav-link {
    font-size: 12px;
  }

  .nav-note {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    width: calc(100% - 32px);
    min-height: 0;
    padding: 36px 0 48px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .eyebrow {
    margin-bottom: 22px;
  }

  h1 {
    font-size: clamp(56px, 18vw, 78px);
  }

  .hero-intro {
    margin: 26px 0 22px;
    font-size: 17px;
  }

  .hero-figure {
    min-height: 0;
  }

  .hero-figure img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hero-figure::after {
    inset: 12% -1px 44px auto;
    width: 5px;
  }

  .workshop-section {
    width: calc(100% - 32px);
    padding: 76px 0 92px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading h2,
  .studio-note h2 {
    font-size: clamp(43px, 14vw, 60px);
  }

  .section-heading p {
    font-size: 16px;
  }

  .controls {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-inline: -16px;
    padding: 22px 16px;
  }

  input,
  select,
  .saved-toggle {
    height: 50px;
  }

  .workshop-grid,
  .skeleton-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .workshop-card,
  .workshop-card:nth-child(n),
  .skeleton,
  .skeleton.large {
    grid-column: 1;
    width: 100%;
  }

  .card-image-wrap,
  .workshop-card:nth-child(n) .card-image-wrap {
    aspect-ratio: 4 / 3;
  }

  .card-title {
    font-size: 34px;
  }

  .card-description {
    font-size: 15px;
  }

  .empty-state,
  .error-state {
    padding: 52px 20px;
  }

  .studio-note {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    margin-bottom: 80px;
    padding: 0;
  }

  .studio-note img {
    height: 430px;
  }

  .studio-note > div {
    padding: 44px 16px 52px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 14px;
    width: calc(100% - 32px);
    padding: 32px 0;
  }

  .detail-dialog {
    width: 100%;
    max-height: 100dvh;
    margin: auto 0 0;
  }

  .detail-shell {
    grid-template-columns: 1fr;
    min-height: 100dvh;
  }

  .detail-image-wrap,
  .detail-image {
    min-height: 0;
    height: 285px;
  }

  .close-detail {
    top: 12px;
    right: 12px;
  }

  .detail-content {
    align-self: start;
    padding: 38px 16px 36px;
  }

  .detail-content h2 {
    padding-right: 20px;
    font-size: 50px;
  }

  .detail-body {
    font-size: 16px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .detail-dialog::backdrop {
    background: rgba(17, 19, 26, 0.92);
    backdrop-filter: none;
  }
}
