:root {
  color-scheme: dark;
  --bg: #061209;
  --surface: #0a180d;
  --surface-2: #101f13;
  --text: #f4f7ed;
  --muted: #b9c7c0;
  --line: rgba(220, 255, 236, 0.34);
  --accent: #8cffaa;
  --accent-2: #bff5ff;
  --accent-3: #77106d;
  --accent-4: #e8ff7a;
  --warn: #ffd38c;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial Black, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
}

button,
a {
  font: inherit;
}

.layout {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--accent-2);
  font-size: 76px;
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 20px;
  font-size: 42px;
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 14px 14px 0 var(--shadow);
}

.login-copy p,
.intro,
.video-card p,
.info-panel p,
.schedule-card p,
.notice,
.panel p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.intro {
  max-width: 820px;
  margin-bottom: 22px;
  color: var(--accent-2);
  font-weight: 700;
  text-transform: uppercase;
}

.tabs {
  display: flex;
  gap: 10px;
  margin: 24px 0 22px;
  overflow-x: auto;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--line);
}

.tab-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.tab-button:hover,
.tab-button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #07100a;
  box-shadow: 0 7px 0 var(--accent-3);
}

.login-box {
  min-width: 240px;
  min-height: 44px;
}

.content-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.weeks {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 16px;
}

.week-button {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.week-button:hover,
.week-button.active {
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: #061209;
  box-shadow: 8px 8px 0 var(--accent-3);
}

.materials {
  min-width: 0;
}

.weeks[hidden] + .materials {
  grid-column: 1 / -1;
}

.week-header,
.info-panel {
  position: relative;
}

.week-header {
  margin-bottom: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  background: #bff5ff;
  color: #050a07;
}

.week-header p {
  max-width: 760px;
  margin-bottom: 0;
  color: #14241a;
  font-weight: 700;
  text-transform: uppercase;
}

.video-list {
  display: grid;
  gap: 18px;
}

.video-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 10px 10px 0 var(--shadow);
}

.video-card h3 {
  width: fit-content;
  max-width: 100%;
  color: var(--accent);
  box-shadow: inset 0 -0.42em 0 var(--accent-3);
}

.info-panel {
  width: 100%;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 14px 14px 0 var(--shadow);
}

.info-panel::before,
.video-card::before,
.week-header::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 22px;
  border-top: 1px dashed currentColor;
  opacity: 0.45;
}

.info-panel h2 {
  width: fit-content;
  max-width: 100%;
  color: var(--accent);
  box-shadow: inset 0 -0.42em 0 var(--accent-3);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding-left: 24px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.check-list li::marker {
  color: var(--accent);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.schedule-card {
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #c9cedf;
  color: #050a07;
}

.schedule-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--accent-3);
  font-size: 15px;
  font-weight: 950;
  text-transform: uppercase;
}

.schedule-card h3 {
  font-size: 24px;
}

.schedule-card p {
  color: #182018;
  font-weight: 700;
}

.video-meta {
  width: fit-content;
  margin-bottom: 14px;
  padding: 4px 8px;
  background: var(--accent);
  color: #061209;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

video {
  display: block;
  width: 100%;
  max-height: 68vh;
  border-radius: 0;
  background: #111;
}

.embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #111;
}

.embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: grid;
  min-height: 240px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 0;
  color: var(--accent-2);
  background: #08150b;
  font-weight: 950;
  text-transform: uppercase;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 0;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #061209;
}

.ghost-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.notice {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--warn);
}

[hidden] {
  display: none !important;
}

@media (min-width: 761px) and (max-width: 1040px) {
  h1 {
    font-size: 58px;
  }

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

@media (max-width: 760px) {
  .layout {
    width: min(100% - 20px, 1180px);
    padding-top: 22px;
  }

  .topbar,
  .panel,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 22px;
  }

  .login-copy p,
  .intro,
  .video-card p,
  .info-panel p,
  .schedule-card p,
  .notice,
  .panel p,
  .check-list {
    font-size: 16px;
  }

  .panel,
  .info-panel,
  .video-card {
    padding: 22px;
    box-shadow: 7px 7px 0 var(--shadow);
  }

  .tabs {
    margin-top: 18px;
  }

  .weeks {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .week-button {
    min-height: 50px;
    text-align: center;
  }

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

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