:root {
  --ink: #183e4b;
  --text: #52666c;
  --teal: #1f756f;
  --line: #dce6e6;
  --wash: #f3f7f6;
  --paper: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; color: var(--text); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; border-radius: 3px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.035em; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
.section-shell { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; top: -80px; left: 16px; padding: 10px 18px; color: white; background: var(--ink); }
.skip-link:focus { top: 12px; color: white; }
.site-header { border-bottom: 1px solid var(--line); }
.header-shell { min-height: 94px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 23px; line-height: 1; font-weight: 720; letter-spacing: -.045em; }
.brand-mark { flex-shrink: 0; }
.site-header nav ul { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.site-header nav a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 550; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--teal); }
.hero { display: grid; grid-template-columns: 1.07fr 1fr; gap: 70px; align-items: center; padding-block: 64px 72px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 620px; font-size: clamp(42px, 4.2vw, 59px); font-weight: 650; line-height: 1.08; letter-spacing: -.047em; text-wrap: balance; }
.hero-description { max-width: 500px; margin-top: 26px; font-size: 18px; line-height: 1.7; }
.hero-figure { overflow: hidden; background: var(--wash); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 15px 45px -25px rgba(24, 62, 75, .2); }
.hero-figure img { width: 100%; background: white; }
.hero-figure figcaption { padding: 12px 20px; color: var(--text); border-top: 1px solid var(--line); font-size: 11px; }
.toolkit-section { padding-block: 55px 60px; background: var(--wash); border-block: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 30px; }
.section-heading h2 { font-size: 30px; font-weight: 600; }
.section-heading > p { max-width: 310px; font-size: 13px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tool-card { display: flex; flex-direction: column; min-width: 0; padding: 27px; color: var(--text); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.tool-card:hover { color: var(--text); border-color: #84b7b2; box-shadow: 0 10px 24px -16px rgba(24, 62, 75, .3); transform: translateY(-3px); }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.tool-icon { display: inline-flex; justify-content: center; align-items: center; width: 46px; height: 46px; color: var(--teal); background: #e9f4f0; border-radius: 11px; }
.tool-icon-oceandb { color: #436c99; background: #eef3f9; }
.tool-icon-mapinterp { color: #846d46; background: #f7f3e9; }
.tool-category { color: #60777b; font-size: 11px; font-weight: 600; }
.tool-card h2, .tool-card h3 { font-size: 21px; font-weight: 650; letter-spacing: -.035em; overflow-wrap: anywhere; }
.tool-card > p { flex: 1; margin-top: 14px; font-size: 13px; line-height: 1.8; }
.tool-language { align-self: start; margin-top: 25px; padding-top: 15px; border-top: 1px solid var(--line); color: #60777b; font-size: 10px; letter-spacing: .03em; }
.workflow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.workflow { display: flex; align-items: start; gap: 19px; padding-top: 24px; border-top: 1px solid var(--line); }
.workflow-number { color: var(--teal); font-size: 12px; font-weight: 600; line-height: 1.9; }
.workflow h3 { font-size: 19px; font-weight: 600; letter-spacing: -.025em; }
.workflow p { margin-top: 12px; font-size: 13px; }
.workflow ol { margin: 14px 0 0; padding-left: 17px; font-size: 13px; }
.workflow li + li { margin-top: 5px; }
.site-footer { padding-block: 35px; background: var(--wash); border-top: 1px solid var(--line); }
.footer-shell { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-brand { color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 650; letter-spacing: -.035em; }
.footer-shell p { margin-top: 5px; font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 11px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.page-shell { padding-block: 64px 90px; min-height: 65vh; }
.page-heading { margin-bottom: 36px; }
.page-heading h1 { margin-top: 16px; font-size: clamp(32px, 4vw, 44px); font-weight: 650; }
.prose { max-width: 730px; font-size: 16px; }
.prose h2 { margin-top: 34px; margin-bottom: 16px; font-size: 24px; font-weight: 600; }
.prose p + p { margin-top: 18px; }
.funding-credit { display: flow-root; margin-bottom: 18px; }
.funding-insignia { float: left; margin: 0 24px 12px 0; padding: 10px; background: white; border: 1px solid #b5c8cd; }
.funding-insignia img { width: 112px; }
.funding-disclaimer { font-size: 14px; line-height: 1.7; }
.page-intro { max-width: 660px; margin-bottom: 32px; }
.catalog-workflows { margin-top: 60px; }
.catalog-workflows > h2 { margin-bottom: 26px; font-size: 26px; font-weight: 600; }

@media (min-width: 1600px) { .section-shell { width: min(1280px, calc(100% - 120px)); } }
@media (max-width: 1000px) {
  .section-shell { width: calc(100% - 64px); }
  .hero { gap: 38px; padding-block: 48px; }
  .hero h1 { font-size: 42px; }
  .hero-description { font-size: 16px; }
  .site-header nav ul { gap: 22px; }
  .tool-card { padding: 23px; }
  .tool-card h2, .tool-card h3 { font-size: 18px; }
  .workflow-grid { gap: 30px; }
}
@media (max-width: 760px) {
  .section-shell { width: calc(100% - 40px); }
  .header-shell { min-height: 100px; flex-wrap: wrap; gap: 17px; padding-block: 20px; }
  .brand { font-size: 21px; }
  .brand-mark { width: 32px; height: 32px; }
  .site-header nav { width: 100%; }
  .site-header nav ul { justify-content: space-between; gap: 16px; }
  .site-header nav a { font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; }
  .hero h1 { max-width: 560px; font-size: clamp(38px, 7vw, 48px); }
  .hero-description { max-width: 560px; margin-top: 22px; }
  .hero-figure { max-width: 540px; }
  .section-heading { display: block; margin-bottom: 25px; }
  .section-heading h2 { font-size: 27px; }
  .section-heading > p { max-width: none; margin-top: 15px; }
  .toolkit-section { padding-block: 40px; }
  .tool-grid { grid-template-columns: 1fr; gap: 16px; }
  .tool-card { padding: 24px; }
  .tool-card-top { margin-bottom: 20px; }
  .tool-card h2, .tool-card h3 { font-size: 23px; }
  .tool-card > p { max-width: 480px; font-size: 14px; }
  .tool-language { margin-top: 20px; font-size: 11px; }
  .workflow-grid { grid-template-columns: 1fr; gap: 28px; }
  .workflow p, .workflow ol { font-size: 14px; }
  .footer-shell { display: block; }
  .footer-links { margin-top: 24px; gap: 20px; }
  .page-shell { padding-block: 40px 60px; }
  .prose { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tool-card { transition: none; }
  .tool-card:hover { transform: none; }
}
