/* Midland Artist Resource — Canvas design system: museum / editorial */

:root {
  --sage: #4a5d4a;
  --stone-white: #fcfbf9;
  --charcoal: #1a1a1a;
  --stone-muted: #a8a29e;
  --border: rgba(26, 26, 26, 0.08);
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --max: 72rem;
  --radius-soft: 2rem;
  --header-bg: rgba(252, 251, 249, 0.5);
}

*,
*::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.7;
  font-weight: 400;
  color: var(--charcoal);
  background: var(--stone-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sage);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  font-weight: 500;
}

a:hover {
  color: var(--charcoal);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

h1 {
  font-size: clamp(2.125rem, 4.5vw, 3rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.heritage-italic {
  font-style: italic;
  font-weight: 400;
}

.meta-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--stone-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--charcoal);
  text-decoration: none;
}

.logo span {
  font-weight: 400;
  font-style: italic;
  color: var(--sage);
  font-size: 0.85em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.nav a {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
}

.nav a:hover {
  color: var(--sage);
}

.nav a[aria-current="page"] {
  color: var(--sage);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

main.main--home {
  padding-top: 3.5rem;
  padding-bottom: 6rem;
}

.hero {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3rem;
}

.hero__kicker {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--charcoal);
}

/* Bento */
.bento {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .bento--home {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 1.25rem;
  }

  .bento--home .bento__wide {
    grid-column: span 2;
  }

  .bento--home .bento__featured {
    grid-row: span 2;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-soft);
  padding: 2.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 11rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.04);
}

.card:hover {
  border-color: rgba(74, 93, 74, 0.35);
  box-shadow: 0 20px 48px rgba(26, 26, 26, 0.08);
  transform: translateY(-4px);
}

.card--dark {
  background: var(--charcoal);
  color: var(--stone-white);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.25);
}

.card--dark:hover {
  border-color: rgba(74, 93, 74, 0.5);
  box-shadow: 0 24px 56px rgba(26, 26, 26, 0.35);
  transform: translateY(-4px);
}

.card--dark .card__meta {
  color: rgba(252, 251, 249, 0.72);
}

.card h2,
.card h3 {
  font-size: 1.35rem;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.card p {
  font-size: 0.98rem;
  margin: 0;
  flex: 1;
  color: rgba(26, 26, 26, 0.88);
  line-height: 1.65;
}

.card--dark p {
  color: rgba(252, 251, 249, 0.82);
}

.card__cta {
  margin-top: 1.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
}

.card--dark .card__cta {
  color: #b8c9b8;
}

.article {
  max-width: 44rem;
}

.article--wide {
  max-width: 52rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

/* History timeline — vertical path + legacy markers */
.timeline {
  margin: 2.5rem 0 0;
  padding: 0;
}

.timeline__block {
  display: flex;
  gap: 1.35rem;
  padding-bottom: 2.75rem;
  position: relative;
}

.timeline__block:last-child {
  padding-bottom: 0;
}

.timeline__block:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.15rem;
  bottom: 0;
  width: 2px;
  background: rgba(74, 93, 74, 0.28);
}

.timeline-marker {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  background: var(--sage);
  border-radius: 50%;
  margin-top: 0.42rem;
  box-shadow: 0 0 0 4px var(--stone-white);
  z-index: 1;
}

.timeline__content {
  flex: 1;
  min-width: 0;
}

.timeline__content h2 {
  margin-top: 0;
}

.disclaimer-footer {
  margin-top: 2rem;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  background: transparent;
}

.disclaimer-footer__inner {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.disclaimer-footer p:first-of-type {
  font-style: italic;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--stone-muted);
  max-width: 100%;
  margin: 0 auto 1rem;
}

.disclaimer-footer .footer-nav {
  margin-top: 1.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-muted);
}

.footer-nav a {
  color: var(--sage);
  margin: 0 0.5rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.footer-nav a:hover {
  color: var(--charcoal);
}

.note-box {
  background: #fff;
  border: 1px dashed rgba(74, 93, 74, 0.25);
  border-radius: var(--radius-soft);
  padding: 1.5rem 1.75rem;
  font-size: 0.95rem;
  margin: 2rem 0;
}

.event-row {
  display: grid;
  gap: 0.75rem;
  padding: 2rem 2.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-soft);
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.event-row:hover {
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.07);
  transform: translateY(-2px);
}

@media (min-width: 720px) {
  .event-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.event-row h2,
.event-row h3 {
  margin: 0.35rem 0 0;
  font-size: 1.28rem;
}

.event-meta {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--stone-muted);
}

.table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.75rem 0.9rem;
  text-align: left;
}

th {
  background: rgba(74, 93, 74, 0.06);
  font-family: var(--font-serif);
  font-weight: 700;
}

.error-page {
  text-align: center;
  padding: 5rem 1.5rem;
}

.error-page h1 {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

.error-page .error-page__title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.hero-banner {
  border-radius: var(--radius-soft);
  overflow: hidden;
  margin-top: 0.5rem;
}

/* Deep-dive links from guides hub */
.guide-more {
  margin: 1.35rem 0 2.25rem;
  padding: 1.1rem 1.35rem;
  background: rgba(74, 93, 74, 0.08);
  border-radius: var(--radius-soft);
  border-left: 3px solid var(--sage);
  font-size: 0.98rem;
}

.guide-more a {
  font-weight: 600;
  text-decoration: none;
}

.guide-more a:hover {
  text-decoration: underline;
}

.guide-breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone-muted);
  margin-bottom: 1.25rem;
}

.guide-breadcrumb a {
  color: var(--sage);
  font-weight: 600;
  text-decoration: none;
}

.guide-breadcrumb a:hover {
  text-decoration: underline;
  color: var(--charcoal);
}

.guide-index {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}

.guide-index li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.guide-index a {
  font-weight: 600;
}
