@font-face {
  font-family: "Catchy Mager";
  src: url("assets/fonts/catchy-mager.woff") format("woff");
  font-display: swap;
}

:root {
  --deep-water: #063640;
  --curiosity-teal: #015053;
  --lake-blue: #0a6273;
  --gold-leaf: #bf8e29;
  --warm-paper: #f4f0ed;
  --paper-white: #fffdf8;
  --ink: #171717;
  --ink-muted: #5d625b;
  --soft-sage: #d8ded2;
  --warm-stone: #b7aa92;
  --white: #ffffff;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--warm-paper);
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip-link {
  background: var(--gold-leaf);
  color: var(--deep-water);
  font-weight: 700;
  left: 20px;
  padding: 10px 14px;
  position: absolute;
  top: -100px;
  z-index: 20;
}

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

.site-header {
  align-items: center;
  background: rgba(6, 54, 64, 0.98);
  border-bottom: 1px solid rgba(244, 240, 237, 0.16);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 88px;
  padding: 18px clamp(20px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  height: auto;
  width: min(210px, 54vw);
}

.top-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.top-nav a {
  border: 1px solid transparent;
  color: rgba(244, 240, 237, 0.88);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  border-color: rgba(191, 142, 41, 0.5);
  color: var(--white);
  outline: none;
}

.workspace-hero {
  background: var(--deep-water);
  color: var(--warm-paper);
  display: grid;
  min-height: 450px;
  padding: clamp(56px, 8vw, 92px) clamp(20px, 5vw, 72px);
}

.hero-copy {
  align-self: end;
  max-width: 900px;
}

.eyebrow {
  color: var(--gold-leaf);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Catchy Mager", Georgia, serif;
  font-feature-settings: "liga" 0, "dlig" 0;
  font-variant-ligatures: no-common-ligatures;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  margin: 0;
  max-width: 980px;
}

.intro {
  color: rgba(244, 240, 237, 0.88);
  font-size: clamp(18px, 2vw, 22px);
  margin: 30px 0 0;
  max-width: 760px;
}

.command-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -42px clamp(20px, 5vw, 72px) 0;
  position: relative;
  z-index: 2;
}

.command-strip a {
  background: var(--paper-white);
  border: 1px solid rgba(183, 170, 146, 0.62);
  border-right: 0;
  min-height: 118px;
  padding: 24px;
  text-decoration: none;
}

.command-strip a:last-child {
  border-right: 1px solid rgba(183, 170, 146, 0.62);
}

.command-strip span,
.resource-card__type {
  color: var(--ink-muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-strip strong {
  color: var(--deep-water);
  display: block;
  font-size: 20px;
  line-height: 1.2;
  margin-top: 12px;
}

.command-strip a:hover,
.command-strip a:focus-visible {
  background: var(--soft-sage);
  outline: none;
}

.workspace-tabs {
  padding: 72px clamp(20px, 5vw, 72px) 96px;
}

.tab-list {
  border-bottom: 1px solid rgba(183, 170, 146, 0.74);
  display: flex;
  gap: 8px;
  margin-bottom: 38px;
  overflow-x: auto;
}

.tab-button {
  background: transparent;
  border: 0;
  border-bottom: 4px solid transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 0 18px 16px;
  white-space: nowrap;
}

.tab-button.is-active {
  border-color: var(--gold-leaf);
  color: var(--deep-water);
}

.tab-button:focus-visible {
  outline: 2px solid rgba(191, 142, 41, 0.45);
  outline-offset: 3px;
}

.tab-panel[hidden] {
  display: none;
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  margin-bottom: 32px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -10px;
}

.section-heading h2 {
  color: var(--deep-water);
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1;
  margin: 0;
}

.section-heading p:not(.eyebrow) {
  color: var(--ink-muted);
  margin: 0;
}

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

.resource-card,
.timeline article,
.prompt-panel {
  background: var(--paper-white);
  border: 1px solid rgba(183, 170, 146, 0.66);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  padding: 30px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.resource-card--feature {
  background: var(--soft-sage);
}

.resource-card h3,
.timeline h3 {
  color: var(--deep-water);
  font-size: clamp(24px, 2vw, 32px);
  letter-spacing: 0;
  line-height: 1.16;
  margin: 0 0 16px;
}

.resource-card p,
.timeline p {
  margin: 0;
}

.resource-card__link {
  color: var(--deep-water);
  font-weight: 700;
  margin-top: auto;
  padding-top: 32px;
  text-decoration-color: var(--gold-leaf);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.resource-card__link:hover {
  color: var(--lake-blue);
}

.timeline {
  counter-reset: step;
}

.timeline article {
  min-height: 240px;
}

.timeline span {
  align-items: center;
  background: var(--gold-leaf);
  color: var(--deep-water);
  display: inline-flex;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  margin-bottom: 18px;
  width: 34px;
}

.prompt-panel {
  max-width: 980px;
}

.prompt-panel pre {
  background: var(--deep-water);
  color: var(--warm-paper);
  margin: 0 0 24px;
  overflow-x: auto;
  padding: 24px;
  white-space: pre-wrap;
}

.prompt-panel code {
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 15px;
}

.link-button {
  align-items: center;
  background: var(--deep-water);
  border: 0;
  border-radius: 4px;
  color: var(--warm-paper);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
  width: fit-content;
}

.link-button:hover {
  background: var(--curiosity-teal);
}

@media (max-width: 1080px) {
  .section-heading {
    grid-template-columns: 1fr;
  }

  .command-strip,
  .resource-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    position: static;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .workspace-hero {
    min-height: auto;
  }

  .command-strip,
  .resource-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .command-strip {
    margin-top: 0;
  }

  .command-strip a {
    border-right: 1px solid rgba(183, 170, 146, 0.62);
    min-height: 96px;
  }

  .workspace-tabs {
    padding-top: 48px;
  }

  .resource-card,
  .timeline article,
  .prompt-panel {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 40px;
  }

  .section-heading h2 {
    font-size: 34px;
  }
}
