/* Palette and type follow Project Room: warm off-white on near-black, one brass accent,
   serif titles. Newsreader is loaded from Google Fonts so the serif holds on Windows too. */
:root {
  --paper: #070708;
  --surface: #0d0e10;
  --ink: #eee9df;
  --muted: #99958e;
  --faint: #85817a;
  --brass: #c09a63;
  --line: #eee9df17;
  --line-strong: #eee9df29;
  --serif: "Newsreader", "Iowan Old Style", Baskerville, Georgia, serif;
  --sans: "Inter", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { 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: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

header.intro { padding: 96px 0 64px; }

header.intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 4.4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

header.intro p {
  margin: 20px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 24px;
  font-size: 15px;
}

.arrow-link { color: var(--ink); transition: color 0.18s ease; }
.arrow-link span {
  display: inline-block;
  margin-left: 3px;
  color: var(--brass);
  transition: transform 0.18s ease;
}
.arrow-link:hover { color: #fff; }
.arrow-link:hover span { transform: translate(2px, -2px); }

.project {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.shots {
  position: relative;
  margin-bottom: 34px;
}

.shots .desktop-frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #020203;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
}

.shots .desktop {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.92) contrast(1.02);
  transition: filter 0.22s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project:hover .shots .desktop { filter: saturate(1) contrast(1.02); transform: scale(1.008); }

.shots .phone {
  position: absolute;
  right: 28px;
  bottom: -22px;
  width: 18%;
  min-width: 118px;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
}

.meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 0 48px;
  align-items: start;
}

.meta h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 3.2vw, 40px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.meta .when {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 14px;
}

.meta .story {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 620px;
}

.side {
  margin: 0;
  padding: 6px 0 0 28px;
  border-left: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.side dt { color: var(--faint); margin-top: 14px; }
.side dt:first-child { margin-top: 0; }
.side dd { margin: 3px 0 0; color: var(--ink); }

footer {
  padding: 40px 0 72px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .shots .desktop, .arrow-link span { transition: none; }
  .project:hover .shots .desktop { transform: none; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  header.intro { padding: 60px 0 40px; }
  header.intro p { font-size: 16px; }
  .project { padding: 44px 0; }
  .shots { margin-bottom: 38px; }
  .shots .phone { right: 14px; bottom: -26px; width: 26%; min-width: 0; border-radius: 10px; }
  .meta { grid-template-columns: 1fr; }
  .side { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 20px; }
}

.who { display: flex; align-items: center; gap: 18px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
a.shots { display: block; cursor: pointer; }
@media (max-width: 760px) { .avatar { width: 52px; height: 52px; } }
