:root {
  color-scheme: light;
  --background: #f7f8f3;
  --ink: #111312;
  --muted: #646b64;
  --rule: #d7dcd1;
  --accent: #00a7ff;
  --accent-2: #38d66b;
  --surface: #ffffff;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(rgba(17, 19, 18, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 18, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 82% 8%, rgba(0, 167, 255, 0.11), transparent 24rem),
    var(--background);
  background-size: 36px 36px, 36px 36px, auto, auto;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: var(--ink);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.22em;
}

a:hover,
a:focus-visible {
  color: #007bbd;
}

body::before {
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 34vh;
  content: "";
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(56, 214, 107, 0.16) 44% 45%, transparent 45%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(0, 167, 255, 0.09) 18px 19px, transparent 19px 42px);
  mask-image: linear-gradient(transparent, black 35%);
}

.site-header,
main {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 24px;
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  max-width: 24rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  order: -1;
  width: 58px;
  height: auto;
}

.site-nav,
.link-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
}

.site-nav {
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

main {
  padding-bottom: 80px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 920px;
  font-size: clamp(2.45rem, 4.4vw, 4.45rem);
  font-weight: 850;
  line-height: 0.93;
  letter-spacing: 0;
}

h2 {
  max-width: 12em;
  font-size: clamp(1.7rem, 3.6vw, 3.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 74px);
  padding: clamp(58px, 8vw, 104px) 0;
  border-top: 1px solid var(--rule);
}

.hero,
.page-hero {
  position: relative;
  grid-template-columns: minmax(120px, 0.22fr) minmax(0, 1fr);
  border-top: 0;
  padding-top: clamp(28px, 5vw, 64px);
}

.section-kicker {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-mark {
  display: grid;
  width: min(180px, 100%);
  gap: 12px;
  padding-top: 0.4rem;
}

.hero-mark span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.hero-mark span:nth-child(1) {
  width: 56%;
}

.hero-mark span:nth-child(2) {
  width: 100%;
  background: var(--accent);
}

.hero-mark span:nth-child(3) {
  width: 72%;
  background: var(--accent-2);
}

.lede {
  max-width: 740px;
  margin-top: 28px;
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  line-height: 1.2;
}

.body-copy,
.contact-panel p {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.45rem);
}

.hero-actions,
.link-row {
  margin-top: 28px;
}

.button-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--background);
  font-weight: 800;
  text-decoration: none;
}

.button-link:hover,
.button-link:focus-visible {
  border-color: #007bbd;
  background: #007bbd;
  color: var(--background);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.skill-card,
.contact-panel {
  position: relative;
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 167, 255, 0.13) 0 2px, transparent 2px),
    var(--surface);
  box-shadow: 0 18px 50px rgba(17, 19, 18, 0.05);
}

.skill-card::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 22px;
  content: "";
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent-2);
  opacity: 0.7;
}

.skill-card p {
  margin-top: 12px;
  color: var(--muted);
}

.entry-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-list li {
  border-top: 1px solid var(--rule);
}

.entry-list li:first-child {
  border-top: 0;
}

.entry-list a,
.entry-list li > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 22px 0;
  text-decoration: none;
}

.entry-list span,
.entry-list strong {
  font-size: clamp(1.45rem, 3.1vw, 2.8rem);
  font-weight: 800;
  line-height: 0.98;
}

.entry-list small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: right;
}

.section-link {
  margin-top: 18px;
}

.back-link {
  margin-bottom: 18px;
  font-size: 1rem;
}

.mini-main {
  padding-bottom: 0;
}

.mini-hero {
  min-height: clamp(460px, 72vh, 680px);
  align-items: center;
}

.mini-hero h1 {
  max-width: 760px;
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 30px;
}

.mini-note {
  max-width: 760px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 1rem;
}

.paintball-gate {
  display: grid;
  max-width: 620px;
  gap: 14px;
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(56, 214, 107, 0.14) 0 2px, transparent 2px),
    var(--surface);
  box-shadow: 0 18px 50px rgba(17, 19, 18, 0.05);
}

.paintball-gate label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.paintball-gate input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--background);
  color: var(--ink);
  font: inherit;
}

.paintball-gate input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(0, 167, 255, 0.2);
  outline-offset: 2px;
}

.paintball-gate .button-link {
  width: fit-content;
  cursor: pointer;
}

.gate-message {
  min-height: 1.35em;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 820px) {
  .site-header,
  main {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .card-grid,
  .entry-list a {
    grid-template-columns: 1fr;
  }

  .entry-list a,
  .entry-list li > span {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .entry-list small {
    text-align: left;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(2.2rem, 10.5vw, 3.35rem);
  }

  .site-nav,
  .link-row,
  .hero-actions {
    gap: 10px 12px;
  }

  .site-nav a {
    font-size: clamp(0.68rem, 3vw, 0.84rem);
    white-space: nowrap;
  }

  .skill-card,
  .contact-panel,
  .paintball-gate {
    min-height: 0;
    padding: 18px;
  }
}
