/* Catalog website: the printed catalog's look (Archivo, grey paper, black rules) for the web. */
@font-face { font-family: Archivo; font-weight: 400; font-display: swap; src: url(fonts/archivo-400.woff2) format('woff2'); }
@font-face { font-family: Archivo; font-weight: 500; font-display: swap; src: url(fonts/archivo-500.woff2) format('woff2'); }
@font-face { font-family: Archivo; font-weight: 700; font-display: swap; src: url(fonts/archivo-700.woff2) format('woff2'); }
@font-face { font-family: Archivo; font-weight: 800; font-display: swap; src: url(fonts/archivo-800.woff2) format('woff2'); }

:root {
  --paper: #e6e6e6;
  --card: #f4f4f4;
  --ink: #1c1c1c;
  --muted: #555;
  --rule: #2b2b2b;
  --accent: #c8102e;
  --ok: #1d6b3a;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 Archivo, 'Helvetica Neue', Arial, sans-serif; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header and footer */
.site-head { border-bottom: 2px solid var(--rule); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; text-transform: uppercase; }
.brand img { height: 48px; width: auto; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 500; }
.site-foot { margin-top: 64px; border-top: 2px solid var(--rule); padding: 24px 0 40px; font-size: .95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-foot p { margin: 0 0 4px; }
.muted { color: var(--muted); }

/* Headings */
h1 { margin: 32px 0 8px; font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; text-transform: uppercase; overflow-wrap: anywhere; }
h2 { margin: 40px 0 12px; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; }
h3 { margin: 0; }
.lead { font-size: 1.15rem; max-width: 46rem; margin: 0 0 8px; }
.crumbs { margin: 20px 0 0; font-size: .95rem; }

/* Filters */
.filters { margin: 24px 0 8px; padding: 16px; border: 2px solid var(--rule); background: var(--card); display: grid; gap: 14px; }
.filters fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filters legend, .filters .label { display: block; padding: 0; margin-bottom: 6px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.search { width: 100%; font: inherit; padding: 10px 12px; border: 2px solid var(--rule); border-radius: 0; background: #fff; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 5px 12px; border: 1.5px solid var(--rule); border-radius: 99px; background: #fff; font-size: .9rem; font-weight: 500; user-select: none; }
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip-actions { display: inline-flex; gap: 10px; margin-left: 6px; align-items: center; font-size: .85rem; }
.linkish { font: inherit; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
.row label { display: flex; flex-direction: column; flex: 1 1 180px; }
select { font: inherit; padding: 8px 10px; border: 2px solid var(--rule); border-radius: 0; background: #fff; color: var(--ink); }
.count { margin: 16px 0 0; font-weight: 700; }

/* Class cards */
.cards { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 2px solid var(--rule); }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card a:hover h3, .card a:focus-visible h3 { text-decoration: underline; }
.card img, .card .noimg { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-bottom: 2px solid var(--rule); background: #cdcdcd; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shop-label { margin: 0; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.card h3 { font-size: 1.08rem; font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: -.01em; }
.card p { margin: 0; }
.when { font-weight: 700; line-height: 1.3; }
.when span { font-weight: 400; }
.more { font-size: .9rem; color: var(--muted); }
.price { margin-top: auto !important; padding-top: 4px; font-weight: 800; font-size: 1.1rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: .75rem; font-weight: 700; padding: 2px 8px; border: 1.5px solid var(--rule); border-radius: 99px; text-transform: uppercase; letter-spacing: .03em; }
.badge.closed { border-color: var(--accent); color: var(--accent); }
.none { margin: 24px 0; font-size: 1.1rem; }

/* Class page */
.class-top { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; margin-top: 8px; }
.class-top img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border: 2px solid var(--rule); background: #cdcdcd; }
.facts { margin: 12px 0 0; padding: 0; list-style: none; }
.facts li { padding: 6px 0; border-top: 1.5px solid var(--rule); }
.facts li:last-child { border-bottom: 1.5px solid var(--rule); }
.prose { max-width: 46rem; }
.prose p, .prose ul { margin: 0 0 12px; }
.sessions { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.session { background: var(--card); border: 2px solid var(--rule); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; }
.session .meetings { margin: 6px 0 0; padding-left: 1.1rem; font-size: .95rem; }
.status { margin: 4px 0 0; font-size: .9rem; font-weight: 700; color: var(--ok); }
.status.closed { color: var(--accent); }
.button { display: inline-block; padding: 10px 16px; background: var(--ink); color: #fff; font-weight: 800; text-transform: uppercase; text-decoration: none; letter-spacing: .02em; text-align: center; border: 2px solid var(--ink); }
.button.secondary { background: transparent; color: var(--ink); }
.button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.note { margin-top: 32px; padding: 16px; border: 2px solid var(--rule); background: var(--card); max-width: 46rem; }
.note h2 { margin-top: 0; }

/* Shop page and lists */
.join ol { padding-left: 1.3rem; }
.join li { margin-bottom: 6px; }
.shop-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
.shop-links li { border-top: 1.5px solid var(--rule); padding: 8px 0; }
.shop-links a { font-weight: 700; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .class-top { grid-template-columns: 1fr; }
  .session { grid-template-columns: 1fr; }
  .session .button { justify-self: start; }
  .brand img { height: 40px; }
}

/* Past classes and dates */
.card.past img { filter: grayscale(.7); }
.card.past { background: transparent; }
.session.past { background: transparent; border-style: dashed; }
