:root {
  --bg: #fbfcfb;
  --grid: #e6ebe7;
  --text: #17211b;
  --muted: #5c6b62;
  --accent: #14784a;
  --cell: 2rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101512;
    --grid: #1b241f;
    --text: #e8efea;
    --muted: #93a39a;
    --accent: #4cc38a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background-color: var(--bg);
  /* Faint spreadsheet gridlines */
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem 1rem;
  text-align: center;
}

/* The company name sits in a "selected cell" */
h1 {
  position: relative;
  margin: 0;
  padding: 0.5rem 1rem;
  border: 2px solid var(--accent);
  background: var(--bg);
  font-size: clamp(1.6rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  outline: 1px solid var(--bg);
}

.tagline {
  margin: 0;
  max-width: 32rem;
  padding: 0.25rem 0.5rem;
  background: var(--bg);
  color: var(--muted);
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  text-wrap: balance;
}

.contact {
  margin: 0;
  padding: 0.25rem 0.5rem;
  background: var(--bg);
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

footer {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

footer p {
  display: inline-block;
  margin: 0;
  padding: 0 0.5rem;
  background: var(--bg);
}
