/* 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 (matches the Squarespace layout) */
:root { --accent: #e84b09; }
.project { padding: 40px 58px 40px; }
.project-media { width: min(768px, 100%); margin: 0 auto; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project-body {
  display: grid;
  grid-template-columns: minmax(0, 546fr) minmax(0, 657fr);
  gap: 66px;
  margin-top: 50px;
  padding-left: 55px;
}
.project-head h1 {
  font-size: 40px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 56px;
}
.roles { list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 1.9; }
.award-line {
  display: inline-block;
  margin: 24px 0 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 9px;
}
.writeup { font-size: 16px; line-height: 1.6; }
.writeup p { margin: 0 0 1em; }
.writeup a { color: var(--accent); text-underline-offset: 3px; }
.writeup h3 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 32px 0 8px;
}
.writeup blockquote { margin: 24px 0; font-size: 20px; line-height: 1.35; font-weight: 500; }
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 96px;
  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; }

/* Feature layout (Curating Grief) */
.feature .feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 66px;
  align-items: start;
  margin-bottom: 96px;
}
.feature .feature-row:first-child .feature-left { padding-left: 55px; }
.feature .feature-row:first-child .feature-left img { width: min(490px, 100%); }
.feature .feature-left img { width: 100%; }
.feature-title {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
}
.feature h2 {
  font-size: 47px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
}
.button {
  display: inline-block;
  margin-top: 24px;
  padding: 16px 21px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.button:hover { background: var(--accent); color: #fff; }
.press-quote { margin: 40px auto 0; max-width: 323px; font-size: 16px; line-height: 1.6; }
.press-quote blockquote { margin: 0; }
.press-quote figcaption { text-align: right; margin-top: 12px; }
.awards-row h2 { font-size: 40px; }
.awards-list details { border-bottom: 1px solid var(--ink); }
.awards-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.awards-list summary::-webkit-details-marker { display: none; }
.awards-list summary::after {
  content: "";
  flex: 0 0 9px;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
}
.awards-list details[open] summary::after { transform: rotate(-135deg); }
.awards-list details p { margin: 0 0 18px; font-size: 18px; }

/* 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; }
  .project { padding: 24px 16px; }
  .project-body, .feature .feature-row { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .feature .feature-row:first-child .feature-left { padding-left: 0; }
  .project-head h1 { font-size: 32px; margin-bottom: 16px; }
  .feature-title { font-size: 28px; }
  .feature h2, .awards-row h2 { font-size: 34px; }
  .awards-list summary { font-size: 24px; }
  .press-quote { margin: 0; }
  .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%; }
