:root {
  color-scheme: dark;
  --bg: #000000;
  --fg: #ffffff;
  --border: 1px solid #ffffff;
  --border-strong: 2px solid #ffffff;
  --radius: 0;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image: url("/assets/grid.svg");
  background-repeat: repeat;
  background-position: top left;
}

a {
  color: var(--fg);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: background-color 0.12s ease, color 0.12s ease;
}

a:hover,
a:focus-visible {
  background-color: var(--fg);
  color: var(--bg);
}

a:focus-visible,
button:focus-visible {
  outline: var(--border-strong);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border: var(--border);
  background-color: var(--bg);
  color: var(--fg);
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: var(--border);
  background-color: var(--bg);
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--fg);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 12px;
  border: var(--border);
  color: var(--fg);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background-color: var(--fg);
  color: var(--bg);
}

main {
  padding-bottom: 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 36px;
  align-items: start;
  min-height: calc(100vh - 76px);
  padding: 76px 0 64px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
.brand {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 1.0;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero-lede {
  max-width: 690px;
  margin-top: 24px;
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: var(--border);
  background-color: var(--bg);
  color: var(--fg);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background-color: var(--fg);
  color: var(--bg);
}

.button-primary {
  background-color: var(--fg);
  color: var(--bg);
}

.button-primary:hover,
.button-primary:focus-visible {
  background-color: var(--bg);
  color: var(--fg);
}

.hero-panel,
.project-card,
.contact-section,
.error-content {
  border: var(--border);
  background-color: var(--bg);
}

.hero-panel {
  padding: 24px;
}

.panel-mark {
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  border: var(--border-strong);
}

.panel-mark img {
  width: 88px;
  height: 88px;
}

.signal-list {
  display: grid;
  gap: 20px;
  margin: 28px 0 0;
}

.signal-list dt {
  padding-top: 16px;
  border-top: var(--border);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.signal-list dd {
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.7;
}

.section {
  padding: 88px 0;
}

.section-heading {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin-bottom: 40px;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 24px;
}

.project-card-wide {
  grid-column: 1 / -1;
  min-height: 220px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card p,
.section-heading p,
.focus-grid p,
.contact-section p,
.error-content p {
  font-size: 1rem;
  line-height: 1.8;
}

.project-card h3 {
  margin-bottom: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 26px 0 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 10px;
  border: var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.project-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  color: var(--fg);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.project-link:hover,
.project-link:focus-visible {
  background-color: var(--fg);
  color: var(--bg);
}

.focus-section {
  border-top: var(--border);
  border-bottom: var(--border);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.focus-grid > div {
  padding-top: 18px;
  border-top: var(--border-strong);
}

.focus-grid h3 {
  margin-bottom: 10px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin: 88px 0;
  padding: 30px;
}

.contact-section h2 {
  max-width: 760px;
  margin-bottom: 14px;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  padding: 32px 0 48px;
  border-top: var(--border);
  font-size: 0.95rem;
}

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

.error-main {
  display: grid;
  min-height: calc(100vh - 77px);
  place-items: center;
  padding: 72px 0;
}

.error-content {
  width: min(100%, 720px);
  padding: 34px;
}

.error-content h1 {
  margin-bottom: 18px;
}

::selection {
  background-color: var(--fg);
  color: var(--bg);
}

@media (max-width: 900px) {
  .hero,
  .contact-section,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }
}

@media (max-width: 680px) {
  .nav,
  main,
  .site-footer {
    width: min(100% - 28px, var(--max-width));
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 0;
    padding: 14px 0;
  }

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

  .hero {
    gap: 28px;
    padding: 46px 0 44px;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .button,
  .nav-links a {
    width: 100%;
  }

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

  .project-card,
  .project-card-wide,
  .contact-section,
  .error-content {
    min-height: 0;
  }

  .section {
    padding: 62px 0;
  }

  .contact-section {
    margin: 64px 0;
    padding: 24px;
  }

  .error-content {
    padding: 26px;
  }
}
