/* Headings and the wordmark: Nunito, rounder and softer than the Bricolage Grotesque it replaced (Filip, 2026-11-21:
   "too edgy, I need something more round"). Latin subset from Google Fonts, served from here. */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --display: "Nunito", sans-serif;
  --sans: "DM Sans", sans-serif;
  --ink: #292b45;
  --paper: #f6f2ec;
  --muted: #646174;
  --gold: #f3ce8d;
  --edge: max(5vw, calc((100vw - 1280px) / 2), env(safe-area-inset-left), env(safe-area-inset-right));
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}
.masthead {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-inline: var(--edge);
  min-height: 100px;
  padding-block: max(1rem, env(safe-area-inset-top)) 1rem;
  border-bottom: 1px solid #292b4526;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font: 800 1.9rem/1 var(--display);
  letter-spacing: -.035em;
  text-decoration: none;
}
.brand img { display: block; border-radius: 25%; }
.desktop-nav, .header-actions { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.header-actions { justify-content: end; }
.masthead a:not(.brand) { font-size: .9rem; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.masthead a:not(.brand):hover { text-decoration: underline; text-underline-offset: 4px; }
.header-download { border: 1px solid currentColor; padding: .45rem 1.25rem; border-radius: 100px; white-space: nowrap; }
.mobile-menu { display: none; }
.site-footer { padding: 4.5rem var(--edge) 1.25rem; background: #25263e; color: #f5f0e8; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand .brand { font-size: 2.8rem; }
.site-footer nav { display: flex; flex-direction: column; align-items: start; }
.site-footer h2 { font: 500 1rem/1.4 var(--sans); margin: 0 0 .75rem; color: #f3ce8d; }
.site-footer nav a { font-size: .95rem; line-height: 1.5; padding-block: .45rem; text-decoration: none; color: #ded9e5; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; border-top: 1px solid #ffffff20; padding-top: 1.5rem; }
.footer-base, .footer-base small { font-size: .85rem; color: #c4bfd0; }
.footer-base a { text-decoration: none; }
@media (max-width: 60rem) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; justify-self: start; }
  .mobile-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 44px; font-size: .9rem; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary::after { content: ""; width: 12px; height: 7px; border-block: 1px solid currentColor; }
  .mobile-menu nav { position: absolute; inset: calc(100% + 8px) 0 auto; border-radius: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; padding: 1rem 1.5rem; background: #faf7f1; box-shadow: 0 16px 40px #1a19353b; color: var(--ink); }
  .support-link { display: none !important; }
}
@media (max-width: 38rem) {
  .masthead { min-height: 80px; padding-block: max(.6rem, env(safe-area-inset-top)) .6rem; }
  .brand { font-size: 1.75rem; gap: 5px; }
  .brand img { width: 28px; height: 28px; }
  .header-download { padding: .35rem .8rem; }
  .masthead a:not(.brand) { font-size: .8rem; }
  .site-footer { text-align: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem 1rem; }
  .footer-brand, .site-footer nav:last-child { grid-column: 1/-1; }
  .site-footer nav { align-items: center; }
  .footer-base { flex-direction: column; gap: .5rem; }
}
/* Narrow phones (320 points with Display Zoom): the rounder wordmark needs room for "Get the app" beside it. */
@media (max-width: 23rem) {
  .masthead .brand { font-size: 1.5rem; gap: 4px; }
  .masthead .brand img { width: 24px; height: 24px; }
  .masthead a:not(.brand), .mobile-menu summary { font-size: .75rem; }
  .header-download { padding: .3rem .6rem; }
}
