:root {
  --background: #fbfbf8;
  --foreground: #111111;
  --muted: #686864;
  --border: #111111;
  --paper: #f5f9d4;
  --green: #10b981;
  --blue: #245dff;
  --orange: #ff6a00;
  --shadow: 10px 10px 0 #111111;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--foreground);
  color-scheme: light;
  background: var(--background);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 1px 1px, #11111112 1px, transparent 0) 0 0 / 56px
    56px,
    var(--background);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 28px;
  background: #fbfbf8e6;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand img {
  width: 38px;
  height: 38px;
  outline: 1px solid #0000001a;
  border-radius: 8px;
}

nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 800;
}

nav a:hover {
  color: var(--background);
  background: var(--foreground);
}

.canvas-shell {
  position: relative;
  min-height: max(100svh, 1080px);
  padding-top: 76px;
  overflow: hidden;
}

.canvas-copy {
  position: absolute;
  top: 142px;
  left: max(28px, calc((100vw - 1180px) / 2));
  z-index: 2;
  width: min(620px, calc(100vw - 56px));
  pointer-events: none;
}

.kicker {
  width: fit-content;
  padding: 6px 10px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 900;
  color: var(--foreground);
  letter-spacing: 0.04em;
  background: var(--paper);
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 76px;
  font-style: italic;
  font-weight: 950;
  line-height: 0.96;
  color: var(--blue);
  letter-spacing: 0;
  text-wrap: balance;
}

.canvas-copy p:not(.kicker) {
  max-width: 520px;
  margin: 24px 0 0;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

#download-canvas {
  position: absolute;
  inset: 76px 0 0;
}

.fallback,
.notes {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
}

.fallback {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 40px 0;
}

.fallback article,
.notes {
  background: #ffffff;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
}

.fallback article {
  padding: 24px;
}

.fallback p,
.fallback h2,
.notes p {
  margin: 0;
}

.fallback p {
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.fallback h2 {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1;
}

.fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 900;
  color: var(--background);
  letter-spacing: 0.08em;
  background: var(--foreground);
}

.notes {
  padding: 18px 20px;
  margin-bottom: 44px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--paper);
}

@media (max-width: 860px) {
  .site-header {
    padding: 0 18px;
  }

  .canvas-shell {
    min-height: 1120px;
  }

  .brand span {
    display: none;
  }

  .canvas-copy {
    top: 118px;
    left: 18px;
    width: calc(100vw - 36px);
  }

  h1 {
    font-size: 48px;
  }

  .canvas-copy p:not(.kicker) {
    font-size: 16px;
  }

  .fallback {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  nav a {
    padding: 0 10px;
  }

  h1 {
    font-size: 38px;
  }
}
