:root {
  --phthalo-light: #aec8ea;
  --phthalo-wash: #c9dbf2;
  --phthalo-ink: #00255f;
  --phthalo-mid: #004fae;
  --paper: #f6f1e7;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Baloo 2", system-ui, sans-serif;
  --font-accent: var(--font-body);
  --font-label: var(--font-body);
}
* { box-sizing: border-box; margin: 0; }
body {
  background: radial-gradient(ellipse at center, var(--phthalo-wash), var(--phthalo-light) 70%) fixed;
  background-color: var(--phthalo-light);
  color: var(--phthalo-ink);
  font-family: var(--font-body);
}
/* The banner sticks to the top once scrolled: the negative top lets the space above it scroll away first. */
.hero {
  position: sticky;
  top: -1.5rem;
  z-index: 20;
  padding-top: 1.5rem;
}
.work {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}
.work h2 {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--phthalo-mid);
  text-align: center;
  margin-bottom: 1.5rem;
}
.project {
  display: block;
  background: var(--paper);
  border: 1px solid var(--phthalo-ink);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s;
}
.project:hover { transform: translateY(-2px); }
.project h3 {
  font-weight: 500;
  font-size: 1.8rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.project img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--phthalo-ink);
}
.project-body { padding: 1.5rem 2rem 1.75rem; }
.project p { margin-top: 0.6rem; font-size: 1.1rem; line-height: 1.45; }
.project .lede { font-style: italic; }
.play {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--phthalo-mid);
}
.card {
  position: relative;
  background: var(--paper);
  border-block: 1px solid var(--phthalo-ink);
  padding: 0.6rem 1.5rem;
}
.menu-toggle {
  position: absolute;
  left: 2.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 5px;
  padding: 0.6rem 0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--phthalo-ink);
  border-radius: 1px;
}
.menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 1.75rem;
  z-index: 10;
  display: grid;
  min-width: 12rem;
  background: var(--paper);
  border: 1px solid var(--phthalo-ink);
}
.menu[hidden] { display: none; }
.menu button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--phthalo-light);
  font: inherit;
  font-size: 1.05rem;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.menu button:last-child { border-bottom: 0; }
.menu button:hover { background: var(--phthalo-wash); }
.menu svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
  fill: none;
  stroke: var(--phthalo-mid);
  stroke-width: 2;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}
.home {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
}
.brand img { height: 2.75rem; width: auto; }
.wordmark, h3, .about h1, .about h2 { font-family: var(--font-display); }
.tagline, .lede { font-family: var(--font-accent); }
.work h2, .play { font-family: var(--font-label); }
.wordmark {
  font-weight: 500;
  font-size: 1.9rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.wordmark em { color: var(--phthalo-mid); }
.tagline {
  padding-left: 0.9rem;
  border-left: 1px solid var(--phthalo-ink);
  font-size: 1.1rem;
  font-style: italic;
}
html { scroll-behavior: smooth; background: var(--phthalo-light); }
footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}
footer nav { margin-bottom: 0.4rem; }
footer a { color: inherit; margin: 0 0.6rem; }

/* About page */
.about {
  max-width: 640px;
  margin: 3rem auto 4rem;
  padding: 2.5rem 2rem;
  background: var(--paper);
  border: 1px solid var(--phthalo-ink);
  line-height: 1.55;
  font-size: 1.1rem;
}
.about h1 { font-weight: 600; font-size: 2.3rem; line-height: 1.1; }
.about h2 { font-weight: 600; font-size: 1.45rem; margin-top: 2.25rem; line-height: 1.2; }
.about p { margin-top: 0.8rem; }
.about .lede { font-size: 1.25rem; }
.about a { color: var(--phthalo-mid); }
.about figure { margin-top: 1rem; }
.about figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--phthalo-ink);
}
.about figcaption { margin-top: 0.4rem; font-size: 0.95rem; font-style: italic; text-align: center; }
@media (max-width: 520px) {
  .brand img { height: 2.25rem; }
  .wordmark { font-size: 1.5rem; }
  .tagline { display: none; }
}
