/* Neon green. Every colour on the page comes from here, so a re-theme is
   this block and the copy of it in src/stats.js, nothing else.

   One of these sits under text directly on the page background rather than
   on a white card: --muted under .section-label, near the dark end of the
   gradient. Darkening --bg any further puts it below 4.5:1. Measured for
   this palette: 9.19:1 at the bottom of the gradient. Re-check it if you
   change --bg, and do not assume a "slightly deeper green" is free.

   .bio-text is the exception and is not measured this way: it is white with
   a --border stroke, so its legibility comes from the stroke, not from any
   fill-to-background ratio. See its rule. */
:root {
  color-scheme: light;
  --bg: #00f748;        /* bottom of the page gradient */
  --bg-light: #95ffb4;  /* top of the page gradient */
  --fg: #10240c;        /* near-black, tinted green rather than pure #000 */
  --muted: #1b3515;
  --card: #ffffff;
  --border: #10240c;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background-color: var(--bg-light);
  background-image: linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--fg);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding-block: clamp(1rem, 4vw, 3rem);
}

.page {
  width: 100%;
  max-width: 32rem;
  text-align: center;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
}

.headshot {
  display: block;
  width: clamp(4.25rem, 16vw, 7.5rem);
  height: clamp(4.25rem, 16vw, 7.5rem);
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
  box-shadow: 4px 4px 0 var(--border);
  margin: 0 auto 1.25rem;
  -webkit-user-drag: none;
  user-select: none;
}

/* Outlined to match the FROGGY logo above it: white fill, dark stroke. The
   white on its own is only 1.46:1 against --bg, so the stroke is not
   decoration here, it is the entire reason this line is legible. Keep
   paint-order, or the stroke is centred on the glyph edge and eats half its
   width back out of the white. */
.bio-text {
  margin: 0 0 -0.75rem;
  font-size: clamp(0.9rem, 3.5vw, 1.35rem);
  font-weight: 700;
  color: #ffffff;
  -webkit-text-stroke: 2px var(--border);
  paint-order: stroke fill;
  line-height: 1.5;
}

.logo {
  display: block;
  width: min(65%, 19rem);
  height: auto;
  margin: 0 auto clamp(1rem, 4vw, 2rem);
  -webkit-user-drag: none;
  user-select: none;
}

.links {
  display: flex;
  flex-direction: column;
  gap: clamp(0.45rem, 2vw, 0.9rem);
}

.link-btn {
  display: grid;
  grid-template-columns: clamp(1.3rem, 5vw, 2.1rem) 1fr clamp(1.3rem, 5vw, 2.1rem);
  align-items: center;
  gap: clamp(0.4rem, 1.75vw, 0.75rem);
  padding: clamp(0.6rem, 3vw, 1.25rem);
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.75rem, 2.75vw, 1rem);
  box-shadow: 4px 4px 0 var(--border);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.link-icon {
  grid-column: 1;
  width: clamp(1.3rem, 5vw, 2.1rem);
  height: clamp(1.3rem, 5vw, 2.1rem);
  flex-shrink: 0;
  -webkit-user-drag: none;
  user-select: none;
}

.link-btn span {
  grid-column: 2;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--border);
}

.link-btn:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 var(--border);
}

.section-label {
  margin: clamp(1rem, 4vw, 2rem) 0 0.75rem;
  font-size: clamp(0.7rem, 2.25vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-links {
  margin-top: 0;
}

.contact-links .link-btn {
  font-size: 0.9rem;
}
