:root {
  color-scheme: light;
  --sky-blue: #2b9ce7;
  --sky-deep: #123f65;
  --paper: #fffdf2;
  --paper-bright: #fffef8;
  --ink: #173044;
  --muted-ink: #597083;
  --white: #fffef5;
  --rule: rgba(25, 69, 101, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
}

body.blog-page {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  color: var(--white);
  background: var(--sky-blue);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
}

a {
  color: inherit;
}

.blog-landscape,
.blog-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.blog-landscape {
  z-index: -2;
  background: url("images/sky-meadow-landscape.jpg") center bottom / cover no-repeat;
  transform: scale(1.02);
  animation: landscape-breathe 18s ease-in-out infinite alternate;
}

.blog-atmosphere {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 72, 135, 0.12), rgba(11, 86, 145, 0.02) 42%, rgba(20, 78, 28, 0.16)),
    radial-gradient(circle at 56% 22%, rgba(255, 255, 255, 0.1), transparent 34%);
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 50%;
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--sky-deep);
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transform: translate(-50%, -160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.blog-header {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 88px;
  padding: max(26px, env(safe-area-inset-top)) clamp(24px, 5.2vw, 104px) 20px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.back-to-sky,
.blog-header nav a {
  color: var(--white);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(4, 48, 86, 0.35);
}

.back-to-sky {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-sky i {
  transform: rotate(-12deg);
}

.back-to-sky:hover,
.back-to-sky:focus-visible {
  outline: none;
  opacity: 0.82;
  transform: translateX(-3px);
}

.blog-header nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.blog-header nav a {
  position: relative;
  padding: 7px 0;
}

.blog-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.blog-header nav a:hover::after,
.blog-header nav a:focus-visible::after,
.blog-header nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.blog-header nav a:focus-visible {
  outline: none;
}

.blog-main {
  width: min(1120px, calc(100% - clamp(48px, 10.4vw, 208px)));
  min-height: calc(100svh - 184px);
  margin: 0 auto;
  padding: clamp(52px, 9vh, 104px) 0 80px;
}

.blog-intro {
  width: min(780px, 100%);
  text-shadow: 0 3px 18px rgba(5, 63, 110, 0.3);
  animation: content-arrives 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.blog-intro h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(49.6px, 7.2vw, 105.6px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.blog-description {
  max-width: 620px;
  margin: clamp(24px, 4vh, 38px) 0 0;
  color: rgba(255, 254, 245, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(14.4px, 1.6vw, 20px);
  line-height: 1.45;
}

.article-list {
  margin-top: clamp(54px, 8vh, 92px);
}

.article-card {
  width: min(860px, 100%);
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(9, 60, 96, 0.24);
  transform: rotate(-0.28deg);
  animation: card-arrives 760ms 90ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.article-card-link {
  display: block;
  padding: clamp(28px, 5vw, 58px);
  text-decoration: none;
  transition: transform 220ms ease;
}

.article-card:hover,
.article-card:focus-within {
  box-shadow: 0 31px 72px rgba(7, 54, 88, 0.3);
}

.article-card-link:hover,
.article-card-link:focus-visible {
  outline: none;
  transform: translateY(-4px);
}

.article-card-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted-ink);
  font-size: 8.8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-card h2 {
  max-width: 720px;
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27.2px, 4vw, 49.6px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.article-card p {
  max-width: 650px;
  margin: 22px 0 0;
  color: #405b70;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(13.6px, 1.32vw, 16.8px);
  line-height: 1.55;
}

.read-article {
  display: inline-block;
  margin-top: 30px;
  color: #175f91;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.read-article span {
  display: inline-block;
  margin-left: 5px;
  transition: transform 180ms ease;
}

.article-card-link:hover .read-article span {
  transform: translateX(4px);
}

.article-shell {
  width: min(980px, calc(100% - clamp(28px, 7vw, 112px)));
  margin: 0 auto;
  padding: clamp(42px, 7vh, 76px) 0 clamp(54px, 8vh, 94px);
}

.article-paper {
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 30px 80px rgba(5, 53, 86, 0.28);
  animation: article-arrives 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.article-header {
  padding: clamp(48px, 9vw, 104px) clamp(28px, 9vw, 106px) clamp(42px, 7vw, 76px);
  border-bottom: 1px solid var(--rule);
}

.article-header .eyebrow {
  color: #2875a6;
}

.article-header h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5.68vw, 65.6px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.article-dek {
  max-width: 680px;
  margin: 28px 0 0;
  color: #4d687c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.76vw, 20.8px);
  line-height: 1.48;
}

.article-meta {
  margin-top: 30px;
}

.article-content {
  width: min(680px, calc(100% - 56px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 90px) 0 clamp(64px, 10vw, 110px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(14.4px, 1.36vw, 16.8px);
  line-height: 1.74;
}

.article-content p {
  margin: 0 0 1.45em;
}

.article-content h2 {
  margin: 2.35em 0 0.7em;
  font-size: clamp(24px, 3.2vw, 34.4px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.article-content ul {
  margin: 0 0 1.65em;
  padding-left: 1.25em;
}

.article-content li {
  margin: 0 0 0.65em;
  padding-left: 0.25em;
}

.article-content li::marker {
  color: #2b83bb;
}

.article-strategies {
  margin: 2.4em 0 1.8em;
  padding-left: 1.55em;
}

.article-strategies > li {
  margin: 0 0 3em;
  padding-left: 0.3em;
}

.article-strategies > li:last-child {
  margin-bottom: 0;
}

.article-strategies > li::marker {
  color: var(--ink);
  font-size: 1.08em;
  font-weight: 700;
}

.article-strategies h3 {
  margin: 0 0 0.72em;
  font-size: clamp(20.8px, 2.56vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.pull-quote {
  margin: 2.1em 0 !important;
  padding: 0.25em 0 0.25em 0.8em;
  border-left: 4px solid #2b9ce7;
  color: #1c608d;
  font-size: clamp(21.6px, 3.2vw, 31.2px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.article-figure,
.article-image-pair {
  margin: 2.6em 0;
}

.article-figure {
  display: grid;
  justify-items: center;
}

.article-figure img,
.article-image-pair img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(24, 48, 67, 0.16);
  filter: contrast(1.025);
}

.article-figure img {
  max-width: 500px;
}

.article-image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}

.article-image-pair figure,
.article-figure {
  margin-right: 0;
  margin-left: 0;
}

figcaption {
  margin-top: 11px;
  color: #647887;
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

.article-note {
  margin: 2.4em 0;
  padding: 20px 22px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: #4c6475;
  font-size: 0.87em;
  line-height: 1.65;
}

.article-note p {
  margin: 0;
}

.article-footer {
  padding: 28px clamp(28px, 9vw, 106px);
  border-top: 1px solid var(--rule);
  margin-top: 0;
}

.article-footer a {
  color: #1d628f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.article-footer a:hover,
.article-footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.blog-footer {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(1120px, calc(100% - clamp(48px, 10.4vw, 208px)));
  margin: 12px auto 0;
  padding: 24px 0 max(28px, env(safe-area-inset-bottom));
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  color: rgba(255, 254, 245, 0.82);
  /* Keep footer copy at the site's comfortable navigation size. */
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-shadow: 0 2px 8px rgba(4, 48, 86, 0.3);
}

.blog-footer p {
  margin: 0;
}

.blog-footer nav {
  display: flex;
  gap: 22px;
}

.blog-footer .footer-socials {
  display: flex;
  align-items: center;
  gap: 15px;
}

.blog-footer .footer-socials a {
  font-size: 15px;
}

.blog-footer nav a,
.blog-footer .footer-socials a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.blog-footer a {
  text-decoration: none;
}

.blog-footer a:hover,
.blog-footer a:focus-visible {
  color: var(--white);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.article-site-footer {
  width: min(980px, calc(100% - clamp(28px, 7vw, 112px)));
}

@keyframes landscape-breathe {
  from { transform: scale(1.02) translate3d(-0.12%, 0, 0); }
  to { transform: scale(1.035) translate3d(0.12%, -0.14%, 0); }
}

@keyframes content-arrives {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-arrives {
  from { opacity: 0; transform: translateY(24px) rotate(-0.28deg); }
  to { opacity: 1; transform: translateY(0) rotate(-0.28deg); }
}

@keyframes article-arrives {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 680px) {
  .blog-header {
    min-height: 74px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .back-to-sky span {
    display: none;
  }

  .back-to-sky i {
    font-size: 16px;
  }

  .blog-main,
  .blog-footer {
    width: calc(100% - 40px);
  }

  .blog-main {
    padding-top: 48px;
  }

  .blog-intro h1 {
    font-size: clamp(46.4px, 16vw, 67.2px);
  }

  .article-card-link {
    padding: 28px 24px 30px;
  }

  .article-card h2 {
    font-size: clamp(27.2px, 8.8vw, 38.4px);
  }

  .article-shell,
  .article-site-footer {
    width: calc(100% - 24px);
  }

  .article-shell {
    padding-top: 24px;
  }

  .article-header {
    padding: 44px 24px 38px;
  }

  .article-header h1 {
    font-size: clamp(34.4px, 10.56vw, 48px);
  }

  .article-content {
    width: calc(100% - 48px);
  }

  .article-image-pair {
    grid-template-columns: 1fr;
  }

  .blog-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .blog-landscape,
  .blog-intro,
  .article-card,
  .article-paper {
    animation: none;
  }
}
