:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-soft: #f1eee6;
  --text: #171717;
  --muted: #6b6b6b;
  --border: #ddd7c8;
  --primary: #171717;
  --primary-hover: #2a2a2a;
  --secondary: transparent;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius: 18px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(221, 215, 200, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

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

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

#app {
  width: 100%;
  min-height: calc(100vh - 72px);
}

.page {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

.muted {
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-subhead {
  max-width: 60ch;
  font-size: 1.05rem;
  color: #3b3b3b;
}

.panel,
.card,
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 2rem;
  background: linear-gradient(180deg, #fffdf9 0%, #f4f0e6 100%);
}

.logo-large {
  width: min(100%, 320px);
  object-fit: contain;
}

.buttons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--surface-soft);
}

.spacer {
  height: 3rem;
}

.photo-grid,
.cards,
.two-col {
  display: grid;
  gap: 1.25rem;
}

.photo-grid {
  grid-template-columns: repeat(3, 1fr);
}

.photo {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.caption {
  padding: 1rem 1rem 1.1rem;
}

.caption strong {
  display: inline-block;
  margin-bottom: 0.35rem;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  padding: 1.25rem;
}

.card strong {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.two-col {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.contact-box {
  max-width: 720px;
  padding: 2rem;
}

.article-view {
  max-width: 820px;
}

.article-content {
  padding: 1.5rem;
}

.article-content h2 {
  margin-top: 2rem;
}

.article-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0 1.5rem;
}

.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo-panel {
    min-height: 260px;
  }

  .page {
    padding: 2rem 0 3rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0.9rem 0;
  }

  .site-nav {
    gap: 0.85rem;
  }

  h1 {
    line-height: 1.08;
  }

  .buttons {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .card,
  .contact-box,
  .article-content {
    padding: 1.1rem;
  }

  .spacer {
    height: 2rem;
  }
}
