/* Astrologie aan de Kade – statische site */

:root {
  --color-bg: #f7f4ef;
  --color-bg-alt: #efe9df;
  --color-text: #2c2a28;
  --color-text-muted: #5a5652;
  --color-accent: #6b5b4f;
  --color-accent-hover: #4a3f36;
  --color-header: #ffffff;
  --color-footer: #2c2a28;
  --color-footer-text: #d8d4ce;
  --color-border: #d4cdc2;
  --font-serif: "Cormorant Garamond", "Georgia", serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --max-width: 960px;
  --header-height: 4.5rem;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(44, 42, 40, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-accent-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header);
  border-bottom: 4px solid var(--color-border);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
}

.site-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-title a {
  color: var(--color-text);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font: inherit;
  cursor: pointer;
  color: var(--color-text);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.main-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.hero img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  object-position: center;
}

/* Main content */
main {
  padding: 2.5rem 0 3rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.prose h2,
.prose h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

.prose em {
  font-style: italic;
}

/* Media layouts */
.media-row {
  display: grid;
  gap: 2rem;
  align-items: start;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .media-row {
    grid-template-columns: 1fr 1fr;
  }

  .media-row--image-right .media-row__image {
    order: 2;
  }

  .media-row--image-right .media-row__text {
    order: 1;
  }
}

.media-row__image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-row__image--portrait img {
  max-width: 340px;
  margin: 0 auto;
}

/* Reviews */
.review {
  margin: 0 0 1.5rem;
}

.review cite {
  display: block;
  margin-top: 0.75rem;
  font-style: italic;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Contact block */
.contact-email {
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--color-footer);
  color: var(--color-footer-text);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
}

.site-footer p {
  margin: 0.25rem 0;
}

.credit-small {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: 1rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-header);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.is-open {
    max-height: 20rem;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 0;
  }
}
