/* Palette: the web's own link colors on cool paper.
   blue = a link you can open, purple = one you have opened, green = live. */
:root {
  --paper: #EDF1F5;
  --surface: #FFFFFF;
  --ink: #14213D;
  --muted: #55607A;
  --rule: #C9D2DE;
  --link: #1F4FE0;
  --visited: #6B3FA0;
  --live: #1B7A4B;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
.wrap { width: min(100% - 2rem, 62rem); margin-inline: auto; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:visited { color: var(--visited); }
a:hover { text-decoration-thickness: 0.16em; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 0.75rem; z-index: 2; }

/* Hero: the address is the headline */
.hero { padding-block: clamp(3rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem); }
.name { margin: 0 0 1.25rem; font-weight: 600; font-size: 1.125rem; }
.address {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 6.6vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.slot {
  display: inline-block;
  color: var(--link);
  border: 0.06em dashed var(--link);
  border-radius: 0.14em;
  padding: 0.02em 0.16em 0.06em;
  margin-right: 0.04em;
  background: var(--surface);
}
.domain { white-space: nowrap; }
.lede { max-width: 34rem; margin: 1.75rem 0 0; font-size: 1.25rem; line-height: 1.45; color: var(--ink); }
.links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0; margin: 1.5rem 0 0; font-weight: 600; }

h2 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
main > section { padding-block: 0 clamp(3rem, 7vw, 5rem); }

/* Projects: a directory of addresses, one row each */
.projects { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.project {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 2rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.project.has-image { grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); align-items: start; }
.project-address {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.project-address a { text-decoration: none; }
.project-address a:hover { text-decoration: underline; }
.project-address span { color: var(--muted); font-weight: 500; }
.project-title { margin: 0.35rem 0 0; font-weight: 600; }
.project-tagline { margin: 0.15rem 0 0; max-width: 36rem; color: var(--muted); }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0.85rem 0 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.status { font-weight: 600; }
.status::before { content: ""; display: inline-block; width: 0.6em; height: 0.6em; border-radius: 50%; margin-right: 0.4em; background: currentColor; }
.status-live { color: var(--live); }
.status-beta, .status-building { color: var(--ink); }
.status-archived { color: var(--muted); }
.tag { border: 1px solid var(--rule); border-radius: 999px; padding: 0.05rem 0.6rem; background: var(--surface); }
.project-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
}
.button:visited { color: var(--ink); }
.button.primary { background: var(--ink); color: var(--surface); }
.button.primary:visited { color: var(--surface); }
.button:hover { border-color: var(--link); }
.button.primary:hover { background: var(--link); }
.project-shot { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 0.4rem; background: var(--surface); }
.project.empty { border-bottom-style: dashed; }
.project.empty .project-address { color: var(--muted); }

.prose { max-width: 36rem; }
.prose p { margin: 0 0 1rem; }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding-block: 1.5rem 3rem; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: 0.9375rem;
}
.footer p { margin: 0; }

@media (max-width: 40rem) {
  .project.has-image { grid-template-columns: 1fr; }
  .domain { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
