:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --ink: #191714;
  --muted: #676158;
  --line: #ddd6ca;
  --panel: #fffdf8;
  --green: #1f6b4d;
  --blue: #285e8e;
  --red: #9d463c;
  --gold: #9b6b18;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}

.intro {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.summary span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.summary strong {
  margin-right: 5px;
  color: var(--ink);
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 22px;
}

.project {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 154px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.project:hover,
.project:focus-visible {
  border-color: rgba(40, 94, 142, 0.55);
  box-shadow: 0 12px 26px rgba(25, 23, 20, 0.08);
  transform: translateY(-1px);
}

.project:focus-visible {
  outline: 3px solid rgba(40, 94, 142, 0.35);
  outline-offset: 3px;
}

.project img {
  width: 100%;
  height: 100%;
  min-height: 154px;
  object-fit: cover;
  border-right: 1px solid var(--line);
  background: #e8e2d8;
}

.project-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 20px 22px;
}

.project-title {
  font-size: 24px;
  font-weight: 850;
  line-height: 1.18;
}

.project-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.project-url {
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
  word-break: break-word;
}

.project:nth-child(1) {
  border-left: 4px solid var(--red);
}

.project:nth-child(2) {
  border-left: 4px solid var(--green);
}

.project:nth-child(3) {
  border-left: 4px solid var(--blue);
}

.project:nth-child(4) {
  border-left: 4px solid var(--gold);
}

.project:nth-child(5) {
  border-left: 4px solid #5b557f;
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, 560px);
    padding-top: 28px;
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 34px;
  }

  .summary {
    justify-content: flex-start;
  }

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

  .project img {
    height: 148px;
    min-height: 148px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-body {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .shell {
    width: calc(100% - 20px);
  }

  h1 {
    font-size: 30px;
  }

  .project-title {
    font-size: 22px;
  }
}
