/* ==========================================================
   site.css — andrzejdyjak.com
   ==========================================================
   Table of contents:
   1. Design tokens
   2. Base / Reset
   3. Layout
   4. Navbar
   5. Hero / Bio
   6. Posts
   7. Footer
   8. Error page (404)
   ========================================================== */

/* ----------------------------------------------------------
   1. Design tokens
   ---------------------------------------------------------- */

:root {
  --rhythm: 1.5rem;
  --color-body: #333;
  --color-heading: #000;
  --color-muted: #6c757d;
  --color-border: #dee2e6;
  --max-width: 720px;
}

/* ----------------------------------------------------------
   2. Base / Reset
   ---------------------------------------------------------- */

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-body);
}

a {
  color: inherit;
  transition: color 0.25s ease;
}

/* ----------------------------------------------------------
   3. Layout
   ---------------------------------------------------------- */

.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ----------------------------------------------------------
   4. Navbar
   ---------------------------------------------------------- */

.navbar {
  margin-bottom: var(--rhythm);
}

.navbar-brand {
  display: inline-block;
  padding-top: var(--rhythm);
  padding-bottom: calc(var(--rhythm) * 0.5);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--color-heading);
}

/* ----------------------------------------------------------
   5. Hero / Bio
   ---------------------------------------------------------- */

.hero {
  padding-top: calc(var(--rhythm) * 2);
  padding-bottom: calc(var(--rhythm) * 2);
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--rhythm);
}

.bio-text {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: var(--rhythm);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.4;
}

.bio-text:last-child {
  margin-bottom: 0;
}

.bio-text a {
  color: var(--color-body);
  text-decoration: underline;
}

.bio-text a:hover {
  color: var(--color-heading);
}

/* ----------------------------------------------------------
   6. Posts
   ---------------------------------------------------------- */

.post-date {
  color: var(--color-muted);
}

/* ----------------------------------------------------------
   7. Footer
   ---------------------------------------------------------- */

.footer {
  margin-top: calc(var(--rhythm) * 2);
  padding-top: var(--rhythm);
  padding-bottom: var(--rhythm);
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  text-align: center;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.footer-icons a {
  color: var(--color-muted);
  transition: color 0.25s ease;
}

.footer-icons a:hover {
  color: var(--color-heading);
}

.footer-copyright {
  font-size: 0.8rem;
  margin: 0;
}

/* ----------------------------------------------------------
   8. Error page (404)
   ---------------------------------------------------------- */

.error-page {
  text-align: center;
  padding-top: calc(var(--rhythm) * 3);
  padding-bottom: calc(var(--rhythm) * 3);
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 var(--rhythm);
}

.error-message {
  font-size: 1.25rem;
}
