:root {
  --fw-bg: #f7f5f1;
  --fw-surface: #ffffff;
  --fw-ink: #1c1917;
  --fw-muted: #57534e;
  --fw-line: #e7e5e4;
  --fw-accent: #1a1a1a;
  --fw-accent-2: #4a5568;
  --fw-radius: 12px;
  --fw-shadow: 0 10px 30px rgba(28, 25, 23, 0.06);
  --fw-font: "Source Sans 3", system-ui, sans-serif;
  --fw-display: "Source Serif 4", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body.site-body {
  margin: 0;
  font-family: var(--fw-font);
  color: var(--fw-ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(26, 26, 26, 0.06), transparent 60%),
    linear-gradient(180deg, #fbfaf7 0%, var(--fw-bg) 40%, #f3efe8 100%);
  min-height: 100vh;
}

a { color: var(--fw-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--fw-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.site-brand {
  font-family: var(--fw-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--fw-ink);
  letter-spacing: -0.02em;
  text-decoration: none !important;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--fw-muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--fw-ink);
}

.site-nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--fw-line);
  border-radius: 8px;
  background: var(--fw-surface);
  padding: 0.55rem;
  flex-direction: column;
  justify-content: space-between;
}

.site-nav-toggle span {
  display: block;
  height: 2px;
  background: var(--fw-ink);
  border-radius: 2px;
}

.site-main {
  padding-bottom: 4rem;
}

.site-hero {
  padding: 4.5rem 0 3rem;
}

.site-hero__title {
  font-family: var(--fw-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}

.site-hero__lead {
  max-width: 40rem;
  color: var(--fw-muted);
  font-size: 1.125rem;
  margin: 0 0 1.75rem;
}

.site-section {
  padding: 2.5rem 0;
}

.site-section__title {
  font-family: var(--fw-display);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.site-page-header {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--fw-line);
  margin-bottom: 2rem;
}

.site-page-header h1 {
  font-family: var(--fw-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 0.75rem;
}

.site-page-header p {
  color: var(--fw-muted);
  margin: 0;
  max-width: 42rem;
}

.site-content {
  font-size: 1.05rem;
  line-height: 1.7;
}

.site-content img {
  max-width: 100%;
  height: auto;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.site-card-link {
  display: block;
  background: var(--fw-surface);
  border: 1px solid var(--fw-line);
  border-radius: var(--fw-radius);
  padding: 1.25rem;
  box-shadow: var(--fw-shadow);
  color: inherit;
  text-decoration: none !important;
  transition: transform .2s ease, border-color .2s ease;
}

.site-card-link:hover {
  transform: translateY(-2px);
  border-color: #d6d3d1;
}

.site-card-link h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  font-family: var(--fw-display);
}

.site-card-link p {
  margin: 0;
  color: var(--fw-muted);
  font-size: 0.95rem;
}

.site-form {
  background: var(--fw-surface);
  border: 1px solid var(--fw-line);
  border-radius: var(--fw-radius);
  padding: 1.5rem;
  box-shadow: var(--fw-shadow);
  max-width: 40rem;
}

.site-form .form-label { font-weight: 600; }
.site-form .form-control,
.site-form .form-select {
  border-radius: 8px;
  border-color: #d6d3d1;
}

.btn-fw {
  background: var(--fw-accent);
  border-color: var(--fw-accent);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
}

.btn-fw:hover {
  background: var(--fw-accent-2);
  border-color: var(--fw-accent-2);
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--fw-line);
  background: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0;
  margin-top: auto;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__content { color: var(--fw-muted); margin-top: 0.5rem; }

.site-empty {
  color: var(--fw-muted);
  padding: 2rem 0;
}

.site-nav-prev-next {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--fw-line);
}

@media (max-width: 991.98px) {
  .site-nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--fw-line);
    padding: 0.5rem 1rem 1rem;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--fw-line);
  }

  .site-header { position: relative; }
  .site-header__inner { position: static; }
}
