:root {
        color-scheme: dark;
        --bg: #090b0f;
        --panel: #10141b;
        --panel-2: #151a23;
        --ink: #f5f0e8;
        --muted: #aab1bd;
        --line: #2a3140;
        --accent: #ff7aa8;
        --accent-2: #7dd3fc;
        --accent-3: #f3c969;
        --code: #0d1117;
      }

      * { box-sizing: border-box; }

      html { scroll-behavior: smooth; }

      body {
        margin: 0;
        background:
          linear-gradient(118deg, rgba(255, 122, 168, 0.13), transparent 32%),
          linear-gradient(242deg, rgba(125, 211, 252, 0.11), transparent 38%),
          repeating-linear-gradient(90deg, rgba(245, 240, 232, 0.055) 0 1px, transparent 1px 72px),
          repeating-linear-gradient(0deg, rgba(245, 240, 232, 0.04) 0 1px, transparent 1px 72px),
          var(--bg);
        color: var(--ink);
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        line-height: 1.5;
      }

      a { color: inherit; }

      code {
        padding: 0.08em 0.28em;
        border: 1px solid rgba(245, 240, 232, 0.16);
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.04);
        color: var(--accent-3);
        font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
        font-size: 0.88em;
      }

      .topbar {
        position: sticky;
        top: 0;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 14px clamp(18px, 4vw, 56px);
        border-bottom: 1px solid var(--line);
        background: rgba(9, 11, 15, 0.92);
        backdrop-filter: blur(14px);
      }

      .brand { font-weight: 780; }

      nav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
        color: var(--muted);
        font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
        font-size: 14px;
      }

      nav::before {
        content: "/pva/2024-2025";
        margin-right: 0.25rem;
        color: var(--accent);
        font-weight: 760;
      }

      nav a {
        display: inline-flex;
        align-items: center;
        min-height: 32px;
        padding: 0 0.35rem;
        border-radius: 4px;
        text-decoration: none;
      }

      nav a::before {
        content: "/";
        margin-right: 0.35rem;
        color: var(--line);
      }

      nav a:hover { color: var(--ink); }
      nav a[aria-current="page"],
      nav a[aria-current="true"] {
        color: var(--ink);
        background: rgba(255, 122, 168, 0.13);
      }

      a:focus-visible,
      button:focus-visible,
      iframe:focus-visible,
      select:focus-visible {
        outline: 3px solid var(--accent-3);
        outline-offset: 3px;
      }

      .hero {
        min-height: 64vh;
        display: grid;
        align-items: end;
        padding: clamp(52px, 8vw, 108px) clamp(18px, 4vw, 56px);
        border-bottom: 1px solid var(--line);
        background:
          linear-gradient(120deg, rgba(9, 11, 15, 0.06), rgba(9, 11, 15, 0.86) 70%),
          repeating-linear-gradient(115deg, rgba(255, 122, 168, 0.12) 0 1px, transparent 1px 34px),
          repeating-linear-gradient(25deg, rgba(125, 211, 252, 0.08) 0 1px, transparent 1px 46px),
          #0a0d12;
        background-size: auto, 56px 56px, 72px 72px, auto;
        animation: hero-field 34s ease-in-out infinite alternate;
      }

      @keyframes hero-field {
        from { background-position: 0 0, 0 0, 0 0, 0 0; }
        to { background-position: 0 0, 42px -18px, -30px 22px, 0 0; }
      }

      .hero-inner {
        display: grid;
        gap: 22px;
        width: min(1120px, 100%);
      }

      .eyebrow {
        margin: 0;
        color: var(--accent);
        font-size: 13px;
        font-weight: 820;
        text-transform: uppercase;
      }

      h1 {
        max-width: 980px;
        margin: 0;
        font-size: clamp(42px, 8vw, 98px);
        line-height: 0.93;
        letter-spacing: 0;
      }

      .lede {
        max-width: 780px;
        margin: 0;
        color: #d7dbe2;
        font-size: clamp(19px, 2.2vw, 27px);
        line-height: 1.42;
      }

      .byline,
      .actions,
      .links,
      .tags,
      .slide-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }

      .byline {
        gap: 12px 18px;
        color: var(--muted);
        font-size: 16px;
      }

      .byline strong { color: var(--ink); }

      .button,
      .links a,
      .reader-button,
      .slide-picker {
        min-height: 40px;
        padding: 9px 12px;
        border: 1px solid rgba(255, 122, 168, 0.55);
        border-radius: 6px;
        background: rgba(255, 122, 168, 0.14);
        color: var(--ink);
        font: inherit;
        font-size: 14px;
        font-weight: 760;
        text-decoration: none;
        cursor: pointer;
      }

      .button.secondary,
      .links a:not(.primary),
      .reader-button {
        border-color: var(--line);
        background: var(--panel-2);
        color: var(--muted);
      }

      main {
        width: min(1180px, calc(100% - 36px));
        margin: 0 auto;
        padding: 44px 0 72px;
      }

      section { margin-top: clamp(44px, 6vw, 72px); }

      .course-header {
        display: grid;
        gap: 12px;
        margin-top: 0;
        padding-bottom: 18px;
        border-bottom: 1px solid var(--line);
      }

      .course-header h1 {
        max-width: 860px;
        font-size: clamp(36px, 5vw, 64px);
        line-height: 1;
      }

      .course-header .lede {
        max-width: 820px;
        font-size: clamp(17px, 1.8vw, 21px);
      }

      .status-cues,
      .feature-grid,
      .sessions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 14px;
      }

      .status-cue,
      .feature-card,
      .session-card,
      .notice,
      .slide-viewer,
      .slide-controls {
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(16, 20, 27, 0.86);
      }

      .status-cue {
        display: grid;
        gap: 6px;
        padding: 14px;
      }

      .status-cue span,
      .tag,
      .session-kicker span {
        color: var(--accent);
        font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
        font-size: 12px;
        font-weight: 760;
      }

      .status-cue strong { font-size: 17px; }

      .course-tools {
        display: grid;
        grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
        gap: 14px;
      }

      .current-session-card,
      .course-search {
        display: grid;
        align-content: start;
        gap: 14px;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(16, 20, 27, 0.86);
      }

      .current-session-card h2,
      .course-search h2 {
        margin: 0;
        font-size: clamp(26px, 3vw, 40px);
        line-height: 1.05;
      }

      .current-session-card p,
      .course-search p {
        margin: 0;
        color: var(--muted);
      }

      .course-tool-label,
      .search-result-type {
        color: var(--accent);
        font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
        font-size: 12px;
        font-weight: 760;
        text-transform: uppercase;
      }

      .search-controls {
        display: grid;
        gap: 10px;
      }

      .search-controls input {
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: var(--panel-2);
        color: var(--ink);
        font: inherit;
      }

      .search-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }

      .search-filter {
        min-height: 34px;
        padding: 7px 10px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.03);
        color: var(--muted);
        font: inherit;
        font-size: 13px;
        font-weight: 720;
        cursor: pointer;
      }

      .search-filter[aria-pressed="true"] {
        border-color: rgba(255, 122, 168, 0.72);
        color: #16070d;
        background: var(--accent);
      }

      .search-results {
        display: grid;
        gap: 8px;
        max-height: 420px;
        margin: 0;
        padding: 0;
        overflow: auto;
        list-style: none;
      }

      .search-results li[hidden],
      .search-empty[hidden] {
        display: none;
      }

      .search-result-link {
        display: grid;
        gap: 3px;
        padding: 10px 11px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.025);
        text-decoration: none;
      }

      .search-result-link strong {
        color: var(--ink);
      }

      .search-result-link span:last-child {
        color: var(--muted);
        font-size: 13px;
      }

      .search-count,
      .search-empty {
        color: var(--muted);
        font-size: 13px;
      }

      .section-heading {
        display: grid;
        gap: 10px;
        margin-bottom: 18px;
      }

      .section-heading h2 {
        margin: 0;
        font-size: clamp(30px, 4vw, 52px);
        line-height: 1;
      }

      .section-heading p {
        max-width: 780px;
        margin: 0;
        color: var(--muted);
      }

      .feature-card,
      .session-card {
        display: grid;
        gap: 12px;
        padding: 16px;
      }

      .feature-card h3,
      .session-card h3 {
        margin: 0;
        font-size: 24px;
        line-height: 1.05;
      }

      .feature-card p,
      .session-card p,
      .notice p,
      .web-card p {
        margin: 0;
        color: var(--muted);
      }

      .notice {
        display: grid;
        gap: 8px;
        padding: 16px;
        margin-bottom: 16px;
        border-color: rgba(255, 122, 168, 0.36);
      }

      .web-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
        gap: 16px;
      }

      .web-card {
        display: grid;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(16, 20, 27, 0.88);
      }

      .preview {
        position: relative;
        min-height: 230px;
        border-bottom: 1px solid var(--line);
        background: #05070a;
      }

      .preview iframe {
        width: 100%;
        height: 100%;
        min-height: 230px;
        border: 0;
        display: block;
      }

      .preview.is-paused::after {
        content: "Preview paused until it is near the screen";
        position: absolute;
        inset: 0;
        z-index: 2;
        display: grid;
        place-items: center;
        padding: 18px;
        color: var(--muted);
        font-size: 13px;
        text-align: center;
        background: linear-gradient(135deg, rgba(5, 7, 10, 0.96), rgba(16, 20, 27, 0.96));
      }

      .preview.is-paused iframe {
        opacity: 0;
      }

      .is-hidden {
        display: none !important;
      }

      .web-card-content {
        display: grid;
        gap: 12px;
        padding: 16px;
      }

      .web-card h3 {
        margin: 0;
        font-size: 24px;
        line-height: 1.05;
      }

      .tag {
        padding: 5px 8px;
        border: 1px solid var(--line);
        border-radius: 999px;
      }

      .details {
        color: var(--muted);
        font-size: 14px;
      }

      .details span {
        color: var(--ink);
        font-weight: 760;
      }

      .slides-reader {
        display: grid;
        grid-template-columns: minmax(220px, 0.28fr) minmax(0, 0.72fr);
        gap: 14px;
      }

      .slide-controls {
        display: grid;
        align-content: start;
        gap: 8px;
        padding: 12px;
      }

      .slide-list-label {
        margin: 0 0 4px;
        color: var(--muted);
        font-size: 13px;
        font-weight: 760;
        text-transform: uppercase;
      }

      .slide-select-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
      }

      .slide-select {
        min-height: 42px;
        padding: 8px 10px;
        border: 1px solid var(--line);
        border-radius: 6px;
        background: var(--panel-2);
        color: var(--ink);
        font: inherit;
      }

      .slide-picker[aria-pressed="true"] {
        color: #16070d;
        background: var(--accent);
      }

      .slide-viewer {
        min-width: 0;
        overflow: hidden;
      }

      .slide-viewer-bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
        border-bottom: 1px solid var(--line);
      }

      .slide-actions a {
        color: var(--accent);
        font-weight: 760;
      }

      .pdf-frame {
        width: 100%;
        height: min(76vh, 760px);
        min-height: 520px;
        border: 0;
        display: block;
        background: #05070a;
      }

      .footer {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 18px;
        margin-top: 48px;
        padding-top: 22px;
        border-top: 1px solid var(--line);
        color: var(--muted);
        font-size: 14px;
      }

      @media (max-width: 880px) {
        .course-tools,
        .slides-reader {
          grid-template-columns: 1fr;
        }
      }

      @media (max-width: 760px) {
        .topbar {
          flex-direction: column;
          align-items: flex-start;
        }

        nav { justify-content: flex-start; }
        .hero { min-height: auto; }
        .slide-picker { display: none; }
        .pdf-frame { min-height: 430px; }
      }

      @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
        .hero { animation: none; }
      }
