/* Duskly — public site. The brand system from docs/branding.md, rendered for
   the web. Deliberately plain: these pages exist to be trusted and read. */

:root {
  --bg: #0E1116;
  --surface: #161A21;
  --surface-2: #1D222B;
  --text: #E6E9EF;
  --muted: #9AA3B2;
  --border: #262C36;
  --violet: #7C5CFF;
  --violet-soft: #A78BFF;
  --amber: #FFB35C;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI",
          Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Segoe UI Mono", "Roboto Mono",
          Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

a { color: var(--violet-soft); }
a:hover { color: var(--violet); }
a:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 2px; border-radius: 3px; }

.skip { position: absolute; left: -9999px; background: var(--violet); color: #fff; padding: 10px 16px; }
.skip:focus { left: 0; top: 0; }

header.site {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  margin-bottom: 40px;
}
header.site .wrap { display: flex; align-items: center; gap: 14px; }
header.site img { width: 40px; height: 40px; border-radius: 9px; }
header.site .name { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
header.site nav { margin-left: auto; display: flex; gap: 20px; font-size: 14px; }
header.site nav a { text-decoration: none; color: var(--muted); }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--text); }

.hero { text-align: center; padding: 26px 0 44px; }
.hero img { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 20px; }
.hero h1 { margin: 0 0 10px; font-size: 40px; line-height: 1.15; letter-spacing: -0.03em; }
.hero p.tag { margin: 0 0 26px; font-size: 19px; color: var(--muted); }
.hero .lede { max-width: 56ch; margin: 0 auto 28px; color: var(--muted); }

.btn {
  display: inline-block; text-decoration: none;
  background: var(--violet); color: #fff;
  padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--violet);
}
.btn:hover { background: #6B4BF0; color: #fff; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--violet-soft); background: var(--surface); }

.tiers { display: grid; gap: 14px; margin: 40px 0; }
@media (min-width: 700px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px;
}
.tier h3 { margin: 0 0 4px; font-size: 15px; }
.tier .n { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-soft); }
.tier p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

h1, h2, h3 { letter-spacing: -0.02em; }
h2 { font-size: 22px; margin: 40px 0 12px; padding-top: 8px; }
h3 { font-size: 17px; margin: 28px 0 8px; }
p, li { color: var(--text); }
main p, main li { color: #C6CEDA; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 7px; }

.meta {
  color: var(--muted); font-size: 14px;
  border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 8px;
}

.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--violet);
  border-radius: 10px; padding: 14px 18px; margin: 22px 0;
}
.callout p { margin: 0; }
.callout strong { color: var(--text); }

table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 56px; padding: 26px 0 48px;
  color: var(--muted); font-size: 14px;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer.site nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
