:root {
  --pink: #ffccfe;
  --magenta: #f428b0;
  --text: #000;
  --muted: #898989;
  --off-white: ghostwhite;
  --font-family: 'PolySans', sans-serif;
  --font-slim: 300;     /* Use standard numerical values or keywords */
  --font-neutral: 400;
  --gutter: 36px;
  --gap: 20px;
}

@font-face {
  font-family: 'PolySans';
  src: url('fonts/PolySans-Neutral.otf') format('otf'),
       url('fonts/PolySans-Slim.otf') format('otf');
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-family);
  background: linear-gradient(to bottom, var(--pink) 0%, var(--off-white) 43.924%) no-repeat;
  font-weight:var(--font-slim);
  background-color: #fff;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
p, h1, h2 { margin: 0; }

.page {
  max-width: 100%;
  margin: 0 auto;
  min-height: 1465px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 5px;
}

/* Header */
.header {
  width: 100%;
  padding: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 276px;
}
.brand { display: flex; align-items: center; gap: 16px; }
.name { font-family: var(--font-family); font-size: 24px; white-space: nowrap; }
.logo { width: 24px; height: 24px; object-fit: cover; }
.intro { font-size: 14px; width: 473px; max-width: 100%; }
.nav { display: flex; gap: 35px; font-size: 16px; }
.nav a:hover {color:var(--magenta);}

/* Grid */
.grid {
  width: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
}
.column { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.project { display: flex; flex-direction: column; gap: 16px; }
.project-link { display: flex; flex-direction: column; gap: 16px; color: inherit; text-decoration: none; }
.project-link:hover .caption h2, .caption p {color:var(--magenta);}
.project--fill { height: 576px; }

.media { display: block; width: 100%; }
.media--cover { object-fit: cover; }
.media--contain { object-fit: contain; }
.media--ratio { aspect-ratio: 2890 / 1784; object-fit: cover; }
.media--fill { flex: 1 1 0; object-fit: cover; }

.caption { display: flex; flex-direction: column; gap: 4px; }
.caption h2 { font-family: var(--font-family); font-weight: var(--font-neutral); font-size: 14px; }
.caption p { font-size: 12px; color: var(--muted); }

/* Footer */
.footer {
  width: min(1210px, calc(100% - 2 * var(--gutter)));
  margin-top: 120px;
  margin-bottom: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
}
.footer-text { display: flex; flex-direction: column; gap: 16px; max-width: 998px; }
.footer a:hover { text-decoration: underline; }
.heart { font-size: 50px; line-height: 1; cursor: default; transition: transform .2s ease; }
.heart.beat { transform: scale(1.25); }

/* Reveal on scroll (added by script.js) */
.js .project { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.js .project.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .header { flex-wrap: wrap; margin-bottom: 80px; }
  .grid { flex-direction: column; }
  .column { width: 100%; }
  .project--fill { height: auto; }
  .media--fill { flex: none; height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .project { transition: none; opacity: 1; transform: none; }
}