/* Self-hosted type for every page. */
@font-face { font-family: 'Gloock'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/gloock-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/instrument-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/instrument-sans-latin-600-normal.woff2) format('woff2'); }
/* Every page: the type, the colours, the top bar and the footer. */
:root {
  --display: 'Gloock', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --ink: #2b1712;
  --forest: #1d3124;
  --cream: #fff8e9;
  --orange: #e8772e;
  --paper: #f7efdd;
  --nav-h: 60px;
}
@media (min-width: 900px) { :root { --nav-h: 76px; } }
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--forest); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 30; padding: 10px 14px; border-radius: 10px; background: var(--forest); color: var(--cream); font-weight: 600; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* ---- top bar: the brand, the pages, and the install link; on a phone the pages fold into a menu ---- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: var(--nav-h); padding: 0 12px 0 20px; background: rgba(247, 239, 221, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.topbar-brand { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font-family: var(--display); font-size: 27px; letter-spacing: -0.02em; color: inherit; text-decoration: none; }
.topbar-mark { width: 26px; height: 26px; fill: currentColor; }
.topbar-get { display: none; }
.topbar-menu { display: grid; place-content: center; gap: 6px; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 12px; background: none; color: inherit; cursor: pointer; }
.topbar-menu span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform 0.2s ease; }
.topbar.open .topbar-menu span:first-child { transform: translateY(4.25px) rotate(45deg); }
.topbar.open .topbar-menu span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.topbar-links { position: fixed; top: var(--nav-h); left: 0; right: 0; display: flex; flex-direction: column; padding: 8px 20px 28px; background: var(--paper); box-shadow: 0 24px 40px rgba(29, 49, 36, 0.14); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s; }
.topbar.open .topbar-links { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.topbar-links a { padding: 12px 0; border-bottom: 1.5px solid rgba(29, 49, 36, 0.12); font-family: var(--display); font-size: 30px; letter-spacing: -0.02em; color: inherit; text-decoration: none; }
.topbar-links a:last-child { border-bottom: 0; }
.topbar a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }

@media (min-width: 900px) {
  .topbar { gap: 28px; padding: 0 56px; }
  .topbar-menu { display: none; }
  .topbar-links { position: static; flex-direction: row; gap: 30px; padding: 0; background: none; box-shadow: none; visibility: visible; opacity: 1; transform: none; transition: none; }
  .topbar-links a { padding: 0; border: 0; font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0; }
  .topbar .topbar-get { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 12px; background: var(--orange); color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; transition: transform 0.15s ease; }
  .topbar .topbar-get:hover { transform: translateY(-2px); text-decoration: none; }
}

/* ---- footer: every other page of the site, on forest ---- */
.sitefoot { padding: 44px 20px calc(28px + env(safe-area-inset-bottom)); background: var(--forest); color: var(--cream); }
.sitefoot a { color: inherit; text-decoration: none; }
.sitefoot a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.sitefoot :focus-visible { outline-color: var(--cream); }
.sitefoot-top { display: grid; gap: 32px; }
.sitefoot-brand p { margin: 8px 0 0; font-size: 16px; opacity: 0.75; }
.sitefoot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.sitefoot-links div { display: flex; flex-direction: column; gap: 12px; font-size: 16px; font-weight: 500; }
.sitefoot-links strong { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
.sitefoot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 248, 233, 0.2); font-size: 14px; font-weight: 500; opacity: 0.8; }

@media (min-width: 900px) {
  .sitefoot { padding: 56px 56px 32px; }
  .sitefoot-top { grid-template-columns: 1fr auto; gap: 48px; max-width: 1448px; margin: 0 auto; }
  .sitefoot-links { grid-template-columns: repeat(3, auto); gap: 0 72px; }
  .sitefoot-bottom { max-width: 1448px; margin: 48px auto 0; }
}
