/* Shipunov Summerland Key Biological Station
   Plain CSS, no build step. */

:root {
  --paper: #f7f4ec;
  --paper-deep: #efe9db;
  --card: #fffdf8;
  --ink: #18231c;
  --muted: #46564c;
  --green: #17513a;
  --green-deep: #103a2a;
  --rule: #d8cfba;
  --focus: #a24a1e;
  --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%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.45em; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 12px 18px;
  z-index: 20;
}
.skip:focus { left: 12px; top: 12px; }

a { color: var(--green-deep); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
  color: var(--ink);
}
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 600;
}
.brand-name span {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 4px;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
}
.site-nav a:hover { background: var(--paper-deep); }
.site-nav a[aria-current="page"] {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}

/* Sections */
.section { padding: 56px 0; }
.section.tight { padding: 36px 0; }
.section.deep { background: var(--paper-deep); }
.section.dark { background: var(--green-deep); color: #f3f0e6; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a { color: #f3f0e6; }

.eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6b4a22;
  margin: 0 0 10px;
}

.lead { font-size: 1.2rem; line-height: 1.55; color: #22302a; }

/* Hero */
.hero { padding: 44px 0 52px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 40px;
  align-items: center;
}
.hero-grid h1 { margin-bottom: 0.35em; }
.hero-grid .lead { max-width: 34em; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--green);
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn.secondary { background: transparent; color: var(--green-deep); }
.btn.secondary:hover { background: rgba(23, 81, 58, 0.08); }
.section.dark .btn { background: #f3f0e6; color: var(--green-deep); border-color: #f3f0e6; }
.section.dark .btn:hover { background: #fff; }

/* Status note */
.status {
  background: #edf1e9;
  border-left: 4px solid var(--green);
  padding: 18px 20px;
  margin: 26px 0 0;
  max-width: 46em;
}
.status p { margin: 0; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
.cards li { margin: 0; }
.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 1rem; }
.card .cardlink {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

/* Two column text */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

/* Figures */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin: 28px 0 0;
}
figure { margin: 0; }
figure img { border-radius: 3px; width: 100%; }
figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  padding-top: 8px;
  line-height: 1.45;
}

.wide-figure { margin: 32px 0 0; }
.wide-figure img { width: 100%; border-radius: 3px; }
.wide-figure figcaption { max-width: 60em; }

/* Lists of plain facts */
.facts {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--rule);
}
.facts li {
  display: grid;
  grid-template-columns: 13em 1fr;
  gap: 12px;
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid var(--rule);
}
.facts b { font-weight: 600; }

/* People */
.people { list-style: none; padding: 0; margin: 26px 0 0; }
.people li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  padding: 16px 0;
  margin: 0;
  border-bottom: 1px solid var(--rule);
}
.people .person { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.people .role { font-size: 0.95rem; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 52px;
  margin: 0;
  border-left: 2px solid var(--rule);
  margin-left: 15px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -16px;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 4px; }

/* Quote and legal */
blockquote {
  margin: 20px 0;
  padding: 18px 20px;
  background: var(--paper-deep);
  border-left: 4px solid var(--rule);
}
blockquote p { margin: 0; font-size: 0.95rem; letter-spacing: 0; }

.disclosure {
  border: 1px solid var(--rule);
  background: var(--card);
  padding: 20px;
  margin: 26px 0 0;
}
.disclosure p { font-size: 0.95rem; }
.disclosure .reg { font-weight: 600; margin-bottom: 12px; }

.note { font-size: 0.95rem; color: var(--muted); }

main p > a,
.note a, .facts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-underline-offset: 3px;
}

/* Footer */
.site-foot {
  border-top: 1px solid var(--rule);
  padding: 40px 0 48px;
  background: var(--paper-deep);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}
.foot-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin: 0 0 6px; }
.foot-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.foot-links li { margin: 0 0 4px; }
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.95rem;
}
.foot-legal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
}
.foot-legal p { margin: 0 0 10px; }
.foot-legal strong { color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding-top: 28px; }
  .hero-grid, .split, .foot-grid { grid-template-columns: 1fr; }
  .hero-media { order: 2; }
  .section { padding: 44px 0; }
}

@media (max-width: 560px) {
  .wrap { width: min(1120px, 100% - 28px); }
  .brand-name { font-size: 0.98rem; }
  .site-nav { width: 100%; }
  .site-nav ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .site-nav a { justify-content: center; padding: 0 6px; font-size: 0.92rem; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .people li { flex-direction: column; gap: 2px; }
}

@media print {
  .site-nav, .actions, .site-foot { display: none; }
  body { background: #fff; }
}
