:root {
  color-scheme: light dark;
  --background: #f8f5f0;
  --surface: #fffdf9;
  --text: #211b1d;
  --muted: #70676a;
  --rule: #d9cfca;
  --accent: #7b0d2a;
  --accent-soft: #f1dfe4;
  --focus: #ad2649;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

a:focus-visible {
  border-radius: 0.15rem;
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.55rem 0.8rem;
  transform: translateY(-180%);
  background: var(--text);
  color: var(--background);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(100% - 2.5rem, 48rem);
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 1.35rem;
  align-items: start;
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 8vw, 6rem);
  border-bottom: 2px solid var(--accent);
}

.brand-mark {
  display: block;
  margin-top: 0.25rem;
  line-height: 0;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.project-title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 0.45rem;
  font-size: clamp(2.7rem, 9vw, 5.25rem);
  line-height: 0.98;
}

.subtitle {
  max-width: 34rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}

.updated {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-list {
  min-height: 12rem;
}

.project {
  padding-block: clamp(3.25rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 2rem;
}

.project-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.85rem;
  align-items: center;
  margin-bottom: 1rem;
}

.project-title {
  margin-bottom: 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.08;
}

.project-title a {
  color: inherit;
  text-decoration-color: var(--accent);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.14rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
}

.status-building {
  background: transparent;
}

.status-paused {
  border-color: var(--rule);
  background: transparent;
  color: var(--muted);
}

.pitch {
  max-width: 43rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.25rem);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.5vw, 1.65rem);
  line-height: 1.45;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.story-block h3,
.recently-shipped h3 {
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.story-block p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.recently-shipped {
  margin-top: 2.5rem;
}

.recently-shipped ul {
  margin: 0;
  padding-left: 1.15rem;
}

.recently-shipped li {
  padding-left: 0.25rem;
}

.recently-shipped li + li {
  margin-top: 0.45rem;
}

.ghost-note {
  margin: 2.25rem 0 0;
  padding-left: 0.85rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 0.88rem;
}

.live-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  margin: 2.5rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.78rem;
  list-style: none;
}

.live-facts li:not(:last-child)::after {
  margin-left: 0.55rem;
  color: var(--accent);
  content: "\00b7";
}

.loading-state,
.empty-state,
.error-state {
  margin: 0;
  padding-block: clamp(5rem, 15vw, 10rem);
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}

.error-state {
  font-size: 1.1rem;
}

.site-footer {
  display: flex;
  justify-content: flex-end;
  padding-block: 2rem 3.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer a {
  color: inherit;
}

.noscript-message {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  margin: 0 auto;
  padding: 0.8rem 1rem;
  border: 1px solid var(--rule);
  background: var(--surface);
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 42rem) {
  .site-header {
    grid-template-columns: 3.25rem 1fr;
    gap: 1rem;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #181415;
    --surface: #211b1d;
    --text: #f4eded;
    --muted: #bcb0b3;
    --rule: #483b3f;
    --accent: #df7792;
    --accent-soft: #391824;
    --focus: #f29ab1;
  }

  .brand-mark img {
    filter: brightness(1.65) saturate(0.7);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* About: the person behind the projects. */
.about {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: clamp(1.75rem, 5vw, 3rem);
  align-items: start;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--rule);
}

.about-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid var(--rule);
}

.about-label {
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-copy p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.about-copy .about-lead {
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  line-height: 1.5;
}

.about-more summary {
  width: fit-content;
  margin-bottom: 1rem;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.about-more summary:focus-visible {
  border-radius: 0.15rem;
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

@media (max-width: 40rem) {
  .about {
    grid-template-columns: 1fr;
  }

  .about-photo {
    width: 11rem;
  }
}

.nowrap {
  white-space: nowrap;
}
