/* Placeholder palette — the original WordPress.com theme (Appleton) defines
   "foreground"/"background"/"background-light" as theme tokens; their exact
   hex values weren't recoverable from the export. Adjust these three to match. */
:root {
  --color-background: #ffffff;
  --color-background-light: #f4f4f2;
  --color-foreground: #1c2333;
  --color-on-foreground: #ffffff;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-background);
  color: #1a1a1a;
  line-height: 1.6;
}

.site-header {
  padding: 1.5rem 2rem 0.5rem;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  background: var(--color-foreground);
}

.nav-row a {
  flex: 1;
  text-align: center;
  padding: 0.9rem 1rem;
  color: var(--color-on-foreground);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-row a:hover {
  text-decoration: underline;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.page-content--wide {
  max-width: 1300px;
}

.page-content h1, .page-content h2, .page-content h3, .page-content h4 {
  line-height: 1.3;
}

.page-content img {
  max-width: 100%;
  height: auto;
}

.bio-block {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.bio-block img {
  flex: 2 1 320px;
  max-width: 480px;
  border-radius: 4px;
}

.bio-block .bio-text {
  flex: 3 1 400px;
  min-width: 0;
}

.bio-block .map-embeds {
  min-width: 0;
  flex: 2 1 380px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.map-trigger {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: var(--color-background-light);
  cursor: pointer;
  overflow: hidden;
}

.map-trigger:hover {
  background: #ebebe8;
}

.map-trigger--text {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  font-size: 0.95rem;
  color: #333;
}

.map-preview {
  height: 200px;
  width: 100%;
  overflow: hidden;
  position: relative;
  pointer-events: none;
}

.map-preview iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 600px;
  border: none;
  transform: translate(-50%, -50%) scale(0.32);
  pointer-events: none;
}

.map-preview-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.map-trigger-label {
  padding: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #333;
}

.map-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  padding: 2rem;
  flex-direction: column;
}

.map-modal.open {
  display: flex;
}

.map-modal iframe {
  flex: 1;
  width: 100%;
  border: none;
  background: #fff;
}

.map-modal-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
}

.panel-dark {
  background: var(--color-foreground);
  color: var(--color-on-foreground);
  padding: 2rem;
}

.panel-dark a {
  color: var(--color-on-foreground);
}

.panel-light {
  background: var(--color-background-light);
  padding: 2rem;
}

img.img-large {
  max-width: 600px;
}

img.cover-small {
  max-width: 320px;
  display: block;
}

.pdf-embed {
  width: 100%;
  height: 600px;
  border: 1px solid #ddd;
}

.site-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #555;
}
