@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #e8f4df;
  --ink: #263d30;
  --muted: #647064;
  --line: #dce1d5;
  --accent: #ddefbb;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 280px; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: var(--accent); }
:focus-visible { outline: 3px solid #587b37; outline-offset: 5px; }

.site-shell { max-width: 1216px; margin: 0 auto; padding: 0 48px; }
.skip-link { position: absolute; z-index: 2; left: 16px; top: -80px; padding: 12px 20px; border-radius: 8px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; border-bottom: 1px solid var(--line); }
.site-title { margin: 0; font: inherit; line-height: 1; }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; font-size: 25px; font-weight: 720; letter-spacing: -1.1px; }
.brand-mark { display: block; width: 40px; height: 40px; object-fit: contain; }
.brand-period { color: #76915a; }

.intro { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 78px 0 76px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 25px; font-size: 10px; font-weight: 650; letter-spacing: 1.65px; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 5.5vw, 72px); font-weight: 400; letter-spacing: -3.2px; line-height: 1.06; }
h1 em { color: #627c4c; font-weight: 400; }
.intro-description { margin: 25px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }

.collection { padding: 8px 0 48px; }
.collection:focus { outline: none; }
.collection-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 23px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-button { display: inline-flex; align-items: center; gap: 11px; min-height: 38px; padding: 8px 15px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; transition: background 150ms, color 150ms; }
.filter-button:hover { background: #e9eddf; color: var(--ink); }
.filter-button[aria-pressed="true"] { border-color: #d7ddcb; background: #e8eddc; color: var(--ink); }
.filter-count { color: var(--muted); font-family: Consolas, "Courier New", monospace; font-size: 10px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-card { display: flex; flex-direction: column; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 15px; background: #fcfdf9; transition: transform 180ms, box-shadow 180ms, border-color 180ms; }
.project-card:hover { transform: translateY(-3px); border-color: #bac6ad; box-shadow: 0 9px 24px #253d3009; }
.project-content { display: flex; flex: 1; flex-direction: column; padding: 24px 20px 19px; }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; }
.project-kind { color: #587344; font-weight: 650; letter-spacing: 1.15px; text-transform: uppercase; }
.project-game { color: var(--muted); }
.project-title { margin: 14px 0 24px; font-size: 21px; font-weight: 600; letter-spacing: -0.65px; line-height: 1.3; }
.project-links { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: auto; padding-top: 18px; border-top: 1px solid #e6e9df; }
.project-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 26px; font-size: 11px; text-decoration: none; }
.project-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-links svg { width: 15px; height: 15px; flex-shrink: 0; }
.project-primary-link { font-weight: 650; }
.project-source-link { color: var(--muted); }

.no-script { padding: 24px; border: 1px solid var(--line); border-radius: 9px; line-height: 1.8; font-size: 14px; }
.no-script ul { padding-left: 20px; }
.empty-state { grid-column: 1 / -1; margin: 0; padding: 40px 20px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); text-align: center; font-size: 14px; }

@media (min-width: 1500px) {
  .intro { padding-top: 98px; padding-bottom: 96px; }
}

@media (max-width: 760px) {
  .site-shell { padding: 0 28px; }
  .intro { padding: 58px 0; }
  h1 { font-size: 56px; letter-spacing: -2.7px; }
  .project-grid { gap: 16px; }
  .project-content { padding: 20px 13px 15px; }
  .project-title { font-size: 19px; }
}

@media (max-width: 560px) {
  .site-shell { padding: 0 20px; }
  .site-header { padding: 20px 0; }
  .brand { gap: 9px; font-size: 23px; }
  .brand-mark { width: 34px; height: 34px; }
  .intro { padding: 49px 0 47px; }
  .eyebrow { margin-bottom: 24px; font-size: 8px; letter-spacing: 1.15px; }
  h1 { font-size: clamp(37px, 9.8vw, 55px); letter-spacing: -2px; }
  .intro-description { margin-top: 22px; font-size: 14px; }
  .collection-toolbar { flex-wrap: wrap; gap: 10px; padding: 18px 0; }
  .filters { gap: 3px; }
  .filter-button { gap: 9px; min-height: 40px; padding: 8px 12px; }
  .project-grid { grid-template-columns: 1fr; gap: 20px; }
  .project-content { padding: 22px 16px 17px; }
  .project-title { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .project-card:hover { transform: none; }
}
