:root {
  --ink: #10262e; --muted: #55686f; --sea: #0b4f60; --deep: #082f3b; --sun: #e58a2b; --sun-ink: #8a4a05;
  --sand: #f7f3ea; --paper: #ffffff; --line: #e3dccd; --tint: #eef5f5;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 18px/1.65 var(--sans); }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--sun-ink); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 9; }
.bar { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { font: 700 1.25rem/1 var(--serif); color: var(--deep); text-decoration: none; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo b { color: var(--sun); font-weight: 700; }
.logo-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--deep) url("/favicon.svg") center/cover; }
.site-header nav { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.site-header nav a { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 600; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover { border-color: var(--sun); }

.hero { position: relative; background: linear-gradient(160deg, var(--deep) 0%, var(--sea) 62%, #1a7f8c 100%); color: #fff; padding: 64px 0 96px; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(244,184,96,.55), rgba(244,184,96,0) 68%); }
.hero-inner { position: relative; max-width: 860px; margin: 0 auto; padding: 0 20px; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f4c27a; text-decoration: none; margin-bottom: 14px; }
a.kicker:hover { color: #fff; }
.hero h1 { font: 700 clamp(2rem, 5vw, 3.3rem)/1.12 var(--serif); margin: 0 0 18px; letter-spacing: -.01em; text-wrap: balance; }
.byline { margin: 0; font-size: .9rem; color: #cfe3e6; }
.swell { position: absolute; left: 0; bottom: -1px; width: 100%; height: 60px; fill: var(--sand); }
.hero-home { padding-top: 80px; }
.lede { font-size: 1.2rem; max-width: 640px; color: #e6f1f2; margin: 0 0 28px; }
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.promises li { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 14px 16px; font-size: .92rem; line-height: 1.5; color: #e6f1f2; }
.promises b { color: #fff; display: block; }

.prose { max-width: 780px; margin: 0 auto; padding: 28px 20px 56px; }
.prose > p:first-child { font-size: 1.14rem; line-height: 1.6; color: var(--ink); background: var(--paper); border-left: 5px solid var(--sun); border-radius: 0 12px 12px 0; padding: 18px 22px; margin-top: 0; box-shadow: 0 1px 0 var(--line); }
.prose h2 { font: 700 1.75rem/1.2 var(--serif); margin: 2.6em 0 .6em; padding-top: .9em; border-top: 2px solid var(--deep); color: var(--deep); text-wrap: balance; }
.prose h3 { font: 700 1.3rem/1.25 var(--serif); margin: 2.1em 0 .5em; color: var(--sea); }
.prose h4 { font-size: 1.02rem; margin: 1.6em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.05em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--sun); }
.prose strong { color: var(--deep); }
.prose code { font: inherit; background: var(--tint); padding: 1px 5px; border-radius: 4px; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; background: var(--tint); border-left: 4px solid var(--sea); border-radius: 0 10px 10px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose a { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin: 1.2em -20px 1.6em; padding: 0 20px; -webkit-overflow-scrolling: touch; }
@media (min-width: 1060px) { .table-wrap { margin-left: -130px; margin-right: -130px; padding: 0; } }
table { border-collapse: collapse; width: 100%; min-width: 560px; background: var(--paper); font-size: .88rem; line-height: 1.45; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th { background: var(--deep); color: #fff; text-align: left; font-weight: 600; padding: 10px 12px; vertical-align: bottom; }
td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) td { background: #fbf9f4; }
td:first-child { font-weight: 600; color: var(--deep); }

.more, .home { max-width: 1120px; margin: 0 auto; padding: 8px 20px 64px; }
.more h2, .home h2 { font: 700 1.6rem/1.2 var(--serif); color: var(--deep); margin: 0 0 4px; }
.home section { padding-top: 40px; scroll-margin-top: 70px; }
.section-blurb { color: var(--muted); margin: 0 0 18px; }
.more h2 { margin-bottom: 18px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cards a { display: block; height: 100%; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--sea); border-radius: 12px; padding: 18px 18px 20px; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s, box-shadow .15s; }
.cards a:hover { transform: translateY(-2px); border-top-color: var(--sun); box-shadow: 0 8px 22px rgba(8,47,59,.10); }
.card-title { display: block; font: 700 1.12rem/1.3 var(--serif); color: var(--deep); margin-bottom: 8px; }
.card-desc { display: block; font-size: .88rem; line-height: 1.5; color: var(--muted); }

.site-footer { background: var(--deep); color: #cfe3e6; padding: 36px 0 44px; font-size: .92rem; }
.site-footer p { max-width: 720px; margin: 0 0 10px; } .site-footer strong { color: #fff; } .site-footer .small { font-size: .82rem; color: #9fbcc2; }
.notfound { padding-top: 80px; padding-bottom: 120px; } .notfound h1 { font: 700 2.2rem/1.2 var(--serif); }
@media (max-width: 640px) { body { font-size: 17px; } .hero { padding: 44px 0 76px; } .site-header nav { gap: 14px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .cards a { transition: none; } }

/* photos */
.hero.has-photo { padding: 96px 0 110px; background: linear-gradient(180deg, rgba(8,47,59,.55) 0%, rgba(8,47,59,.78) 100%), var(--photo) center/cover no-repeat, var(--deep); }
.hero.has-photo::before { display: none; }
.hero.has-photo h1 { text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.photo-credit { max-width: 780px; margin: 10px auto 0; padding: 0 20px; font-size: .78rem; line-height: 1.5; color: var(--muted); }
.photo-credit a { color: var(--muted); }
.photo-credit span { color: var(--ink); }
.card-img { display: block; width: calc(100% + 36px); max-width: none; height: 150px; object-fit: cover; margin: -18px -18px 14px; border-radius: 8px 8px 0 0; }
@media (max-width: 640px) { .hero.has-photo { padding: 60px 0 90px; } }
