/* Jamie Max Lee: site styles */
:root {
  --ink: #111111;
  --muted: #5c5c5c;
  --paper: #ffffff;
  --line: #e6e6e3;
  --frame: #ecece9;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 3vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}
.label a { text-decoration: none; }
.label a:hover { text-decoration: underline; }

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px var(--gutter);
}
.site-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 28px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Homepage intro */
.intro { padding: 4vw var(--gutter) 64px; }
.intro h1 {
  font-size: 11.4vw;
  line-height: 0.82;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0 0 36px -0.04em;
}
.intro p {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 500;
  max-width: 660px;
  margin: 0;
}

/* Work grid */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 24px;
  padding: 0 var(--gutter) 120px;
}
.card { display: block; text-decoration: none; }
.frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--frame);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .frame img { transform: scale(1.03); }
.award {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 9px;
}
.card-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.card-label span:first-child { font-weight: 500; }
.card-label .role { color: var(--muted); text-align: right; }

/* Project page */
.project { padding: 32px var(--gutter) 40px; }
.project-head { max-width: 900px; margin-bottom: 40px; }
.project-head h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 16px 0 14px;
}
.project-head .label { color: var(--muted); }
.project-head .award-line { color: var(--ink); margin-top: 8px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.writeup { max-width: 680px; margin: 56px 0 0; }
.writeup p { margin: 0 0 1.1em; }
.writeup h3 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 40px 0 10px;
}
.writeup blockquote {
  margin: 32px 0;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 500;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 80px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  padding: 32px var(--gutter) 40px;
  align-items: start;
}
.about-photo img { width: 100%; }
.about-text { max-width: 640px; }
.about-text h1 {
  font-size: 44px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.about-text .about-intro { font-size: 24px; line-height: 1.35; font-weight: 500; }
.about-text p { margin: 0 0 1.1em; }
.about-text h3 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 40px 0 10px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin: 0 var(--gutter);
  padding: 64px 0 40px;
}
.site-footer h2 {
  font-size: 44px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 8px 0 16px;
  max-width: 820px;
}
.footer-lead { margin: 0; font-size: 18px; }
.footer-email {
  display: inline-block;
  font-size: 26px;
  font-weight: 500;
  margin: 4px 0 20px;
  text-underline-offset: 5px;
}
.footer-links { margin: 0 0 40px; font-size: 16px; }
.footer-small { margin: 0; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Phones */
@media (max-width: 767px) {
  body { font-size: 17px; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 18px; justify-content: flex-start; }
  .intro { padding-top: 24px; padding-bottom: 40px; }
  .intro h1 { font-size: 17vw; white-space: normal; margin-bottom: 20px; }
  .intro p { font-size: 19px; }
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .card-label { font-size: 11px; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-text h1, .site-footer h2 { font-size: 34px; }
  .footer-email { font-size: 21px; }
}

@media (min-width: 768px) {
  .about-photo { position: sticky; top: 24px; }
}

/* Stills under the write-up */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 56px;
  align-items: start;
}
.gallery img { width: 100%; }
