@font-face {
  font-family: "Archivo Black";
  src: url("/artifacts/forma-frontend--v1--s2--gpt-5.6-sol-codex--impeccable--2026-10-12T10-48-02-852Z/assets/ArchivoBlack-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --blue: #1737f2;
  --blue-dark: #1027b9;
  --yellow: #ffda33;
  --paper: #f4f3ed;
  --white: #fffef8;
  --ink: #10100f;
  --muted: #595951;
  --line: #161614;
  --display: "Archivo Black", "Arial Narrow", sans-serif;
  --body: Arial, Helvetica, sans-serif;
  --pad: clamp(1rem, 3vw, 2.75rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.45;
}

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

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

* {
  scrollbar-color: var(--yellow) var(--blue);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 11px;
}

*::-webkit-scrollbar-track {
  background: var(--blue);
}

*::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border: 3px solid var(--blue);
}

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

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

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

.site-header {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  padding: 0 var(--pad);
  color: var(--white);
  background: var(--blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.wordmark {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.08em;
  color: inherit;
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.wordmark span:nth-child(2),
.wordmark span:nth-child(4) {
  transform: translateY(0.11em);
}

.header-note {
  margin: 0;
  color: #e7eaff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-saved {
  justify-self: end;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.55rem 0.45rem 1rem;
  border: 1px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-saved span {
  min-width: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-variant-numeric: tabular-nums;
}

.program-intro {
  min-height: 368px;
  display: grid;
  grid-template-columns: 47% 35% 18%;
  overflow: hidden;
  color: var(--white);
  background: var(--blue);
}

.intro-title {
  min-width: 0;
  padding: clamp(2rem, 4vw, 3.75rem) var(--pad) 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.intro-title h1 {
  max-width: 7ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.6rem, 6.4vw, 6rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.intro-title p {
  max-width: 37ch;
  margin: 1.3rem 0 0;
  color: #e7eaff;
  font-size: clamp(0.96rem, 1.3vw, 1.12rem);
}

.jump-link {
  margin-top: auto;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid var(--yellow);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.intro-image {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #c9b99f;
}

.intro-image::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 46px;
  height: 46px;
  background: var(--yellow);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.intro-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.intro-image figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.55rem 0.8rem;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-stamp {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
  color: var(--ink);
  background: var(--yellow);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 2.25rem);
  line-height: 0.9;
  text-align: center;
}

.intro-stamp span {
  display: block;
  padding: 0.45em 0;
  border-bottom: 3px solid var(--ink);
  transform: rotate(-4deg);
}

.intro-stamp span:nth-child(2) {
  transform: rotate(3deg);
}

.browse {
  padding: 3.5rem var(--pad) 5.5rem;
}

.browse-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.browse-heading h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.9rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.browse-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.program-code {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(190px, 0.8fr) minmax(170px, 0.55fr);
  border: 2px solid var(--line);
  background: var(--white);
}

.field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 0.65rem;
  border-right: 1px solid var(--line);
}

.field > span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 1.05rem;
  font-weight: 700;
}

.field input::placeholder {
  color: #67675f;
  opacity: 1;
}

.field:focus-within {
  box-shadow: inset 0 -5px 0 var(--yellow);
}

.saved-filter {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 0;
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
}

.saved-filter strong {
  min-width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-variant-numeric: tabular-nums;
}

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

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

.workshop-list {
  margin-top: 1.35rem;
  border-top: 2px solid var(--line);
}

.workshop {
  position: relative;
  display: grid;
  grid-template-columns: minmax(115px, 0.7fr) minmax(230px, 1.55fr) minmax(290px, 2fr) minmax(110px, 0.7fr);
  min-height: 250px;
  border-bottom: 2px solid var(--line);
  background: var(--white);
}

.workshop > *:not(:last-child) {
  border-right: 1px solid var(--line);
}

.workshop-date {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem;
  background: var(--yellow);
}

.workshop-date span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workshop-date strong {
  font-family: var(--display);
  font-size: clamp(3rem, 5.2vw, 5.2rem);
  font-weight: 400;
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.workshop-image {
  min-width: 0;
  overflow: hidden;
  background: #d8d5ca;
}

.workshop-image img {
  width: 100%;
  height: 100%;
  min-height: 248px;
  display: block;
  object-fit: cover;
  transition: transform 650ms var(--ease), filter 300ms ease;
}

.workshop-copy {
  min-width: 0;
  padding: clamp(1.25rem, 2.6vw, 2.25rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.workshop-category {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.workshop-copy h3 {
  margin: 0.55rem 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.workshop-description {
  max-width: 56ch;
  margin: 0;
  color: #3f3f39;
}

.workshop-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: auto 0 0;
  padding: 1.15rem 0 0;
  list-style: none;
  color: #42423d;
  font-size: 0.78rem;
  font-weight: 700;
}

.workshop-facts li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.workshop-facts li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  display: block;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--blue);
}

.workshop-action {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 1.15rem;
}

.workshop-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workshop-price strong {
  color: var(--blue);
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.saved-mark {
  align-self: flex-end;
  min-height: 24px;
  color: var(--blue-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.open-item {
  min-height: 46px;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--yellow);
  font-weight: 800;
  text-align: left;
  transition: color 180ms ease, background 180ms ease;
}

.workshop:hover .workshop-image img,
.workshop:focus-within .workshop-image img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.open-item:hover {
  color: var(--white);
  background: var(--blue);
}

.empty-state,
.load-error {
  min-height: 280px;
  margin-top: 1.35rem;
  padding: 3rem;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.3rem;
  border: 2px solid var(--line);
  background: var(--yellow);
  text-align: center;
}

.empty-state[hidden],
.load-error[hidden] {
  display: none;
}

.empty-state p,
.load-error p {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.empty-state button,
.load-error button {
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 2px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
}

.site-footer {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding: 3rem var(--pad);
  color: var(--white);
  background: var(--blue);
}

.site-footer p {
  max-width: 13ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.site-footer a {
  align-self: center;
  font-weight: 800;
}

.site-footer > span {
  grid-column: 2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-sheet {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(760px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--white);
  box-shadow: -22px 0 60px rgba(2, 7, 42, 0.26);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
}

.detail-sheet[open] {
  display: block;
  animation: sheet-in 480ms var(--ease) forwards;
}

.detail-sheet::backdrop {
  background: rgba(5, 10, 45, 0.68);
  animation: backdrop-in 260ms ease-out;
}

.detail-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.detail-topbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  background: var(--blue);
}

.detail-topbar span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.close-detail {
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--white);
  color: var(--white);
  background: transparent;
  font-weight: 800;
}

.detail-media {
  position: relative;
  height: clamp(230px, 38vh, 390px);
  min-height: 230px;
  margin: 0;
  overflow: hidden;
  background: #d8d5ca;
}

.detail-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.detail-date {
  position: absolute;
  left: 0;
  bottom: 0;
  min-width: 138px;
  display: flex;
  align-items: end;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: var(--yellow);
}

.detail-date strong {
  font-family: var(--display);
  font-size: 3.2rem;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.detail-date span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-body {
  padding: clamp(1.4rem, 4vw, 3rem);
}

.detail-category {
  margin: 0;
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.detail-body h2 {
  max-width: 10ch;
  margin: 0.5rem 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.detail-description {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  line-height: 1.55;
}

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

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

.detail-facts div + div {
  border-left: 1px solid var(--line);
}

.detail-facts dt {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  margin-top: 1rem;
  border: 2px solid var(--ink);
}

.save-item {
  min-height: 58px;
  padding: 0.8rem 1rem;
  border: 0;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 800;
  text-align: left;
}

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

.detail-price {
  min-width: 112px;
  display: grid;
  place-items: center;
  padding: 0.7rem 1rem;
  border-left: 2px solid var(--ink);
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

@keyframes sheet-in {
  from {
    transform: translateX(100%);
    filter: saturate(0.7);
  }
  to {
    transform: translateX(0);
    filter: saturate(1);
  }
}

@keyframes backdrop-in {
  from { background: rgba(5, 10, 45, 0); }
  to { background: rgba(5, 10, 45, 0.68); }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-note {
    display: none;
  }

  .program-intro {
    grid-template-columns: 58% 42%;
  }

  .intro-stamp {
    display: none;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .saved-filter {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .category-field {
    border-right: 0;
  }

  .workshop {
    grid-template-columns: 105px minmax(180px, 0.9fr) minmax(280px, 1.4fr);
  }

  .workshop-action {
    grid-column: 3;
    min-height: 84px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    padding-top: 0;
    border-top: 0;
    border-right: 0 !important;
  }

  .workshop-copy {
    padding-bottom: 0;
  }

  .workshop-price {
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .saved-mark {
    justify-self: start;
    align-self: center;
  }
}

@media (max-width: 620px) {
  :root {
    --pad: 1rem;
  }

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

  .wordmark {
    font-size: 1.55rem;
  }

  .header-saved {
    min-height: 38px;
    padding-left: 0.8rem;
    font-size: 0.72rem;
  }

  .program-intro {
    min-height: 470px;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(245px, auto) 210px;
  }

  .intro-title {
    padding-top: 2.35rem;
    padding-bottom: 1.35rem;
  }

  .intro-title h1 {
    font-size: clamp(3.65rem, 17vw, 5rem);
  }

  .intro-title p {
    margin-top: 1rem;
  }

  .jump-link {
    margin-top: 1.2rem;
  }

  .intro-image {
    min-height: 210px;
  }

  .browse {
    padding-top: 2.75rem;
    padding-bottom: 4rem;
  }

  .browse-heading {
    align-items: start;
  }

  .program-code {
    display: none;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .field,
  .category-field {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .saved-filter {
    grid-column: auto;
    border-top: 0;
  }

  .workshop-list {
    margin-top: 1rem;
  }

  .workshop {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 0;
  }

  .workshop > *:not(:last-child) {
    border-right: 0;
  }

  .workshop-date {
    grid-row: 1;
    grid-column: 1;
    min-height: 158px;
    padding: 0.75rem;
    border-right: 1px solid var(--line) !important;
  }

  .workshop-date strong {
    font-size: 3rem;
  }

  .workshop-image {
    grid-row: 1;
    grid-column: 2;
    height: 158px;
  }

  .workshop-image img {
    min-height: 158px;
  }

  .workshop-copy {
    grid-column: 1 / -1;
    padding: 1.2rem 1rem 0;
    border-top: 1px solid var(--line);
  }

  .workshop-copy h3 {
    max-width: calc(100% - 70px);
    margin-top: 0.4rem;
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  .workshop-category {
    max-width: calc(100% - 82px);
  }

  .workshop-description {
    font-size: 0.94rem;
  }

  .workshop-facts {
    gap: 0.35rem 0.7rem;
    padding-top: 1rem;
  }

  .workshop-action {
    grid-column: 1 / -1;
    min-height: 76px;
    padding: 0.85rem 1rem 1.1rem;
  }

  .workshop-price {
    top: 177px;
    right: 1rem;
  }

  .workshop-price strong {
    font-size: 1.9rem;
  }

  .open-item {
    min-width: 144px;
    text-align: center;
  }

  .empty-state,
  .load-error {
    min-height: 240px;
    padding: 2rem 1rem;
  }

  .site-footer {
    min-height: 330px;
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 3.5rem;
  }

  .site-footer p {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .site-footer a {
    align-self: end;
  }

  .site-footer > span {
    grid-column: 1;
  }

  .detail-topbar {
    min-height: 62px;
    padding: 0.65rem 1rem;
  }

  .detail-media {
    height: 29vh;
    min-height: 210px;
  }

  .detail-body h2 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

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

  .detail-facts div + div {
    border-left: 1px solid var(--line);
  }

  .detail-facts div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .detail-facts div:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

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