@font-face {
  font-family: Newsreader;
  src: url('./fonts/newsreader-latin-700-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/dm-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/dm-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('./fonts/dm-sans-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
:root {
  --paper: #faf9f4;
  --ink: #071b2c;
  --heading: #090e13;
  --green: #076440;
  --pine: #193a2b;
  --yellow: #ffcf32;
  --muted: #526279;
  --line: #dce0dc;
  --serif: Newsreader, Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, monospace;
  --width: 1180px;
  --radius: 8px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.06;
  margin: 0 0 16px;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(42px, 5vw, 68px);
}
h2 {
  font-size: 36px;
}
h3 {
  font-size: 25px;
}
p {
  margin: 0 0 18px;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--green);
}
img {
  max-width: 100%;
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 2px;
}
button,
.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 22px;
  color: var(--ink);
  background: transparent;
  font-weight: 500;
}
button:hover,
.button:hover {
  border-color: var(--green);
}
.button.primary,
button.primary {
  background: var(--pine);
  color: #fff;
  border-color: var(--pine);
}
.button.yellow,
button.yellow {
  background: var(--yellow);
  color: #071b2c;
  border-color: var(--yellow);
}
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 11px 14px;
  color: var(--ink);
  min-height: 44px;
}
textarea {
  min-height: 120px;
  width: 100%;
}
.wrap {
  width: min(calc(var(--width) * 0.9), calc((100% - 64px) * 0.9));
  margin: auto;
}
.site-header {
  border-bottom: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 88px;
}
.brand {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: var(--heading);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand em {
  color: var(--green);
}
.sun {
  color: #dfa300;
  display: inline-flex;
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
}
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}
.nav a {
  padding: 10px 0;
  position: relative;
}
.nav .active {
  font-weight: 700;
  color: var(--heading);
}
.nav .active:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 3px;
  background: var(--green);
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.menu-toggle {
  display: none;
}
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 24px 0 30px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-inner .brand {
  font-size: 24px;
}
.footer-inner p {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}
.footer-inner nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.label {
  font-size: 11px;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.meta {
  font: 11px/1.6 var(--mono);
  letter-spacing: 0.8px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
}
.highlight {
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}
.highlight:before {
  content: '';
  position: absolute;
  inset: 48% -8px 0;
  z-index: -1;
  background: var(--yellow);
  transform: rotate(-1.3deg);
  clip-path: polygon(0 8%, 97% 0, 100% 82%, 3% 100%, 1% 75%, 0 92%);
}
.panel {
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.35);
}
.dark-panel {
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
  padding: 25px;
}
.dark-panel h2,
.dark-panel h3 {
  color: white;
}
.dark-panel p {
  color: #d0d9df;
}
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.chip {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  font-size: 13px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.chip.active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.breadcrumb {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin: 32px 0;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title h2 {
  margin: 0;
}
.section-title a {
  font-size: 13px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  background: white;
  padding: 10px;
  z-index: 1000;
}
.skip-link:focus {
  top: 12px;
}
.notice {
  background: #eff3eb;
  border-left: 3px solid var(--green);
  padding: 14px 18px;
  color: var(--pine);
  font-size: 14px;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 28px 0;
}
.pagination a,
.pagination span {
  padding: 9px 16px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.pagination .current {
  background: var(--green);
  color: white;
}
.error {
  color: #a22222;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .nav {
    gap: 18px;
  }
  .header-actions .button {
    padding: 10px 14px;
  }
  .brand {
    font-size: 26px;
  }
  .wrap {
    width: calc((100% - 40px) * 0.9);
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc((100% - 36px) * 0.9);
  }
  .header-inner {
    height: 76px;
    gap: 12px;
  }
  .brand {
    font-size: 25px;
    gap: 6px;
  }
  .sun {
    font-size: 28px;
  }
  .menu-toggle {
    display: inline-flex;
    padding: 8px 12px;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    background: var(--paper);
    padding: 24px;
    z-index: 50;
    box-shadow: 0 15px 20px #071b2c12;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open {
    display: flex;
  }
  .header-actions > .button {
    display: none;
  }
  .footer-inner {
    flex-wrap: wrap;
  }
  .footer-inner nav {
    flex-wrap: wrap;
  }
  .lead {
    font-size: 18px;
  }
  .site-footer {
    margin-top: 40px;
  }
  .breadcrumb {
    margin: 24px 0;
  }
  .highlight {
    white-space: normal;
  }
  h2 {
    font-size: 31px;
  }
  h3 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* Supplied logo, with one geometry across the theme and app. */
.logo-brand,
.custom-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-brand img,
.custom-logo {
  display: block;
  width: 260px;
  height: 80px;
  object-fit: contain;
}
.footer-inner .logo-brand img {
  width: 165px;
  height: 55px;
}
html[data-theme='dark'] .logo-brand img,
html[data-theme='dark'] .custom-logo {
  filter: brightness(0) invert(1);
}
@media (max-width: 1000px) {
  .logo-brand img,
  .custom-logo {
    width: 205px;
    height: 68px;
  }
  .header-inner {
    gap: 18px;
  }
  .nav {
    gap: 20px;
  }
}
@media (max-width: 760px) {
  .logo-brand img,
  .custom-logo {
    width: 210px;
    height: 70px;
  }
  .footer-inner .logo-brand img {
    width: 160px;
    height: 53px;
  }
}
@media (max-width: 360px) {
  .logo-brand img,
  .custom-logo {
    width: 180px;
    height: 60px;
  }
  .header-actions {
    gap: 4px;
  }
}
@media (min-width: 761px) and (max-width: 1000px) {
  .menu-toggle {
    display: inline-flex;
    padding: 8px 12px;
  }
  .header-actions > .button {
    display: none;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 88px;
    background: var(--paper);
    padding: 24px;
    z-index: 50;
    box-shadow: 0 15px 20px #071b2c12;
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open {
    display: flex;
  }
}
/* Desktop gutters follow the supplied front-page proportion. */
@media (min-width: 1101px) {
  .wrap {
    width: min(calc(var(--width) * 0.9), 72%);
  }
  .header-inner {
    height: 72px;
  }
}
.logo-brand {
  width: 230px;
  height: 72px;
  overflow: hidden;
}
.logo-brand img {
  max-width: none;
  width: 280px;
  height: 93px;
  transform: translateX(-26px);
}
.footer-inner .logo-brand {
  width: 150px;
  height: 50px;
}
.footer-inner .logo-brand img {
  width: 185px;
  height: 62px;
  transform: translateX(-18px);
}
@media (max-width: 1000px) {
  .logo-brand {
    width: 190px;
    height: 68px;
  }
  .logo-brand img {
    width: 235px;
    height: 78px;
    transform: translateX(-22px);
  }
}
@media (max-width: 760px) {
  .logo-brand {
    width: 205px;
    height: 70px;
  }
  .logo-brand img {
    width: 250px;
    height: 83px;
    transform: translateX(-24px);
  }
}
@media (max-width: 360px) {
  .logo-brand {
    width: 176px;
    height: 60px;
  }
  .logo-brand img {
    width: 215px;
    height: 72px;
    transform: translateX(-20px);
  }
}
@media (min-width: 1101px) {
  .header-inner {
    height: 62px;
  }
  .logo-brand {
    width: 205px;
    height: 62px;
  }
  .logo-brand img {
    width: 253px;
    height: 84px;
    transform: translateX(-24px);
  }
}

html[data-theme='dark'] {
  color-scheme: dark;
  --paper: #101b1a;
  --ink: #e4eee7;
  --heading: #f6f6ec;
  --green: #7fc9a2;
  --pine: #24543e;
  --muted: #acbbb9;
  --line: #354440;
}
html[data-theme='dark'] body {
  background: var(--paper);
}
html[data-theme='dark'] input,
html[data-theme='dark'] select,
html[data-theme='dark'] textarea {
  background: #172622;
  color: var(--ink);
}
html[data-theme='dark'] .panel {
  background: #172320;
}
html[data-theme='dark'] .dark-panel,
html[data-theme='dark'] .feature-strip {
  background: #071411;
}
html[data-theme='dark'] .dark-panel h2,
html[data-theme='dark'] .dark-panel h3,
html[data-theme='dark'] .feature-strip h2 {
  color: #f6f6ec;
}
html[data-theme='dark'] .dark-panel p,
html[data-theme='dark'] .feature-strip p {
  color: #c3d0cc;
}
html[data-theme='dark'] .highlight:before {
  background: #ad8307;
  opacity: 0.35;
}
html[data-theme='dark'] .newsletter {
  background: #183e2f;
}
html[data-theme='dark'] .notice,
html[data-theme='dark'] .prose blockquote,
html[data-theme='dark'] .markdown blockquote {
  background: #1b3528;
  color: #d0e8d5;
}
html[data-theme='dark'] .prose {
  color: #d2ddd7;
}
html[data-theme='dark'] .search-box {
  background: #172622;
}
html[data-theme='dark'] .search-box button {
  background: #284333;
  color: #e6efe6;
}
html[data-theme='dark'] .filter-group {
  background: #29382c;
}
html[data-theme='dark'] .filter-group select {
  background: transparent;
}
html[data-theme='dark'] .source-callout {
  background: #233127;
}
html[data-theme='dark'] .warm {
  background: #40371d;
  border-color: #5e5028;
}
html[data-theme='dark'] .tag {
  background: #29362f;
  color: var(--muted);
}
html[data-theme='dark'] .markdown pre,
html[data-theme='dark'] .prose pre {
  background: #071411;
  color: #e0e9e1;
}
html[data-theme='dark'] .skill-row:hover {
  background: #1e322880;
}
html[data-theme='dark'] .terminal {
  background: #071411;
}
html[data-theme='dark'] .news-search {
  background: #172622;
}
html[data-theme='dark'] .skip-link {
  background: #172622;
}
html[data-theme='dark'] .orbit {
  border-color: #4b574a;
}
html[data-theme='dark'] .archive-hero:after {
  background-image: linear-gradient(90deg, var(--paper), #101b1abb);
}
html[data-theme='dark'] .chip.active {
  background: #2d6347;
  border-color: #2d6347;
  color: white;
}
html[data-theme='dark'] .sidebar-read > span:nth-child(1) {
  color: #efaf6f;
}
.theme-toggle {
  padding: 8px 11px;
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  flex-shrink: 0;
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 760px) {
  .theme-toggle {
    padding: 8px;
    min-width: 38px;
  }
  .header-actions {
    gap: 6px;
  }
}

/* Shared, restrained focus and modern selection controls. */
.subscribe-form button,
.newsletter button,
.header-actions .header-subscribe {
  border-radius: 6px;
}
.news-search:focus-within {
  border-color: var(--green);
}
.news-search input:focus-visible,
.live-search input:focus-visible {
  outline: 0;
}
.live-search:focus-within {
  border-bottom-color: var(--green);
}
.news-search:has(input:focus-visible),
.live-search:has(input:focus-visible) {
  box-shadow: 0 1px 0 var(--green);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23677170' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: right 12px center;
  padding-right: 38px;
  border-radius: 8px;
}
.modern-select {
  position: relative;
  min-width: 154px;
  color: var(--ink);
}
.modern-select-button {
  width: 100%;
  min-height: 40px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 9px 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: 500 13px/1.4 var(--sans);
  color: var(--ink);
}
.modern-select-button::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  margin: -3px 3px 0 0;
  flex-shrink: 0;
}
.modern-select-button[aria-expanded='true'] {
  border-color: var(--green);
}
.modern-select-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(280px, 80vw);
  max-height: 320px;
  overflow: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 8px 24px #071b2c12;
}
.modern-select-menu[hidden] {
  display: none;
}
.modern-select-option {
  min-height: 38px;
  padding: 9px 12px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  border: 0;
  border-radius: 6px;
  text-align: left;
  color: var(--ink);
  background: transparent;
  font: 13px/1.4 var(--sans);
  cursor: pointer;
}
.modern-select-option:hover,
.modern-select-option:focus-visible {
  background: color-mix(in srgb, var(--green) 9%, var(--paper));
  outline: 0;
}
.modern-select-option[aria-selected='true'] {
  background: color-mix(in srgb, var(--green) 8%, var(--paper));
  font-weight: 700;
}
.modern-select-option:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: -2px;
}
.modern-select-option[aria-selected='true']::after {
  content: '✓';
  color: var(--green);
  margin-left: 15px;
}
.sort-form .modern-select-button {
  font-size: 12px;
  min-height: 38px;
}
.sort-form.is-enhanced > button {
  display: none;
}
.category-filter .modern-select {
  min-width: 190px;
}
@media (max-width: 600px) {
  .modern-select-menu {
    max-width: calc(100vw - 48px);
  }
}
