/* Editorial personal site – shared styles */
:root {
  --primary: #194cb3;
  --background-light: #ffffff;
  --background-dark: #111621;
  --border-light: #e5e7eb;
  --border-dark: #2d3748;
  --charcoal-border: #333333;
  --publication-bg: #f9f9f9;
  --link-blue: #0047AB;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Work Sans', sans-serif;
  color: #111317;
  background: var(--background-light);
  overflow-x: hidden;
  -webkit-font-smooth: antialiased;
}

.font-serif,
h1, h2, h3, h4, .serif {
  font-family: 'Playfair Display', serif;
}

.editorial-text {
  line-height: 1.8;
}

.justify-editorial {
  text-align: justify;
  text-justify: inter-word;
}

.thin-stroke {
  border-width: 0.5px;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Bio keyword links (blends with text; subtle hover) */
.bio-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.bio-link:hover {
  color: var(--link-blue);
  border-bottom-color: var(--link-blue);
}

/* Inline term links (article body) */
.inline-term {
  font-weight: 700;
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.inline-term:hover {
  color: var(--link-blue);
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #fff;
  max-width: 36rem;
  max-height: 85vh;
  overflow-y: auto;
  margin: 1rem;
  padding: 2rem 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-box .modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.modal-box .modal-close:hover {
  color: #000;
  background: #f0f0f0;
}

.drop-cap::first-letter {
  float: left;
  font-size: 5rem;
  line-height: 0.8;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

/* Edge-aligned header/footer: full width, minimal horizontal padding */
.site-header-inner,
.site-footer-inner {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 12px;
  padding-right: 12px;
}

@media (min-width: 640px) {
  .site-header-inner,
  .site-footer-inner {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Admin panel: editorial, minimal */
.admin-page {
  font-family: 'Work Sans', sans-serif;
  color: #111317;
  background: #fafafa;
  -webkit-font-smooth: antialiased;
}

.admin-page .admin-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
}

.admin-page .admin-section-header {
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem 1.5rem;
}

.admin-page .admin-section-body {
  padding: 1.5rem 1.5rem;
}

.admin-page .admin-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.admin-page input[type="text"],
.admin-page input[type="url"],
.admin-page textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  transition: border-color 0.15s ease;
}

.admin-page input:focus,
.admin-page textarea:focus {
  outline: none;
  border-color: #111317;
}

.admin-page .btn-primary {
  background: #111317;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.admin-page .btn-primary:hover {
  background: #374151;
}

.admin-page .btn-secondary {
  background: transparent;
  color: #111317;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.75rem 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-page .btn-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.admin-page .admin-table th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  background: #fafafa;
}

.admin-page .admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
}

.admin-page .admin-table tbody tr:hover {
  background: #fafafa;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .modal-overlay,
  .inline-term { transition: none; }
}
