/* The manuals menus: /manuals/df (choose a grinder) and /manuals/df/<model>
   (choose a language). Same palette and type as the country picker. The
   manuals themselves use manual.css. */
:root {
  color-scheme: dark;
  --night: #140f0a;
  --on-dark: #efe7d9;
  --on-dark-soft: #b6a791;
  --on-dark-faint: rgba(239, 231, 217, 0.5);
  --brass-lit: #c79a4f;
  --glass: rgba(239, 231, 217, 0.06);
  --glass-hover: rgba(239, 231, 217, 0.11);
  --rule: rgba(239, 231, 217, 0.14);
  --display: "Fira Sans Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --ui: Inter, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(90% 60% at 90% 0%, rgba(165,118,47,.13), transparent 70%) var(--night);
  color: var(--on-dark);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.page { max-width: 1040px; margin: 0 auto; padding: 44px 56px 32px; }
.logo {
  display: block;
  width: 160px;
  aspect-ratio: 482 / 96;
  background: var(--on-dark);
  -webkit-mask: url(/logo-wordmark.png) left center / contain no-repeat;
          mask: url(/logo-wordmark.png) left center / contain no-repeat;
}
main { padding: 56px 0 48px; }
.back {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 22px;
  color: var(--on-dark-soft);
  font-size: 0.9rem;
  text-decoration: none;
}
.back:hover { color: var(--brass-lit); }
.back svg { width: 16px; height: 16px; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass-lit);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
h1 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.lede {
  margin: 0 0 36px;
  max-width: 32em;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--on-dark-soft);
}

/* the chosen grinder, above the language list */
.chosen { display: flex; align-items: center; gap: 16px; margin: 0 0 28px; }
.chosen .thumb { width: 72px; height: 72px; }
.chosen b { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.chosen span { color: var(--on-dark-soft); font-size: 0.9rem; }

.choices {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
}
.choices.wide { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.choice {
  display: flex; align-items: center; gap: 14px;
  height: 100%;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--glass);
  color: inherit;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}
a.choice:hover { background: var(--glass-hover); border-color: rgba(199,154,79,.65); transform: translateY(-1px); }
a.choice:focus-visible { outline: 2px solid var(--brass-lit); outline-offset: 2px; }
.choice.soon { opacity: .5; }
.thumb {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}
.code {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: var(--brass-lit);
}
.label { flex: 1; min-width: 0; }
.name { display: block; font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.sub { display: block; font-size: 0.82rem; color: var(--on-dark-faint); }
.status {
  flex: none;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-dark-faint);
}
.choice:not(.soon) .status { color: var(--brass-lit); }
.arrow { flex: none; width: 18px; height: 18px; color: var(--on-dark-faint); transition: transform .2s, color .2s; }
a.choice:hover .arrow { transform: translateX(3px); color: var(--brass-lit); }

footer { font-size: 0.78rem; color: var(--on-dark-faint); }
footer a { color: inherit; }

@media (max-width: 760px) {
  .page { padding: 28px 16px; }
  .logo { width: 140px; }
  main { padding: 40px 0 36px; }
  .choices, .choices.wide { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .choice, .arrow { transition: none; }
}
