@font-face {
  font-family: Manrope;
  src: url('/assets/manrope.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: Newsreader;
  src: url('/assets/newsreader.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  background: #fcfbf8;
  color: #152640;
  font-family: Manrope, system-ui, sans-serif;
  --navy: #142640;
  --muted: #4b596a;
  --line: #d9ddd9;
  --gold: #f1c77a;
  --link: #1d4e72;
  --accent: #9b3f27;
  --paper-dark: #f1eee6;
  --display: Newsreader, Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
figure, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .21em; }
a:hover { text-decoration-thickness: .13em; }
a:focus-visible { outline: 3px solid #3170a8; outline-offset: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 630; line-height: 1.05; text-wrap: pretty; }
h1 { font-size: clamp(2.75rem, 4.25vw, 4.55rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.1rem, 3.5vw, 3rem); letter-spacing: -.035em; }
h3 { font-size: 2.15rem; letter-spacing: -.035em; }
.shell { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip-link { position: fixed; inset: .6rem auto auto .6rem; z-index: 5; transform: translateY(-150%); padding: .6rem 1rem; background: var(--navy); color: #fff; }
.skip-link:focus { transform: none; }
.site-header { border-top: 4px solid var(--navy); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 1rem; padding-block: 1.6rem .75rem; border-bottom: 1px solid var(--navy); }
.brand { display: inline-flex; align-items: center; gap: .6rem; width: max-content; max-width: 100%; font: 720 2rem/1 var(--display); text-decoration: none; letter-spacing: -.05em; }
.brand-mark { display: grid; place-items: center; flex: none; width: 2.3rem; height: 2.3rem; border-radius: 5px; background: var(--navy); color: var(--gold); font: 800 1.28rem/1 Manrope, system-ui, sans-serif; letter-spacing: 0; }
.masthead-brand { display: block; font-size: clamp(3.25rem, 6.5vw, 6rem); white-space: nowrap; }
.masthead-brand span { color: var(--accent); font-style: italic; font-weight: 620; }
.masthead-region, .masthead-about { font-size: .875rem; font-weight: 760; }
.masthead-region { text-transform: uppercase; letter-spacing: .09em; }
.masthead-about { justify-self: end; }
.section-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 clamp(.65rem, 4vw, 2.6rem); }
.section-nav a { display: inline-flex; align-items: center; min-height: 47px; padding-inline: .15rem; border-bottom: 2px solid transparent; font-size: .94rem; font-weight: 790; text-decoration: none; white-space: nowrap; }
.section-nav a:hover, .section-nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.site-footer a:focus-visible { outline-color: #fff; }
.site-footer { background: var(--navy); color: #fff; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding-block: 2rem; }
.footer-inner .brand-mark { background: #28435b; }
.footer-inner p { max-width: 55ch; color: #dce6f1; margin-top: .8rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.35rem; font-size: .94rem; font-weight: 750; }
.error-page { padding-block: 4rem; }
.error-page p { margin-top: 1.5rem; }

@media (max-width: 720px) {
  .shell { width: calc(100% - 1.65rem); }
  .header-inner { grid-template-columns: 1fr; justify-items: center; gap: .3rem; padding-block: .8rem .45rem; }
  .masthead-region { font-size: .75rem; }
  .masthead-brand { font-size: clamp(2.9rem, 11vw, 4.6rem); }
  .masthead-about { display: none; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 360px) {
  .section-nav a { font-size: .87rem; }
  h1 { font-size: 2.45rem; }
}
