:root {
  color-scheme: dark;
  --background: #090909;
  --text: #f3f3f3;
  --muted: #ababab;
  --accent: #dedede;
  --line: #3b3b3b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--background); color: var(--text); }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--background); }
.page { width: min(1320px, calc(100% - 112px)); margin: 0 auto; }
.header { min-height: 101px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 13px; font-size: 17px; letter-spacing: -.025em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.contact-link { font-size: 14px; color: #dedede; padding: 12px 0 12px 12px; }
.contact-link span { margin-left: 9px; color: var(--accent); }
.intro { text-align: center; padding: 77px 0 44px; }
h1, h2, p { margin: 0; }
.intro h1 { font-weight: 400; font-size: clamp(44px, 5.1vw, 72px); letter-spacing: -.055em; line-height: 1.12; }
.period { color: var(--accent); }
.intro p { color: var(--muted); font-size: 19px; line-height: 1.5; margin-top: 20px; letter-spacing: -.02em; }
.projects { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding: 24px 0 86px; }
.project { display: flex; flex-direction: column; min-width: 0; border-radius: 2px; }
.project-art { height: 220px; display: flex; align-items: center; justify-content: center; padding: 24px; border: 1px solid #303030; border-radius: 8px; overflow: hidden; transition: background-color 180ms ease; }
.project:focus-visible .project-art { background-color: #141414; }
.logo { display: block; height: auto; width: 100%; max-height: 100%; object-fit: contain; transition: transform 220ms ease; }
.project:focus-visible .logo { transform: scale(1.04); }
.logo-shred { max-width: 260px; }
.logo-floor { max-width: 240px; }
.logo-retro { max-width: 268px; }
.logo-analog { width: auto; max-width: 80%; height: 150px; }
.project-copy { text-align: center; padding-top: 22px; display: flex; flex-direction: column; flex: 1; align-items: center; }
.project p { color: var(--muted); font-size: 13px; line-height: 1.65; max-width: 235px; margin: 12px auto 0; text-wrap: pretty; }
.project-category { color: #858585; font-size: 10px; font-weight: 500; line-height: 1.6; letter-spacing: .15em; margin-top: 20px; padding-top: 0; }
.footer { border-top: 1px solid var(--line); padding: 36px 0; display: grid; grid-template-columns: 1fr auto; column-gap: 32px; row-gap: 45px; }
.footer-heading h2 { font-weight: 400; font-size: 26px; letter-spacing: -.04em; line-height: 1.3; }
.footer-heading p { margin-top: 10px; font-size: 13px; color: var(--muted); }
address { font-style: normal; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 13px; font-size: 14px; }
.email { color: var(--accent); }
.email span { margin-left: 5px; }
.phone { color: #c5c5c5; font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; top: -100px; left: 24px; z-index: 10; background: var(--accent); color: var(--background); padding: 12px 18px; }
.skip-link:focus { top: 16px; }

@media (hover: hover) {
  .project:hover .project-art { background-color: #141414; }
  .contact-link:hover, .phone:hover { color: var(--accent); }
}

@media (min-width: 1100px) and (min-height: 900px) {
  .page { min-height: 100svh; display: flex; flex-direction: column; }
  main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
  .intro { padding-top: 65px; }
  .projects { padding-bottom: 75px; }
}

@media (max-width: 1099px) {
  .page { width: calc(100% - 80px); max-width: 860px; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; row-gap: 35px; padding-top: 4px; padding-bottom: 65px; }
  .project-art { height: 210px; }
  .intro { padding: 64px 0 34px; }
}

@media (max-width: 599px) {
  html { scroll-padding-top: 20px; }
  .page { width: calc(100% - 48px); }
  .header { min-height: 82px; }
  .wordmark { font-size: 15px; gap: 10px; }
  .contact-link { font-size: 13px; }
  .intro { padding: 58px 0 20px; }
  .intro h1 { font-size: clamp(36px, 9.3vw, 52px); letter-spacing: -.06em; }
  .intro p { font-size: 15px; margin-top: 16px; }
  .projects { grid-template-columns: 1fr; gap: 30px; padding: 0 0 58px; }
  .project { max-width: 360px; width: 100%; margin: 0 auto; }
  .project-art { height: 206px; padding: 24px; }
  .logo-shred { max-width: 250px; }
  .logo-retro { max-width: 265px; }
  .logo-floor { max-width: 230px; }
  .logo-analog { height: 150px; }
  .project-copy { padding-top: 19px; }
  .project p { margin-top: 9px; }
  .footer { grid-template-columns: 1fr; padding: 31px 0; row-gap: 25px; }
  .footer-heading h2 { font-size: 26px; }
  address { align-items: flex-start; gap: 4px; font-size: 14px; }
  address a { display: flex; align-items: center; min-height: 44px; }
}

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