@font-face {
  font-family: Geist;
  src: url("assets/geist.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --ink: #0b1631;
  --muted: #4e5665;
  --line: #dcd8cf;
  --sun: #ffd13c;
  font-family: Geist, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 3px solid #285cbb; outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 24px; }

.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: 12px; padding: 10px; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}
.site-header { border-bottom: 1px solid var(--line); }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 740;
  white-space: nowrap;
}
.mark { width: 25px; height: 14px; border: 5px solid var(--ink); border-bottom: 0; border-radius: 30px 30px 0 0; transform: rotate(11deg); }
nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 34px); }
nav a { font-size: 14px; font-weight: 570; text-decoration: none; padding-block: 10px; white-space: nowrap; }
nav a:hover, .store-link:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(42px, 6vw, 92px);
}
.hero h1 { font-size: clamp(42px, 6vw, 86px); letter-spacing: -.078em; line-height: .99; font-weight: 760; }
.hero p { max-width: 43ch; margin-top: 24px; color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; }
.primary {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin-top: 27px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 7px;
  background: var(--sun);
  text-decoration: none;
  font-weight: 680;
  font-size: 15px;
}
.primary:hover { background: #ffdb62; }
.hero-image { width: 100%; height: auto; border-radius: 16px; }

.work, .studio { border-top: 1px solid var(--line); padding-block: 50px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 26px; }
h2 { font-size: clamp(30px, 4vw, 45px); letter-spacing: -.056em; line-height: 1.1; }
.section-heading p, .project-copy p, .credit, .studio-copy { color: var(--muted); line-height: 1.6; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.projects article { min-width: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fbfaf6; }
.project-image {
  aspect-ratio: 1.65;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 22px 28px 0;
}
.project-image img { width: 51%; height: auto; border-radius: 12px 12px 0 0; box-shadow: 0 14px 40px #141a322b; }
.pocket { background: #e6ccb4; }
.cat { background: #ddd6eb; }
.project-copy { padding: 22px 24px; }
.project-copy h3 { font-size: clamp(21px, 2.3vw, 28px); letter-spacing: -.035em; }
.project-copy p { margin: 8px 0 14px; max-width: 45ch; }
.store-link { display: inline-block; padding-block: 6px; font-weight: 650; font-size: 14px; text-decoration: none; }
.store-link span { margin-left: 4px; }
.credit { font-size: 13px; margin-top: 17px; }

.studio { display: grid; grid-template-columns: 1fr 1.35fr; gap: 18px 30px; }
.studio-copy { font-size: 17px; max-width: 65ch; }
.studio-copy strong { color: var(--ink); }
.contact { padding-bottom: 24px; }
.contact-panel {
  border-radius: 14px;
  background: #0b183c;
  color: #fff8e7;
  padding: clamp(22px, 5vw, 54px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.contact-panel p { margin-top: 8px; line-height: 1.6; color: #e0e4ef; }
.contact-panel a { color: var(--sun); font-weight: 680; overflow-wrap: anywhere; }
.contact-panel a:focus-visible { outline-color: var(--sun); }
.site-footer { color: var(--muted); font-size: 13px; min-height: 58px; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 28px; }
  .projects { gap: 16px; }
  .project-copy { padding: 17px; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { min-height: 64px; gap: 8px; }
  .wordmark { font-size: 14px; gap: 6px; }
  .mark { width: 20px; height: 11px; border-width: 4px; }
  nav { gap: 10px; }
  nav a { font-size: 13px; }
  nav a span { display: none; }
  .hero, .projects, .studio { grid-template-columns: 1fr; }
  .hero { gap: 30px; padding-block: 40px; }
  .hero h1 { font-size: clamp(42px, 11vw, 62px); }
  .hero p { margin-top: 16px; }
  .primary { margin-top: 20px; }
  .hero-image { width: 100%; }
  .work, .studio { padding-block: 34px; }
  .section-heading { margin-bottom: 18px; }
}
