/* Public site for alongbrick.vn (GitLab Pages). Plain CSS, no build step. */
:root {
  --bg: #fffdf7;
  --surface: #ffffff;
  --text: #1d1b16;
  --muted: #5f5a4e;
  --line: #ece6d6;
  --accent: #ffd400;
  --accent-ink: #1d1b16;
  --accent-soft: #fff4cc;
  --link: #8a5a00;
  --radius: 14px;
  --max: 760px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15140f;
    --surface: #1e1c16;
    --text: #f3efe3;
    --muted: #b3ac9a;
    --line: #34302565;
    --accent: #ffd400;
    --accent-ink: #15140f;
    --accent-soft: #2c2715;
    --link: #f5c842;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--link); text-underline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 60px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px;
}
.brand img { width: 36px; height: 36px; flex: none; image-rendering: auto; }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 56px 0 32px; }
.hero-logo { display: block; width: 120px; height: 120px; margin: 0 0 20px; }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 4px 10px;
  background: var(--accent-soft); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.hero h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.01em; }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.button {
  display: inline-block; padding: 11px 18px; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 1px solid var(--line);
  color: var(--text); background: var(--surface);
}
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

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

/* Long-form pages */
.doc { padding-top: 40px; padding-bottom: 24px; }
.doc h1 { font-size: clamp(28px, 5vw, 36px); line-height: 1.2; margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.callout {
  background: var(--accent-soft); border-radius: var(--radius);
  padding: 16px 18px; margin: 20px 0;
}
.callout p { margin: 0; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 6px; }

section h2.section { font-size: 22px; margin: 8px 0 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 4px 0; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.site-footer a { color: var(--muted); }
