:root {
  --navy: #102a43;
  --navy-2: #173b57;
  --teal: #14b8a6;
  --teal-dark: #0f766e;
  --cream: #fff7df;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #64748b;
  --line: #d7e3ee;
  --gold: #f6c453;
  --coral: #f9735b;
  --shadow: 0 18px 42px rgba(15, 42, 67, 0.13);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Calibri, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.15;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 34rem),
    linear-gradient(135deg, #f7fbff 0%, #fff7df 52%, #f2fbfa 100%);
  min-height: 100vh;
}

a { color: inherit; }

code, pre {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: #2c2204;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
}

.skip-link:focus { top: 12px; }

.hero {
  width: min(1160px, calc(100% - 32px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  padding: 30px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(16, 42, 67, 0.98), rgba(20, 184, 166, 0.88)),
    radial-gradient(circle at 85% 0%, rgba(246, 196, 83, 0.38), transparent 22rem);
  color: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero__content { display: grid; align-content: center; }

.eyebrow {
  width: fit-content;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 223, 0.94);
  color: var(--navy);
  font-weight: 900;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.hero__text {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.15rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.hero-panel h2 { margin: 0 0 12px; color: var(--navy); }

.number-list {
  margin: 0;
  padding-left: 22px;
  color: #334155;
  font-weight: 700;
}

.number-list li { margin: 9px 0; }

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 24px auto 56px;
}

.toolbar-card,
.info-card,
.assignment-section {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 42, 67, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15, 42, 67, 0.08);
}

.toolbar-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
  gap: 20px;
  align-items: end;
  padding: 22px;
}

.toolbar-card h2,
.info-card h2,
.assignment-section h2 { margin: 0 0 6px; color: var(--navy); }

.toolbar-card p,
.info-card p,
.assignment-section p { margin: 0; color: var(--muted); }

.toolbar-controls {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 8px 12px;
}

.field-label {
  font-weight: 900;
  color: var(--navy);
  font-size: 0.9rem;
}

.input {
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  background: white;
  color: var(--ink);
}

.assignment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.assignment-card {
  display: grid;
  gap: 12px;
  align-content: start;
  background: var(--paper);
  border: 2px solid rgba(16, 42, 67, 0.1);
  border-radius: 24px;
  padding: 20px;
  min-height: 316px;
  box-shadow: 0 12px 26px rgba(15, 42, 67, 0.08);
}

.assignment-card[hidden] { display: none; }

.card-tag {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #dff8f5;
  color: var(--teal-dark);
  font-weight: 900;
  font-size: 0.86rem;
}

.assignment-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.05;
}

.assignment-card p { margin: 0; color: #475569; }

.mini-list {
  margin: 0;
  padding-left: 18px;
  color: #475569;
}

.mini-list li { margin: 6px 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  border: 0;
  cursor: pointer;
}

.button-primary { background: var(--gold); color: #3a2904; }
.button-ghost { background: rgba(255, 255, 255, 0.14); color: white; border: 1px solid rgba(255, 255, 255, 0.36); }
.button-card { margin-top: auto; background: var(--navy); color: white; }
.button-secondary { background: #dff8f5; color: var(--teal-dark); }

.info-card {
  margin-top: 22px;
  padding: 22px;
}

pre {
  overflow-x: auto;
  margin: 12px 0;
  padding: 14px;
  border-radius: 16px;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.4;
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 32px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.assignment-page-header {
  width: min(1040px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 22px;
  border-radius: 28px;
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow);
}

.assignment-page-header h1 { font-size: clamp(2rem, 4vw, 3.4rem); }

.assignment-page-header p { color: rgba(255,255,255,0.9); }

.assignment-section {
  width: min(1040px, calc(100% - 32px));
  margin: 22px auto;
  padding: 22px;
}

.activity-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.tab-button {
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: white;
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
}

.tab-button[aria-selected="true"] {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

.tab-panel {
  display: none;
  padding: 18px;
  border-radius: 20px;
  border: 2px solid var(--line);
  background: #fbfdff;
}

.tab-panel.active { display: block; }

.checklist {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.checklist label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  color: #334155;
}

.site-nav {
  width: min(1040px, calc(100% - 32px));
  margin: 12px auto 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1020px) {
  .assignment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .toolbar-card,
  .toolbar-controls { grid-template-columns: 1fr; }
  .assignment-grid { grid-template-columns: 1fr; }
  .hero, .page-shell, .assignment-page-header, .assignment-section, .site-nav { width: min(100% - 22px, 1160px); }
  .hero { padding: 22px; border-radius: 24px; }
}
