:root {
  --bg: #ffffff;
  --surface: #f5f5f3;
  --text: #16181d;
  --muted: #5a606b;
  --line: #e4e4e0;
  --accent: #d0021b;
  --button-bg: #16181d;
  --button-text: #ffffff;
  --shadow: 0 24px 48px -24px rgba(16, 24, 40, 0.28);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111214;
    --surface: #1a1c1f;
    --text: #f1f1ee;
    --muted: #a3a8b1;
    --line: #2a2d31;
    --accent: #ff4d5e;
    --button-bg: #f1f1ee;
    --button-text: #111214;
    --shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  background: var(--button-bg);
  color: var(--button-text);
  border-radius: 6px;
  text-decoration: none;
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

.masthead {
  padding: 28px 0 0;
}

.site {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.intro {
  padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.lede {
  max-width: 36ch;
  margin: 24px 0 0;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  line-height: 1.5;
  color: var(--muted);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding: clamp(56px, 9vw, 104px) 0;
  border-bottom: 1px solid var(--line);
}

.project:nth-of-type(odd) .project-media {
  order: -1;
}

.kicker {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  flex: none;
}

.project-text p {
  margin: 18px 0 0;
}

.project-text .facts {
  font-size: 0.95rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.button:hover {
  opacity: 0.85;
}

.button:focus-visible,
.badge:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.badge {
  display: inline-flex;
  border-radius: 8px;
}

.project-media {
  margin: 0;
}

.shot img {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tees {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tees img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface);
}

.footer {
  padding: 40px 0 56px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer p {
  margin: 0 0 6px;
}

@media (max-width: 760px) {
  .project {
    grid-template-columns: minmax(0, 1fr);
  }

  .project:nth-of-type(odd) .project-media {
    order: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
