/* --- Chic theme: warm cream, charcoal, gold --- */
:root {
  --bg: #f7f5f2;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5c5652;
  --accent: #9a7b4f;
  --accent-hover: #7d6340;
  --accent-subtle: rgba(154, 123, 79, 0.12);
  --border: #e8e4df;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 0;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: clamp(0.9375rem, 2.5vw, 1rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }

main { min-width: 0; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-hover); }

/* --- Layout --- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 1.75rem);
  width: 100%;
}

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--border);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 400;
  margin: 0 0 2.25rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem clamp(1rem, 4vw, 1.75rem);
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  min-width: 0;
}
.nav > * { align-self: center; }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  line-height: 1;
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.25rem 0;
}
.nav-logo:hover { color: var(--accent); }
.nav-logo span { white-space: nowrap; }
.nav-logo-full { display: none; }
.nav-logo-short { display: inline; }
@media (min-width: 720px) {
  .nav-logo-full { display: inline; }
  .nav-logo-short { display: none; }
}
.nav-links li { display: flex; align-items: center; }
.nav-admin-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  color: var(--text-muted);
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav-admin-icon:hover { color: var(--accent); background: var(--accent-subtle); }
.nav-admin-icon img { display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.nav-links a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem clamp(1rem, 4vw, 1.75rem);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    display: none;
    width: 100%;
    max-width: 100vw;
  }
  .nav-links.open { display: flex; }
  .nav-links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { font-size: 1rem; }
}

/* --- Hero --- */
.hero {
  min-height: min(88vh, 100dvh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 5vw, 1.75rem) clamp(2rem, 5vw, 3.5rem);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}
.hero-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 1.25rem;
  font-weight: 500;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 5.5vw + 0.5rem, 3.6rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: var(--text);
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-tagline {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 540px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-content::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-top: 2.5rem;
  opacity: 0.85;
}
.hero-meta {
  margin-top: 3.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.hero-meta span + span { margin-left: 0.5rem; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  box-sizing: border-box;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- About --- */
.about-grid {
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 700px) {
  .about-grid { grid-template-columns: 1fr 300px; }
}
.about-text .lead {
  font-size: 1.12rem;
  color: var(--text);
  margin-bottom: 1.1rem;
  line-height: 1.6;
}
.about-text p { margin: 0 0 1rem; color: var(--text-muted); }
.about-text p:last-child { margin-bottom: 0; }
.about-highlights ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.about-highlights li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}
.about-highlights li:last-child { border-bottom: none; }
.about-highlights strong { color: var(--accent); }

/* --- Focus cards --- */
.focus-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .focus-grid { grid-template-columns: repeat(3, 1fr); }
}
.focus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2.5vw, 1.75rem);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  min-width: 0;
}
.focus-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-color: var(--accent-subtle);
}
.focus-icon {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.85rem;
  opacity: 0.9;
}
.focus-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 0.6rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.focus-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
  margin-left: 0.4rem;
}
.timeline-item {
  position: relative;
  padding-bottom: 2.25rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -1.625rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
}
.timeline-content { margin-left: 0; }
.timeline-date {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.timeline-content h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 400;
  margin: 0.3rem 0 0.25rem;
  color: var(--text);
}
.timeline-company {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}
.timeline-content p:last-child {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Certifications --- */
.cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.cert-list li {
  padding: 0.85rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  font-size: 0.94rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cert-list li:hover {
  border-color: var(--accent-subtle);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cert-list strong { color: var(--accent); margin-right: 0.5rem; font-weight: 600; }

/* --- Contact --- */
.contact-intro {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 520px;
}
.contact-form {
  max-width: 460px;
  width: 100%;
  margin-bottom: 1.5rem;
  min-width: 0;
}
.contact-form-honey { position: absolute; left: -9999px; }
.contact-form-label {
  display: block;
  margin-bottom: 1.1rem;
}
.contact-form-label span {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}
.contact-form-label input,
.contact-form-label textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.2s ease;
}
.contact-form-label input:focus,
.contact-form-label textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form-label input::placeholder,
.contact-form-label textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}
.contact-form-label textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { margin-top: 0.5rem; }
.contact-form-note {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin: 0;
}
.contact-form-note a { color: var(--accent); }
.contact-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
}
.contact-link:hover { color: var(--accent-hover); }

/* --- Education block --- */
.education-block { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.section-subtitle {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 400;
  color: var(--text);
  margin: 0 0 0.75rem;
}
.education-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.education-list li {
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.education-list li:last-child { border-bottom: none; }
.education-block p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.education-block a { color: var(--accent); }

/* --- Page layout (blog, hobbies) --- */
.page-main .section { border-top: none; }
.container--wide { max-width: 900px; padding: 0 clamp(1rem, 5vw, 1.75rem); width: 100%; }
.container--narrow { max-width: 640px; padding: 0 clamp(1rem, 5vw, 1.75rem); width: 100%; }
.page-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.page-intro {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 2.5rem;
  max-width: 540px;
  line-height: 1.6;
}

/* --- Blog index --- */
.blog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  min-width: 0;
}
@media (min-width: 560px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 2rem 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.blog-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-color: var(--accent-subtle);
}
.blog-card-meta {
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.blog-card-title {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.blog-card-title a { color: var(--text); }
.blog-card-title a:hover { color: var(--accent); }
.blog-card-excerpt {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
  line-height: 1.58;
}
.blog-card-link {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.blog-card-link:hover { color: var(--accent-hover); }

/* --- Blog post --- */
.post { padding: 2.5rem 0 4rem; }
.post-meta {
  font-size: 0.82rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.post-title {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.post-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  line-height: 1.6;
}
.post-body h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 2.25rem 0 0.85rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
.post-body p { margin: 0 0 1.1rem; color: var(--text-muted); line-height: 1.68; }
.post-body p:last-child { margin-bottom: 0; }
.post-back { margin-top: 2.5rem; }
.post-back a { color: var(--accent); font-weight: 500; }
.mermaid-wrap {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
}
.mermaid-wrap .mermaid { display: flex; justify-content: center; }
.theme-dark .mermaid-wrap { background: var(--bg-card); }

/* --- Hobbies --- */
.hobby-block { margin-bottom: 3.5rem; }
.hobby-block:last-of-type { margin-bottom: 0; }
.hobby-heading {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  margin: 0 0 0.85rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.hobby-block p { color: var(--text-muted); margin: 0 0 1rem; line-height: 1.65; }
.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 1rem;
  min-width: 0;
}
.travel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.travel-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: var(--accent-subtle);
}
.travel-card-image {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--border);
}
.travel-card-caption {
  padding: 0.7rem 0.85rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.travel-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}
.travel-note a { color: var(--accent); }

/* --- Footer --- */
.site-footer {
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1rem, 4vw, 1.75rem);
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg-card);
  overflow-wrap: break-word;
}
.site-footer p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.site-footer a { color: var(--accent); }

/* --- Theme toggle --- */
.nav-theme-wrap { display: flex; align-items: center; }
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-icon { font-size: 1rem; line-height: 1; }
.theme-icon-moon { display: none; }
.theme-icon-sun { display: inline; }
.theme-dark .theme-icon-sun { display: none; }
.theme-dark .theme-icon-moon { display: inline; }
.nav-admin { font-weight: 600; color: var(--accent); }

/* --- Dark theme --- */
body.theme-dark {
  --bg: #1a1a1a;
  --bg-card: #242424;
  --text: #f0ede8;
  --text-muted: #a8a49d;
  --accent: #c9a962;
  --accent-hover: #d4b872;
  --accent-subtle: rgba(201, 169, 98, 0.15);
  --border: #3a3834;
}
body.theme-dark .site-header { background: rgba(26, 26, 26, 0.92); }
body.theme-dark .nav-admin-icon img { filter: brightness(0) invert(1); }
body.theme-dark .nav-admin-icon:hover img { filter: brightness(0) invert(1) brightness(1.1); }
body.theme-dark .site-footer { background: var(--bg-card); }
body.theme-dark .focus-card,
body.theme-dark .blog-card,
body.theme-dark .cert-list li,
body.theme-dark .travel-card { box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

/* --- Travel page: flags + country names (cards) --- */
.travel-page .travel-flags {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr));
  gap: clamp(0.75rem, 2vw, 1rem);
  margin: clamp(1.25rem, 4vw, 2rem) 0;
}
.travel-flag-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
}
.travel-flag-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: var(--accent);
}
.travel-flag-img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--border);
}
/* Flag emoji: subtle, top-right corner, transparent (not loud) */
.travel-flag-emoji {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.7;
  pointer-events: none;
  text-shadow: 0 0 8px rgba(255,255,255,0.8), 0 1px 2px rgba(0,0,0,0.15);
}
.travel-flag-name {
  display: block;
  font-size: clamp(0.8rem, 2vw, 0.88rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  padding: 0 0.5rem 0.75rem;
  overflow-wrap: break-word;
  word-break: break-word;
}
.travel-instagram {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
.travel-instagram a { color: var(--accent); font-weight: 500; }
.travel-load-err { color: var(--text-muted); margin: 2rem 0; }

/* --- Modal --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  box-sizing: border-box;
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
}
.modal-box {
  position: relative;
  width: 100%;
  max-width: min(560px, calc(100vw - 2rem));
  max-height: min(90vh, 90dvh);
  overflow: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-sizing: border-box;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { color: var(--text); }
.modal-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 2rem 1rem 0;
  color: var(--text);
}
.modal-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}
.modal-body p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.modal-body strong { color: var(--accent); }

/* --- Admin --- */
.admin-page .admin-block { margin-bottom: 2.5rem; }
.admin-label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
.admin-select {
  width: 100%;
  max-width: 320px;
  padding: 0.6rem 0.85rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 1rem;
}
.admin-form .contact-form-label { max-width: 560px; }
.admin-output {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  overflow: auto;
  max-height: 400px;
  white-space: pre-wrap;
  word-break: break-all;
}
.admin-login-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.admin-login-box {
  width: 100%;
  max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.admin-login-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.admin-login-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
.admin-login-form .contact-form-label { margin-bottom: 1rem; }
.admin-login-form .btn { margin-top: 0.5rem; width: 100%; }
.admin-login-err {
  font-size: 0.9rem;
  color: #c00;
  margin: 0.5rem 0 0;
}
.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.admin-panel-head .page-title { margin: 0; }
.admin-logout { flex-shrink: 0; }
