/* godosa-site. Palette: a sea chart. Paper, chart ink, deep water; land in ridge ochre and lowland greens;
   plum marks drafts only. Type: Alegreya (book serif) for names and text, Alegreya Sans for small details. */

@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/Alegreya-normal-400-800.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url("fonts/Alegreya-italic-400-800.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/AlegreyaSans-normal-400.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/AlegreyaSans-normal-500.woff2") format("woff2"); }

:root {
  --paper: #e9efec;
  --ink: #1e2b31;
  --ink-soft: #4d5d63;
  --water: #2c5e72;
  --sea: #cfdcdc;
  --sea-grid: #bccdcf;
  --shelf: #dbe6e3;
  --coast: #3b4a4f;
  --land0: #b2925a;
  --land1: #6e8b58;
  --land2: #98a36b;
  --land3: #c8b07c;
  --plum: #8e4466;
  --halo: #e9efec;
  --rule: #c9d4d2;
  --serif: "Alegreya", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Alegreya Sans", "Gill Sans", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "DejaVu Sans Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13212a;
    --ink: #dde6e0;
    --ink-soft: #9fb0b0;
    --water: #86b9cc;
    --sea: #173340;
    --sea-grid: #1f3e4b;
    --shelf: #1c3c49;
    --coast: #0c171d;
    --land0: #8a7446;
    --land1: #55704a;
    --land2: #707c4e;
    --land3: #9c8a5e;
    --plum: #d68fb0;
    --halo: #13212a;
    --rule: #2a3e47;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--serif);
  font-variant-numeric: oldstyle-nums proportional-nums;
}
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 16px; }
a { color: var(--water); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--water); outline-offset: 3px; border-radius: 2px; }

/* Masthead */
.top { padding-top: 1.25rem; }
.brand { font: italic 600 1.25rem/1 var(--serif); color: var(--ink); text-decoration: none; }
.site-head { margin: 3.5rem 0 1rem; }
.site-head h1 { font: 700 clamp(2.5rem, 7vw, 4.25rem)/1 var(--serif); letter-spacing: -.01em; margin: 0; }
.site-head p { font-style: italic; color: var(--ink-soft); margin: .5rem 0 0; font-size: 1.25rem; max-width: 36em; }

/* The chart */
.chart-wrap { margin: 1rem 0 3rem; }
.chart { display: block; width: 100%; height: auto; max-height: 62vh; }
.chart .sea { fill: var(--sea); stroke: var(--sea-grid); stroke-width: .6; }
.chart .shelf { fill: var(--shelf); stroke: var(--sea-grid); stroke-width: .6; }
.chart .land { stroke: rgb(0 0 0 / .08); stroke-width: .5; transition: filter .15s; }
.chart .tone0 .land { fill: var(--land0); }
.chart .tone1 .land { fill: var(--land1); }
.chart .tone2 .land { fill: var(--land2); }
.chart .tone3 .land { fill: var(--land3); }
.chart .coast { fill: none; stroke: var(--coast); stroke-width: 1.4; stroke-linecap: round; }
.chart .border { fill: none; stroke: var(--coast); stroke-width: .7; stroke-dasharray: 2 2; opacity: .7; }
.chart .is-draft .coast { stroke: var(--plum); stroke-width: 1.1; stroke-dasharray: 3 2.2; }
.chart a:hover .land, .chart a:focus-visible .land { filter: brightness(1.12) saturate(1.1); }
.chart a:focus-visible { outline: none; }
.chart a:focus-visible .coast { stroke: var(--water); stroke-width: 2.4; stroke-dasharray: none; }
.chart .label { font: italic 600 7px var(--serif); fill: var(--ink); text-anchor: middle; dominant-baseline: middle;
  paint-order: stroke; stroke: var(--halo); stroke-opacity: .85; stroke-width: 1.5px; stroke-linejoin: round; pointer-events: none; }
.chart .is-faded .land { opacity: .35; }
.chart .is-faded .coast { opacity: .4; }
@media (max-width: 34rem) { .chart .label { font-size: 10.5px; stroke-width: 2px; } }
@media (prefers-reduced-motion: reduce) { .chart .land { transition: none; } }

/* Gazetteer (project index) */
.gazetteer { list-style: none; margin: 0; padding: 0; }
.gazetteer > li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .25rem 2rem;
  padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.gazetteer h2 { margin: 0; font: 600 1.5rem/1.2 var(--serif); }
.gazetteer h2 a { color: var(--ink); text-decoration: none; }
.gazetteer h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.gazetteer p { margin: 0; max-width: 34em; }
.details { font: 400 .9375rem/1.5 var(--sans); color: var(--ink-soft); margin-top: .35rem;
  display: flex; flex-wrap: wrap; gap: .15rem 1.1rem; list-style: none; padding: 0; }
.draft-mark { font: italic 500 1rem var(--serif); color: var(--plum); margin-left: .35rem; white-space: nowrap; }
@media (max-width: 40rem) { .gazetteer > li { grid-template-columns: 1fr; } }
.empty { font-style: italic; color: var(--ink-soft); }

/* Project page */
.project-head { display: grid; grid-template-columns: minmax(0, 1fr) 11rem; gap: 2rem; align-items: start; margin-top: 2rem; }
.project-head h1 { font: 700 clamp(2.25rem, 6vw, 3.5rem)/1.05 var(--serif); margin: 0; }
.project-head .summary { font-style: italic; font-size: 1.3rem; color: var(--ink-soft); margin: .6rem 0 0; max-width: 32em; }
.locator { display: block; }
@media (max-width: 40rem) { .project-head { grid-template-columns: minmax(0, 1fr) 6.5rem; gap: 1rem; } }
.prose { max-width: 36em; line-height: 1.65; }
.prose h1, .prose h2, .prose h3 { font-weight: 600; line-height: 1.25; margin: 1.75rem 0 .5rem; }
.prose h1 { font-size: 1.6rem; } .prose h2 { font-size: 1.35rem; } .prose h3 { font-size: 1.15rem; }
.section-title { font: 600 1.35rem/1.25 var(--serif); margin: 2.5rem 0 .75rem; }
.disclaimer { font: 400 1rem/1.55 var(--sans); color: var(--ink-soft); max-width: 40em; margin: 1.5rem 0;
  padding-left: 1rem; border-left: 3px solid var(--land0); }
.draft-note { font: 500 1rem/1.5 var(--sans); color: var(--plum); border: 1.5px dashed var(--plum); border-radius: 4px;
  padding: .5rem .8rem; margin: 1.5rem 0 0; max-width: 40em; }
.open-map { display: inline-block; font: 600 1.125rem var(--serif); padding: .55rem 1.1rem; border: 1.5px solid var(--water);
  border-radius: 4px; text-decoration: none; }
.open-map:hover { background: var(--water); color: var(--paper); }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.5rem; margin: 2rem 0 0; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 3px; background: var(--shelf); }
.shots figcaption { font: 400 .9375rem/1.45 var(--sans); color: var(--ink-soft); margin-top: .45rem; }
.art-notice { font: 400 .8125rem/1.45 var(--sans); color: var(--ink-soft); margin: .75rem 0 0; max-width: 44em; }

.downloads { list-style: none; padding: 0; margin: 0; max-width: 44em; }
.downloads li { padding: .8rem 0; border-top: 1px solid var(--rule); }
.downloads li:last-child { border-bottom: 1px solid var(--rule); }
.downloads .get { font: 600 1.2rem var(--serif); }
.sum { display: block; font: .75rem/1.4 var(--mono); color: var(--ink-soft); overflow-wrap: anywhere; margin-top: .3rem; }
.missing { font: 500 .9375rem var(--sans); color: var(--plum); }
.links { padding-left: 1.2rem; }
.licence { font: 400 .9375rem var(--sans); color: var(--ink-soft); margin-top: 2.5rem; }

code { font: .85em var(--mono); background: var(--shelf); border-radius: 3px; padding: .05em .3em; }

.foot { font: 400 .9375rem/1.5 var(--sans); color: var(--ink-soft); border-top: 1px solid var(--rule);
  margin-top: 4rem; padding: 1rem 16px 2rem; }
.foot p { margin: 0; }
