:root {
  color-scheme: light;
  --page: #edf2f8;
  --surface: #fcfdff;
  --visual: #e8eff8;
  --text: #172539;
  --muted: #52657e;
  --seam: #cedbeb;
  --blue: #215bd2;
  --blue-hover: #194db9;
  --blue-soft: #e7effe;
  color: var(--text);
  background: var(--page);
  font: 16px/1.5 system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: .17em; }
a:focus-visible { text-decoration-thickness: 2px; }

.shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: clamp(24px, 5vw, 64px) 54px;
}

h1 {
  font-size: clamp(22px, 2.7vw, 31px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.17;
  overflow-wrap: anywhere;
}

.project-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  overflow: hidden;
  border: 1px solid var(--seam);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 4px 16px #132e4e0a;
}

.project-card-copy {
  align-self: center;
  padding: clamp(23px, 3.65vw, 46px);
}

.project-card-copy p {
  max-width: 37ch;
  margin-block: 13px 25px;
  color: var(--muted);
}

.project-card-visual {
  display: grid;
  align-items: center;
  min-width: 0;
  padding: clamp(16px, 2.5vw, 29px);
  border-inline-start: 1px solid var(--seam);
  background: var(--visual);
}

.graph-preview {
  width: 100%;
  height: auto;
  overflow: hidden;
  border: 1px solid var(--seam);
  border-radius: 9px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 620;
  text-decoration: none;
}

.action img { flex: 0 0 auto; }

.action-primary {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.action-primary:is(:hover, :focus-visible) {
  border-color: var(--blue-hover);
  background: var(--blue-hover);
}

.action-secondary {
  border-color: var(--seam);
  color: var(--text);
  background: var(--surface);
}

.action-secondary:is(:hover, :focus-visible) { background: var(--blue-soft); }

.action:focus-visible {
  outline: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.project-open::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
}

.project-repo {
  position: relative;
  z-index: 2;
}

@media (max-width: 780px) {
  .project-card { grid-template-columns: minmax(0, 1fr); }

  .project-card-copy p { max-width: 52ch; }

  .project-card-visual {
    border-inline-start: 0;
    border-top: 1px solid var(--seam);
  }
}

@media (max-width: 430px) {
  .shell { width: calc(100% - 28px); }
  .project-card-copy { padding: 20px; }
  .project-card-copy p { margin-block: 10px 17px; }
  .project-card-visual { padding: 13px; }
}

@media (forced-colors: active) {
  .action { border-color: ButtonText; }
}

