/* Damien Minenna — personal site */

:root {
  --paper: #ffffff;
  --ink: #1e2228;
  --muted: #5b636e;
  --rule: #e4e7eb;
  --accent: #2846a8;
  --accent-deep: #1b3380;

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 38rem;
  --page: 72rem;
  --gutter: clamp(1rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
a:hover { color: var(--accent-deep); text-decoration-color: currentColor; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 0;
}

.brand { display: inline-block; color: var(--ink); }
.brand-mark { width: 1.6rem; height: 1.6rem; }
.brand-mark path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }

/* Hero -------------------------------------------------------------------- */

main { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

.hero {
  display: grid;
  gap: 2rem;
  padding: clamp(2.5rem, 9vw, 7rem) 0 clamp(3rem, 9vw, 7rem);
}

.hero h1 {
  margin: 0 0 2rem;
  font-size: clamp(3rem, 8vw, 5.25rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-figure { margin: 0; }
.hero-figure img { width: 100%; }

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
  }
}

/* About ------------------------------------------------------------------- */

.block {
  display: grid;
  gap: 1rem;
  padding: 2.75rem 0 4rem;
  border-top: 1px solid var(--rule);
}

.block h2 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.6;
}

@media (min-width: 48rem) {
  .block { grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem; }
}

.about { display: grid; gap: 2rem; max-width: var(--measure); }
.about h3 { margin: 0 0 0.4rem; font-size: 1.0625rem; font-weight: 600; line-height: 1.6; }
.about p { margin: 0; color: var(--muted); }
@media (min-width: 64rem) {
  .about { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; max-width: none; }
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter) 3rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer p {
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
