:root {
  color-scheme: dark;
  --paper: #0b0d0c;
  --ink: #f1f2ed;
  --quiet: #9ba29d;
  --accent: #b9f451;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f2f1ed;
  --ink: #101511;
  --quiet: #5e665f;
  --accent: #89bd22;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 28%, rgba(185, 244, 81, .08), transparent 27rem),
    linear-gradient(135deg, #0b0d0c 0%, #101411 100%);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 78% 28%, rgba(137, 189, 34, .1), transparent 27rem),
    linear-gradient(135deg, #f2f1ed 0%, #e9ebe4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 5rem 5rem;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 72%);
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

:root[data-theme="light"] body::before {
  opacity: .28;
  background-image:
    linear-gradient(rgba(16, 21, 17, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 21, 17, .05) 1px, transparent 1px);
}

a { color: inherit; }

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1.5rem;
  z-index: 10;
  padding: .65rem 1rem;
  background: var(--accent);
  color: #0b0d0c;
}

.skip-link:focus { top: 1.5rem; }

header,
footer {
  width: 100%;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header { border-bottom: 1px solid rgba(241, 242, 237, .13); }

:root[data-theme="light"] header { border-color: rgba(16, 21, 17, .16); }

.wordmark {
  font-size: 1rem;
  font-weight: 680;
  letter-spacing: -.035em;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-link,
footer a {
  color: var(--quiet);
  font-size: .875rem;
  text-decoration-thickness: 1px;
  text-underline-offset: .28rem;
}

.header-actions { display: flex; align-items: center; gap: 1.4rem; }

.theme-toggle {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--quiet);
  font: inherit;
  font-size: .875rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .28rem;
  cursor: pointer;
}

.theme-toggle:hover { color: var(--ink); }

main {
  min-height: 0;
  padding: 4rem 2rem 2.25rem;
  display: flex;
  align-items: flex-end;
}

.intro { width: 100%; }

.intro p {
  margin: 0 0 clamp(1.6rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--quiet);
  font-size: .875rem;
}

.intro p span {
  width: .55rem;
  height: .55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 1.5rem rgba(185, 244, 81, .34);
}

h1 {
  margin: 0 0 -.09em -.055em;
  font-size: clamp(5.25rem, 18.8vw, 19rem);
  font-weight: 520;
  line-height: .72;
  letter-spacing: -.095em;
  text-shadow: 0 1.2rem 5rem rgba(0, 0, 0, .35);
}

:root[data-theme="light"] h1 { text-shadow: 0 1.2rem 5rem rgba(16, 21, 17, .1); }

footer {
  align-items: flex-end;
  border-top: 1px solid rgba(241, 242, 237, .13);
  color: var(--quiet);
  font-size: .8rem;
}

:root[data-theme="light"] footer { border-color: rgba(16, 21, 17, .16); }

footer p { margin: 0; }
footer nav { display: flex; gap: 1.4rem; }
a:hover { color: var(--ink); }

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

:root[data-theme="light"] :focus-visible { outline-color: var(--ink); }

@media (max-width: 640px) {
  header, footer { padding-inline: 1.1rem; }
  main { padding: 3rem 1.1rem 1.5rem; }
  h1 { font-size: clamp(4.8rem, 27vw, 9rem); line-height: .78; }
  footer { align-items: flex-start; flex-wrap: wrap; gap: 1.25rem 2rem; }
  footer p:first-child { width: 100%; }
}
