:root {
  color-scheme: light;
  --bg: #fbfaf6;
  --panel: #ffffff;
  --text: #18202a;
  --muted: #69727f;
  --line: #dfe4ea;
  --green: #147a5a;
  --blue: #275f9f;
  --amber: #9b6414;
  --grid: rgba(20, 122, 90, 0.075);
  --grid-soft: rgba(39, 95, 159, 0.055);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-soft) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  color: var(--text);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.terminal {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px) 0;
}

.prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(26px, 4vw, 42px);
  color: var(--muted);
  font-size: 0.95rem;
}

.prompt::before {
  content: "$";
  color: var(--green);
}

.cursor {
  width: 9px;
  height: 1.1em;
  background: var(--green);
  animation: blink 1.15s steps(2, start) infinite;
  box-shadow: 0 0 0 1px rgba(20, 122, 90, 0.08);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-bottom: clamp(22px, 4vw, 34px);
}

.line {
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.55;
}

.key {
  display: inline-block;
  min-width: 7.5rem;
  color: var(--blue);
}

.key::before {
  content: "--";
  color: var(--muted);
}

.name-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.github-link {
  display: inline-flex;
  color: var(--text);
  border-radius: 3px;
  opacity: 0.82;
  transition: opacity 120ms ease, transform 120ms ease;
}

.github-link:hover {
  opacity: 1;
  text-decoration: none;
  transform: translateY(-1px);
}

.github-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.github-link img {
  display: block;
  width: 18px;
  height: 18px;
}

.hero-stack {
  display: grid;
  gap: clamp(22px, 4vw, 32px);
  margin-top: clamp(20px, 3vw, 28px);
}

.offer,
.capabilities {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.offer h2,
.capabilities h2 {
  margin-bottom: 14px;
}

.value-list {
  display: grid;
  gap: 8px;
  padding-top: 2px;
  max-width: 660px;
}

.value-list p {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  color: var(--text);
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  line-height: 1.45;
}

.value-list span {
  color: var(--amber);
  font-size: 0.75rem;
  line-height: 1.8;
}

.capabilities {
  font-size: 0.86rem;
}

.ability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 14px;
}

.ability-grid p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.ability-grid span {
  display: block;
  color: var(--blue);
  font-size: 0.74rem;
  line-height: 1.4;
}

.ability-grid span::before {
  content: "--";
  color: var(--muted);
}

.capability-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.block {
  border-top: 1px solid var(--line);
  padding: clamp(24px, 4vw, 34px) 0;
}

h2 {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

h2::before {
  content: "./";
  color: var(--muted);
}

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

article {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 28px rgba(24, 32, 42, 0.055);
}

h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0;
}

p {
  margin-top: 0;
}

article p,
.block > p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 28px;
}

.project-folder {
  position: relative;
  min-width: 0;
  padding: 16px;
  border-color: #cfd8d4;
  background: rgba(255, 255, 255, 0.88);
}

.folder-label {
  position: absolute;
  left: -1px;
  top: -24px;
  min-width: 140px;
  height: 24px;
  padding: 6px 12px 0;
  border: 1px solid #cfd8d4;
  border-bottom: 0;
  border-radius: 6px 18px 0 0;
  background: rgba(255, 255, 255, 0.96);
  color: var(--green);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-folder-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-number {
  margin: 0 0 9px;
  color: var(--amber);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-summary h3 {
  margin-bottom: 9px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.project-lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 14px;
}

.project-tags span {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--blue);
  font-size: 0.6rem;
}

.project-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.project-actions a {
  font-size: 0.7rem;
  font-weight: 700;
}

.project-image-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--text);
  order: -1;
  box-shadow: 0 10px 24px rgba(24, 32, 42, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.project-image-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(24, 32, 42, 0.14);
}

.project-image-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.project-image-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-image-link span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 3px;
  background: rgba(24, 32, 42, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.billing-copy {
  max-width: 760px;
}

.report-preview {
  width: min(100%, 760px);
  margin: 20px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 36px rgba(24, 32, 42, 0.07);
}

.report-link {
  display: grid;
  grid-template-columns: minmax(190px, 0.78fr) minmax(0, 1.22fr);
  min-height: 320px;
  color: inherit;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.report-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.report-link:hover .report-title,
.report-link:hover .report-cta {
  color: var(--green);
}

.report-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -3px;
  border-radius: 7px;
}

.report-cover {
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(rgba(20, 122, 90, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 95, 159, 0.05) 1px, transparent 1px),
    #f4f5f1;
  background-size: 18px 18px;
  border-right: 1px solid var(--line);
}

.report-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  border: 1px solid #d6dde0;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(24, 32, 42, 0.13);
}

.report-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 4vw, 36px);
}

.report-title {
  margin-top: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.7vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  transition: color 120ms ease;
}

.report-summary {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.report-stats {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.35;
}

.report-stats > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.report-stats strong {
  color: var(--text);
  font-size: 0.94rem;
}

.report-cta {
  margin-top: auto;
  padding-top: 22px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 120ms ease;
}

@media (max-width: 760px) {
  .terminal {
    width: min(100% - 24px, 980px);
  }

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

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-image-link {
    transform: none;
  }

  .hero {
    min-height: auto;
  }

  .key {
    display: block;
    min-width: 0;
  }

  .hero-stack {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .value-list p {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 10px;
  }

  .ability-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

}

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

@media (max-width: 760px) {
  .report-preview {
    width: 100%;
  }

  .report-link {
    grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1.28fr);
  }
}

@media (max-width: 520px) {
  .report-link {
    grid-template-columns: 1fr;
  }

  .report-cover {
    min-height: 270px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .report-cover img {
    width: auto;
    max-width: 100%;
    max-height: 235px;
  }

  .report-details {
    min-height: 300px;
  }
}
