:root {
  color-scheme: light;
  --bg: #ebe6dc;
  --surface: #f7f2e8;
  --ink: #171512;
  --muted: #5d574f;
  --line: #d2cbbd;
  --accent: #b24535;
  --accent-strong: #8d3024;
  --accent-soft: #d9c15d;
  --shadow: 0 14px 38px rgba(23, 21, 18, 0.07);
  font-family: "Aptos", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
}

.brand {
  color: var(--ink);
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
  font-size: 0.95rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.content-page {
  max-width: 48rem;
  padding-top: 3rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content-page h1 {
  max-width: none;
  font-size: clamp(3rem, 8vw, 5.5rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 2rem;
  align-items: end;
  min-height: 560px;
  padding: 4.25rem 0 2.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.workshop-label {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 10vw, 8.8rem);
  font-weight: 500;
  line-height: 0.95;
}

h1 span {
  display: inline-block;
  margin-right: 0.06em;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9em;
  font-style: italic;
}

h2 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

h3 {
  margin: 2rem 0 0.55rem;
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

.subtitle {
  max-width: 50rem;
  margin-top: 1.6rem;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.25;
}

mark {
  padding: 0 0.08em;
  background: linear-gradient(transparent 45%, var(--accent-soft) 45%, var(--accent-soft) 82%, transparent 82%);
  color: inherit;
}

.event-meta {
  margin-top: 6rem;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.25;
}

.panel {
  padding: 1.25rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.panel p:last-child {
  margin-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  min-height: 100%;
  padding: 1rem;
  background: rgba(247, 242, 232, 0.58);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card h3 {
  margin-top: 0;
}

.resource-browser {
  padding: 4.25rem 0 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.resource-browser h1 {
  max-width: 12ch;
}

.browser-controls {
  margin-top: 2rem;
}

.browser-controls label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.browser-controls input {
  width: 100%;
  min-height: 3.4rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.browser-controls input:focus {
  outline: 3px solid rgba(217, 193, 93, 0.45);
  border-color: var(--accent);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.filter-chip {
  min-height: 2.25rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.result-count {
  margin-top: 1.2rem;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.resource-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.resource-card {
  min-height: 100%;
  padding: 1rem;
  background: rgba(247, 242, 232, 0.58);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.resource-card h2 {
  margin: 0.55rem 0 0.5rem;
  font-size: 1.35rem;
}

.resource-card p {
  color: var(--muted);
}

.resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.resource-tags span {
  padding: 0.15rem 0.42rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.full-list {
  margin-top: 2rem;
}

.full-list summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
}

.activity-hero {
  padding: 4.25rem 0 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.activity-hero h1 {
  max-width: 18ch;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.example-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(247, 242, 232, 0.58);
}

.example-thumb {
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(217, 193, 93, 0.45), rgba(178, 69, 53, 0.12));
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-style: italic;
}

.example-card div {
  padding: 0.9rem;
}

.example-card h2 {
  margin: 0.35rem 0 0.7rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.15;
}

.group-label {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.tags {
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resource-list {
  columns: 2 26rem;
  column-gap: 2rem;
  padding-left: 1.2rem;
}

.resource-list li {
  break-inside: avoid;
  margin-bottom: 0.45rem;
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin-bottom: 0.35rem;
}

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

th,
td {
  padding: 0.55rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

code {
  padding: 0.12rem 0.25rem;
  border-radius: 4px;
  background: var(--accent-soft);
}

pre {
  max-width: 100%;
  overflow-x: hidden;
  white-space: pre-wrap;
}

pre code {
  overflow-wrap: anywhere;
  white-space: inherit;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 780px) {
  .site-header,
  .hero {
    display: block;
  }

  .site-header {
    padding-bottom: 0.75rem;
  }

  nav {
    justify-content: flex-start;
    margin-top: 0.7rem;
  }

  .hero {
    min-height: 0;
    padding: 3rem 0 2rem;
  }

  .panel {
    margin-top: 1.5rem;
  }

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

  .resource-results {
    grid-template-columns: 1fr;
  }

  .example-grid {
    grid-template-columns: 1fr;
  }
}
