:root {
  --ink: #2a1d2f;
  --muted: #6c5c70;
  --paper: #eeeaf2;
  --panel: #f8f4f8;
  --line: #c9bdcf;
  --acid: #a891c7;
  --green: #5b6b62;
  --orange: #8f2748;
  --neck: #24172b;
  --shadow: #b9adbe;
  --surface: #ddd3e2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: radial-gradient(#9b87a4 0.7px, transparent 0.7px);
  background-size: 14px 14px;
}

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

.site-header,
.site-footer,
.page {
  position: relative;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font: 700 1.1rem "Lora", serif;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.site-nav a {
  position: relative;
  padding-bottom: 4px;
  color: var(--muted);
  text-decoration: none;
  font: 700 0.72rem "Manrope", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--orange);
}

.page {
  padding: 20px 0 26px;
}

.page-intro,
.hero {
  padding: 20px 0 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.no-bottom-line {
  border-bottom: none !important;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font: 700 0.78rem "Manrope", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--orange);
  margin-left: 8px;
}

.page-intro h1,
.hero h1 {
  margin: 0;
  font-family: "UnifrakturCook", "Lora", serif;
  font-size: clamp(48px, 8vw, 106px);
  line-height: 0.89;
  letter-spacing: 0;
  font-weight: 700;
}

.hero-copy,
.page-intro p:not(.eyebrow),
.show-card p,
.member-card li,
.zine-card p {
  max-width: 1000px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.hero-copy {
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  font: 700 0.78rem "Manrope", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--shadow);
}

.resource-list {
  display: grid;
  gap: 1rem;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.resource-title {
  margin: 0;
}

.resource-title a {
  color: var(--ink);
  text-decoration: none;
}

.resource-title a:hover,
.resource-title a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.resource-description {
  margin: 0 0 1rem;
}

.guide-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 1.5rem;
}

.guide-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1rem;
}

.guide-switcher a {
  color: var(--green);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.guide-switcher a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}

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

.guide-content {
  max-width: 920px;
  margin: 0 auto;
}

.guide-content section + section {
  margin-top: 2rem;
}

.guide-content h2 {
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}

.guide-principles {
  margin: 0;
  padding-left: 1.25rem;
}

.guide-principles li + li {
  margin-top: 0.55rem;
}

.writer-checklist {
  margin-bottom: 1.2em !important;
}

.guide-principles .genai-notice {
  padding: 0.55rem 0.7rem;
  border-left: 3px solid #b94a48;
  background: #fbe6e5;
  color: #542220;
}

.guide-content a {
  color: var(--green);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.guide-table-wrap {
  overflow-x: auto;
}

.workflow-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.45;
}

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

.workflow-table thead th {
  background: var(--surface);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.workflow-table tbody th {
  min-width: 130px;
  font-weight: 700;
}

.writer-checklist {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.writer-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.writer-checklist input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin: 0.25rem 0 0;
  accent-color: var(--green);
}

h2,
h3 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-family: "Lora", serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(24px, 4vw, 36px);
}

h3 {
  font-size: clamp(22px, 2vw, 28px);
}

.member-list,
.info-grid,
.show-list,
.resource-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 18px 20px;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.22);
}

.member-card {
  width: auto;
}

.member-card .show-list {
  display: block;
  list-style: none;
  padding: 0;
  margin: 0;
}

.member-card .show-list li {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.member-card .show-list b {
  font-weight: 700;
}

.member-card .portrait-placeholder,
.member-card .portrait-image {
  width: min(100%, 260px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #d8cde0, #a984a0);
}

.member-card .portrait-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font: 700 0.72rem "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-intro {
  padding-top: 18px;
  margin-bottom: 20px;
}

.show-section {
  margin-top: 1.5rem;
}

.show-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 550px;
  margin-inline: auto;
}

.show-poster-trigger {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: #ddd3e2;
  cursor: pointer;
}

.show-poster {
  display: block;
  width: 100%;
  height: auto;
}

.photo-carousel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.show-photo-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  flex: 1;
}

.photo-tile {
  flex: 0 0 360px;
  height: 240px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background-color: #ddd3e2;
  background-size: cover;
  background-position: center;
  scroll-snap-align: start;
  cursor: pointer;
  box-shadow: none;
}

.carousel-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.photo-1 { background-image: linear-gradient(135deg, #d8c9d9, #a77c92); }
.photo-2 { background-image: linear-gradient(135deg, #e2ccd2, #b59a72); }
.photo-3 { background-image: linear-gradient(135deg, #cbd7cf, #9aa995); }
.photo-4 { background-image: linear-gradient(135deg, #d0c8df, #9382b2); }
.photo-5 { background-image: linear-gradient(135deg, #dfd0c4, #b59b74); }
.photo-6 { background-image: linear-gradient(135deg, #d8c8d2, #a8919d); }

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(16, 23, 34, 0.75);
  z-index: 1000;
}

.lightbox.is-open {
  display: grid;
}

.site-footer {
  padding: 0 0 30px;
  color: var(--muted);
  font: 700 0.7rem "Manrope", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.contact-note {
  max-width: 680px;
  margin: 0 0 1.25rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav {
    gap: 8px 12px;
  }

  .page,
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1160px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

.photo-7 { background-image: linear-gradient(135deg, #d2cbe0, #9b87a8); }
.photo-8 { background-image: linear-gradient(135deg, #c9d5d0, #8da49a); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: min(90vw, 900px);
  max-height: 90vh;
  background: var(--panel);
  border-radius: 1rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.75rem;
  cursor: pointer;
}

.zine-card {
  margin-top: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav {
    gap: 0.75rem;
  }
}

@media print {
  @page {
    margin: 0.65in;
  }

  body {
    min-width: 0;
    color: #111;
    background: #fff;
    font-family: Georgia, serif;
    font-size: 10pt;
  }

  body::before,
  .site-header,
  .site-footer,
  .guide-switcher,
  .guide-actions {
    display: none !important;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .page-intro {
    padding: 0 0 12pt;
    margin: 0 0 16pt;
  }

  .page-intro h1 {
    font-size: 28pt;
    line-height: 1.1;
  }

  .guide-content {
    max-width: none;
  }

  .guide-content section + section {
    margin-top: 18pt;
  }

  .guide-content h2 {
    font-size: 16pt;
    break-after: avoid;
  }

  .guide-table-wrap {
    overflow: visible;
  }

  .workflow-table {
    font-size: 7.5pt;
  }

  .workflow-table th,
  .workflow-table td {
    padding: 4pt;
  }

  .workflow-table thead th {
    background: #eee !important;
    print-color-adjust: exact;
  }

  .guide-principles .genai-notice {
    background: #fbe6e5 !important;
    print-color-adjust: exact;
  }

  .workflow-table tr,
  .writer-checklist li {
    break-inside: avoid;
  }

  a {
    color: inherit !important;
  }
}
