/* NunavutNow — cartoony snowy theme.
   Palette: midnight #06213C, aurora #00D5B1, ice #8CB4CD, snow #FFFFFF */

:root {
  --navy: #06213C;
  --aurora: #00D5B1;
  --ice: #8CB4CD;
  --snow: #FFFFFF;
  --frost: #DDF0FB;
  /* SF Pro Rounded on iPhone; rounded fallbacks elsewhere */
  --round: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--navy);
  color: var(--snow);
  font-family: var(--round);
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; width: 100%; }

/* Aurora sky behind the top of the page, fading into navy */
.sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  background:
    linear-gradient(to bottom, rgba(6, 33, 60, 0) 45%, var(--navy) 100%),
    url("img/sky.jpg") center top / cover no-repeat;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 18px 8px;
}

/* Header */
header { text-align: center; margin-bottom: 30px; }

.logo {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--snow);
  box-shadow: 0 0 0 4px var(--navy), 0 10px 24px rgba(0, 0, 0, 0.45);
}

h1 {
  margin: 14px 0 8px;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--snow);
  /* chunky navy outline like the logo lettering */
  text-shadow:
    -2px -2px 0 var(--navy), 2px -2px 0 var(--navy),
    -2px 2px 0 var(--navy), 2px 2px 0 var(--navy),
    0 5px 0 var(--navy);
}

.tagline {
  margin: 0 auto;
  max-width: 22em;
  color: var(--frost);
  font-size: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(6, 33, 60, 0.8);
}

/* "Latest stories" teal pill */
h2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 22px;
  padding: 6px 18px 6px 8px;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: var(--aurora);
  border: 3px solid var(--snow);
  border-radius: 999px;
  box-shadow: 0 0 0 3px var(--navy), 0 4px 0 3px var(--navy);
}

h2 img { width: 28px; height: 28px; }

/* Story cards: frosty stickers with a snow cap */
.stories { list-style: none; margin: 0; padding: 0; }

.stories li { margin-bottom: 26px; }

.card {
  position: relative;
  display: block;
  padding: 20px 18px 16px;
  background: linear-gradient(to bottom, var(--snow), var(--frost));
  color: var(--navy);
  text-decoration: none;
  border: 3px solid var(--navy);
  border-radius: 20px;
  box-shadow: 0 0 0 3px var(--snow), 0 7px 0 3px rgba(0, 0, 0, 0.35);
  -webkit-tap-highlight-color: transparent;
}

/* snow piled on the top-left of each card */
.card::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -10px;
  width: 120px;
  height: 36px;
  background: url("img/snowcap.png") left top / contain no-repeat;
  pointer-events: none;
}

.card:active { transform: translateY(3px); box-shadow: 0 0 0 3px var(--snow), 0 3px 0 3px rgba(0, 0, 0, 0.35); }

.headline {
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
}

.meta {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2E5878;
}

.meta::after { content: "  ↗"; color: #009C82; }

.status { color: var(--frost); text-align: center; padding: 16px 0; font-weight: 600; }

/* Footer: mountain sticker on a snowbank */
footer {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  text-align: center;
}

.mountains {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin: 0 auto -6px;
}

footer p {
  margin: 0;
  padding: 18px 16px calc(22px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, var(--snow), var(--frost));
  border-top: 3px solid var(--navy);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
}
