:root {
  --ink: #0a0a0a;
  --paper: #fff;
  --muted: #666;
  --line: #d9d9d9;
  --pad: clamp(20px, 4vw, 64px);
  color-scheme: light;
  font-family: Arial, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { color: #fff; background: #000; }

.site-header {
  min-height: 90px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--ink);
}
.brand { font-size: clamp(23px, 2.2vw, 35px); font-weight: 900; letter-spacing: -.07em; }
.site-header p, .back { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.back:hover { color: var(--ink); }

.home { padding: clamp(52px, 8vw, 120px) var(--pad) clamp(88px, 10vw, 150px); }
.home__intro { max-width: 1320px; margin: 0 auto clamp(58px, 8vw, 112px); }
.eyebrow { margin: 0 0 20px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.home h1 {
  margin: 0;
  font-size: clamp(74px, 15vw, 230px);
  font-weight: 900;
  line-height: .72;
  letter-spacing: -.095em;
}
.news-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
.card:first-child { grid-column: 1 / -1; }
.card__link { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); border-top: 2px solid var(--ink); }
.card__image { min-height: 460px; overflow: hidden; background: #eee; }
.card__image img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 24px 0 0 clamp(24px, 3vw, 52px); display: flex; flex-direction: column; align-items: flex-start; }
.card time, .article time { color: var(--muted); font-size: 12px; }
.card h2 { margin: 26px 0 18px; font-size: clamp(34px, 4vw, 64px); line-height: .94; letter-spacing: -.06em; }
.card p { max-width: 510px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.45; }
.card span { margin-top: auto; padding: 25px 0; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--ink); }
.card span b { margin-left: 16px; font-size: 18px; }
.card__link:hover .card__image img { transform: scale(1.015); }
.card__image img { transition: transform .45s ease; }

.site-footer { min-height: 112px; padding: 28px var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; border-top: 1px solid var(--line); font-size: 12px; }
.site-footer > :last-child { justify-self: end; }
.site-footer a, .article-footer a { font-weight: 800; border-bottom: 1px solid; }
.developer-credit { justify-self: center; display: inline-flex; align-items: center; gap: 8px; border-bottom: 0 !important; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.developer-credit i { display: inline-block; color: #d7ff00; font-size: 19px; font-style: normal; line-height: 1; transition: transform .45s cubic-bezier(.2,.75,.25,1); }
.developer-credit:hover i, .developer-credit:focus-visible i { transform: rotate(180deg); }

.article { padding: clamp(58px, 8vw, 120px) var(--pad) 0; }
.article > article { max-width: 1320px; margin: 0 auto; }
.article__header { max-width: 1120px; margin-bottom: clamp(48px, 7vw, 96px); }
.article__header h1 { margin: 22px 0 34px; font-size: clamp(48px, 8vw, 122px); line-height: .88; letter-spacing: -.075em; }
.article__image { margin: 0; }
.article__image img { width: 100%; max-height: 82vh; object-fit: cover; }
.article__gallery { margin-top: 16px; }
.article__gallery > p { margin: 0 0 12px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.article__gallery > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.article__gallery button { position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 1.18 / 1; overflow: hidden; border: 0; background: #eee; cursor: pointer; }
.article__gallery button::after { content: ""; position: absolute; inset: 0; border: 3px solid transparent; pointer-events: none; transition: border-color .2s; }
.article__gallery button[aria-pressed="true"]::after { border-color: #0a0a0a; }
.article__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.article__gallery button:hover img { transform: scale(1.025); }
.article__content { max-width: 820px; margin: clamp(55px, 8vw, 110px) auto clamp(90px, 12vw, 170px); }
.article__content p { margin: 0 0 28px; font-size: clamp(23px, 2.3vw, 35px); line-height: 1.27; letter-spacing: -.025em; }
.source { display: inline-block; margin-top: 46px; padding-bottom: 8px; font-size: 13px; font-weight: 800; border-bottom: 1px solid; }
.article-footer { padding: clamp(54px, 7vw, 90px) var(--pad) 30px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; color: #fff; background: #090909; }
.article-footer p { max-width: 700px; margin: 0; font-size: clamp(30px, 5vw, 76px); font-weight: 900; line-height: .92; letter-spacing: -.06em; }
.article-footer a { flex: 0 0 auto; font-size: 13px; }
.article-footer .developer-credit { grid-column: 1 / -1; margin-top: 28px; }

@media (max-width: 760px) {
  .site-header { min-height: 70px; }
  .site-header p { display: none; }
  .brand { font-size: 24px; }
  .back { font-size: 11px; }
  .home { padding-top: 54px; }
  .home h1 { max-width: 100%; font-size: clamp(50px, 17vw, 88px); white-space: nowrap; }
  .news-grid { grid-template-columns: 1fr; }
  .card:first-child { grid-column: auto; }
  .card__link { display: block; }
  .card__image { min-height: 0; aspect-ratio: 1.28 / 1; }
  .card__body { padding: 20px 0 0; }
  .card h2 { margin-top: 20px; font-size: clamp(34px, 10vw, 48px); }
  .card p { font-size: 16px; }
  .card span { margin-top: 34px; }
  .site-footer { grid-template-columns: 1fr; justify-items: center; gap: 22px; text-align: center; }
  .site-footer > :last-child { justify-self: center; }
  .article { padding-top: 52px; }
  .article__header h1 { font-size: clamp(44px, 13vw, 68px); }
  .article__image { margin-inline: calc(var(--pad) * -1); }
  .article__image img { min-height: 320px; max-height: 68vh; }
  .article__gallery { margin-top: 8px; }
  .article__gallery > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .article__content { margin-top: 52px; }
  .article__content p { font-size: 23px; }
  .article-footer { grid-template-columns: 1fr; align-items: start; }
  .article-footer .developer-credit { grid-column: auto; justify-self: center; margin-top: 30px; }
}

@media (hover: none) {
  .developer-credit i { animation: credit-plus 5s linear infinite; }
}

@keyframes credit-plus { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .developer-credit i { animation: none; }
}
