:root {
  color-scheme: dark;
  --navy: #081827;
  --sage: #99ad99;
  --card: #294940;
  --ink: #eff6f3;
  --muted: #becfc8;
  --accent: #f5aa6c;
  --border: #ae6339;
  --line: #c7e5e52e;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { min-width: 280px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI", "Avenir Next", Avenir, sans-serif;
  background: linear-gradient(180deg, var(--navy) 0%, #142d36 36%, #45675e 72%, var(--sage) 100%);
  -webkit-font-smoothing: antialiased;
}
.hero { padding: 0 0 clamp(38px, 4.2vw, 62px); }
h1 { width: min(40.8%, 652px); margin: 0 auto; line-height: 0; }
.brand { display: block; width: 100%; height: auto; mix-blend-mode: screen; animation: logo-appear 1.2s ease-out both; }
.projects, footer { width: min(826px, 86%); margin-inline: auto; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); position: relative; }
.section-heading::before { content: "+"; position: absolute; left: -20px; bottom: -8px; color: var(--accent); font: 18px var(--mono); }
h2 { margin: 0; font-size: 1rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.annotation, .card-top, .draft-note, .pending-label, .project-link, footer { font-family: var(--mono); font-size: .75rem; letter-spacing: .075em; }
.annotation { color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; align-items: stretch; }
.card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 3px; background: var(--card); box-shadow: 0 12px 32px #061a241a; position: relative; transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease; }
.card-top { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; color: #e0eae5; border-bottom: 1px solid var(--line); }
.status { color: var(--accent); }
.status::before { content: "·"; margin-right: 8px; }
.project-art { aspect-ratio: 1; margin: 14px 14px 0; background: white; border-radius: 2px; overflow: hidden; }
/* Only the white side margins fall outside this square; the complete round mark remains visible. */
.project-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 17px 15px 15px; }
h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -.025em; margin: 0 0 10px; line-height: 1.2; }
.description, .pending-description { margin: 0 0 18px; font-size: 1rem; line-height: 1.5; }
.description { color: var(--accent); transition: opacity .25s ease; }
.pending-description { color: var(--muted); }
.project-link { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 11px 13px; border: 1px solid var(--accent); color: var(--ink); text-decoration: none; font-size: .875rem; transition: background .2s, color .2s; }
.project-link span[aria-hidden] { font-size: 1.25rem; }
.project-link:hover, .project-link:focus-visible { background: var(--accent); color: var(--navy); }
.project-link:focus-visible { outline: 3px solid #e0f5ff; outline-offset: 5px; }
.card-live:has(:focus-visible) { transform: translateY(-5px) scale(1.03); z-index: 1; box-shadow: 0 18px 42px #0818274d; }
.project-grid:has(.card-live :focus-visible) .card-pending { opacity: .7; }
.pending-label { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.6; }
.draft { position: relative; aspect-ratio: 1; margin: 14px 14px 0; display: grid; place-items: center; color: #b6d5ca; background-image: linear-gradient(#c7e5e509 1px, transparent 1px), linear-gradient(90deg, #c7e5e509 1px, transparent 1px); background-size: 24px 24px; }
.draft::before { content: ""; position: absolute; inset: 18px 30px; border: 1px solid #c7e5e533; }
.draft::after { content: "+"; position: absolute; top: 7px; left: 22px; font: 22px var(--mono); color: #b6d5ca; }
.draft-number { font: 200 clamp(3rem, 6vw, 5rem) var(--mono); letter-spacing: -.07em; opacity: .55; }
.draft-note { position: absolute; bottom: 10px; padding: 3px 8px; background: var(--card); font-size: .75rem; }
.draft-concept::before { border-style: dashed; border-radius: 50%; inset: 12px 22%; }
.draft-concept::after { top: calc(50% - 13px); left: calc(22% - 7px); }
footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 68px; padding: 25px 0 30px; border-top: 1px solid #193b3c40; color: #193536; font-size: .75rem; line-height: 1.7; }
.revision { margin-left: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes logo-appear { from { opacity: 0; } to { opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
  .description { opacity: 0; }
  .card-live:hover, .card-live:has(:focus-visible) { transform: translateY(-5px) scale(1.03); z-index: 1; box-shadow: 0 18px 42px #0818274d; }
  .card-live:hover .description, .card-live:has(:focus-visible) .description { opacity: 1; }
  .project-grid:has(.card-live:hover) .card-pending { opacity: .7; }
}
@media (min-width: 901px) { .project-grid { animation: appear .85s .15s ease-out both; } }
@media (max-width: 1050px) and (min-width: 761px) {
  .projects, footer { width: min(826px, 91%); }
  .project-grid { gap: 16px; }
  .card-top { padding: 16px 14px; }
  .card-body { padding: 22px 16px 18px; }
  .project-art, .draft { margin: 14px 12px 0; }
  .draft-note { letter-spacing: 0; }
}
@media (max-width: 760px) {
  .hero { padding: 0 0 34px; }
  h1 { width: 54%; }
  .projects, footer { width: min(88%, 336px); }
  .project-grid { grid-template-columns: 1fr; gap: 24px; }
  .description { opacity: 1; }
  h3 { font-size: 1.35rem; }
  .draft-number { font-size: 4.5rem; }
  .annotation { font-size: .75rem; letter-spacing: 0; }
  h2 { letter-spacing: .08em; }
  footer { margin-top: 44px; gap: 8px; flex-direction: column; align-items: flex-start; }
  .revision { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .card-live:hover, .card-live:has(:focus-visible) { transform: none; }
}
