/* ---- Tokens: change these four values to re-skin the whole site ---- */
:root {
  --ink: #17201c;        /* text */
  --paper: #fbfaf7;      /* background */
  --accent: #1f5d45;     /* links, highlights */
  --line: #e0ddd4;       /* borders */
  --max: 62rem;
  --logo-size: 8%;       /* logo width as % of the header width */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

h1, h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Header ---- */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo {
  width: var(--logo-size);
  min-width: 256px;   /* never smaller than this */
  max-width: 1024px;  /* never larger than this */
  height: auto;
  display: block;
}
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-header nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* ---- Main ---- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero { max-width: 44rem; padding: 2rem 0 1rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 1rem; }
.lede { font-size: 1.2rem; color: #3d4a44; }

.statements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
}
.statement h2 { font-size: 1.2rem; margin: 0 0 0.5rem; }
.statement p { margin: 0; }

/* ---- Gallery ---- */
.gallery { border-top: 1px solid var(--line); padding-top: 2.5rem; }
.gallery h2 { font-size: 1.6rem; margin-top: 0; }
.carousel {
  max-width: 50rem;
  overflow: hidden;
}
.carousel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}
.carousel-slide {
  flex: 0 0 100%;
  margin: 0;
}
.carousel-slide img {
  width: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  display: block;
}
.carousel-slide figcaption {
  font-size: 0.95rem;
  margin-top: 0.6rem;
  color: #3d4a44;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}
.carousel-prev, .carousel-next {
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.15rem 0.7rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
}
.carousel-prev:hover, .carousel-next:hover { border-color: var(--accent); color: var(--accent); }
.carousel-dots { display: flex; gap: 0.5rem; }
.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  cursor: pointer;
}
.carousel-dot[aria-current="true"] { background: var(--accent); }

/* ---- Blog ---- */
.post-list h1, .post h1 { font-size: 2.1rem; }
.post-teaser { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.post-teaser h2 { font-size: 1.35rem; margin: 0.15rem 0 0.4rem; }
.post-teaser h2 a { color: var(--ink); text-decoration: none; }
.post-teaser h2 a:hover { color: var(--accent); }
.post-teaser p { margin: 0; }
.post { max-width: 42rem; }
.post-date {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0;
}
.post img { max-width: 100%; border-radius: 4px; }
.back-link { margin-top: 2.5rem; }

/* ---- Footer ---- */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: #5a655f;
}
