:root {
  --bg: #f5f3ee;
  --fg: #1d1c1a;
  --muted: #75716a;
  --line: #e2ded5;
  --card: #fbfaf7;
  --accent: #b8860b;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --fg: #ebe8e1;
    --muted: #8f8b83;
    --line: #2a2926;
    --card: #1b1a18;
    --accent: #e0b23c;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 96px 24px 64px;
}

/* intro */

.name {
  font: 400 clamp(3rem, 9vw, 4.5rem) / 1 var(--serif);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.name em {
  color: var(--muted);
}

.role {
  color: var(--muted);
  margin: 0 0 28px;
}

.lead {
  font-size: 1.125rem;
  margin: 0 0 24px;
  max-width: 34em;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links a,
.inline {
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s, color 0.2s;
}

.links a:hover,
.inline:hover {
  border-color: var(--fg);
}

/* sections */

section {
  margin-top: 96px;
}

h2 {
  font: 400 0.8rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}

/* project list */

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

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

.list a,
.list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 20px 0;
  align-items: baseline;
}

.list a:hover .title {
  color: var(--accent);
}

.title {
  font-weight: 500;
  transition: color 0.2s;
}

.title .arrow {
  display: inline-block;
  margin-left: 4px;
  color: var(--muted);
  transition: transform 0.2s;
}

.list a:hover .arrow {
  transform: translate(2px, -2px);
}

.tag {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
  white-space: nowrap;
}

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

/* footer */

footer {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* prose (privacy policy) */

.back {
  color: var(--muted);
  font-size: 0.9rem;
}

.prose h1 {
  font: 400 3rem/1.1 var(--serif);
  margin: 40px 0 6px;
}

.prose .date {
  color: var(--muted);
  margin: 0 0 48px;
}

.prose h3 {
  font-weight: 500;
  font-size: 1.05rem;
  margin: 36px 0 8px;
}

.prose p,
.prose li {
  color: var(--fg);
  opacity: 0.85;
}

.prose ul {
  padding-left: 1.2em;
}

/* entrance */

@media (prefers-reduced-motion: no-preference) {
  main > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  main > *:nth-child(2) { animation-delay: 0.06s; }
  main > *:nth-child(3) { animation-delay: 0.12s; }
  main > *:nth-child(4) { animation-delay: 0.18s; }
  main > *:nth-child(5) { animation-delay: 0.24s; }
  main > *:nth-child(6) { animation-delay: 0.3s; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (max-width: 520px) {
  main {
    padding-top: 64px;
  }
  .tag {
    display: none;
  }
}

/* services rows use headings and paragraphs */

.list h3.title {
  margin: 0;
  font-size: 1rem;
}

.list p.desc {
  margin: 0;
}

/* call to action */

.links .cta {
  border-color: var(--fg);
  font-weight: 500;
}

.contact .big {
  font: 400 clamp(2rem, 6vw, 2.75rem) / 1.1 var(--serif);
  margin: 0 0 16px;
}

.button {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
  transition: opacity 0.2s;
}

.button:hover {
  opacity: 0.85;
}

/* keep the entrance animation going for the extra sections */

@media (prefers-reduced-motion: no-preference) {
  main > *:nth-child(n + 7) { animation-delay: 0.36s; }
}
