/* ============================================================
   jamiecarruthers.com
   Starting point — typographic, minimal. Build from here.
   ============================================================ */

/* --- Reset & box model ------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Tokens ----------------------------------------------- */
:root {
  --color-bg:   #fafaf8;
  --color-text: #111;
  --color-mid:  #555;
  --color-rule: #e0e0da;

  --font-body:  -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'Courier New', monospace;

  --size-base:  1.125rem;   /* 18px */
  --leading:    1.7;
  --measure:    720px;

  --space-xs:   0.5rem;
  --space-s:    1rem;
  --space-m:    2rem;
  --space-l:    4rem;
  --space-xl:   8rem;
}

/* --- Base ------------------------------------------------- */
html {
  font-size: var(--size-base);
  line-height: var(--leading);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--space-l) var(--space-m);
}

/* --- Type scale ------------------------------------------- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: normal;
}


h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--space-xs); }
h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--space-m); }

p + p   { margin-top: var(--space-s); }
p, li   { max-width: var(--measure); }

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover { color: var(--color-mid); }

/* --- Layout ----------------------------------------------- */
main > section {
  margin-bottom: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid var(--color-rule);
}

main > section:first-child {
  border-top: none;
  padding-top: 0;
  margin-bottom: var(--space-m);
}

/* --- Intro ------------------------------------------------- */
.intro-layout {
  display: flex;
  align-items: flex-start;
  gap: var(--space-m);
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}

.intro-text h1 {
  margin-bottom: var(--space-xs);
}

/* --- Contact list ----------------------------------------- */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--color-mid);
}

.contact-list svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 480px) {
  body {
    padding: var(--space-m) var(--space-s);
  }

  .intro-layout {
    flex-direction: column;
  }

  h1 { font-size: 2rem; }
}

/* --- Utilities -------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
