:root {
  --navy: #102252;
  --coral: #ef765e;
  --sage: #8fb46e;
  --blue: #5f82b2;
  --cream: #fffaf3;
  --paper: #fffdf9;
  --muted: #65708b;
  --line: rgba(16, 34, 82, 0.13);
  color: var(--navy);
  background: #f3f5f8;
  font-family: "Nunito", Avenir, "Avenir Next", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  width: min(100% - 28px, 1380px);
  min-height: 100vh;
  margin: 24px auto;
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(16, 34, 82, 0.08);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 4px solid rgba(239, 118, 94, 0.42);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  color: white;
  background: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(22px, 5vw, 70px);
  background: var(--cream);
}

.site-header {
  border-bottom: 1px solid var(--line);
  border-radius: 30px 30px 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 1.35rem;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 126px;
}

.brand span {
  color: var(--muted);
}

.site-link,
.site-footer a {
  font-weight: 900;
  text-decoration: none;
}

.blog-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  align-items: center;
  gap: 40px;
  min-height: 500px;
  padding: clamp(58px, 8vw, 105px) clamp(30px, 8vw, 110px);
  overflow: hidden;
  color: white;
  background: var(--blue);
}

.blog-hero::before {
  position: absolute;
  width: 430px;
  height: 430px;
  top: -180px;
  left: -100px;
  border-radius: 48% 52% 61% 39% / 44% 39% 61% 56%;
  background: rgba(255, 255, 255, 0.1);
  content: "";
}

.blog-hero > div {
  position: relative;
}

.eyebrow {
  margin: 0;
  color: var(--cream);
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.blog-hero h1 {
  max-width: 780px;
  margin: 16px 0 22px;
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.blog-hero p:last-child {
  max-width: 650px;
  color: #f6f8fc;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.hero-doodle {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  color: white;
  font: 3.5rem "Patrick Hand", cursive;
  transform: rotate(2deg);
}

.hero-doodle img {
  grid-row: span 2;
  width: min(100%, 330px);
  filter: brightness(0) invert(1);
}

.article-section {
  padding: clamp(58px, 8vw, 100px) clamp(24px, 7vw, 96px) 110px;
}

.section-heading {
  max-width: 1050px;
  margin: 0 auto 34px;
}

.handwritten {
  margin: 0;
  color: var(--coral);
  font: 1.8rem "Patrick Hand", cursive;
}

.section-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  letter-spacing: -0.045em;
}

.article-grid {
  display: grid;
  max-width: 1050px;
  margin: 0 auto;
  gap: 30px;
}

.article-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--cream);
}

.article-card__art {
  display: grid;
  min-height: 320px;
  padding: 35px;
  place-items: center;
  color: white;
  background: var(--blue);
}

.article-card__art img {
  width: min(100%, 330px);
  filter: brightness(0) invert(1);
}

.article-card__copy {
  align-self: center;
  padding: clamp(30px, 5vw, 60px);
}

.article-card__topic {
  margin: 0;
  color: var(--coral);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 12px 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.article-card h3 a {
  text-decoration: none;
}

.article-card h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 6px;
}

.article-card__copy > p:not(.article-card__topic) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.article-card__meta {
  font-weight: 900;
}

.site-footer {
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-radius: 0 0 30px 30px;
  color: var(--muted);
}

.not-found {
  display: grid;
  padding: 28px;
  place-items: center;
  text-align: center;
}

.not-found main {
  max-width: 620px;
}

.not-found h1 {
  margin: 8px 0;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1;
}

.not-found p:not(.handwritten) {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.home-button {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 24px;
  border-radius: 999px;
  color: white;
  background: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 720px) {
  body {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .site-header,
  .site-footer {
    padding: 16px 20px;
    border-radius: 0;
  }

  .brand img {
    width: 108px;
  }

  .blog-hero,
  .article-card {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    min-height: auto;
    padding: 60px 24px 44px;
  }

  .hero-doodle {
    width: min(78%, 330px);
    margin: 20px auto 0;
  }

  .article-card__art {
    min-height: 250px;
  }
}

@media (max-width: 390px) {
  .brand span {
    display: none;
  }

  .site-link {
    font-size: 0.9rem;
  }
}
