:root {
  color-scheme: dark;
  --bg: #090909;
  --panel: #11110f;
  --panel-soft: #171712;
  --text: #f5efe2;
  --muted: #b7ad9b;
  --line: rgba(232, 197, 116, 0.26);
  --gold: #e7c46f;
  --gold-strong: #f7d984;
  --green: #86b88c;
  --blue: #77a7c8;
  --coral: #dc806b;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 22% 16%, rgba(231, 196, 111, 0.11), transparent 28%),
    linear-gradient(135deg, #090909 0%, #10100d 44%, #080807 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 46px 0 46px;
}

.intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.eyebrow,
.project-kicker {
  margin: 0 0 12px;
  color: var(--gold-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6.4vw, 5.9rem);
  line-height: 0.92;
  font-weight: 700;
}

.lead {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

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

.project {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.project-visual {
  position: relative;
  display: grid;
  min-height: 178px;
  place-items: end start;
  padding: 22px;
  isolation: isolate;
  background:
    linear-gradient(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.58)),
    linear-gradient(135deg, rgba(231, 196, 111, 0.72), rgba(16, 16, 13, 0.9));
}

.project-visual-fallback {
  background:
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.66)),
    linear-gradient(135deg, rgba(231, 196, 111, 0.75), rgba(32, 21, 9, 0.95) 54%, rgba(12, 12, 10, 0.98));
}

.project-visual-fallback::before {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(247, 217, 132, 0.5);
  border-radius: 999px;
  background: rgba(247, 217, 132, 0.08);
  content: "";
}

.project-visual::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.72));
  content: "";
}

.project-visual img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-visual span {
  text-shadow: 0 14px 36px rgba(0, 0, 0, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.62rem, 2.65vw, 2.34rem);
  font-weight: 700;
  line-height: 0.95;
}

.project-body {
  padding: 20px;
}

.project h2 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.76rem;
  line-height: 1;
}

.project p:not(.project-kicker) {
  min-height: 46px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.project-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 217, 132, 0.68);
  border-radius: 999px;
  padding: 0 22px;
  background: rgba(247, 217, 132, 0.12);
  color: var(--gold-strong);
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  background: var(--gold-strong);
  color: #17120a;
  transform: translateY(-2px);
}

@media (max-width: 880px) {
  .shell {
    width: min(100% - 28px, 640px);
    padding-top: 42px;
  }

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

  .project-visual {
    min-height: 190px;
  }
}
