/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/fraunces-700.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/fraunces-500italic.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --color-primary: #1e5f8c;
  --color-primary-dark: #164666;
  --color-primary-light: #eaf2f9;
  --color-accent: #3b82c4;
  --color-warm: #d9784f;
  --color-warm-dark: #b25c37;
  --color-warm-light: #fbebe1;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f9fc;
  --color-text: #1f2937;
  --color-text-muted: #5b6b7c;
  --color-border: #e2e8f0;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;

  --radius-md: 12px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(30, 95, 140, 0.08);
  --shadow-md: 0 8px 24px rgba(30, 95, 140, 0.12);

  --container-width: 1080px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-family: var(--font-serif);
  font-weight: 700;
}
p { margin: 0 0 1em; }
a { color: var(--color-primary); text-decoration: none; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75em 1em;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-dot { color: var(--color-warm); }
.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav a { color: var(--color-text); white-space: nowrap; }
.nav a:hover { color: var(--color-primary); }
.nav-link { display: none; }
.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 0.5em 1.1em;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--color-primary-dark); }

@media (min-width: 640px) {
  .brand { font-size: 1.2rem; }
  .nav-link { display: inline; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
  padding: 3.5rem 0 2.5rem;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero-blob-blue {
  width: 280px;
  height: 280px;
  top: -80px;
  right: -100px;
  background: var(--color-accent);
  opacity: 0.25;
}
.hero-inner {
  max-width: 720px;
  z-index: 1;
}
.hero-wave {
  display: block;
  width: 100%;
  height: 32px;
  position: relative;
  z-index: 1;
}
.hero-photo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.hero-photo img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
}
.hero-content { text-align: center; }
.kicker {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--color-warm-dark);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.hero h1 {
  font-size: 2rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.6rem;
}
.accent-word {
  font-style: italic;
  color: var(--color-warm-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 40 2, 80 2, 100 6 S 160 10, 198 4' fill='none' stroke='%23d9784f' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom 0.02em center;
  background-size: 100% 0.22em;
  padding-bottom: 0.15em;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}
.hero-credential {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  margin-bottom: 0.4rem;
}
.hero-facts {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.hero-facts .fact {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-text);
  padding: 0.2rem 0.8rem;
}
.hero-facts .fact svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.6;
  color: var(--color-primary);
  flex-shrink: 0;
}
.hero-facts .fact-rule {
  width: 1px;
  height: 14px;
  background: var(--color-border);
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--color-primary);
  color: #fff !important;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn-secondary {
  background: #fff;
  color: var(--color-primary-dark) !important;
  border-color: var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-primary); background: var(--color-primary-light); transform: translateY(-2px); }
.btn-lg { padding: 1em 1.6em; font-size: 1rem; }

/* ---------- Sections ---------- */
.section { padding: 3rem 0; }
.section h2 {
  font-size: 1.6rem;
  color: var(--color-primary-dark);
  margin-bottom: 1.25rem;
}
.section-alt { background: var(--color-bg-alt); }
.about-text {
  max-width: 680px;
  color: var(--color-text-muted);
  font-size: 1rem;
}
.about-text p:last-child { margin-bottom: 0; }

.plaques {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.plaque {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  display: flex;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plaque:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.plaque-spine {
  width: 8px;
  background: var(--color-primary);
  flex-shrink: 0;
}
.plaque-body {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 1.3rem;
}
.plaque-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 1.5px solid var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.plaque-icon svg { width: 26px; height: 26px; }
.plaque-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.35rem;
}
.plaque-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-primary-dark);
  margin: 0 0 0.35rem;
}
.plaque-desc {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 0 0 0.5rem;
}
.plaque-authority {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Contact ---------- */
.section-contact { text-align: center; }
.contact-subtitle {
  color: var(--color-text-muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 320px;
  margin: 1.75rem auto 1.25rem;
}
.fine-print {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  text-align: center;
}
.site-footer p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .hero h1 { font-size: 2.5rem; }
  .hero-actions { flex-direction: row; }
  .contact-actions { flex-direction: row; max-width: none; justify-content: center; }
}

@media (min-width: 700px) {
  .hero-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: var(--container-width);
  }
  .hero-photo { margin-bottom: 0; flex-shrink: 0; }
  .hero-photo img { width: 200px; height: 200px; }
  .hero-content { text-align: left; }
  .hero-facts { justify-content: flex-start; }
  .hero-facts .fact:first-child { padding-left: 0; }
  .hero-actions { justify-content: flex-start; }
}

@media (min-width: 768px) {
  .hero { padding: 5rem 0 3.5rem; }
  .hero-blob-blue { width: 380px; height: 380px; top: -120px; right: -120px; }
  .section { padding: 4.5rem 0; }
  .section h2 { font-size: 1.9rem; }
}
