:root {
  color-scheme: light;
  --ink: #07151d;
  --navy: #0b2630;
  --paper: #f7f8f5;
  --surface: #e9eeeb;
  --muted: #516169;
  --orange: #e54800;
  --orange-bright: #f15a24;
  --line: rgba(7, 21, 29, 0.14);
  --content: 68rem;
  --reading: 44rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Aptos, "Segoe UI Variable", "Segoe UI", ui-sans-serif, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

.skip-link {
  position: fixed;
  z-index: 20;
  top: -5rem;
  left: 1rem;
  padding: .75rem 1rem;
  color: #fff;
  background: var(--navy);
}

.skip-link:focus { top: 1rem; }

.blog-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
  padding: .8rem var(--gutter);
  color: #fff;
  background: rgba(7, 21, 29, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.blog-header__brand {
  display: block;
  flex: 0 0 auto;
  width: clamp(10rem, 18vw, 13rem);
  line-height: 0;
}

.blog-header__brand img,
.blog-footer__brand img {
  width: 100%;
  height: auto;
}

.blog-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 1.6rem);
  font-size: .9rem;
  font-weight: 700;
}

.blog-header__nav a {
  padding-block: .55rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.blog-header__nav a:hover,
.blog-header__nav a[aria-current="page"] { border-color: var(--orange-bright); }

.article-hero,
.blog-index-hero {
  padding: clamp(4.5rem, 10vw, 8.5rem) var(--gutter) clamp(3.5rem, 8vw, 6.5rem);
  color: #fff;
  background: var(--navy);
}

.article-hero__inner,
.blog-index-hero__inner,
.blog-grid,
.article-layout,
.related,
.blog-footer__inner {
  width: min(100%, var(--content));
  margin-inline: auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, .68);
  font-size: .85rem;
}

.breadcrumbs a { text-underline-offset: .2em; }

.article-hero__label,
.blog-index-hero__label,
.article-card__label {
  margin: 0 0 .9rem;
  color: var(--orange-bright);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-hero h1,
.blog-index-hero h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.article-hero__intro,
.blog-index-hero__intro {
  max-width: 46rem;
  margin: 1.6rem 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  margin-top: 2rem;
  color: rgba(255, 255, 255, .64);
  font-size: .85rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
}

.article-card {
  min-height: 24rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  background: #fff;
  border: 1px solid var(--line);
}

.article-card h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.article-card p:not(.article-card__label) {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.article-card__link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--orange);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: .35em;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--reading)) minmax(13rem, 18rem);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
}

.article-body { min-width: 0; }

.article-body > p:first-of-type {
  color: #263840;
  font-size: 1.2rem;
  line-height: 1.65;
}

.article-body h2 {
  margin: 3.4rem 0 1rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.article-body h3 {
  margin: 2rem 0 .65rem;
  font-size: 1.25rem;
  line-height: 1.25;
}

.article-body p,
.article-body li {
  color: #30434b;
  font-size: 1.04rem;
  line-height: 1.75;
}

.article-body ul,
.article-body ol { padding-left: 1.35rem; }
.article-body li + li { margin-top: .55rem; }

.article-body a {
  color: #9d3408;
  font-weight: 700;
  text-underline-offset: .2em;
}

.price-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  background: #fff;
}

.price-table th,
.price-table td {
  padding: .85rem .75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.price-table th { color: var(--ink); }
.price-table td:last-child { white-space: nowrap; font-weight: 800; }

.info-table {
  table-layout: fixed;
}

.info-table td:last-child {
  white-space: normal;
  font-weight: 400;
}

.info-table th,
.info-table td {
  overflow-wrap: anywhere;
}

.note {
  margin: 2rem 0;
  padding: 1.2rem 1.3rem;
  background: var(--surface);
  border-left: 3px solid var(--orange);
}

.note p { margin: 0; }

.article-sidebar {
  position: sticky;
  top: 6.5rem;
  padding: 1.4rem;
  color: #fff;
  background: var(--navy);
  border-radius: .75rem;
}

.article-sidebar h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.article-sidebar p {
  margin: .8rem 0 1.2rem;
  color: rgba(255, 255, 255, .72);
  line-height: 1.5;
}

.article-sidebar a {
  display: block;
  padding: .8rem .9rem;
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  background: var(--orange);
  border-radius: .45rem;
}

.article-sidebar a + a {
  margin-top: .55rem;
  color: var(--ink);
  background: #fff;
}

.related {
  padding: 0 var(--gutter) clamp(4rem, 9vw, 8rem);
}

.related h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -.035em;
}

.related__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.related__links a {
  padding: 1rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
}

.related__links a:hover { border-color: var(--orange); }

.blog-footer {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
  padding-bottom: clamp(8rem, 15vw, 12rem);
  color: #fff;
  background: #07151d;
}

.blog-footer::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: url("/assets/sections/footer-texture-v2.webp") center bottom / cover no-repeat;
  pointer-events: none;
}

.blog-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.blog-footer__brand { display: block; width: 12rem; line-height: 0; }
.blog-footer p { color: rgba(255, 255, 255, .68); line-height: 1.55; }
.blog-footer address { font-style: normal; }
.blog-footer__contact { display: grid; gap: .55rem; align-content: start; }
.blog-footer__contact a { width: fit-content; text-underline-offset: .2em; }

@media (max-width: 48rem) {
  .blog-header__nav a:first-child { display: none; }
  .article-hero h1, .blog-index-hero h1 { max-width: 16ch; }
  .blog-grid, .article-layout, .blog-footer__inner { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .related__links { grid-template-columns: 1fr; }
}

@media (max-width: 32rem) {
  .blog-header__brand { width: 9rem; }
  .blog-header__nav { font-size: .82rem; }
  .blog-header__nav a { white-space: nowrap; }
  .article-hero, .blog-index-hero { padding-top: 3.5rem; }
  .price-table { font-size: .9rem; }
}

@media (max-width: 22rem) {
  .blog-header__brand { width: 7.25rem; }
  .blog-header__nav { gap: .65rem; font-size: .76rem; }
}

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