/* Drinkuth Software: site styles. Colours and type follow brand/brand.md. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f6f6f9;
  --line: #e6e6ee;
  --ink: #14151c;
  --muted: #5f6472;
  --accent: #5b3df5;
  --accent-ink: #ffffff;
  --accent-soft: #efecff;
  --ph: #fff4d6;
  --ph-ink: #6b4a00;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c11;
    --surface: #13151c;
    --line: #252833;
    --ink: #f4f4f6;
    --muted: #9aa0ae;
    --accent: #a08bff;
    --accent-ink: #0b0c11;
    --accent-soft: #1d1a33;
    --ph: #3a2f10;
    --ph-ink: #ffd98a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header: fixed height on whole pixels, no fractional offsets. */
.top {
  position: sticky; top: 0; z-index: 5;
  height: 64px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; height: 28px; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); }

/* Type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 16px; }
h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 750; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.015em; margin-bottom: 8px; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 640px; }
.eyebrow {
  font: 500 13px/1 var(--mono); letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.muted { color: var(--muted); }

/* Sections */
.hero { padding: 96px 0 72px; }
.hero h1 { max-width: 820px; }
section.block { padding: 72px 0; border-top: 1px solid var(--line); }
.page { padding: 72px 0 96px; }
.page h1 { font-size: clamp(32px, 5vw, 48px); }
.prose { max-width: 720px; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose h3 { margin-top: 28px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 10px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid var(--line); color: var(--ink); background: var(--bg);
}
.btn:hover { background: var(--surface); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }

/* Cards and grids */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px;
}
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 36px; height: 36px; border-radius: 10px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.card .icon svg { width: 20px; height: 20px; }

.product {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px;
}
.product .name { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.product .name img { width: 40px; height: 40px; }
.product .name strong { font-size: 24px; letter-spacing: -0.03em; }
.tag {
  font: 500 12px/1 var(--mono); padding: 5px 8px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--muted);
}
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.features li {
  display: flex; gap: 10px; align-items: baseline;
  padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line);
  font-size: 15px;
}
.features li b { font-weight: 600; }
.features li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); transform: translateY(-2px); }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

mark.ph { background: var(--ph); color: var(--ph-ink); padding: 1px 6px; border-radius: 4px; font-size: 0.92em; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .grid, .grid.two, .product { grid-template-columns: 1fr; }
  .product { padding: 28px; gap: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .brand img { height: 24px; }
  .nav a { padding: 6px 8px; font-size: 14px; }
  .nav .opt { display: none; }
  .hero { padding: 64px 0 48px; }
  section.block, .page { padding: 48px 0; }
  dl.facts { grid-template-columns: 1fr; gap: 2px; }
  dl.facts dd { margin-bottom: 10px; }
}

.gap-top { margin-top: 32px; }
.gap-section { margin-top: 64px; }
.grid.center { align-items: center; }

.name-sm { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.name-sm img { width: 32px; height: 32px; }
.name-sm strong { font-size: 19px; letter-spacing: -0.02em; }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .15s; }
a.card:hover { border-color: var(--accent); }
a.card .name-sm { margin-bottom: 10px; }
a.card p { font-size: 15px; }

/* Prose inside .wrap: keep the left edge of the page, limit only the line length. */
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 720px; }
.block.tight { padding: 48px 0; }
