:root {
  color-scheme: light;
  --color-page: #f7f3ec;
  --color-surface: #fffaf2;
  --color-surface-soft: #fffaf2;
  --color-text: #1f2933;
  --color-text-muted: #64707d;
  --color-primary-blue: #1f2933;
  --color-primary-green: #294936;
  --color-slate-teal: #1f8a8a;
  --color-warm-red: #d95d39;
  --color-soft-gold: #c28a20;
  --color-border: rgba(31, 41, 51, 0.14);
  --color-shadow: rgba(31, 41, 51, 0.12);
  --color-shadow-strong: rgba(31, 41, 51, 0.16);
  --color-header-bg: rgba(247, 243, 236, 0.78);
  --color-header-bg-elevated: rgba(247, 243, 236, 0.92);
  --color-surface-glass: rgba(255, 250, 242, 0.62);
  --color-surface-glass-strong: rgba(255, 250, 242, 0.82);
  --color-surface-line: rgba(255, 250, 242, 0.34);
  --color-on-accent: #fffaf2;
  --hero-overlay-center: rgba(247, 243, 236, 0.9);
  --hero-overlay-mid: rgba(247, 243, 236, 0.62);
  --hero-overlay-edge: rgba(247, 243, 236, 0.24);
  --hero-overlay-bottom: rgba(247, 243, 236, 0.78);
  --hero-overlay-top: rgba(247, 243, 236, 0.12);
  --color-heading: var(--color-text);
  --color-action: var(--color-text);
  --color-action-hover: var(--color-text);
  --color-emphasis: var(--color-warm-red);
  --color-secondary-accent: var(--color-soft-gold);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-surface-soft);
  color: var(--color-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  background: linear-gradient(
    to bottom,
    var(--color-header-bg) 0%,
    rgba(247, 243, 236, 0.52) 62%,
    rgba(247, 243, 236, 0) 100%
  );
  border-bottom: 1px solid transparent;
  display: flex;
  height: 72px;
  justify-content: flex-end;
  left: 0;
  padding: 0 clamp(20px, 5vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  transition: border-color 180ms ease, background 180ms ease;
  z-index: 20;
}

.site-header[data-elevated="true"] {
  backdrop-filter: blur(18px);
  background: var(--color-header-bg-elevated);
  border-bottom-color: var(--color-border);
}

.site-nav,
.hero-actions,
.contact-actions {
  align-items: center;
  display: flex;
}

.site-nav {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  font-weight: 700;
  gap: clamp(16px, 3vw, 32px);
}

.site-nav a {
  border-bottom: 2px solid transparent;
  padding: 6px 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--color-warm-red);
  color: var(--color-text);
}

.hero {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: min(520px, 50vh);
  overflow: hidden;
  padding: 80px clamp(20px, 5vw, 56px) 28px;
  position: relative;
}

.hero::after {
  background:
    radial-gradient(ellipse at center 36%, var(--hero-overlay-center) 0%, var(--hero-overlay-mid) 44%, transparent 82%),
    linear-gradient(
      to bottom,
      var(--hero-overlay-top) 0%,
      rgba(247, 243, 236, 0.36) 36%,
      rgba(255, 250, 242, 0.9) 82%,
      var(--color-surface-soft) 100%
    );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-canvas {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-content {
  max-width: 1120px;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.project-type {
  color: var(--color-emphasis);
  font-size: 1.0rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 24px;
  max-width: 900px;
}

.workshop-title {
  font-size: clamp(1.6rem, 4vw, 3.0rem);
  line-height: 1.15;
  margin: 0 auto 14px;
  max-width: 1060px;
}

.hero-tagline {
  color: var(--color-emphasis);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 auto 22px;
  text-align: center;
  text-transform: uppercase;
}

.hero-meta {
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-copy {
  color: var(--color-text-muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 640px;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions {
  justify-content: center;
  margin-top: 0;
}

.button {
  align-items: center;
  border: 1px solid var(--color-text);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 0 10px 22px var(--color-shadow-strong);
  transform: translateY(-2px);
}

.button-primary {
  background: var(--color-text);
  color: var(--color-surface);
}

.button-secondary {
  background: var(--color-surface-glass);
  color: var(--color-text);
}

.section,
.contact-section {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 20px clamp(20px, 5vw, 32px);
}

.intro-section {
  padding-top: 28px;
}

.intro-copy {
  width: 100%;
}

.intro-copy > p:not(.section-kicker) {
  color: var(--color-text-muted);
  font-size: 1.08rem;
  margin: 0 0 18px;
  max-width: none;
  text-align: justify;
  text-justify: inter-word;
}

.intro-copy > p:last-child {
  margin-bottom: 0;
}

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

.topic-grid,
.person-grid {
  display: grid;
  gap: 18px;
}

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

.topic-card,
.person-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 18px 50px var(--color-shadow);
}

.topic-card {
  min-height: 210px;
  padding: 26px;
}

.topic-card h3,
.person-card h3 {
  margin-bottom: 8px;
}

.topic-card p,
.person-card p,
.person-card span,
.organizer-list p,
.schedule-item p {
  color: var(--color-text-muted);
}

.person-grid {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: center;
}

.person-grid .person-card {
  flex: 0 1 calc((100% - 54px) / 4);
}

.person-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 300px;
  padding: 22px;
  text-align: center;
}

.person-card p {
  font-weight: 700;
  margin-bottom: 12px;
}

.person-card span {
  display: block;
  font-size: 0.95rem;
}

.avatar {
  align-items: center;
  align-self: center;
  border-radius: 50%;
  color: var(--color-on-accent);
  display: flex;
  font-size: 2rem;
  font-weight: 800;
  height: 136px;
  justify-content: center;
  width: 136px;
}

.avatar-teal {
  background: var(--color-slate-teal);
}

.avatar-gold {
  background: var(--color-soft-gold);
}

.avatar-coral {
  background: var(--color-warm-red);
}

.avatar-photo {
  background: var(--color-border);
  object-fit: cover;
}

.avatar-forest {
  background: var(--color-primary-green);
}

.schedule-list {
  border-top: 1px solid var(--color-border);
}

.schedule-item {
  border-bottom: 1px solid var(--color-border);
  display: grid;
  gap: 24px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 24px 0;
}

.schedule-item time {
  color: var(--color-warm-red);
  font-size: 0.92rem;
  font-weight: 800;
}

.schedule-item h3 {
  margin-bottom: 6px;
}

.schedule-item p {
  margin-bottom: 0;
}

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

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 18px 50px var(--color-shadow);
  display: grid;
  grid-template-rows: 220px 1fr;
  min-width: 0;
  overflow: hidden;
}

.project-visual {
  min-height: 220px;
  overflow: hidden;
  position: relative;
}

.project-visual span {
  position: absolute;
}

.visual-sim {
  background: #173f3f;
}

.visual-sim span {
  background: var(--color-surface-glass-strong);
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.visual-sim span:nth-child(1) { left: 18%; top: 28%; }
.visual-sim span:nth-child(2) { left: 58%; top: 20%; }
.visual-sim span:nth-child(3) { left: 72%; top: 64%; }
.visual-sim span:nth-child(4) { left: 30%; top: 72%; }

.visual-sim::before,
.visual-sim::after {
  border: 1px solid var(--color-surface-line);
  content: "";
  position: absolute;
}

.visual-sim::before {
  height: 64%;
  left: 18%;
  top: 18%;
  transform: rotate(-12deg);
  width: 56%;
}

.visual-sim::after {
  background: var(--color-warm-red);
  border: 0;
  height: 42px;
  left: 48%;
  top: 46%;
  transform: rotate(34deg);
  width: 42px;
}

.visual-lab {
  background: #f1cf7a;
}

.visual-lab span {
  background: var(--color-text);
  border-radius: 6px;
  bottom: 28px;
  width: 15%;
}

.visual-lab span:nth-child(1) { height: 32%; left: 16%; }
.visual-lab span:nth-child(2) { height: 58%; left: 36%; }
.visual-lab span:nth-child(3) { height: 44%; left: 56%; }
.visual-lab span:nth-child(4) { height: 72%; left: 76%; }

.visual-data {
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.78), rgba(255, 250, 242, 0.1)),
    #9b3d2e;
}

.visual-data span {
  background: var(--color-surface-glass-strong);
  height: 2px;
  left: 18%;
  transform-origin: left;
  width: 64%;
}

.visual-data span:nth-child(1) { top: 30%; transform: rotate(9deg); }
.visual-data span:nth-child(2) { top: 45%; transform: rotate(-7deg); }
.visual-data span:nth-child(3) { top: 60%; transform: rotate(14deg); }
.visual-data span:nth-child(4) { top: 75%; transform: rotate(-3deg); }

.project-body {
  padding: 24px;
}

.project-body p:last-child {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.split-section {
  display: grid;
  gap: clamp(28px, 6vw, 80px);
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
}

.notes-list {
  border-top: 1px solid var(--color-border);
}

.note-link {
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 22px 0;
}

.note-link span {
  font-size: 1.08rem;
  font-weight: 800;
}

.note-link time {
  color: var(--color-text-muted);
  flex: 0 0 auto;
  font-size: 0.92rem;
}

.note-link:hover span,
.note-link:focus-visible span {
  color: var(--color-primary-green);
}

.contact-section {
  background: var(--color-primary-green);
  color: var(--color-surface);
  margin-bottom: 48px;
}

.contact-section .section-kicker {
  color: #f1cf7a;
}

.contact-section h2 {
  max-width: 560px;
}

.contact-section .button {
  border-color: var(--color-surface-glass-strong);
}

.contact-section .button-primary {
  background: var(--color-surface);
  color: var(--color-primary-green);
}

.contact-section .button-secondary {
  background: transparent;
  color: var(--color-surface);
}

.organizer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.organizer-list li {
  padding: 6px 0;
}

.organizer-list h3 {
  margin-bottom: 0;
}

.organizer-list p,
.organizer-list span {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.organizer-list span {
  font-size: 0.95rem;
  grid-column: 2;
}

.committee-list {
  columns: 2;
  column-gap: 40px;
  list-style: disc;
  margin: 0;
  padding-left: 1.4em;
}

.committee-list li {
  break-inside: avoid;
  color: var(--color-text-muted);
  padding: 4px 0;
}

.site-footer {
  color: var(--color-text-muted);
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0 clamp(20px, 5vw, 32px) 40px;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .site-header {
    height: auto;
    min-height: 68px;
  }

  .hero {
    min-height: 60vh;
    padding-top: 112px;
  }

  .topic-grid,
  .person-grid,
  .project-grid,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-rows: 180px 1fr;
  }

  .project-visual {
    min-height: 180px;
  }

  .person-card {
    min-height: 0;
  }

  .person-grid .person-card {
    flex-basis: 100%;
  }

  .organizer-list li {
    padding: 5px 0;
  }

  .organizer-list span {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 14px;
    padding: 12px 18px;
  }

  .site-nav {
    font-size: 0.86rem;
    gap: 10px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .hero {
    min-height: 58vh;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 88px;
  }

  .button {
    width: 100%;
  }

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

  .schedule-item {
    gap: 8px;
  }

  .note-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

.open-call {
  background: #f7f1e8;
  padding: 2.5rem 1.5rem;
}

.open-call-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.75rem 2rem;
  border-top: 2px solid #d95f3d;
  border-bottom: 2px solid #d95f3d;
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.open-call-tag {
  color: #d95f3d;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.open-call-content h2 {
  margin: 0 0 0.35rem;
  color: #172533;
  font-size: 1.45rem;
}

.open-call-content p {
  margin: 0;
  color: #5f6f7f;
  line-height: 1.55;
}

.open-call-link {
  color: #172533;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid #d95f3d;
  padding-bottom: 0.2rem;
}

.open-call-link:hover {
  color: #d95f3d;
}

@media (max-width: 768px) {
  .open-call-inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
