@import url("https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Work+Sans:wght@400;600;700&display=swap");

:root {
  color-scheme: light;
  --ink: #0f070a;
  --text: #2f2729;
  --muted: #6b6264;
  --paper: #ffffff;
  --line: #e5e1dc;
  --yellow: #fed96f;
  --orange: #fabd69;
  --orange-dark: #f98e4a;
  --blue: #317bd0;
  --red: #c81e60;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Work Sans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--ink);
}

a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

p {
  margin: 0;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Permanent Marker", "Work Sans", sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.hero {
  min-height: 100vh;
  background: radial-gradient(ellipse at 100% 0, var(--yellow) 0, var(--orange) 52%, var(--orange-dark) 118%);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  left: 0;
  padding: 24px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.site-nav a {
  background: rgba(255, 255, 255, 0.56);
  border: 2px solid rgba(15, 7, 10, 0.12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus {
  background: var(--ink);
  color: var(--paper);
}

.hero-inner {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) 340px;
  margin: 0 auto;
  max-width: var(--max);
  padding: 110px 28px 72px;
  width: 100%;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  color: var(--red);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 48px;
  max-width: 640px;
}

.hero-copy p:last-child {
  color: rgba(15, 7, 10, 0.74);
  font-size: 23px;
  line-height: 1.45;
  margin-top: 22px;
  max-width: 620px;
}

.hero-copy p.quote-source {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-top: 16px;
  text-transform: uppercase;
}

.quote-source a {
  color: rgba(15, 7, 10, 0.56);
  text-decoration: none;
}

.quote-source a:hover,
.quote-source a:focus {
  color: var(--ink);
  text-decoration: underline;
}

.hero-avatar {
  background: var(--paper);
  border: 8px solid var(--paper);
  border-radius: 999px;
  box-shadow: 0 18px 0 rgba(15, 7, 10, 0.16);
  height: auto;
  max-width: 340px;
  width: 100%;
}

main {
  background: var(--paper);
  position: relative;
  z-index: 1;
}

.intro-section,
.section,
.site-footer {
  margin: 0 auto;
  max-width: var(--max);
  padding-left: 28px;
  padding-right: 28px;
}

.intro-section {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: 280px 1fr;
  min-height: 68vh;
  padding-bottom: 80px;
  padding-top: 92px;
}

.section-label h2,
.section-heading h2 {
  background: var(--yellow);
  display: inline-block;
  font-family: "Work Sans", Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  padding: 10px 16px;
  text-transform: uppercase;
  transform: rotate(-1deg);
}

.intro-copy {
  font-size: 22px;
  line-height: 1.85;
  max-width: 760px;
}

.intro-copy p + p {
  margin-top: 22px;
}

.quote {
  color: var(--muted);
  font-size: 18px;
  font-style: italic;
}

.section {
  display: grid;
  gap: 48px;
  grid-template-columns: 280px 1fr;
  padding-bottom: 90px;
  padding-top: 36px;
  position: relative;
}

.section::before {
  background: var(--line);
  bottom: 44px;
  content: "";
  left: calc(28px + 280px + 24px);
  position: absolute;
  top: 96px;
  width: 2px;
}

.section-heading {
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.section-heading p {
  margin-top: 18px;
}

.ability-grid,
.timeline,
.item-list,
.prose {
  position: relative;
  z-index: 1;
}

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

.ability-grid div,
.item-list article {
  background: var(--paper);
  border: 2px solid var(--line);
  padding: 24px;
}

.ability-grid ul,
.prose ul,
.article-body ul,
.article-body ol {
  margin: 14px 0 0;
  padding: 0;
}

.ability-grid li,
.prose li,
.article-body li {
  list-style: none;
  margin: 9px 0 0;
  padding-left: 22px;
  position: relative;
}

.ability-grid li::before,
.prose li::before,
.article-body ul li::before {
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  content: "";
  height: 10px;
  left: 0;
  position: absolute;
  top: 0.62em;
  width: 10px;
}

.timeline {
  display: grid;
  gap: 0;
  max-width: 780px;
}

.timeline-item {
  display: grid;
  gap: 20px;
  grid-template-columns: 104px 26px minmax(0, 1fr);
  padding-bottom: 34px;
  position: relative;
}

.timeline-item::before {
  background: var(--ink);
  bottom: 0;
  content: "";
  left: 131px;
  position: absolute;
  top: 12px;
  width: 2px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-date {
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  padding-top: 2px;
  text-align: right;
  text-transform: uppercase;
}

.timeline-marker {
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 999px;
  height: 16px;
  margin-top: 3px;
  position: relative;
  width: 16px;
  z-index: 1;
}

.timeline-content {
  margin-top: -3px;
}

.timeline-content p {
  color: var(--muted);
  margin-top: 6px;
}

.item-list {
  display: grid;
  gap: 20px;
}

.item-list h3 a {
  color: var(--ink);
  text-decoration: none;
}

.item-list h3 a:hover,
.item-list h3 a:focus {
  color: var(--blue);
  text-decoration: underline;
}

.item-list p {
  color: var(--muted);
  margin-top: 8px;
}

.prose {
  max-width: 760px;
}

.prose h3:not(:first-child) {
  margin-top: 40px;
}

.prose p {
  margin-top: 14px;
}

.article-header,
.article-body {
  margin-left: auto;
  margin-right: auto;
  max-width: 860px;
  padding-left: 28px;
  padding-right: 28px;
}

.article-header {
  padding-bottom: 24px;
  padding-top: 72px;
}

.article-header h1 {
  font-size: 54px;
}

.article-body {
  padding-bottom: 72px;
}

.article-body h2,
.article-body h3 {
  margin: 34px 0 12px;
}

.article-body h2 {
  font-size: 24px;
}

.article-body p {
  margin-bottom: 20px;
}

.site-footer {
  align-items: center;
  border-top: 2px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding-bottom: 32px;
  padding-top: 32px;
}

@media (max-width: 900px) {
  .hero-inner,
  .intro-section,
  .section {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    text-align: center;
  }

  .hero-copy {
    margin: 0 auto;
  }

  .hero-avatar {
    margin: 0 auto;
    max-width: 280px;
  }

  .section::before {
    display: none;
  }

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

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .site-nav {
    display: none;
  }

  .hero-inner {
    gap: 32px;
    padding-top: 56px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-copy p:last-child,
  .intro-copy {
    font-size: 18px;
  }

  .hero-copy p.quote-source {
    font-size: 10px;
  }

  .intro-section,
  .section {
    gap: 28px;
    padding-bottom: 64px;
    padding-top: 54px;
  }

  .timeline-item {
    gap: 14px;
    grid-template-columns: 78px 22px minmax(0, 1fr);
  }

  .timeline-item::before {
    left: 99px;
  }

  .timeline-date {
    font-size: 12px;
  }

  .section-label h2,
  .section-heading h2 {
    font-size: 18px;
  }

  .article-header h1 {
    font-size: 38px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
