/* Wildiso – nature photography, field tools and birdsong research.
   No external fonts, scripts or trackers. The only third-party request is the YouTube player,
   loaded on /birdsong after the visitor presses play. */

:root {
  --bg: #0d1411;            /* deep forest night */
  --bg-raised: #131d19;
  --bg-card: #17231e;
  --line: #24332c;
  --text: #ede6d6;          /* warm sand */
  --muted: #a9b3a8;
  --moss: #8fae7e;          /* secondary: moss green */
  --accent: #f2a93b;        /* amber, shared with the Wildlife Depth of Field app */
  --accent-ink: #1d1402;
  --radius: 18px;
  --max: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffc56e; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 0 0 18px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 16px; }
h3 { font-size: 1.3rem; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow {
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 14px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 20, 17, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 88px; padding-top: 10px; padding-bottom: 10px; gap: 16px; }
.logo { font: 700 4rem/1 var(--serif); color: var(--text); text-decoration: none; letter-spacing: 0.02em; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 10px; flex-wrap: wrap; }
.nav a {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent);
  font: 700 15px/1 var(--sans); text-decoration: none;
  transition: background-color .15s, color .15s;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { background: #050807; color: var(--accent); }

/* Hero */
.hero { position: relative; min-height: clamp(460px, 44vw, 720px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero h1 { max-width: 7.5em; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,20,17,0) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(13,20,17,0.82) 0%, rgba(13,20,17,0.5) 38%, rgba(13,20,17,0) 62%);
}
.hero .wrap { position: relative; width: 100%; padding-bottom: 56px; padding-top: 40px; }
.hero p.lead { font-size: 1.2rem; max-width: 470px; color: var(--text); }

/* Sections and cards */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card .card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card .card-body p { color: var(--muted); }
.card .card-body .actions { margin-top: auto; }
.card-media { aspect-ratio: 4 / 5; background: var(--bg-raised); }
.card-media.wide { aspect-ratio: 16 / 10; }
.card-media.tall { aspect-ratio: 9 / 16; }
.card-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-card { margin: 0; width: 100%; max-width: 380px; justify-self: center; }
.video-card figcaption { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; font-size: 15px; }
.video-facade, .video-link { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video-facade img, .video-link img { width: 100%; height: 100%; object-fit: cover; }
.play-badge {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 4px;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  transition: background-color .15s, color .15s;
}
.video-facade:hover .play-badge, .video-facade:focus-visible .play-badge, .video-link:hover .play-badge { background: #050807; color: var(--accent); }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; }
.tag {
  display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 999px; margin-bottom: 14px;
  background: rgba(143, 174, 126, 0.14); color: var(--moss);
}
.tag.amber { background: rgba(242, 169, 59, 0.14); color: var(--accent); }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; text-decoration: none;
  padding: 12px 20px; border-radius: 12px; border: 0;
}
.button:hover { background: #ffbe58; color: var(--accent-ink); }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.button.ghost:hover { border-color: var(--muted); }
.button.disabled { background: var(--bg-raised); color: var(--muted); cursor: default; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { padding-left: 28px; position: relative; color: var(--muted); }
.feature-list li strong { color: var(--text); }
.feature-list li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
}
.note {
  border-left: 3px solid var(--moss);
  background: var(--bg-raised);
  padding: 16px 20px; border-radius: 0 12px 12px 0; color: var(--muted);
}

/* Text pages (privacy, support): left-aligned with the rest of the layout, readable line length. */
.prose > * { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 40px; }
.prose ul { padding-left: 22px; color: var(--muted); }
.prose li { margin-bottom: 8px; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; background: var(--bg-card); }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Placeholder content the owner still has to supply – deliberately loud so it cannot go live unnoticed. */
.todo {
  border: 2px dashed var(--accent);
  color: var(--accent);
  background: rgba(242, 169, 59, 0.07);
  border-radius: 12px;
  padding: 12px 16px;
  font: 600 14px/1.5 var(--sans);
}
.media-todo {
  width: 100%; height: 100%; min-height: 180px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 20px;
  background:
    radial-gradient(circle at 30% 30%, rgba(143,174,126,0.18), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(242,169,59,0.14), transparent 55%),
    var(--bg-raised);
  color: var(--accent); font: 600 14px/1.5 var(--sans);
}

.hero-media .media-todo { align-items: flex-start; padding-top: 96px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-direction: column; align-items: flex-start; }
  .nav { gap: 16px; }
  section { padding: 52px 0; }
  .logo { font-size: 2.6rem; }
  .nav a { padding: 8px 14px; font-size: 14px; }
  .hero { display: block; min-height: 0; padding: 0; }
  .hero-media { position: relative; aspect-ratio: 4 / 3; }
  .hero-media img { object-position: 64% 40%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(13,20,17,0) 70%, var(--bg) 100%); }
  .hero .wrap { padding-top: 8px; padding-bottom: 44px; }
}
