/* ROG Cloud — design tokens.
   Deliberately unrelated to any other property: Space Grotesk instead of a
   serif display face, teal instead of amber, a light ground by default.
   Palette: bone white, near-black ink, deep teal primary, clay secondary. */

@font-face {
  font-family: 'Grotesk';
  src: url('/fonts/grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'CodeMono';
  src: url('/fonts/mono.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --ink: #1c1917;
  --line: #e7e5e4;

  --brand: #0f766e;
  --brand-soft: #ccfbf1;
  --brand-dim: #d9f2ee;
  --brand-deep: #115e59;

  --clay: #9a3412;
  --clay-soft: #fef1e7;

  --code-bg: #14201f;
  --code-fg: #d6e5e2;

  --font: 'Grotesk', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --mono: 'CodeMono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r: 12px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 8px 24px rgba(28, 25, 23, .06);
  --maxw: 1080px;
  --pad: clamp(20px, 5vw, 56px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f0f;
    --surface: #151a1a;
    --ink: #e8eae9;
    --line: #262e2d;

    --brand: #2dd4bf;
    --brand-soft: #10302c;
    --brand-dim: #17403a;
    --brand-deep: #5eead4;

    --clay: #fb923c;
    --clay-soft: #2a1c12;

    --code-bg: #080c0c;
    --code-fg: #cfe0dd;
    --shadow: 0 8px 28px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 600; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .92em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.lede { font-size: 18px; line-height: 1.62; color: color-mix(in srgb, var(--ink) 76%, transparent); }
.small { font-size: 14px; color: color-mix(in srgb, var(--ink) 66%, transparent); }
.tiny { font-size: 12.5px; color: color-mix(in srgb, var(--ink) 55%, transparent); }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}

/* ---- controls ---- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; min-height: 44px; border-radius: var(--r);
  border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 600;
  line-height: 1; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-fill { background: var(--brand); color: var(--bg); }
.btn-fill:hover { background: var(--brand-deep); color: var(--bg); }
.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--brand); color: var(--brand); }
.btn-wide { width: 100%; }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px);
}
.raise { box-shadow: var(--shadow); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand-deep);
}
.pill-clay { background: var(--clay-soft); color: var(--clay); }

.inp {
  width: 100%; padding: 11px 14px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 15px; min-height: 44px;
}
.inp:focus { border-color: var(--brand); }
textarea.inp { min-height: 120px; line-height: 1.55; resize: vertical; }
.fld { display: grid; gap: 6px; margin-bottom: 16px; }
.fld label { font-size: 14px; font-weight: 600; }

pre.code {
  margin: 0; padding: clamp(16px, 2.5vw, 24px); border-radius: var(--r-lg);
  background: var(--code-bg); color: var(--code-fg);
  font-family: var(--mono); font-size: 13px; line-height: 1.7; overflow-x: auto;
}

/* ---- shell ---- */

.shell { min-height: 100vh; display: flex; flex-direction: column; }

header.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 18px; padding-block: 13px; }
.logo { display: flex; align-items: center; gap: 9px; margin-right: auto; color: var(--ink); font-weight: 600; }
.logo:hover { text-decoration: none; }
.logo .glyph {
  width: 28px; height: 28px; border-radius: 8px; background: var(--brand);
  display: grid; place-content: center; color: var(--bg); font-size: 14px; font-weight: 700;
}
.logo .name { font-size: 17px; letter-spacing: -.015em; }

.links { display: flex; align-items: center; gap: 24px; }
.links a { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.links a:hover, .links a[aria-current='page'] { color: var(--brand); text-decoration: none; }

.tap {
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r); background: transparent;
  color: var(--ink); cursor: pointer;
}
.drawer {
  border-top: 1px solid var(--line); background: var(--bg);
  padding: 8px var(--pad) 20px; display: grid; gap: 2px;
}
.drawer[hidden] { display: none !important; }
@media (min-width: 861px) { .drawer { display: none !important; } }
.drawer a {
  padding: 13px 4px; font-size: 16.5px; font-weight: 600;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.drawer a:last-of-type { border-bottom: 0; }

.mob { display: none !important; }
@media (max-width: 860px) {
  .mob { display: flex !important; }
  .desk { display: none !important; }
}

main { flex: 1; }
.view { display: none; }
.view.on { display: block; animation: rise .22s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

section.band { padding-block: clamp(44px, 7vw, 88px); }
.cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }

.tile { display: grid; gap: 10px; align-content: start; }
.tile h3 { font-size: 18px; }
.tile p { margin: 0; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--ink) 74%, transparent); }
.mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-content: center;
  background: var(--brand-soft); color: var(--brand-deep); margin-bottom: 2px;
}
.mark.alt { background: var(--clay-soft); color: var(--clay); }

.qa { border-top: 1px solid var(--line); padding-block: 22px; }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa h3 { font-size: 17px; margin-bottom: 8px; }
.qa p { margin: 0; font-size: 15px; line-height: 1.65; color: color-mix(in srgb, var(--ink) 74%, transparent); }

.doc { max-width: 74ch; }
.doc h2 { font-size: 21px; margin: 38px 0 12px; }
.doc h2:first-of-type { margin-top: 26px; }
.doc p, .doc li { font-size: 15.5px; line-height: 1.7; color: color-mix(in srgb, var(--ink) 80%, transparent); }
.doc ul { padding-left: 20px; margin: 10px 0; }
.doc li { margin-bottom: 7px; }
.doc strong { color: var(--ink); }

table.grid { width: 100%; border-collapse: collapse; font-size: 15px; }
table.grid th, table.grid td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--ink) 55%, transparent); }
.scroll { overflow-x: auto; }

footer.base { border-top: 1px solid var(--line); margin-top: auto; }
footer.base .fcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 26px 36px; }
footer.base a { font-size: 14px; color: color-mix(in srgb, var(--ink) 74%, transparent); }
footer.base a:hover { color: var(--brand); }
.fhead { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 50%, transparent); }
