/* Basic page look */
html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
}

body {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 18px;
  font-size: 14px;
}

.brand {
  user-select: none;
}

.nav a {
  color: #000;
  text-decoration: none;
  margin-left: 18px;
}

.nav a:hover {
  text-decoration: underline;
}

/* Centered stage (home) */
.stage {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage img {
  max-width: min(70vw, 520px);
  height: auto;
  display: block;
}

/* Page content wrapper */
.page {
  max-width: 820px;
  margin: 40px auto;
  padding: 0 18px;
  line-height: 1.6;
}

h1 {
  font-size: 18px;
  margin: 0 0 16px;
}

ul {
  padding-left: 18px;
}

/* --- mobile: stack brand above nav (≤480px) --- */
@media (max-width: 480px) {
  .topbar {
    flex-direction: column;
    /* brand on top, nav below */
    align-items: flex-start;
    /* left align */
    gap: 6px;
    padding: 10px 12px;
  }

  .brand {
    font-size: 14px;
  }

  .nav {
    display: flex;
    gap: 14px;
    /* even spacing between links */
    flex-wrap: wrap;
    /* allow wrap on extra-narrow screens */
  }

  .nav a {
    margin-left: 0;
    /* override desktop left margin */
    white-space: nowrap;
    /* keep each link on one line */
    font-size: 14px;
  }

  .stage img {
    max-width: min(90vw, 420px);
    /* scale duck nicely on phones */
  }
}