@font-face {
  font-family: "Saira";
  src: url("/assets/saira-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Saira";
  src: url("/assets/saira-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Saira";
  src: url("/assets/saira-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --background: #f7f8f7;
  --card: #e5e9e7;
  --ink: #171a1c;
  --muted: #65706f;
  --accent: #486878;
  --line: #e0e3e1;
  --content: 1008px;
  --article: 824px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Saira", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

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

.site-nav {
  min-height: 59px;
  padding: 17px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--background);
}

.brand { font-size: 16px; font-weight: 600; line-height: 1.2; }

.nav-links { display: flex; align-items: center; gap: 24px; }

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: color .15s ease;
}

.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }

.home-main {
  width: min(var(--content), calc(100% - 96px));
  margin: 0 auto;
  padding: 112px 0 0;
}

.hero { padding-bottom: 48px; }

h1, h2, h3, p { margin: 0; }

.hero h1 {
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -1.7px;
  font-weight: 600;
}

.eyebrow {
  margin-top: 20px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 8px 17px 9px;
  min-height: 37px;
  border: 1px solid #d9dcda;
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease;
}

.button:hover, .button:focus-visible { background: white; border-color: #c8cdca; }

.work-heading {
  margin: 0 0 50px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.45px;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  min-width: 0;
  border-radius: 6px;
  background: var(--card);
  transition: transform .18s ease, box-shadow .18s ease;
}

.project-card:first-child { grid-column: 1 / -1; }

.project-card:hover, .project-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23, 26, 28, .08);
}

.project-media {
  width: 100%;
  max-height: 549px;
  object-fit: contain;
  object-position: center;
}

.project-card:not(:first-child) .project-media { height: 260px; }

.project-title {
  margin-top: 16px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.2px;
}

.project-description {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.project-tags {
  margin-top: 14px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.contact-block {
  padding: 48px 0 22px;
}

.contact-block h2 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 600;
}

.contact-block a {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.contact-block a:hover, .contact-block a:focus-visible { color: var(--ink); }

.site-footer {
  min-height: 78px;
  padding: 26px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.linkedin-mark {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 2px;
  background: var(--muted);
  color: var(--background);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.article-main, .resume-main {
  width: min(var(--article), calc(100% - 96px));
  margin: 0 auto;
  padding: 96px 0 88px;
}

.article-main h1 {
  font-size: 36px;
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -.55px;
}

.article-meta {
  margin-top: 16px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.article-kicker {
  margin-top: 13px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.article-main > img:first-of-type,
.article-hero {
  width: 100%;
  margin-top: 36px;
  border-radius: 6px;
}

.article-section { margin-top: 48px; }

.article-section h2 {
  margin-bottom: 16px;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.25px;
}

.article-section h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}

.article-section p,
.article-main > p.article-copy {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.article-section p + p { margin-top: 18px; }

.article-section img,
.article-section video {
  width: 100%;
  margin-top: 22px;
  border-radius: 6px;
  background: var(--card);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.stat, .callout {
  padding: 20px;
  border-radius: 6px;
  background: var(--card);
}

.stat strong, .callout strong {
  display: block;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stat span {
  display: block;
  margin-top: 7px;
  font-size: 18px;
  font-weight: 600;
}

.callout { margin-top: 24px; }
.callout p { margin-top: 8px; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.media-grid img { margin-top: 0; height: 100%; object-fit: cover; }

.animation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.animation-card img { width: 100%; border-radius: 6px; }
.animation-card h3 { margin: 10px 0 0; font-size: 15px; text-transform: uppercase; letter-spacing: .8px; }

.back-link {
  display: inline-block;
  margin-top: 56px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.back-link:hover, .back-link:focus-visible { color: var(--ink); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 46px;
}

.skill-block { padding: 22px; border-radius: 6px; background: var(--card); }
.skill-block h2 { margin-bottom: 8px; font-size: 25px; }
.skill-block p { color: var(--muted); line-height: 1.58; }

.resume-main { text-align: center; }
.resume-image { width: 100%; border-radius: 4px; box-shadow: 0 3px 18px rgba(23,26,28,.10); }
.resume-main .button { margin: 28px 0 0; }

@media (max-width: 809px) {
  .site-nav {
    min-height: 127px;
    padding: 16px 20px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
  }

  .brand { font-size: 15px; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-links a { font-size: 12px; }

  .home-main { padding-top: 130px; }
  .hero { padding-bottom: 54px; }
  .hero h1 { font-size: 36px; line-height: 1.05; letter-spacing: -.75px; }
  .work-heading { margin-bottom: 56px; font-size: 25px; }
  .project-grid { grid-template-columns: 1fr; gap: 20px; }
  .project-card:first-child { grid-column: auto; }
  .project-card .project-media,
  .project-card:not(:first-child) .project-media { width: 100%; height: auto; max-height: 260px; object-fit: contain; }
  .contact-block { padding-top: 44px; }
  .contact-block h2 { font-size: 25px; }

  .article-main, .resume-main { padding-top: 76px; }
  .article-main h1 { font-size: 36px; }
  .stats { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .home-main, .article-main, .resume-main { width: calc(100% - 96px); }
  .project-title { font-size: 24px; }
  .site-footer { padding: 26px 20px; }
  .article-main { padding-bottom: 64px; }
  .article-section { margin-top: 42px; }
  .media-grid, .animation-grid, .skills-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .project-card, .button { transition: none; }
}
