:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #193834;
  background: #fafbf7;
  font-synthesis: none;
  --ink: #193834;
  --muted: #5b7167;
  --line: #d8e1d6;
  --paper: #fafbf7;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
a:focus-visible { outline: 3px solid #b46718; outline-offset: 6px; }
svg { display: block; width: 100%; height: 100%; }
.site-shell { max-width: 1280px; padding: 0 56px; margin: 0 auto; }
.skip-link { position: absolute; left: 24px; top: 12px; padding: 12px 16px; z-index: 2; background: var(--ink); color: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 29px 0; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; letter-spacing: -.25px; }
.brand-mark { display: block; flex: none; width: 36px; height: 36px; }
.site-header nav { display: flex; gap: 30px; font-size: 13px; }
.site-header nav a { display: flex; align-items: center; min-height: 44px; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #9bae91; }
.text-link { display: inline-block; padding: 8px 0; color: #296657; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; line-height: 1.7; }
.text-link span { margin-left: 5px; }
.inline-link, .site-footer a { text-decoration: underline; text-underline-offset: 4px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0; font-size: 10px; line-height: 1.5; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
h1 { margin: 23px 0 25px; font: 400 clamp(48px, 6.8vw, 82px)/1.06 Georgia, "Times New Roman", serif; letter-spacing: -3px; }
.destinations { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.project-card { display: flex; flex-direction: column; position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; transition: transform 180ms ease, box-shadow 180ms ease; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px #19383412; }
.project-card:focus-visible { outline-offset: 5px; }
.environment-card { color: #fafbf7; background: var(--ink); border-color: var(--ink); }
.thesis-card { background: #edf2e7; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 25px 28px 0; }
.card-topline .eyebrow { letter-spacing: 1px; font-size: 9px; }
.topline-divider { width: 20px; height: 1px; background: currentColor; opacity: .45; }
.card-arrow { font-size: 23px; line-height: 1; }
.environment-card .card-topline { color: #c7d9c2; }
.thesis-card .card-topline { color: #526d5b; }
.card-art { height: 150px; margin: 12px 0 12px; }
.reader-art { padding: 0 22px; overflow: hidden; }
/* Crop the saved image's white margins; keep the complete butterfly visible. */
.reader-art img { display: block; width: 100%; height: 100%; object-fit: contain; transform: scale(1.55); }
.river-line { stroke: #aac99b; stroke-width: 2; }
.river-guide { stroke: #799b81; stroke-width: 1; opacity: .45; }
.river-tributary { stroke: #8aac8b; stroke-width: 1; opacity: .6; }
.observation-halo { fill: #aec794; fill-opacity: .13; stroke: #b7d4a1; stroke-opacity: .4; }
.observation-point { fill: #e6d59f; stroke: var(--ink); stroke-width: 2; }
.card-copy { padding: 0 28px 27px; flex: 1; }
.place-label { margin: 0 0 11px; font-size: 10px; letter-spacing: .5px; color: #c7d9c2; }
.thesis-card .place-label { color: #5e765e; }
.card-copy h2 { margin: 0 0 14px; font: 400 clamp(28px, 3.2vw, 38px)/1.15 Georgia, "Times New Roman", serif; letter-spacing: -1.1px; }
.card-copy > p:last-child { max-width: 370px; margin: 0; font-size: 14px; line-height: 1.7; color: #d5e1d1; }
.thesis-card .card-copy > p:last-child { color: #526a58; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 67px; margin: 0 28px; border-top: 1px solid #708b7359; font-size: 12px; font-weight: 600; }
.card-bottom > span:last-child { font-size: 21px; font-weight: 400; transition: transform 180ms ease; }
.project-card:hover .card-bottom > span:last-child { transform: translateX(4px); }
.context-note { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; padding: 44px 0 46px; }
.context-note h2 { margin: 0; font: 400 22px/1.4 Georgia, "Times New Roman", serif; letter-spacing: -.25px; }
.context-note p { max-width: 465px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 24px 0 29px; color: var(--muted); font-size: 11px; }
.api-page { padding-bottom: 26px; }
.api-introduction { padding: 56px 0 28px; }
.api-introduction .eyebrow { color: var(--muted); }
.api-introduction h1 { font-size: clamp(38px, 5.7vw, 65px); letter-spacing: -2px; }
.api-introduction > p:not(.eyebrow) { max-width: 680px; font-size: 16px; line-height: 1.75; color: var(--muted); }
.api-introduction .api-base { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 17px; margin: 10px 0 0; font-size: 12px; }
.api-page code { font: .9em/1.6 Consolas, "SFMono-Regular", monospace; overflow-wrap: anywhere; }
.api-page p code, .api-page li code { padding: 2px 4px; border-radius: 3px; background: #eaf0e4; color: var(--ink); }
.api-page pre { overflow: auto; margin: 18px 0 10px; padding: 19px 21px; border: 1px solid var(--line); border-radius: 6px; background: #eef3e9; line-height: 1.7; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.api-notice { padding: 19px 23px; margin-bottom: 34px; border-left: 3px solid #829b70; background: #edf2e7; border-radius: 0 5px 5px 0; font-size: 13px; line-height: 1.75; }
.api-notice p { margin: 7px 0 0; color: #526a58; }
.api-page section { margin: 34px 0; }
.api-page section > h2 { margin: 0 0 15px; font: 400 29px/1.3 Georgia, "Times New Roman", serif; letter-spacing: -.5px; }
.api-page section > p, .api-steps { color: #526a58; font-size: 14px; line-height: 1.85; }
.api-steps { padding-left: 23px; }
.api-steps li { padding-left: 7px; margin: 8px 0; }
.api-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.api-table-wrap:focus-visible { outline: 3px solid #b46718; outline-offset: 4px; }
.api-page table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; line-height: 1.65; }
.api-page th, .api-page td { padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.api-page thead { background: #eaf0e4; }
.api-page tbody th { min-width: 235px; font-weight: 500; }
.api-page tbody td { min-width: 170px; color: #526a58; }
.api-page tbody tr:last-child > * { border-bottom: 0; }
.api-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; border-bottom: 1px solid var(--line); }
.api-columns section { margin: 18px 0 22px; }
.api-return { margin: 24px 0; }

@media (max-width: 800px) {
  .site-shell { padding: 0 28px; }
  .card-topline { padding: 22px 22px 0; }
  .card-copy { padding: 0 22px 24px; }
  .card-bottom { margin: 0 22px; }
  .card-topline .eyebrow { font-size: 8px; letter-spacing: .6px; gap: 8px; }
  .topline-divider { width: 13px; }
  .card-art { height: 140px; }
  .destinations { gap: 16px; }
  .context-note { gap: 28px; }
}

@media (max-width: 600px) {
  .site-shell { padding: 0 22px; }
  .site-header { flex-wrap: wrap; gap: 10px; padding: 21px 0 13px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 32px; height: 32px; }
  .site-header nav { width: 100%; gap: 23px; padding-left: 44px; font-size: 12px; flex-wrap: wrap; }
  .site-header nav a { min-height: 36px; }
  h1 { font-size: clamp(42px, 10.5vw, 62px); letter-spacing: -1.9px; margin: 20px 0; }
  .destinations { grid-template-columns: 1fr; gap: 18px; }
  .card-topline .eyebrow { font-size: 9px; letter-spacing: .7px; }
  .card-art { height: 130px; margin-top: 7px; }
  .card-copy h2 { font-size: 33px; }
  .card-copy > p:last-child { max-width: 390px; }
  .context-note { grid-template-columns: 1fr; gap: 13px; padding: 33px 0; }
  .context-note h2 { font-size: 21px; }
  .site-footer { flex-direction: column; gap: 8px; padding: 22px 0; }
  .api-introduction { padding-top: 36px; }
  .api-introduction h1 { font-size: 42px; line-height: 1.15; letter-spacing: -1.5px; }
  .api-introduction > p:not(.eyebrow) { font-size: 14px; }
  .api-notice { padding: 16px 18px; }
  .api-columns { grid-template-columns: 1fr; gap: 0; }
  .api-page section > h2 { font-size: 25px; }
  .api-page pre { padding: 15px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card, .card-bottom > span:last-child { transition: none; }
  .project-card:hover, .project-card:hover .card-bottom > span:last-child { transform: none; }
}

@media (forced-colors: active) {
  .project-card, .brand-mark { border: 1px solid CanvasText; }
  .card-bottom, .site-header, .site-footer { border-color: CanvasText; }
}
