/* Caracara site. Same palette as the app (android/.../ui/theme/Theme.kt).
   Light or dark follows the visitor's system setting, like the app. */
:root {
  --bg: #F4ECDF;          /* Cheek Cream */
  --surface: #FFFDF9;
  --text: #15110E;        /* Crest Black */
  --muted: #6B5A4C;
  --border: #E6DACA;
  --accent: #9A4F06;
  --accent-bg: #FBE3C2;
  --on-accent: #FFFDF9;
  --warn-bg: #FBF0CF;
  --warn-border: #EAD08A;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15110E;
    --surface: #2B231D;   /* Plumage */
    --text: #F4ECDF;
    --muted: #B8AB9C;
    --border: #3B3129;
    --accent: #F7A440;    /* Caracara Amber */
    --accent-bg: #4A3218;
    --on-accent: #15110E;
    --warn-bg: #2F2814;
    --warn-border: #5E4D1A;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.top { padding: 20px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; }
nav a:hover, nav a[aria-current] { color: var(--text); }

main { padding: 24px 0 64px; }
h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.15; margin: 8px 0 16px; }
h2 { font-size: 24px; margin: 48px 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { font-size: 19px; color: var(--muted); max-width: 40em; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 14px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn small { display: block; font-weight: 400; font-size: 13px; opacity: .8; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

ol.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 48px; margin: 0 0 40px; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-bg); color: var(--accent); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
ol.steps h2 { margin: 2px 0 8px; font-size: 21px; }

figure { margin: 16px 0 0; }
figure img {
  display: block; max-width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }

code, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
kbd { font-family: var(--mono); font-size: .85em; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--surface); }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.copy-row code { font-size: 16px; padding: 8px 12px; }
button.copy { font: inherit; font-size: 14px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }

.note { background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 12px; padding: 12px 16px; font-size: 15px; margin: 14px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }

footer { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); margin-right: 16px; }
td:first-child { width: 38%; }
