:root {
  color-scheme: light;
  --ink: #10202a;
  --muted: #526a6d;
  --paper: #fbfaf3;
  --paper-strong: #fffdf7;
  --line: rgba(16, 32, 42, 0.18);
  --gold: #e2aa51;
  --rust: #b75d37;
  --sea: #587a78;
  --night: #132734;
  --shadow: 0 22px 70px rgba(37, 26, 14, 0.17);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 16% 10%, rgba(226, 170, 81, 0.3), transparent 28rem),
    radial-gradient(circle at 86% 16%, rgba(88, 122, 120, 0.28), transparent 30rem),
    linear-gradient(135deg, #e7f0eb 0%, #f7f3e8 48%, #e8d8bb 100%);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 76px) 0;
  display: grid;
  align-content: center;
  gap: clamp(28px, 5vw, 56px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 4vw, 42px);
}

.logo {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.intro-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rust);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--night);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
}

.intro-copy p:last-child {
  max-width: 650px;
  margin: 22px 0 0;
  color: #314a4d;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  min-height: 230px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  background: rgba(255, 253, 247, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(37, 26, 14, 0.08);
  backdrop-filter: blur(18px);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, transparent 0 67%, rgba(16, 32, 42, 0.08) 67% 68%, transparent 68%),
    linear-gradient(160deg, rgba(226, 170, 81, 0.2), transparent 48%);
  opacity: 0.68;
  pointer-events: none;
}

.project-card:nth-child(2)::before {
  background:
    linear-gradient(120deg, transparent 0 70%, rgba(88, 122, 120, 0.18) 70% 72%, transparent 72%),
    radial-gradient(circle at 80% 22%, rgba(88, 122, 120, 0.28), transparent 9rem);
}

.project-card:nth-child(3)::before {
  background:
    linear-gradient(150deg, transparent 0 70%, rgba(183, 93, 55, 0.15) 70% 72%, transparent 72%),
    radial-gradient(circle at 18% 18%, rgba(183, 93, 55, 0.2), transparent 9rem);
}

.project-card:nth-child(4)::before {
  background:
    linear-gradient(135deg, transparent 0 68%, rgba(19, 39, 52, 0.13) 68% 70%, transparent 70%),
    radial-gradient(circle at 82% 18%, rgba(226, 170, 81, 0.28), transparent 9rem);
}

.project-card:nth-child(5)::before {
  background:
    linear-gradient(130deg, transparent 0 72%, rgba(88, 122, 120, 0.16) 72% 74%, transparent 74%),
    radial-gradient(circle at 26% 18%, rgba(226, 170, 81, 0.22), transparent 9rem);
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(16, 32, 42, 0.38);
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 20px 54px rgba(37, 26, 14, 0.14);
}

.project-card:focus-visible {
  outline: 3px solid rgba(19, 39, 52, 0.55);
  outline-offset: 4px;
}

.project-kicker,
.project-title,
.project-desc {
  position: relative;
  z-index: 1;
}

.project-kicker {
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-title {
  color: var(--night);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.project-desc {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  color: rgba(16, 32, 42, 0.68);
  font-size: 0.92rem;
}

.site-footer a {
  text-decoration-color: rgba(16, 32, 42, 0.28);
  text-underline-offset: 4px;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--night);
  text-decoration-color: rgba(16, 32, 42, 0.72);
}

@media (max-width: 900px) {
  .directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, 440px);
    align-content: start;
    padding: 28px 0;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .logo {
    width: min(46vw, 168px);
  }

  h1 {
    font-size: clamp(3.5rem, 19vw, 5.8rem);
  }

  .directory {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 180px;
  }
}

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