@font-face {
  font-family: 'Archivo Variable';
  src: url('./archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Variable';
  src: url('./inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--brand-pads-color-mineral);
  color: var(--brand-pads-color-midnight);
  font: 1rem/1.65 var(--brand-pads-font-text);
  overflow-wrap: anywhere;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, h3 { font-family: var(--brand-pads-font-display); line-height: 1.06; }
h1 { margin: 0; letter-spacing: -0.045em; }
.wrap { width: min(100% - clamp(2rem, 8vw, 8rem), 72rem); margin-inline: auto; }

.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 1; transform: translateY(-200%); padding: .5rem 1rem; background: var(--brand-pads-color-mineral); }
.skip-link:focus { transform: none; }
.site-header {
  background: var(--brand-pads-color-midnight);
  color: var(--brand-pads-color-mineral);
  border-bottom: 1px solid rgb(255 255 255 / .2);
}
.masthead, .masthead nav, .site-footer > .wrap { display: flex; align-items: center; }
.masthead { min-height: 4.5rem; justify-content: space-between; gap: 1rem; }
.brand { min-width: 3.75rem; min-height: var(--brand-pads-accessibility-touch-target-min); display: grid; place-items: center; }
.brand img { width: clamp(4rem, 10vw, 6rem); height: 3rem; object-fit: contain; }
.masthead nav { gap: clamp(0.75rem, 4vw, 2.5rem); }
.masthead nav a { display: inline-flex; align-items: center; gap: 0.3em; min-height: var(--brand-pads-accessibility-touch-target-min); font-size: .9rem; text-decoration: none; }
.masthead nav a:hover, .masthead nav [aria-current="page"] { text-decoration: underline; }
.masthead nav span { color: var(--brand-pads-color-aqua); }

.intro { background: var(--brand-pads-color-midnight); color: var(--brand-pads-color-mineral); padding-block: clamp(3.25rem, 9vw, 7.25rem); }
.intro h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); font-weight: 820; max-width: 12ch; }
.intro p { max-width: 41ch; margin: 1.35rem 0 0; font-size: clamp(1rem, 2vw, 1.35rem); color: var(--brand-pads-color-mist); }

.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); padding-block: clamp(2rem, 6vw, 4rem); }
.card { display: flex; flex-direction: column; background: white; border: 1px solid var(--brand-pads-color-mist); }
.card.featured { display: grid; grid-column: 1 / -1; grid-template-columns: 1.2fr 1fr; align-items: center; }
.card .cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card.featured .cover { height: 100%; }
.card-content { padding: clamp(1.25rem, 4vw, 2.5rem); }
.card h2 { margin: .55rem 0; font-size: clamp(1.55rem, 3vw, 2.65rem); }
.card h2 a { text-decoration-color: var(--brand-pads-color-action-accessible); }
.card p { margin: .85rem 0 0; }
.card time, .byline, .updated { font-size: .9rem; color: var(--brand-pads-color-muted); }
.empty { padding-block: 4rem; }

.article { padding-block: clamp(1.75rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.article-column { max-width: 45rem; margin-inline: auto; }
.article-header { margin-block: 1.05rem 2rem; }
.article-header h1 { font-size: clamp(2.1rem, 6vw, 4.55rem); font-weight: 810; }
.byline { margin: 1.15rem 0 0; }
.updated { margin: .35rem 0 0; }
.breadcrumb a { min-height: var(--brand-pads-accessibility-touch-target-min); display: inline-flex; align-items: center; }
.breadcrumb a, .prose a, .more-articles a { color: var(--brand-pads-color-action-accessible); }
.article-lead { margin: 0 auto clamp(1.6rem, 5vw, 3.5rem); max-width: 58rem; }
.article-lead img { width: 100%; height: auto; }
.prose { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.75; }
.prose h2 { margin-block: 1.65em .55em; font-size: 1.65em; }
.prose h3 { margin-block: 1.45em .55em; font-size: 1.3em; }
.prose figure { margin: 1.6em 0; }
.prose blockquote { margin: 1.35em 0; padding-inline-start: 1.25em; border-inline-start: 3px solid var(--brand-pads-color-action); }
.prose pre { overflow: auto; padding: 1rem; background: var(--brand-pads-color-mist); }
.article-action { margin-block: 2rem; background: var(--brand-pads-color-mist); padding: 1rem 1.5rem; }
.article-action a { min-height: var(--brand-pads-accessibility-touch-target-min); display: inline-flex; align-items: center; gap: 1ch; font-weight: 720; }
.more-articles li + li { margin-top: .5rem; }

.site-footer { background: var(--brand-pads-color-midnight); color: var(--brand-pads-color-mineral); }
.site-footer > .wrap { justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.25rem; padding-block: 1rem; }
.site-footer a { font-size: .9rem; display: inline-flex; align-items: center; min-height: var(--brand-pads-accessibility-touch-target-min); }

@media (max-width: 39rem) {
  .posts, .card.featured { grid-template-columns: minmax(0, 1fr); }
  .card.featured .cover { height: auto; }
}
