:root {
  color-scheme: dark;
  --bg: #111318;
  --panel: #191d24;
  --panel-strong: #20252e;
  --text: #f2f0e8;
  --muted: #b8b6ad;
  --line: #343944;
  --accent: #f2bd49;
  --accent-2: #6fc8d8;
  --accent-3: #d86f7f;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(242, 189, 73, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(111, 200, 216, 0.07) 1px, transparent 1px),
    var(--bg);
  background-size: 72px 72px;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px 0 56px;
  display: grid;
  align-content: center;
  gap: 36px;
}

.intro {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.mark {
  width: 104px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(242, 189, 73, 0.22), transparent 52%),
    var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.mark span {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow,
.label {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(3.2rem, 9vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.summary {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.6;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
}

.project-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(25, 29, 36, 0.94);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.project-primary {
  background:
    linear-gradient(160deg, rgba(242, 189, 73, 0.16), transparent 58%),
    var(--panel-strong);
}

.project-card h2 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.project-card p:not(.label) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.project-card a,
.muted-link {
  width: fit-content;
  max-width: 100%;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: #111318;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.project-card a:hover,
.project-card a:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.muted-link {
  color: var(--muted);
}

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

  .intro {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
  }

  .mark {
    width: 72px;
  }

  .mark span {
    font-size: 1.35rem;
  }

  h1 {
    font-size: clamp(2.5rem, 15vw, 4.2rem);
  }

  .summary {
    font-size: 1rem;
  }

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

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

@media (max-width: 440px) {
  .intro {
    grid-template-columns: 1fr;
  }
}
