@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ground: #EDF0EA;
  --paper: #F6F8F4;
  --ink: #1E2B25;
  --ink-2: #4E5C54;
  --pine: #2E6A57;
  --line: #D3DBD1;
  --mara: #9A5640;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #121815;
    --paper: #18201C;
    --ink: #E4EBE5;
    --ink-2: #A6B6AC;
    --pine: #86C5AE;
    --line: #29342E;
    --mara: #E3A58C;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Bricolage", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--pine);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
a:hover { color: var(--pine); }
a:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 3px; }

.page {
  max-width: 980px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header: wordmark, the "o" is a control knob */
.site-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark:hover { color: var(--ink); }
.knob {
  position: relative;
  display: inline-block;
  width: 0.56em;
  height: 0.56em;
  margin: 0 0.035em;
  border: 0.105em solid currentColor;
  border-radius: 50%;
  transform: rotate(35deg);
}
.knob::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.04em;
  width: 0.1em;
  height: 0.17em;
  margin-left: -0.05em;
  border-radius: 0.05em;
  background: var(--pine);
}
@media (prefers-reduced-motion: no-preference) {
  .knob { animation: turn 1.1s cubic-bezier(.2, .8, .2, 1) .25s both; }
  @keyframes turn { from { transform: rotate(-135deg); } to { transform: rotate(35deg); } }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

h1, h2, h3 { font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }

/* Front page */
.intro {
  max-width: 36em;
  padding-top: 72px;
  padding-bottom: 56px;
}
.intro h1 { margin: 0 0 20px; font-size: clamp(34px, 5vw, 50px); }
.intro p { margin: 0; }

.apps { padding-bottom: 96px; }
.apps h2 { margin: 0 0 8px; font-size: 20px; }
.app-entry {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 2px 20px;
  max-width: 36em;
  padding: 16px 20px;
  margin-left: -20px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--ink);
}
.app-entry:hover { background: var(--paper); color: var(--ink); }
.app-entry img { grid-row: span 2; width: 72px; height: 72px; border-radius: 17px; }
.app-entry strong { font-size: 22px; font-weight: 650; letter-spacing: -0.01em; align-self: end; }
.app-entry > span { color: var(--ink-2); }
.app-entry .more { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pine); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* Mara page */
.product-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 24px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 40px;
}
.product-head img { grid-row: span 3; width: 96px; height: 96px; border-radius: 22px; }
.product-head h1 { margin: 0; font-size: clamp(40px, 6vw, 56px); }
.product-head p { margin: 0; font-size: 20px; }
.product-head .status { font-size: 17px; font-weight: 600; color: var(--mara); }

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0 0 64px;
  list-style: none;
}
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}
.shots figcaption { margin-top: 10px; font-size: 16px; color: var(--ink-2); }

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 56px;
  padding-bottom: 48px;
}
.about h2 { margin: 24px 0 6px; font-size: 21px; }
.about p { margin: 0; }

.docs { padding-bottom: 80px; }
.docs ul { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
.docs a { display: inline-flex; align-items: center; min-height: 44px; }

/* Legal page */
.legal { max-width: 36em; padding-top: 72px; padding-bottom: 96px; }
.legal h1 { margin: 0 0 20px; font-size: clamp(34px, 5vw, 48px); }
.imprint {
  margin-top: 64px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.imprint p { margin: 0 0 6px; }

/* Footer */
.site-foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 20px;
  padding-bottom: 40px;
  font-size: 16px;
  color: var(--ink-2);
}
.site-foot::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; border-top: 1px solid var(--line); }
.site-foot p { margin: 0; }
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .intro { padding-top: 40px; }
  .product-head { padding-top: 24px; gap: 4px 16px; }
  .product-head img { width: 72px; height: 72px; border-radius: 17px; }
  .product-head p { font-size: 18px; }
  .shots {
    grid-template-columns: repeat(3, 72%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
    gap: 16px;
  }
  .shots li { scroll-snap-align: center; }
  .about { grid-template-columns: 1fr; }
}
