:root {
  --indigo: #0F0B2E;
  --cream: #F7F2E8;
  --amber: #E8B54A;
  --charcoal: #1C1B1F;
  --mist: #6B6A72;

  --border: color-mix(in srgb, var(--mist) 30%, transparent);
  --card-bg: color-mix(in srgb, var(--cream) 70%, #ffffff);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --max-content: 960px;
  --gutter: clamp(1.25rem, 4vw, 2rem);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.15vw, 0.95rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1:  clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--indigo);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--indigo);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--amber) 70%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

a:hover {
  color: var(--amber);
  text-decoration-color: var(--amber);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--indigo);
  color: var(--cream);
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Header / wordmark */

.site-header {
  padding: clamp(1.25rem, 3vw, 2rem) var(--gutter);
  display: flex;
  align-items: center;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.wordmark:focus-visible {
  outline-offset: 6px;
}

.wordmark-svg {
  height: clamp(28px, 3.5vw, 36px);
  width: auto;
  overflow: visible;
}

.wordmark-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 52px;
  fill: var(--indigo);
  letter-spacing: -0.01em;
}

.wordmark-dot {
  fill: var(--amber);
  font-weight: 700;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 7rem);
}

.hero-glow {
  position: absolute;
  top: 50%;
  right: -8%;
  width: clamp(320px, 45vw, 560px);
  aspect-ratio: 1 / 1;
  transform: translateY(-50%);
  background: radial-gradient(
    circle at center,
    color-mix(in srgb, var(--amber) 55%, transparent) 0%,
    color-mix(in srgb, var(--amber) 20%, transparent) 30%,
    transparent 65%
  );
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: var(--step-4);
  font-weight: 500;
  max-width: 18ch;
  margin-bottom: 0.75em;
}

.hero-lede {
  font-size: var(--step-1);
  color: var(--mist);
  max-width: 52ch;
  margin: 0;
}

/* Sections */

section + section {
  border-top: 1px solid var(--border);
}

.about,
.projects,
.contact {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-title {
  font-size: var(--step-2);
  margin-bottom: 1.25em;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--amber);
  margin-top: 0.75rem;
  border-radius: 2px;
}

.prose {
  max-width: 60ch;
}

.prose p {
  font-size: var(--step-0);
}

/* Projects grid */

.project-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

a.project-card:hover {
  border-color: color-mix(in srgb, var(--amber) 60%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -18px rgba(15, 11, 46, 0.35);
}

.project-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.project-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  color: var(--indigo);
  margin: 0;
}

.project-tagline {
  font-weight: 500;
  color: var(--charcoal);
  margin: 0;
}

.project-description {
  color: var(--mist);
  font-size: var(--step--1);
  margin: 0.25rem 0 0;
}

/* Status pills */

.status-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--mist);
  background: transparent;
  text-transform: lowercase;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--amber);
}

.status-pill[data-status="live"] {
  color: var(--indigo);
  border-color: color-mix(in srgb, var(--amber) 70%, transparent);
  background: color-mix(in srgb, var(--amber) 18%, transparent);
}

.status-pill[data-status="concept"] {
  color: var(--mist);
}

.project-grid-empty {
  color: var(--mist);
  grid-column: 1 / -1;
  padding: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  text-align: center;
}

/* Contact */

.contact-lede {
  font-size: var(--step-1);
  max-width: 56ch;
  margin: 0;
}

/* Footer */

.site-footer {
  background: var(--indigo);
  color: color-mix(in srgb, var(--cream) 85%, transparent);
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  font-size: var(--step--1);
  line-height: 1.7;
}

.footer-inner {
  display: grid;
  gap: 0.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-1);
  color: var(--cream);
  margin: 0 0 0.5rem;
}

.footer-address {
  font-style: normal;
  margin: 0;
  color: color-mix(in srgb, var(--cream) 75%, transparent);
}

.footer-contact {
  margin: 0.5rem 0 0;
}

.footer-contact a,
.site-footer a {
  color: var(--cream);
  text-decoration-color: color-mix(in srgb, var(--amber) 80%, transparent);
}

.footer-contact a:hover,
.site-footer a:hover {
  color: var(--amber);
}

.footer-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  color: color-mix(in srgb, var(--cream) 55%, transparent);
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  a.project-card:hover {
    transform: none;
  }
}
