:root {
  color-scheme: dark;
  --bg: #15181c;
  --text: #ecebe8;
  --muted: #9a978f;
  --accent: #4fb8d9;
  --border: #2f3237;
  --img-border: #f2f1ee;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfaf8;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --accent: #1f6f8b;
  --border: #e3e0da;
  --img-border: #1f1f1f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.site-header nav a { margin-left: 1.25rem; color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }
.seg-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.seg-switch button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}
.seg-switch button:first-child { border-right: 1px solid var(--border); }
.seg-switch button.active { background: var(--text); color: var(--bg); cursor: default; }
.seg-switch button.active:hover { background: var(--text); }
/* Light/Dark buttons always look like their own theme, regardless of which
   theme is currently active, so the toggle reads correctly either way. */
#theme-light-btn.active, #theme-light-btn.active:hover {
  background: #fbfaf8;
  color: #1f1f1f;
  box-shadow: inset 0 0 0 2px var(--text);
}
#theme-dark-btn.active, #theme-dark-btn.active:hover {
  background: #15181c;
  color: #ecebe8;
  box-shadow: inset 0 0 0 2px var(--text);
}
main { padding: 1.5rem; }
main > p, main > blockquote.wp-block-quote, main > ul, main > ol, main > h1, main > h2, main > h3 {
  max-width: 700px;
}
h1, h2, h3 { line-height: 1.3; font-weight: 600; }
h1 { font-size: 1.6rem; margin: 0 0 0.75rem; }
h2 { font-size: 1.3rem; margin: 1.75rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
a { color: var(--accent); }
blockquote.wp-block-quote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: rgba(31,111,139,0.06);
  font-style: italic;
}
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.wp-block-column { flex: 1 1 280px; min-width: 0; }
.wp-block-image {
  display: inline-block;
  vertical-align: top;
  max-width: 100%;
  margin: 0 6px 6px 0;
}
.wp-block-image img { height: 220px; width: auto; max-width: 100%; display: block; border: 4px solid var(--img-border); }
.wp-element-caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
  text-align: center;
}
hr.wp-block-separator { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
iframe { display: block; margin: 1.25rem 0; max-width: 100%; }
main table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
main th, main td {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
main th { font-weight: 600; }
main tbody tr:nth-child(even) { background: color-mix(in srgb, var(--text) 5%, transparent); }
.trip-list { list-style: none; padding: 0; }
.trip-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.trip-list a { font-size: 1.1rem; font-weight: 600; text-decoration: none; color: var(--text); }
.trip-list a:hover { color: var(--accent); }
.trip-list .trip-date { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }
