:root {
  --fern: #3d5a45;
  --fern-dark: #2e4536;
  --fern-light: #f3e6c8;
  --lantern: #e9a23b;
  --clay: #c1603a;
  --ink: #3a2c1f;
  --muted: #8a7568;
  --bg: #faf3e4;
  --card: #fffaf3;
  --radius: 14px;
  --pop: 3px 3px 0 rgba(58, 34, 20, 0.16);

  /* status colors, kept in the same warm family rather than stock
     traffic-light red/green so the page still reads as LinkFern, not
     a generic monitoring tool */
  --ok: #4f7a52;
  --ok-bg: #eaf1e6;
  --down: #b34a2c;
  --down-bg: #fbe7de;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

h1, h2, h3 { font-family: "Baloo 2", system-ui, sans-serif; }
a { color: var(--fern); }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 1.2rem; background: var(--card); border-bottom: 1px solid #ecdfc8;
}
.topbar .brand { font-family: "Baloo 2", sans-serif; font-weight: 700; text-decoration: none; color: var(--fern-dark); font-size: 1.15rem; }
.topbar .brand span { color: var(--fern); font-weight: 400; }
.topbar .eyebrow-tag {
  font-family: "Caveat", cursive; font-weight: 700; font-size: 1.2rem;
  color: var(--lantern); transform: rotate(-2deg); display: inline-block; margin-left: 0.4rem;
}
.topbar nav a { text-decoration: none; color: var(--ink); margin-left: 1rem; }

main { max-width: 760px; margin: 0 auto; padding: 2rem 1.2rem 4rem; }

/* overview banner */
.overview {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--card); border: 2px dashed #ecdfc8; border-radius: 20px;
  padding: 1.6rem 1.8rem; margin-bottom: 1.6rem; box-shadow: var(--pop);
}
.overview-mascot { width: 84px; height: auto; flex-shrink: 0; }
.overview h1 { margin: 0 0 0.3rem; font-size: 1.5rem; }
.overview.ok h1 { color: var(--ok); }
.overview.down h1 { color: var(--down); }
.overview .updated { color: var(--muted); font-size: 0.88rem; margin: 0; }
.overview .updated .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); margin-right: 0.4rem; animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .overview .updated .dot { animation: none; } }

/* maintenance notice banner */
.notice-banner {
  background: #fff3d6; border: 2px dashed #ecce8f; border-radius: var(--radius);
  padding: 0.9rem 1.2rem; margin-bottom: 1.6rem; font-size: 0.95rem;
}
.notice-banner strong { font-family: "Baloo 2", sans-serif; }

/* component cards */
.components { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.component {
  background: var(--card); border: 2px solid #ecdfc8; border-radius: var(--radius);
  padding: 1.1rem 1.3rem; box-shadow: var(--pop);
}
.component-head { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.component-name { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 1.05rem; }
.component-meta { color: var(--muted); font-size: 0.82rem; }
.pill {
  font-size: 0.78rem; font-weight: 700; padding: 0.2rem 0.7rem; border-radius: 99px;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.pill.up { background: var(--ok-bg); color: var(--ok); }
.pill.down { background: var(--down-bg); color: var(--down); }

.bars { display: flex; align-items: flex-end; gap: 2px; height: 34px; margin-top: 0.8rem; }
.bar { flex: 1; min-width: 2px; border-radius: 2px; background: var(--ok); opacity: 0.85; }
.bar.partial { background: var(--lantern); }
.bar.down { background: var(--down); }
.bar.unknown { background: #ecdfc8; }
.bars-caption { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.75rem; margin-top: 0.3rem; }

/* incidents */
.incidents h2 { font-size: 1.15rem; margin-bottom: 0.8rem; }
.incident-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.incident {
  background: var(--card); border: 2px dashed #ecdfc8; border-radius: var(--radius);
  padding: 0.8rem 1.1rem; font-size: 0.9rem;
}
.incident.open { border-color: #e7c2ac; }
.incident .incident-name { font-weight: 700; }
.incident .incident-time { color: var(--muted); font-size: 0.82rem; }
.hint { color: var(--muted); font-size: 0.9rem; }

/* footer, matching the main site */
.pagefoot { text-align: center; color: var(--muted); padding: 2.5rem 1.2rem 2rem; font-size: 0.9rem; border-top: 2px dashed #ecdfc8; }
.pagefoot a { color: var(--fern); text-decoration: none; }
.pagefoot a:hover { text-decoration: underline; }
.foot-tag {
  font-family: "Caveat", cursive; font-weight: 600; font-size: 1.1rem;
  color: var(--lantern); margin: 0.3rem 0 0; transform: rotate(-1deg); display: inline-block;
}
