:root {
  color-scheme: light;
  --bg: #fff;
  --fg: #111;
  --muted: #555;
  --line: #e5e5e5;
  --chip: #222;
  --chip-fg: #fff;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body {
  font: 300 15px/1.9 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
}
main { width: 100%; max-width: 380px; text-align: right; }
.headshot { display: block; width: 120px; height: 120px; margin: 0 0 20px auto; border-radius: 6px; object-fit: cover; }
h1 { font-size: 15px; font-weight: 300; margin: 0 0 16px; }
h1 strong { font-weight: 700; }
h1 span { color: var(--muted); }
p { margin: 0 0 16px; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.icons { display: flex; justify-content: flex-end; gap: 12px; }
.icons a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--chip); color: var(--chip-fg);
  border-radius: 6px;
  transition: opacity .15s;
}
.icons a:hover { opacity: .7; }
.icons svg { width: 20px; height: 20px; }

.button {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  background: var(--chip);
  color: var(--chip-fg);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .03em;
  transition: opacity .15s;
}
.button:hover { opacity: .7; }

.projects h2 {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; margin: 0 0 8px; color: var(--fg);
}
.projects ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.projects li + li { margin-top: 4px; }
.projects a { text-decoration: none; border-bottom: 1px solid var(--line); }
.projects a:hover { border-color: var(--fg); }

footer { margin-top: 48px; font-size: 12px; color: var(--muted); letter-spacing: .05em; }

/* Phones: center everything, larger tap targets */
@media (max-width: 600px) {
  body { justify-content: flex-start; padding: 48px 20px; }
  main { text-align: center; }
  .headshot { margin: 0 auto 20px; }
  .icons, .projects { justify-content: center; }
  .icons a, .button { min-width: 44px; height: 44px; }
  .projects li + li { margin-top: 8px; }
}

/* Laptops and desktops: two columns, photo left, content right */
@media (min-width: 900px) {
  body { font-size: 17px; padding: 80px 48px; }
  main {
    max-width: 960px;
    display: grid;
    grid-template-columns: 300px 1fr;
    column-gap: 72px;
    align-items: start;
    text-align: left;
  }
  main > * { grid-column: 2; }
  .button { justify-self: start; }
  .headshot {
    grid-column: 1;
    grid-row: 1 / span 20;
    width: 300px; height: 300px;
    margin: 0;
    border-radius: 8px;
  }
  h1 { font-size: 22px; margin-bottom: 20px; }
  p { max-width: 60ch; }
  .icons, .projects { justify-content: flex-start; }
  hr { margin: 28px 0; }
  footer { width: 100%; max-width: 960px; text-align: right; }
}
