:root {
  --bg: #fbf8f2;
  --surface: #ffffff;
  --text: #1f2523;
  --muted: #5d6662;
  --line: #ebe5d9;
  --accent: #ffd43b;
  --accent-soft: #fff3c4;

  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(1rem, 5vw, 2.5rem);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--text);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.0625rem;
  text-decoration: none;
}

.mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.mark rect {
  fill: var(--accent);
}

.mark path {
  fill: var(--text);
}

.top-link {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: background-color 0.2s;
}

.top-link:hover {
  background: var(--accent-soft);
}

/* ---------- Main ---------- */

.page {
  flex: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 8vh, 5rem) var(--gutter);
}

.hero {
  max-width: 40rem;
  animation: fade-up 0.7s ease-out both;
}

.tag {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--accent-soft);
  border-radius: 999px;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* Highlighter swipe behind "Volt". */
.hl {
  background: linear-gradient(transparent 58%, var(--accent) 58%, var(--accent) 92%, transparent 92%);
  padding: 0 0.04em;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 32rem;
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  color: var(--muted);
}

/* ---------- Contact (compact row above the footer) ---------- */

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  font-size: 0.9375rem;
}

.contact h2 {
  margin: 0;
  font-size: inherit;
  font-weight: 600;
  color: var(--muted);
}

.email {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}

.email:hover {
  text-decoration-color: var(--text);
}

.copy {
  padding: 0.25rem 0.7rem;
  font: 600 0.8125rem/1.4 var(--font);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.copy:hover {
  border-color: var(--text);
}

.copy[hidden] {
  display: none;
}

.copy.is-done {
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- Buttons (404 page) ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  font: 600 0.9375rem/1 var(--font);
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.button:hover {
  border-color: var(--text);
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  color: #fff;
  background: var(--text);
  border-color: var(--text);
}

.button.primary:hover {
  background: #343c39;
}

/* ---------- Footer ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 2rem;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.foot p {
  margin: 0;
}

/* ---------- Motion ---------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero {
    animation: none;
  }
}
