:root {
  --ink: #122527;
  --muted: #5f7173;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --mist: #edf4f2;
  --line: #d7e3df;
  --lake: #087f7a;
  --lake-dark: #06474d;
  --accent-text: #06474d;
  --sun: #f2b134;
  --coral: #df674f;
  --python-blue: #366994;
  --header-bg: rgba(251, 250, 247, 0.88);
  --header-border: rgba(215, 227, 223, 0.86);
  --button-dark-bg: #06474d;
  --button-dark-text: #ffffff;
  --button-primary-text: #122527;
  --shadow: 0 24px 60px rgba(6, 71, 77, 0.14);
  --hover-shadow: 0 14px 34px rgba(6, 71, 77, 0.1);
  --radius: 6px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eaf5f2;
    --muted: #a9bfbc;
    --paper: #071719;
    --surface: #0d2326;
    --mist: #112d31;
    --line: #28474c;
    --lake: #4fd1c8;
    --lake-dark: #06383d;
    --accent-text: #7de0d8;
    --sun: #f4c85f;
    --coral: #ff8a73;
    --python-blue: #8ab6e8;
    --header-bg: rgba(7, 23, 25, 0.9);
    --header-border: rgba(40, 71, 76, 0.9);
    --button-dark-bg: #0f555c;
    --button-dark-text: #ffffff;
    --button-primary-text: #122527;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    --hover-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
    color-scheme: dark;
  }
}

html[data-theme="light"] {
  --ink: #122527;
  --muted: #5f7173;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --mist: #edf4f2;
  --line: #d7e3df;
  --lake: #087f7a;
  --lake-dark: #06474d;
  --accent-text: #06474d;
  --sun: #f2b134;
  --coral: #df674f;
  --python-blue: #366994;
  --header-bg: rgba(251, 250, 247, 0.88);
  --header-border: rgba(215, 227, 223, 0.86);
  --button-dark-bg: #06474d;
  --button-dark-text: #ffffff;
  --button-primary-text: #122527;
  --shadow: 0 24px 60px rgba(6, 71, 77, 0.14);
  --hover-shadow: 0 14px 34px rgba(6, 71, 77, 0.1);
  color-scheme: light;
}

html[data-theme="dark"] {
  --ink: #eaf5f2;
  --muted: #a9bfbc;
  --paper: #071719;
  --surface: #0d2326;
  --mist: #112d31;
  --line: #28474c;
  --lake: #4fd1c8;
  --lake-dark: #06383d;
  --accent-text: #7de0d8;
  --sun: #f4c85f;
  --coral: #ff8a73;
  --python-blue: #8ab6e8;
  --header-bg: rgba(7, 23, 25, 0.9);
  --header-border: rgba(40, 71, 76, 0.9);
  --button-dark-bg: #0f555c;
  --button-dark-text: #ffffff;
  --button-primary-text: #122527;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --hover-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--sun);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-weight: 800;
}

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

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

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--header-border);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: 0;
}

.brand {
  white-space: nowrap;
}

.brand-code {
  display: inline-flex;
  align-items: center;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
}

.brand-op {
  color: var(--muted);
  font-weight: 600;
}

.brand-typed,
.brand-typed-single {
  color: var(--lake);
}

.brand-cursor {
  color: var(--lake);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.brand-mobile {
  display: none;
}

@media (max-width: 720px) {
  .brand-desktop {
    display: none;
  }
  .brand-mobile {
    display: inline-flex;
  }
}

.desktop-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.desktop-nav a,
.mobile-nav-panel a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
  text-decoration: none;
}

.desktop-nav a:hover,
.mobile-nav-panel a:hover {
  color: var(--accent-text);
}

.theme-toggle {
  display: inline-flex;
  width: 52px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--sun), var(--python-blue));
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(18, 37, 39, 0.24);
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.theme-toggle[data-theme-state="dark"] .theme-toggle-thumb {
  transform: translateX(18px);
}

.theme-toggle:hover {
  border-color: var(--lake);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.mobile-nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(280px, calc(100vw - 40px));
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  min-height: min(760px, 82svh);
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--lake-dark);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 40, 44, 0.92), rgba(6, 40, 44, 0.62) 48%, rgba(6, 40, 44, 0.2)),
    linear-gradient(0deg, rgba(6, 40, 44, 0.3), rgba(6, 40, 44, 0.05)),
    url("/assets/hero-carinthia.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: linear-gradient(90deg, var(--lake), var(--sun), var(--coral), var(--python-blue));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 72px 0 86px;
}

.eyebrow,
.section-kicker,
.card-kicker {
  color: var(--lake);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--sun);
}

.hero h1,
.page-hero h1,
.section-heading,
.event-title {
  margin: 0;
  max-width: 860px;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--sun);
}

.hero-copy {
  max-width: 670px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 18px;
  color: var(--button-primary-text);
  background: var(--sun);
  font-size: 0.94rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.button.light {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.button.dark {
  color: var(--button-dark-text);
  background: var(--button-dark-bg);
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: var(--mist);
}

.section-header {
  display: grid;
  max-width: 740px;
  gap: 12px;
  margin-bottom: 34px;
}

.section-heading {
  font-size: clamp(2rem, 5vw, 3.35rem);
}

.lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.event-panel {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.date-tile {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 220px;
  padding: 32px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 127, 122, 0.4), rgba(54, 105, 148, 0.28)),
    var(--lake-dark);
  border-radius: var(--radius) 0 0 var(--radius);
}

.date-tile .month {
  color: var(--sun);
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.date-tile .day {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}

.date-tile .time {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.event-body {
  padding: 34px;
}

.event-title {
  max-width: 760px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.88rem;
  font-weight: 730;
}

.event-body p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.cal-dropdown {
  position: relative;
}

.cal-dropdown summary {
  list-style: none;
  cursor: pointer;
}

.cal-dropdown summary::-webkit-details-marker {
  display: none;
}

.cal-dropdown summary::after {
  content: " ▾";
  font-size: 0.75em;
}

.cal-dropdown[open] summary::after {
  content: " ▴";
}

.cal-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cal-options a {
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.cal-options a:hover {
  background: var(--mist);
  color: var(--accent-text);
}

.map-frame {
  width: 100%;
  height: 330px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.format-grid,
.resource-grid,
.connect-grid,
.event-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card,
.resource-card,
.connect-card,
.event-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card {
  padding: 24px;
}

.card h3,
.resource-card h3,
.connect-card h3,
.event-card h2,
.event-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.card p,
.resource-card p,
.connect-card p,
.event-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-index {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
}

.split-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.split-band > div {
  padding: 36px;
}

.split-band .dark-panel {
  color: #fff;
  background: var(--lake-dark);
}

.split-band h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.7vw, 2rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.split-band p {
  margin: 14px 0 0;
  color: var(--muted);
}

.dark-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.dark-panel .button {
  border-color: rgba(255, 255, 255, 0.32);
}

.resource-card,
.connect-card,
.event-card {
  display: grid;
  align-content: start;
  min-height: 100%;
  padding: 22px;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

a.resource-card:hover,
a.connect-card:hover,
a.event-card:hover {
  transform: translateY(-2px);
  border-color: var(--lake);
  box-shadow: var(--hover-shadow);
}

.category-group + .category-group {
  margin-top: 42px;
}

.category-title {
  margin: 0 0 16px;
  color: var(--accent-text);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero {
  padding: 82px 0 46px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
}

.page-hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.event-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-card time,
.event-page time {
  color: var(--lake);
  font-size: 0.86rem;
  font-weight: 850;
}

.event-page {
  display: grid;
  gap: 28px;
  padding: 74px 0;
}

.event-page article {
  max-width: 760px;
}

.prose {
  color: var(--muted);
  font-size: 1.06rem;
}

.prose h2,
.prose h3 {
  margin: 2rem 0 0.7rem;
  color: var(--ink);
  line-height: 1.2;
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose a {
  color: var(--lake);
  font-weight: 760;
}

.site-footer {
  padding: 58px 0 28px;
  color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(120deg, rgba(8, 127, 122, 0.24), rgba(223, 103, 79, 0.13)),
    var(--lake-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.8fr;
  gap: 42px;
}

.footer-brand {
  color: #fff;
}

.site-footer p {
  max-width: 420px;
  margin: 14px 0 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a {
  display: block;
  width: fit-content;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-footer a + a {
  margin-top: 8px;
}

.site-footer a:hover {
  color: var(--sun);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.86rem;
}

@media (max-width: 940px) {
  .format-grid,
  .resource-grid,
  .connect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .desktop-nav {
    display: none;
  }

  .header-actions {
    gap: 10px;
  }

  .desktop-theme-toggle {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-theme-toggle {
    justify-self: start;
    margin-top: 4px;
  }

  .hero {
    min-height: 76svh;
  }

  .hero-content {
    padding: 54px 0 64px;
  }

  .actions,
  .event-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .event-panel,
  .split-band,
  .footer-grid,
  .event-list {
    grid-template-columns: 1fr;
  }

  .date-tile {
    min-height: auto;
    grid-template-columns: auto 1fr;
    align-items: end;
    padding: 22px;
  }

  .date-tile .month,
  .date-tile .time {
    grid-column: 2;
  }

  .date-tile .day {
    grid-row: 1 / 3;
    font-size: 3.2rem;
  }

  .event-body,
  .split-band > div {
    padding: 24px;
  }

  .format-grid,
  .resource-grid,
  .connect-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .page-hero {
    padding: 58px 0 36px;
  }

  .footer-bottom {
    display: grid;
  }
}
