/* Hallmark custom, committed: Fish ID as a field guide. Oversized system-serif headings lead into deep green, using app facts and copy as the only material. */
/* Pre-emit critique: Putting the model and guide counts side by side made their roles easy to confuse. The identification section now explains the 17 recognized taxa, and the guide section gives the 22 profiles their own heading. */
:root {
  --color-paper: oklch(97% 0.015 90);
  --color-ink: oklch(24% 0.035 155);
  --color-muted: oklch(42% 0.025 155);
  --color-rule: oklch(76% 0.024 135);
  --color-field: oklch(30% 0.059 155);
  --color-field-ink: oklch(96% 0.018 90);
  --color-field-rule: oklch(60% 0.033 155);
  --color-accent: oklch(42% 0.115 44);
  --color-accent-hover: oklch(33% 0.103 44);
  --color-accent-ink: oklch(98% 0.009 90);
  --color-focus: oklch(48% 0.152 44);
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: system-ui, sans-serif;
  --weight-regular: 400;
  --weight-strong: 700;
  --text-small: 0.9375rem;
  --text-body: 1.0625rem;
  --text-lead: clamp(1.125rem, 2.35vw, 1.5rem);
  --text-section: clamp(2rem, 4.3vw, 3.5rem);
  --text-document: clamp(2.75rem, 7vw, 5.5rem);
  --text-display: clamp(4.25rem, 14vw, 12rem);
  --text-count: clamp(5rem, 12vw, 9rem);
  --line-display: 1;
  --line-body: 1.6;
  --track-display: -0.035em;
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;
  --gutter: clamp(var(--space-md), 5vw, var(--space-2xl));
  --section-space: clamp(var(--space-xl), 7vw, var(--space-3xl));
  --hero-space: clamp(var(--space-2xl), 10vw, var(--space-4xl));
  --width-site: 76rem;
  --width-copy: 62ch;
  --height-target: 2.75rem;
  --rule: 1px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-block-size: 100vh;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  font-synthesis: none;
  line-height: var(--line-body);
}
.shell {
  inline-size: min(100% - 2 * var(--gutter), var(--width-site));
  margin-inline: auto;
}
h1, h2 {
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  line-height: var(--line-display);
  letter-spacing: var(--track-display);
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 { max-inline-size: 20ch; }
h2 { max-inline-size: 27ch; font-size: var(--text-section); }
p { max-inline-size: var(--width-copy); margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: var(--space-2xs); }
a:hover { text-decoration-thickness: var(--space-3xs); }
a:focus-visible {
  outline: var(--space-3xs) solid var(--color-focus);
  outline-offset: var(--space-2xs);
}
.skip-link {
  position: absolute;
  inset-block-start: var(--space-xs);
  inset-inline-start: var(--gutter);
  z-index: 10;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-paper);
  color: var(--color-ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.masthead, .site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: var(--space-xl);
  row-gap: var(--space-2xs);
  padding-block: var(--space-sm);
}
.masthead { border-block-end: var(--rule) solid var(--color-rule); }
.site-footer {
  border-block-start: var(--rule) solid var(--color-rule);
  color: var(--color-muted);
  font-size: var(--text-small);
}
.brand, .site-nav a, .site-footer a, .email-link, .action {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--height-target);
}
.brand {
  font-family: var(--font-display);
  font-size: var(--text-lead);
  text-decoration: none;
}
.brand:hover { text-decoration-line: underline; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-lg);
  font-size: var(--text-small);
}
.site-nav a { text-decoration-color: var(--color-rule); }
.site-nav a:hover, .site-nav [aria-current='page'] { text-decoration-color: currentColor; }
.site-nav [aria-current='page'] { font-weight: var(--weight-strong); }
.hero {
  display: grid;
  justify-items: start;
  gap: var(--space-lg);
  padding-block: var(--hero-space) var(--section-space);
}
.hero h1 { font-size: var(--text-display); }
.hero p { max-inline-size: 43ch; font-size: var(--text-lead); }
.action {
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  font-weight: var(--weight-strong);
  text-decoration: none;
}
.action:hover { background: var(--color-accent-hover); color: var(--color-accent-ink); }
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: start;
  gap: var(--space-xl);
  padding-block: var(--section-space);
}
.field-row--ruled { border-block-start: var(--rule) solid var(--color-rule); }
.copy { display: grid; gap: var(--space-md); }
.guide { background: var(--color-field); color: var(--color-field-ink); }
.guide .field-row { align-items: end; }
.guide h2 span {
  display: block;
  font-size: var(--text-count);
  font-variant-numeric: lining-nums tabular-nums;
}
.guide .copy {
  border-block-start: var(--rule) solid var(--color-field-rule);
  padding-block-start: var(--space-lg);
}
.document {
  padding-block: var(--section-space);
}
.document article { display: grid; gap: var(--space-xl); }
.document h1 { font-size: var(--text-document); }
.document section { display: grid; gap: var(--space-md); }
.document section + section {
  max-inline-size: var(--width-copy);
  border-block-start: var(--rule) solid var(--color-rule);
  padding-block-start: var(--space-lg);
}
.document h2 { font-size: var(--text-lead); line-height: var(--line-body); }
.email-link { overflow-wrap: anywhere; }

@media (max-width: 44rem) {
  .field-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
}
@media (max-width: 28rem) {
  .masthead, .site-footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
