/* earbee.org: the landing page and the blog. Colours and fonts are the app's own
   (style.css and src/themes/palettes.js at the top of the repository):
   the EarBee theme, or EarBee Light on a light system. */

@font-face {
  font-family: "Righteous";
  src: url("fonts/righteous-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #0e1014;
  --surface: #161920;
  --surface-2: #1d212a;
  --border: #2a2f3a;
  --text: #e6e8ee;
  --muted: #8b93a7;
  --accent: #f5b301;
  --accent-hover: #ffc52e;
  --accent-ink: #1a1400;
  --wave: #3b4252;
  --start: #5fd38d;
  --accent-text: var(--accent); /* amber as small text: darker on light */
  --glow: color-mix(in srgb, var(--accent) 16%, transparent);

  --display: "Righteous", system-ui, sans-serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --page: min(1120px, 100% - 32px);
  color-scheme: dark;
}

/* EarBee Light: on a light system, or when chosen with the button in
   the top bar (data-theme on <html>, set by the script in the head,
   _includes/base.njk). The two blocks hold the same colours. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f1e8;
    --surface: #fffcf5;
    --surface-2: #efe9dc;
    --border: #ddd3bf;
    --text: #1f1b14;
    --muted: #6b6252;
    --wave: #cfc5b0;
    --start: #1f9d55;
    --accent-text: #8a5d00;
    --glow: color-mix(in srgb, var(--accent) 22%, transparent);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f5f1e8;
  --surface: #fffcf5;
  --surface-2: #efe9dc;
  --border: #ddd3bf;
  --text: #1f1b14;
  --muted: #6b6252;
  --wave: #cfc5b0;
  --start: #1f9d55;
  --accent-text: #8a5d00;
  --glow: color-mix(in srgb, var(--accent) 22%, transparent);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-text);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
/* No lone word on a paragraph's last line. */
p,
li,
dd {
  text-wrap: pretty;
}
/* A key combination (Shift + ]) stays on one line: one box, as nowrap
   alone still lets a line break between the keycaps' boxes. */
.combo {
  display: inline-block;
  white-space: nowrap;
}

code {
  font: 0.86em var(--mono);
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-2);
}

/* Keys look like the app's keycaps. */
kbd {
  display: inline-block;
  min-width: 26px;
  padding: 1px 7px;
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font: 700 13px/1.6 var(--sans);
  text-align: center;
}

.wordmark {
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: 0.01em;
}
.wordmark b {
  font-weight: 400;
  color: var(--accent);
}

/* ---------- Top bar ---------- */

.top {
  width: var(--page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand:hover {
  color: inherit;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}
.top nav a {
  text-decoration: none;
  color: var(--muted);
}
.top nav a:hover {
  color: var(--text);
}

/* Dark or light: shows the moon in the light theme, the sun in the dark. */
.theme-switch {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: -6px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.theme-switch:hover {
  border-color: var(--muted);
  color: var(--text);
}
.theme-switch svg {
  width: 18px;
  height: 18px;
}
.theme-switch .moon {
  display: none;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-switch .sun {
    display: none;
  }
  :root:not([data-theme="dark"]) .theme-switch .moon {
    display: block;
  }
}
:root[data-theme="light"] .theme-switch .sun {
  display: none;
}
:root[data-theme="light"] .theme-switch .moon {
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 56px 0 40px;
}
.kicker {
  margin: 0 0 14px;
  color: var(--accent-text);
  font-weight: 700;
  font-size: 15px;
}
.hero h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  letter-spacing: -0.01em;
}
.lede {
  max-width: 34em;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 19px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.release-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.hero-bee {
  position: relative;
  display: grid;
  place-items: center;
}
/* The app's welcome-screen glow behind the bee. */
.hero-bee::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 420px;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  animation: glow 5s ease-in-out infinite;
}
/* The bee hovers: drifts up and down, tilting a little (not with reduced
   motion; see the end), and the glow breathes with it. */
.hero-bee img {
  position: relative;
  width: min(100%, 230px);
  height: auto;
  transform: rotate(-4deg);
  animation: hover 5s ease-in-out infinite;
}
@keyframes hover {
  0%,
  100% {
    transform: translate(0, 0) rotate(-4deg);
  }
  30% {
    transform: translate(3px, -10px) rotate(-1deg);
  }
  60% {
    transform: translate(-2px, -4px) rotate(-6deg);
  }
}
@keyframes glow {
  0%,
  100% {
    opacity: 0.85;
  }
  30% {
    opacity: 1;
  }
}

.button {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button:hover {
  color: var(--text);
  border-color: var(--muted);
}
.button small {
  font-weight: 600;
  opacity: 0.7;
}
.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 18px;
  padding: 14px 24px;
}
.button.primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}
.button.quiet {
  background: none;
  align-self: center;
}

/* On a phone or tablet ("phone" on <html>, set in the head, _includes/base.njk),
   which can't run EarBee, this note takes the download buttons' place. */
.phone-note {
  display: none;
  max-width: 30em;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 16px;
}
.phone-note strong {
  color: var(--text);
}
.phone-note .button {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.phone .phone-note {
  display: block;
}
.phone .cta {
  display: none;
}

/* ---------- Screenshot ---------- */

.shot {
  width: min(1017px, var(--page)); /* at most this wide, a little under the screenshot's own 1280 px */
  margin: 72px auto 0;
}
.shot-frame {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 30px 80px -30px rgb(0 0 0 / 0.6),
    0 0 0 6px color-mix(in srgb, var(--surface-2) 60%, transparent);
}
.shot picture,
.shot img {
  display: block;
  width: 100%;
  height: auto;
}
.shot figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* A waveform drawn by download.js, played up to the green start point. */
.wave {
  width: var(--page);
  height: 64px;
  margin: 72px auto 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.wave i {
  flex: 1;
  min-width: 1px;
  border-radius: 1px;
  background: var(--wave);
}
.wave i.played {
  background: var(--accent);
}
.wave i.start {
  background: var(--start);
  height: 100% !important;
}

/* ---------- Sections ---------- */

main > section:not(.hero) {
  width: var(--page);
  margin: 0 auto;
  padding: 72px 0 0;
}
/* Free comes right after the hero, so closer to it. */
main > section.free {
  padding-top: 32px;
}
section h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 28px;
}
/* From What it does on, a short amber bar above each section's title. */
.what h2::before,
.keys h2::before,
.themes h2::before,
.download h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: var(--accent);
}
/* The line under a section's title. */
.section-intro {
  max-width: 36em;
  margin: -12px 0 28px;
  color: var(--muted);
}

/* ---------- Beats and looping by the bar ---------- */

.beats h2 {
  font-size: clamp(32px, 4.6vw, 52px);
}
/* A clip and its text side by side, the clip on the left (or, .flip, on
   the right); one under the other on narrow screens, clip first. */
.spotlight {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 48px;
  margin-top: 56px;
}
.spotlight.flip {
  grid-template-columns: 1fr 1.3fr;
}
.spotlight.flip .clip {
  order: 2;
}
.spotlight h3 {
  font-size: clamp(24px, 2.6vw, 30px);
}
.spotlight-text > p {
  margin: 14px 0 0;
  color: var(--muted);
}
.spotlight kbd {
  font-size: 12px;
  padding: 0 6px;
}
/* A list with amber ticks, like the played part of a waveform. */
.ticks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.ticks li {
  position: relative;
  padding: 8px 0 8px 20px;
  border-top: 1px solid var(--border);
  font-size: 16px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 4px;
  height: 13px;
  border-radius: 2px;
  background: var(--accent);
}
.small-print {
  font-size: 14px;
}

/* A clip's frame: the video at its own shape (--ratio, width / height),
   framed like the screenshot. */
.clip {
  position: relative;
  aspect-ratio: var(--ratio, 16 / 10);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 60px -30px rgb(0 0 0 / 0.55);
}
.clip video,
.clip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
}
.features > div {
  position: relative;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 11em 1fr;
  gap: 16px;
}
/* Each item's rule starts amber, like the played part of a waveform. */
.features > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 40px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
}
.features dt {
  font-weight: 800;
}
.features dd {
  margin: 0;
  color: var(--muted);
}
.features dd kbd {
  font-size: 12px;
  padding: 0 6px;
}

.keys {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.keys-intro p {
  color: var(--muted);
  margin: 0;
}
.keylist {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.keylist li {
  display: grid;
  grid-template-columns: 6.6em 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
}
.keylist .k {
  display: flex;
  gap: 4px;
}
.keylist kbd {
  min-width: 24px;
  padding: 1px 6px;
}
.keylist li + li {
  border-top: 1px solid var(--border);
}
.keylist .k + span {
  color: var(--muted);
}

.swatches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.swatches li {
  position: relative;
  padding: 34px 12px 10px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgb(127 127 127 / 0.22);
}
/* A little waveform in each theme's accent. */
.swatches li::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--ac) 0 2px, transparent 2px 4px);
  mask: linear-gradient(90deg, #000 45%, rgb(0 0 0 / 0.25) 45%);
  clip-path: polygon(
    0 40%,
    8% 0,
    15% 50%,
    24% 10%,
    33% 60%,
    41% 20%,
    50% 70%,
    60% 0,
    70% 40%,
    80% 15%,
    90% 55%,
    100% 30%,
    100% 100%,
    0 100%
  );
}

/* Free, the whole thing: four plain promises in two columns. */
.free-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
}
.free-list li {
  padding: 16px 0 16px 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  position: relative;
}
/* A short amber bar marks each, like the played part of a waveform. */
.free-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
}
.free-list strong {
  color: var(--text);
}

.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.platform {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.platform h3 {
  font-size: 26px;
}
.platform .file {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 15px;
}
.platform-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
/* A second download beside the button (the Intel Mac's). */
.platform .alt {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}
.platform .alt small {
  font-weight: 600;
  opacity: 0.7;
}

.platform .hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.platform .hint code {
  display: inline-block;
  white-space: nowrap;
}
/* The visitor's own system (download.js marks it). */
.platform.mine {
  border-color: var(--accent);
}
.platform.mine .button {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.platform.mine h3::after {
  content: "your system";
  margin-left: 10px;
  vertical-align: middle;
  color: var(--accent-text);
  font: 700 12px var(--sans);
}
.elsewhere {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.elsewhere code {
  white-space: nowrap;
}

footer {
  width: var(--page);
  margin: 96px auto 0;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}
footer p {
  margin: 0;
}
/* The blog and its feed, at the end of every page. */
.footer-links {
  display: flex;
  gap: 16px;
  margin-left: auto;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Blog ----------
   The blog's page (blog.njk), a post (_includes/post.njk, its text from
   blog/*.md) and the 404 page: one readable column, in the page's own
   colours and fonts. */

/* "main > section" to outrank the home page's sections (Sections, above). */
main > section.blog,
main > section.not-found,
main > .post {
  width: min(680px, 100% - 32px);
  margin: 0 auto;
  padding-top: 48px;
}
.blog h1,
.post h1,
.not-found h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 20px;
}
.blog .section-intro {
  margin: 0 0 40px;
}

/* The blog's page: the posts, newest first. */
.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-list li {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.post-list h2 {
  font-size: 26px;
  margin: 0;
}
.post-list h2 a {
  text-decoration: none;
}
.post-list p {
  margin: 6px 0 0;
}
.post-list li > p:last-child {
  color: var(--muted);
}

/* Blog, date, reading time. */
.post-head {
  margin-bottom: 28px;
}
.post-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}
.post-list .post-meta {
  margin: 4px 0 0;
}
.post-meta a {
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: none;
}
.draft-note {
  display: inline-block;
  margin: 0;
  padding: 2px 10px;
  border: 1px dashed var(--accent);
  border-radius: 6px;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
}

/* A post's text, from Markdown. */
.post-body {
  font-size: 18px;
  line-height: 1.7;
}
.post-body h2 {
  font-size: 30px;
  margin: 48px 0 12px;
}
.post-body h3 {
  font-size: 22px;
  margin: 32px 0 8px;
}
.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote,
.post-body pre,
.post-body figure {
  margin: 0 0 20px;
}
.post-body li {
  margin-bottom: 6px;
}
.post-body li::marker {
  color: var(--accent-text);
}
.post-body a {
  color: var(--accent-text);
}
.post-body img,
.post-body video {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.post-body figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}
.post-body blockquote {
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--accent);
  color: var(--muted);
}
.post-body pre {
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface-2);
}
.post-body pre code {
  padding: 0;
  background: none;
}
.post-body hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.post-body table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  font-size: 16px;
}
.post-body th,
.post-body td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

/* After the post: EarBee, and a download for the visitor's system. */
.post-cta {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 56px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.post-cta img {
  flex: none;
}
.post-cta p {
  margin: 0 0 16px;
  color: var(--muted);
}
.post-cta strong {
  color: var(--text);
}
.post-cta .phone-note {
  margin: 0;
}

/* ---------- Narrower screens ----------
   Under 1100 px the download buttons fill their cards; under 860 px
   (tablets) the hero's bee goes and everything goes to one column, clips
   above their text; under 600 px (phones) spacing and type tighten, the h1
   wraps by itself, and the top bar drops GitHub, keeping the brand, Blog,
   Download and the theme switch. */

/* Three narrow download cards: every download a full-width button, the
   Mac's two one under the other, rather than wrapping as they fit. */
@media (max-width: 1100px) {
  .platform .button,
  .platform .alt {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }
  .platform-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .platform .alt {
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
  }
  .platform .alt:hover {
    border-color: var(--muted);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }
  /* The bee in the top bar is enough here. */
  .hero-bee {
    display: none;
  }
  .features,
  .keys,
  .platforms,
  .free-list,
  .spotlight,
  .spotlight.flip {
    grid-template-columns: 1fr;
  }
  .spotlight {
    gap: 22px;
    margin-top: 44px;
  }
  .spotlight.flip .clip {
    order: 0;
  }
  .keys {
    gap: 24px;
  }
  .shot {
    margin-top: 48px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
  .top {
    padding: 12px 0;
  }
  .brand img {
    width: 42px;
    height: auto;
  }
  .wordmark {
    font-size: 25px;
  }
  .top nav {
    gap: 10px;
  }
  .top nav a[data-link="repo"] {
    display: none;
  }
  /* A button-sized target for a thumb. */
  .top nav .nav-download {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
  }
  .theme-switch {
    width: 44px;
    height: 44px;
    margin-left: 0;
  }
  .hero h1 br {
    display: none;
  }
  .hero h1 {
    font-size: clamp(36px, 10.5vw, 48px);
  }
  .lede {
    font-size: 17px;
    margin: 18px 0 24px;
  }
  .beats h2 br {
    display: none;
  }
  main > section:not(.hero) {
    padding-top: 56px;
  }
  section h2 {
    margin-bottom: 20px;
  }
  .section-intro {
    margin: -6px 0 22px;
  }
  .features > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .keylist li {
    grid-template-columns: 7em 1fr;
    gap: 10px;
    padding: 10px 14px;
    font-size: 15px;
  }
  .platform {
    padding: 20px;
  }
  .wave {
    margin-top: 48px;
    height: 40px;
  }
  /* The logo beside the text, the links under the text. */
  footer {
    display: grid;
    grid-template-columns: auto 1fr;
    margin-top: 64px;
    align-items: flex-start;
  }
  .footer-links {
    grid-column: 2;
    margin-left: 0;
  }
  main > section.blog,
  main > section.not-found,
  main > .post {
    padding-top: 24px;
  }
  .post-body {
    font-size: 17px;
  }
  .post-cta {
    flex-direction: column;
    padding: 20px;
  }
}

/* Small phones: the top bar, tighter, so its four items stay on one line. */
@media (max-width: 400px) {
  .brand {
    gap: 8px;
  }
  .brand img {
    width: 34px;
  }
  .wordmark {
    font-size: 21px;
  }
  .top nav {
    gap: 8px;
  }
  .top nav .nav-download {
    padding: 0 10px;
  }
}
/* The smallest (320 px): no room for Blog; the footer links to it. */
@media (max-width: 349px) {
  .top nav .nav-blog {
    display: none;
  }
}

/* A narrow window on a computer: the download buttons take the width. */
@media (max-width: 480px) {
  .cta .button {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-bee img,
  .hero-bee::before {
    animation: none;
  }
}
