:root {
  color-scheme: light;
  --background: #f7f7f5;
  --surface: #ffffff;
  --text: #191919;
  --muted: #6b6b67;
  --line: #d9d9d4;
  --danger: #9f2c22;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.site-header,
.site-main,
footer {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.wordmark {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.site-main {
  padding: 92px 0 110px;
}

.hero {
  max-width: 760px;
  margin-bottom: 100px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.2rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

h2 {
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 650;
}

.hero p {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.1rem;
}

.project-list {
  margin-bottom: 90px;
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.project-row:last-child {
  border-bottom: 1px solid var(--line);
}

.project-row > span:first-child {
  display: grid;
  gap: 3px;
}

.project-row > span:last-child,
.project-row small {
  color: var(--muted);
  font-size: 13px;
}

.about {
  display: grid;
  grid-template-columns: 180px minmax(0, 580px);
  gap: 30px;
}

.about p {
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.gate-page {
  min-height: 100vh;
}

.gate-shell {
  width: min(420px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.gate-shell > .wordmark {
  display: inline-block;
  margin-bottom: min(22vh, 170px);
}

.gate h1 {
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 10vw, 3.4rem);
  letter-spacing: -0.055em;
}

.gate > p {
  color: var(--muted);
}

.gate form {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.gate label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.gate input,
.gate button {
  width: 100%;
  min-height: 46px;
  border: 1px solid #bdbdb7;
  border-radius: 2px;
}

.gate input {
  padding: 10px 11px;
  color: var(--text);
  background: var(--surface);
}

.gate button {
  margin-top: 2px;
  padding: 10px 15px;
  border-color: var(--text);
  color: #fff;
  background: var(--text);
  cursor: pointer;
}

.gate .quiet {
  margin-top: 16px;
  font-size: 12px;
}

.form-error {
  margin: 18px 0 -12px;
  color: var(--danger) !important;
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.not-found main {
  width: min(520px, calc(100% - 40px));
}

.not-found h1 {
  margin-bottom: 15px;
}

.not-found p {
  color: var(--muted);
}

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

  .site-main {
    padding-top: 64px;
  }

  .hero {
    margin-bottom: 76px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .project-row {
    align-items: start;
  }
}
