/* Colours and fonts are the same as chrisfildes.com (assets/style.css there): keep them in step. */
:root {
  --bg: #fbfaf7;
  --fg: #1d1d1f;
  --muted: #6b6b70;
  --accent: #1f3a5f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161616;
    --fg: #e8e6e1;
    --muted: #9a9894;
    --accent: #8fb4e3;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
  color: var(--fg);
  font: 1.125rem/1.7 var(--serif);
}

/* The phrase, as big as the screen allows */
main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 6rem clamp(1.25rem, 6vw, 6rem) 3rem;
}
h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3.25rem, 12vw, 10rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
/* Same as .tagline on chrisfildes.com: accent colour with a thick, soft underline */
.tagline {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.12em;
  text-decoration-color: color-mix(in srgb, var(--accent) 30%, transparent);
  text-decoration-skip-ink: none;
}

/* Links in the bottom left and bottom right corners */
.corner-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem clamp(1.25rem, 6vw, 6rem) max(2rem, env(safe-area-inset-bottom));
  font: 0.9rem var(--sans);
}
.corner-links a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); text-decoration: none; }
.corner-links a:hover { color: var(--accent); }
.corner-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.icon { display: block; flex: none; }

/* Phones: shorter GitHub label so both links fit on one row */
.corner-links .short { display: none; }
@media (max-width: 480px) {
  .corner-links { flex-wrap: nowrap; }
  .corner-links .long { display: none; }
  .corner-links .short { display: inline; }
}
