/* Beetle Apps. One column, left aligned; the beetle's shell is the only loud thing. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/atkinson-hyperlegible-next-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #F4F7F5;
  --ink: #14211C;
  --muted: #56665F;
  --line: #D6E0DA;
  --link: #0B6B63;
  --raised: #FFFFFF;
  --focus: #5B4BC4;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --text: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, sans-serif;
  --measure: 38rem;
  --wide: 56rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121715;
    --ink: #E6EEEA;
    --muted: #9BAAA3;
    --line: #2A3430;
    --link: #5EEAD4;
    --raised: #1B2220;
    --focus: #A79BFF;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--text);
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }
.prose { max-width: var(--measure); }

/* Header and footer */
.site-header { padding-block: 1.5rem; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--ink); text-decoration: none;
  font: 700 1.2rem/1 var(--display); letter-spacing: -0.01em;
}
.brand svg { width: 1.6rem; height: auto; }
.site-nav { display: flex; gap: 1.25rem; font-size: 1rem; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

.site-footer { margin-top: 5rem; border-top: 1px solid var(--line); padding-block: 2rem 3rem; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.site-footer a { color: var(--muted); }

/* Type */
h1, h2, h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 3.9rem); line-height: 1.02; font-weight: 780; letter-spacing: -0.035em; margin: 0 0 1.25rem; font-variation-settings: "opsz" 96; }
h2 { font-size: 1.75rem; line-height: 1.15; font-weight: 720; letter-spacing: -0.02em; margin: 3.5rem 0 1rem; font-variation-settings: "opsz" 48; }
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 680; margin: 2rem 0 0.4rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--muted); max-width: 34rem; }
.muted { color: var(--muted); }

/* Home: the beetle and the studio line */
.hero { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 3rem; align-items: center; padding-block: 3rem 1rem; }
.hero .beetle { width: 100%; }
@media (max-width: 40rem) {
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.5rem; }
  .hero .beetle { width: 7.5rem; }
}

.beetle .ink { fill: var(--ink); }
.beetle .legs { stroke: var(--ink); }
.beetle .sheen { animation: sheen 1.4s 0.3s ease-out both; }
@keyframes sheen {
  from { opacity: 0; transform: translateY(14px); }
}
@media (prefers-reduced-motion: reduce) {
  .beetle .sheen { animation: none; }
}

/* App rows: an icon, a name, what it does */
.apps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.app-row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.25rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.app-row img { width: 4.5rem; height: 4.5rem; border-radius: 22.37%; }
.app-row h3 { margin: 0.1rem 0 0.25rem; font-size: 1.35rem; }
.app-row p { margin: 0 0 0.4rem; color: var(--muted); }

/* App page */
.app-hero { display: flex; align-items: center; gap: 1.5rem; padding-block: 2.5rem 1rem; }
.app-hero img { width: 7.5rem; height: 7.5rem; border-radius: 22.37%; flex: none; box-shadow: 0 1px 0 var(--line); }
.app-hero h1 { margin-bottom: 0.4rem; }
.app-hero p { margin: 0; color: var(--muted); font-size: 1.2rem; }
@media (max-width: 34rem) {
  .app-hero { flex-direction: column; align-items: flex-start; }
}
.status { display: inline-block; margin-top: 1rem; padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.95rem; color: var(--muted); }

.terms { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 0.5rem 1.5rem; margin: 0; }
.terms dt { font-family: var(--display); font-weight: 680; }
.terms dd { margin: 0 0 0.75rem; }
@media (max-width: 34rem) {
  .terms { grid-template-columns: 1fr; }
  .terms dd { margin-bottom: 1rem; }
}

.links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0; margin: 1rem 0 0; list-style: none; }

/* Policy and support text */
.doc h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.4rem; }
code { font-size: 0.92em; background: var(--raised); border: 1px solid var(--line); border-radius: 4px; padding: 0.05em 0.3em; }

details { border-bottom: 1px solid var(--line); padding-block: 0.9rem; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--display); font-weight: 680; font-size: 1.15rem; }
details p { margin: 0.75rem 0 0.25rem; }

.email { font: 700 clamp(1.3rem, 1rem + 1.5vw, 1.8rem)/1.2 var(--display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
