/* Kelp Horn website. Colours come from the whale: navy on white, pale belly blue. */

:root {
  --bg: #FFFFFF;
  --card: #F3F8FC;
  --soft: #E3EFF8;
  --border: #D3E3F0;
  --text: #1B3350;
  --muted: #587089;
  --navy: #1E3B5D;
  --on-navy: #FFFFFF;
  --live: #0E7C86;
  --grey: #8494A3;
  /* Always light, even when the phone is in dark mode. */
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

a { color: var(--navy); }

h1, h2 { line-height: 1.2; color: var(--navy); }
h1 { font-size: 2rem; margin: 0 0 8px; }
h2 { font-size: 1.2rem; margin: 32px 0 8px; }
h3 { font-size: 1.05rem; line-height: 1.3; color: var(--navy); margin: 20px 0 4px; }

.lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Header: the whale and the name */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 28px;
}
/* The whale is wider than it is tall: set the width and let the height follow. */
.brand img { width: 40px; height: auto; }

.hero { text-align: center; }
.hero img { width: min(240px, 60vw); height: auto; }

/* Cards */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin: 0 0 20px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--live);
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status.grey { color: var(--grey); }

.sighting-title { font-size: 1.5rem; margin: 8px 0 4px; }
.sighting-detail { margin: 0; font-weight: 600; }
.sighting-meta { margin: 4px 0 0; color: var(--muted); }

.map {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  height: 240px;
  border-radius: 12px;
  margin-top: 16px;
  background: var(--soft);
}
.map img { position: absolute; max-width: none; }
.pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  background: #1E3B5D;
  border: 3px solid #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.map-credit { margin: 6px 0 0; font-size: 0.8rem; color: var(--muted); }

.note {
  background: var(--soft);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 16px 0 0;
  font-size: 0.95rem;
}

/* Getting the app */

.get-app { text-align: center; }
.get-app h2 { margin-top: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badges a {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--on-navy);
  font-weight: 600;
  text-decoration: none;
}
.soon { margin: 0; color: var(--muted); }

ul.plain { padding-left: 20px; }
ul.plain li { margin: 4px 0; }

footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 32px;
  font-size: 0.9rem;
  color: var(--muted);
}
footer a { color: var(--muted); }

[hidden] { display: none !important; }

.flag {
  display: inline-block;
  vertical-align: -1px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
