/* morgan.mx - personal page for Morgan Goins */
:root {
  --bg: #0f1012;
  --text: #ece7df;
  --muted: #9a948a;
  --faint: #6f6a63;
  --line: rgba(236, 231, 223, 0.12);
  --accent: #d9a06a;
  --accent-soft: rgba(217, 160, 106, 0.16);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 38rem;
}

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

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10;
  padding: 0.5rem 0.8rem;
  background: var(--accent);
  color: #1a1208;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.35rem;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 4.5rem 0 4rem;
}

.hero {
  margin-bottom: 3.25rem;
}

.logo {
  margin: 0 0 1.15rem;
  font-size: 2.85rem;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}

.eyebrow {
  margin: 0 0 1.15rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--faint);
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 3.35rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.bio {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.65;
}

section {
  margin: 0 0 2.75rem;
}

h2 {
  margin: 0 0 1.1rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--faint);
}

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

.projects li {
  border-bottom: 1px solid var(--line);
}

.projects a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.2rem;
  padding: 1.05rem 0;
  text-decoration: none;
  color: inherit;
  align-items: baseline;
}

.projects a:hover .name,
.projects a:focus-visible .name {
  color: var(--accent);
}

.projects a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.domain {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 0.8rem;
  color: var(--faint);
  align-self: center;
}

.desc {
  grid-column: 1;
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.beyond p {
  margin: 0;
  color: var(--muted);
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  font-size: 0.92rem;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: var(--accent);
}

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

@media (max-width: 560px) {
  .wrap {
    width: min(var(--max), calc(100% - 2rem));
    padding-top: 3rem;
  }

  .projects a {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 0.15rem;
  }

  .domain {
    grid-column: 1;
    grid-row: auto;
    align-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .name {
    transition: none;
  }
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}
