/* Quietly Technical — minimal one-page stylesheet */

:root {
  --page: #d9e0e4;
  --panel: #cfd8dd;
  --ink: #1f2a30;
  --muted: #56636b;
  --line: #aebbc2;
  --accent: #425c6b;
  --accent-dark: #263f4d;

  --measure: 72rem;
  --text-measure: 46rem;
  --radius: 0.85rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: #111c22;
}

.page {
  width: min(calc(100% - 2rem), var(--measure));
  margin: 0 auto;
  padding: 4rem 0 2rem;
}

.hero {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-bottom: 3.5rem;
}

.mark {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  flex: 0 0 auto;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.65rem;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 0.15rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

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

h1 {
  margin-bottom: 0.2rem;
  font-size: clamp(2.4rem, 7vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.intro {
  max-width: var(--text-measure);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

section {
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}

h2 {
  margin-bottom: 1.4rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid article {
  padding: 1.15rem;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.grid p,
.project p {
  margin-bottom: 0;
  color: #344149;
}

.project-list {
  max-width: var(--text-measure);
}

.project {
  padding: 1rem 0;
}

.project + .project {
  border-top: 1px solid var(--line);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  margin: 0 0 1.8rem;
  padding: 0;
  list-style: none;
}

.note,
footer {
  color: var(--muted);
  font-size: 0.92rem;
}

footer {
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .page {
    padding-top: 2.3rem;
  }

  .hero {
    align-items: flex-start;
  }

  .mark {
    width: 3.6rem;
    height: 3.6rem;
    font-size: 2.2rem;
  }

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

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 120ms ease;
  }
}
