/* TheBrief — Marketing & Legal Site Styles
   Matches the in-app design language: dark mode first, Playfair for display,
   Inter for body, amber accent. */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0D1117;
  --card: #161B22;
  --border: #21262D;
  --text: #E6EDF3;
  --text-dim: #8B949E;
  --accent: #F59E0B;
  --accent-dim: #D97706;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
  padding: 0;
}

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

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand .dot { color: var(--accent); }

nav a {
  color: var(--text-dim);
  text-decoration: none;
  margin-left: 24px;
  font-size: 15px;
  transition: color 0.15s;
}

nav a:hover, nav a.active { color: var(--accent); }

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}

h3 {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--text);
}

p, ul, ol { margin-bottom: 16px; color: var(--text); }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
a:hover { border-bottom-color: var(--accent); }

strong { color: var(--text); font-weight: 600; }
em { color: var(--text-dim); font-style: italic; }

.meta {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 32px;
}

.tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 32px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}

.card h3 { margin-top: 0; }

.button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.button {
  display: inline-block;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: background 0.15s;
}

.button:hover { background: var(--accent-dim); border: none; }

.button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.button.secondary:hover { background: var(--card); }

footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
}

footer a { color: var(--text-dim); }

@media (max-width: 600px) {
  .wrap { padding: 32px 20px 64px; }
  h1 { font-size: 32px; }
  h2 { font-size: 22px; }
  header { flex-direction: column; align-items: flex-start; gap: 16px; }
  nav a { margin-left: 0; margin-right: 16px; }
}
