@font-face { font-family: "Baloo 2 PW"; src: url("fonts/baloo-2-latin-wght-normal.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Baloo 2 PW"; src: url("fonts/baloo-2-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Serif PW"; src: url("fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif PW"; src: url("fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; unicode-range: U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --ice: #d3e9f2;
  --paper: #f6fbfd;
  --navy: #0e2232;
  --slate: #3d5a6b;
  --orange: #f29a2e;
  --rule: rgba(14, 34, 50, .18);
  --display: "Baloo 2 PW", system-ui, sans-serif;
  --body: "Source Serif PW", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ice: #0e2232;
    --paper: #13293a;
    --navy: #e8f3f8;
    --slate: #a9c3d1;
    --orange: #ffb457;
    --rule: rgba(232, 243, 248, .18);
  }
}
:root[data-theme="dark"] {
  --ice: #0e2232;
  --paper: #13293a;
  --navy: #e8f3f8;
  --slate: #a9c3d1;
  --orange: #ffb457;
  --rule: rgba(232, 243, 248, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.pinguin-page {
  margin: 0;
  background: var(--ice);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip-link:focus { left: 8px; }

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1080px; margin: 0 auto; padding: 20px 16px;
}
.brand { font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--orange); }

main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  min-height: 70vh; padding: 24px 0 56px;
}
.hero h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.02; margin: 0 0 20px; letter-spacing: -.01em;
}
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 34rem; margin: 0 0 28px; color: var(--slate); }
.btn {
  display: inline-block; background: var(--navy); color: var(--paper); text-decoration: none;
  padding: 14px 24px; border-radius: 999px; font-family: var(--display); font-weight: 600;
}
.btn:hover { background: var(--orange); color: var(--navy); }
.hero-art { max-width: 340px; width: 100%; justify-self: center; }
.hero-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }
.penguin .back { fill: var(--navy); }
.penguin .belly { fill: var(--paper); }
.penguin .eye-white { fill: var(--paper); }
.penguin .eye { fill: var(--navy); }
.penguin .beak { fill: var(--orange); }
.penguin .feet { fill: var(--orange); }
.penguin .ice { fill: var(--slate); opacity: .25; }

.fact {
  margin: 0 0 16px; padding: 28px 32px; border-radius: 20px;
  background: var(--paper); border-left: 6px solid var(--orange); max-width: 46rem;
}
.fact h2 { font-family: var(--display); font-weight: 700; font-size: 1.6rem; margin: 0 0 8px; line-height: 1.2; }
.fact p { margin: 0; font-size: 1.15rem; }
.section { padding: 56px 0; border-top: 1px solid var(--rule); }
.section h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1; margin: 0 0 24px;
}
.section-intro { color: var(--slate); margin: -12px 0 24px; }

.species { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.species-item { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.species-item:first-child { border-top: 1px solid var(--rule); }
.species-item h3 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; margin: 0 0 6px; }
.species-item p { margin: 0 0 6px; }
.latin { font-family: var(--body); font-style: italic; font-weight: 400; font-size: .95rem; color: var(--slate); margin-left: 8px; }
.meta { color: var(--slate); font-size: .95rem; }

.depth-chart { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.depth-chart li { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; align-items: center; padding: 10px 0; }
.depth-name { font-family: var(--display); font-weight: 600; }
.depth-bar {
  display: block; height: 36px; border-radius: 0 999px 999px 0; background: var(--navy);
  width: var(--w); min-width: 4.5rem; position: relative;
}
.depth-value {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--paper); font-family: var(--display); font-weight: 600; font-size: .95rem;
}

.contact-list { list-style: none; padding: 0; margin: 16px 0 0; font-size: 1.25rem; }
.contact-list li { margin: 6px 0; }

.site-footer { max-width: 1080px; margin: 0 auto; padding: 32px 16px 48px; border-top: 1px solid var(--rule); color: var(--slate); font-size: .95rem; }
.site-footer p { margin: 0; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 8px; }
  .hero-art { order: -1; max-width: 220px; }
  .depth-chart li { grid-template-columns: 1fr; gap: 6px; }
  .fact { padding: 20px; }
  .fact h2 { font-size: 1.35rem; }
  .fact p { font-size: 1.05rem; }
  .section { padding: 40px 0; }
  .depth-bar { height: 30px; }
  .depth-value { font-size: .85rem; right: 10px; }
  .btn { display: block; text-align: center; }
}
@media (max-width: 374px) {
  body.pinguin-page { font-size: 1rem; }
  .site-nav { gap: 4px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .site-nav, .btn, .skip-link { display: none; }
  body.pinguin-page { background: #fff; color: #000; }
}
