/* ---------------------------------------------------------
   Matt Crape — crape.ca
   A single-page technical profile, styled as a spec sheet:
   a fixed identity column beside a flowing content column,
   with credentials laid out as rows rather than cards.
--------------------------------------------------------- */

:root {
  --paper: #EFF1ED;
  --ink: #1C2430;
  --ink-soft: #4B5563;
  --copper: #9A5B2E;
  --hairline: #C7CAC2;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: color 0.15s ease, border-color 0.15s ease;
  }
}

a {
  color: var(--copper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover,
a:focus-visible {
  border-bottom-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 1px;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 5rem 1.75rem 3rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  column-gap: 4.5rem;
  row-gap: 3.5rem;
}

/* ---- Identity column ---- */

.meta {
  grid-column: 1;
  grid-row: 1;
  padding-right: 2.5rem;
  border-right: 2px solid var(--copper);
}

@media (min-width: 720px) {
  .meta {
    position: sticky;
    top: 4rem;
    align-self: start;
    height: fit-content;
  }
}

.meta__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.meta__location {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.meta__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

/* ---- Main content column ---- */

.content {
  grid-column: 2;
  grid-row: 1;
  max-width: 640px;
}

.headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.35rem + 2.4vw, 2.9rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 2.25rem;
  max-width: 17ch;
}

.bio {
  margin-bottom: 3rem;
}

.bio p {
  margin: 0 0 1.15rem;
  max-width: 58ch;
  color: var(--ink);
}

.bio p:last-child {
  margin-bottom: 0;
}

.highlights ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.highlights li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
  max-width: 56ch;
  color: var(--ink);
}

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

.footer {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}

.footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---- Mobile ---- */

@media (max-width: 719px) {
  .page {
    grid-template-columns: 1fr;
    padding: 3rem 1.25rem 2.5rem;
    row-gap: 2.5rem;
  }

  .meta {
    grid-column: 1;
    grid-row: 1;
    padding-right: 0;
    padding-bottom: 1.75rem;
    border-right: none;
    border-bottom: 2px solid var(--copper);
  }

  .content {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
  }

  .headline {
    max-width: none;
  }

  .footer {
    grid-column: 1;
  }
}
