/* ---- tokens -------------------------------------------------------- */
:root {
  --bg:        #0b0f17;
  --bg-card:   #121826;
  --bg-hover:  #161d2e;
  --line:      #232b3d;
  --line-lit:  #2f8f83;
  --text:      #e8ecf4;
  --text-dim:  #97a1b5;
  --accent:    #5eead4;
  --radius:    16px;
  --maxw:      920px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:        #f7f8fa;
    --bg-card:   #ffffff;
    --bg-hover:  #ffffff;
    --line:      #e3e6ec;
    --line-lit:  #0f766e;
    --text:      #131722;
    --text-dim:  #5b6474;
    --accent:    #0f766e;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, "Segoe UI Variable Text",
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- ambient glow behind the content ------------------------------ */
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46rem 30rem at 18% -8%,  rgba(94, 234, 212, 0.10), transparent 70%),
    radial-gradient(40rem 26rem at 88% 12%,  rgba(129, 140, 248, 0.10), transparent 70%);
}

@media (prefers-color-scheme: light) {
  .glow {
    background:
      radial-gradient(46rem 30rem at 18% -8%, rgba(15, 118, 110, 0.07), transparent 70%),
      radial-gradient(40rem 26rem at 88% 12%, rgba(79, 70, 229, 0.06), transparent 70%);
  }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 8rem) 1.5rem 3rem;
}

/* ---- intro --------------------------------------------------------- */
.monogram {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  padding-bottom: 0.2rem;
  margin-bottom: 1.75rem;
}

h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.2rem, 6vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.tagline {
  margin: 0;
  max-width: 34rem;
  font-size: 1.0625rem;
  color: var(--text-dim);
  text-wrap: pretty;
}

.section-label {
  margin: clamp(3rem, 9vh, 4.5rem) 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---- project grid -------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.375rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease,
              background-color 0.18s ease, box-shadow 0.18s ease;
}

a.card:hover,
a.card:focus-visible {
  border-color: var(--line-lit);
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45);
}

a.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.875rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.icon svg { width: 1.25rem; height: 1.25rem; }

.card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0 0 1.125rem;
  font-size: 0.9375rem;
  color: var(--text-dim);
  text-wrap: pretty;
}

/* pushes the host line to the bottom so cards align regardless of copy */
.host {
  margin-top: auto;
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.8125rem;
  color: var(--text-dim);
  opacity: 0.75;
}

.status {
  position: absolute;
  top: 1.375rem;
  right: 1.375rem;
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-dim);
}

/* a project that actually exists */
.status.live {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
}

/* not built yet: visibly muted, and not actually clickable */
.card.soon {
  pointer-events: none;
}

.card.soon .icon,
.card.soon h3,
.card.soon p,
.card.soon .host {
  opacity: 0.55;
}

.card.empty {
  border-style: dashed;
  background: transparent;
}

.card.empty .icon,
.card.empty h3,
.card.empty p {
  opacity: 0.4;
}

/* ---- footer -------------------------------------------------------- */
footer {
  margin-top: clamp(3rem, 10vh, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.8125rem;
  color: var(--text-dim);
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  a.card:hover, a.card:focus-visible { transform: none; }
}
