@import url("https://fonts.googleapis.com/css2?family=Martian+Mono:wght@300;400;500;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0b0c0d;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.58);
  --faint: rgba(255, 255, 255, 0.34);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --surface: rgba(255, 255, 255, 0.035);
  --max: 1040px;
  font-family: "Martian Mono", "SFMono-Regular", "Menlo", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 13, 0.88);
  backdrop-filter: blur(14px);
}

.mark {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}

main {
  width: min(var(--max), calc(100vw - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  align-content: end;
  min-height: 34vh;
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--line);
}

.kicker,
.grid article span,
.section-head span {
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 620px;
  margin-top: 16px;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 300;
  line-height: 1.32;
  letter-spacing: 0;
}

.brief {
  max-width: 640px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

article {
  min-height: 190px;
  padding: 24px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
}

article:hover {
  background: var(--surface);
}

h2 {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

article p {
  max-width: 430px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.plan {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 46px 0 76px;
}

.section-head {
  display: grid;
  align-content: start;
  gap: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

th {
  width: 118px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

@media (max-width: 760px) {
  header {
    position: static;
    align-items: flex-start;
    padding: 18px 20px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
  }

  main {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    min-height: auto;
    padding: 58px 0 44px;
  }

  h1 {
    font-size: clamp(23px, 7vw, 32px);
  }

  .grid {
    grid-template-columns: 1fr;
  }

  article {
    min-height: auto;
    padding: 22px;
  }

  .plan {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 42px 0 64px;
  }
}

@media (max-width: 480px) {
  header {
    display: block;
  }

  nav {
    justify-content: flex-start;
    margin-top: 14px;
  }

  th,
  td {
    display: block;
    width: 100%;
    padding: 13px 14px;
  }

  th {
    border-bottom: 0;
    padding-bottom: 2px;
  }

  td {
    padding-top: 4px;
  }
}
