/* Arte Mentis — shared styles. No build step; page-specific rules live in each page's <style> block. */

:root {
  --tile: #B5543B;
  --tile-deep: #9C4732;
  --ink: #241D18;
  --paper: #FBF8F4;
  --paper-deep: #F4EEE6;
  --muted: #6E635A;
  --rule: #E3DACE;
  --rule-soft: #ECE4D9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.1875rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--tile); color: var(--paper); }

.wrap   { max-width: 46rem;  margin: 0 auto; padding: 0 1.5rem; }
.wrap-w { max-width: 60rem;  margin: 0 auto; padding: 0 1.5rem; }

a { color: var(--tile); }
a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--tile);
  outline-offset: 3px;
}

/* ---------- header ---------- */

header.site {
  padding: 4rem 0 0;
  text-align: center;
}
a.wordmark-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}
.wordmark {
  font-weight: 500;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--tile);
  /* balance the trailing tracking after the final S */
  padding-left: 0.17em;
}
.tagline {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.06em;
}
.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 1.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 140ms ease;
  padding-bottom: 0.2rem;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--tile);
  border-bottom: 2px solid var(--tile);
}
header.site::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  background: var(--tile);
  margin: 2.4rem auto 0;
}

/* ---------- page intro (subpages) ---------- */

.intro {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}
.intro h1 {
  font-weight: 500;
  font-size: clamp(2.1rem, 5.5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
.intro p.lede {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 33em;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ---------- section furniture ---------- */

section { padding: 4.5rem 0; }
section.band {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
section.band + section { border-top: 0; }

h2.kicker {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tile);
  text-align: center;
  margin-bottom: 3rem;
  padding-left: 0.24em;
}

a.button {
  display: inline-block;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--tile);
  text-decoration: none;
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  transition: background 140ms ease;
}
a.button:hover { background: var(--tile-deep); }

/* ---------- spot illustrations ---------- */

.spot { margin: 3.6rem auto 0; text-align: center; }
.spot svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.spot figcaption {
  margin: 1.3rem auto 0;
  max-width: 30em;
  font-style: italic;
  color: var(--muted);
  font-size: 1.02rem;
  text-wrap: pretty;
}
.carve { stroke: var(--paper); fill: none; stroke-linecap: round; }
.band .carve { stroke: var(--paper-deep); }
.inkline { stroke: var(--ink); fill: none; stroke-linecap: round; }
section.spot-close { padding: 0 0 5rem; text-align: center; }
section.spot-close .spot { margin-top: 0.5rem; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--rule);
  padding: 2.6rem 0 3.4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
}
footer .fm {
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--tile);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  padding-left: 0.17em;
}
footer .footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.92rem;
}
footer .footer-links a {
  color: var(--muted);
  text-decoration: none;
}
footer .footer-links a:hover {
  color: var(--tile);
  text-decoration: underline;
}

/* ---------- responsive ---------- */

@media (max-width: 40rem) {
  body { font-size: 1.12rem; }
  header.site { padding-top: 3rem; }
  .intro { padding: 3rem 0 2.5rem; }
  section { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.button, .site-nav a { transition: none; }
}
