/* Tips pages (www/tips/**): a simple blog look that matches the landing page.
   Colours, font and button shapes are taken from www/index.html. */

@font-face { font-family: "Satoshi"; src: url(/assets/fonts/satoshi-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url(/assets/fonts/satoshi-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url(/assets/fonts/satoshi-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f5f5f5;
  --text: #000;
  --muted: #4d4d4d;
  --card: #fff;
  --card-border: #e3e3e3;
  --button-border: #bdbdbd;
  --radius-card: 20px;
  --radius-pill: 52px;
  --content-width: 720px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.navbar { max-width: 1080px; margin: 0 auto; padding: 20px; }
.navbar .container-fluid { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.navbar-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none;
}
.navbar-brand img { display: block; width: 36px; height: 36px; }
.link-fancy {
  padding: 8px 18px; border: 1px solid var(--button-border); border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .2s;
}
.link-fancy:hover { background: var(--card); }

/* Article */
main .container { max-width: var(--content-width); margin: 0 auto; padding: 0 20px 80px; }

h1 {
  margin: 48px 0 32px; text-align: center;
  font-size: clamp(34px, 6vw, 52px); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em;
}
h2 { margin: 40px 0 12px; font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 16px; color: var(--muted); }
p.lead { font-size: 20px; line-height: 1.55; color: var(--text); }
strong { font-weight: 500; color: var(--text); }

/* Example replies are white cards, like the landing page's tiles */
.bg-light {
  margin: 0 0 16px; padding: 20px 22px;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius-card);
  color: var(--muted);
}

/* Call to action: the landing page's black pill button */
.btn {
  display: inline-block; padding: 14px 26px;
  background: var(--text); color: #fff; border-radius: var(--radius-pill);
  font-size: 16px; font-weight: 500; line-height: 1.3; text-decoration: none;
  transition: opacity .2s;
}
.btn:hover { opacity: .8; }

/* Bootstrap utility classes still present in the markup */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.py-4 { padding-top: 24px; padding-bottom: 24px; }
.mt-4 { margin-top: 24px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .navbar-brand { font-size: 19px; }
  .link-fancy { padding: 7px 14px; font-size: 14px; }
  h1 { margin-top: 32px; }
}
