:root {
  --color-ink: #0c1b2b;
  --color-body: #1c2a3a;
  --color-muted: #6f7d90;
  --color-silver: #e5ebf3;
  --color-cloud: #f6f7fb;
  --color-primary: #0054cf;
  --color-secondary: #13c6a3;
  --color-highlight: #ffb347;
  --color-danger: #f25f5c;
  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 8px 20px rgba(12, 27, 43, 0.08);
  --shadow-md: 0 15px 45px rgba(12, 27, 43, 0.18);
  --shadow-glow: 0 20px 60px rgba(19, 198, 163, 0.3);
  --font-sans: "Inter", "Source Sans Pro", "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Merriweather", "Playfair Display", Georgia, serif;
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-body);
  background: radial-gradient(circle at 10% 10%, rgba(0, 84, 207, 0.18), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(19, 198, 163, 0.18), transparent 40%),
    #f9fbff;
}

img {
  max-width: 100%;
  border-radius: var(--radius-xs);
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--color-secondary);
  box-shadow: inset 0 -1px 0 currentColor;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23dfe8f7' stroke-width='0.7' opacity='0.35'%3E%3Cpath d='M0 200h400M200 0v400'/%3E%3Cpath d='M0 0h400v400H0z'/%3E%3C/g%3E%3C/svg%3E")
    center/800px;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(246, 247, 251, 0.95));
  z-index: -1;
}

.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(229, 235, 243, 0.7);
  box-shadow: 0 10px 25px rgba(12, 27, 43, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-brand__logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
}

.site-brand__title {
  font-size: clamp(1.45rem, 2.5vw, 2.3rem);
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

nav.site-nav a {
  font-weight: 600;
  color: var(--color-ink);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

nav.site-nav a:hover,
nav.site-nav .is-active {
  background: rgba(0, 84, 207, 0.12);
  color: var(--color-primary);
}

/* Hero */
.hero {
  margin: 3rem auto 2rem;
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 15% 20%, rgba(0, 84, 207, 0.35), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(19, 198, 163, 0.4), transparent 35%),
    var(--color-ink);
  color: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.12'%3E%3Cpath d='M0 100h200M100 0v200'/%3E%3Cpath d='M0 0h200v200H0z'/%3E%3C/g%3E%3C/svg%3E")
    center/contain;
  opacity: 0.4;
}

.hero__content {
  position: relative;
  max-width: 680px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero__title {
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  font-family: var(--font-serif);
  font-weight: 700;
  margin: 0.75rem 0 1rem;
  line-height: 1.2;
}

.hero__lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-secondary), #28f3c4);
  color: #0f232c;
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

/* Sections */
.section {
  margin-top: 3rem;
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-ink);
}

.section__title span {
  color: var(--color-primary);
}

.section__description {
  color: var(--color-muted);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--cards {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(229, 235, 243, 0.8);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(0, 84, 207, 0.12);
  pointer-events: none;
}

.card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
}

.card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0;
}

.card__meta {
  font-size: 0.92rem;
  color: var(--color-muted);
  flex: 1;
}

.card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.card__footer span {
  font-weight: 600;
  color: var(--color-primary);
}

.card--highlight {
  background: linear-gradient(135deg, rgba(0, 84, 207, 0.07), #ffffff);
  border-color: transparent;
}

/* Article list */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article {
  padding: 1.2rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(229, 235, 243, 0.9);
  display: grid;
  gap: 0.45rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-ink);
}

.article__authors {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.article__meta {
  font-size: 0.85rem;
  color: var(--color-primary);
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Sidebar */
.sidebar {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(229, 235, 243, 0.9);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar h4 {
  margin-top: 0;
  color: var(--color-ink);
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.sidebar a {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--color-body);
}

.sidebar a span {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.metric {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(229, 235, 243, 0.9);
  text-align: center;
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.metric__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.metric__label {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Forms */
.pkp_form input[type="text"],
.pkp_form input[type="email"],
.pkp_form input[type="password"],
.pkp_form select,
.pkp_form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(12, 27, 43, 0.15);
  background: rgba(255, 255, 255, 0.95);
  font-family: var(--font-sans);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.pkp_form input:focus,
.pkp_form select:focus,
.pkp_form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 84, 207, 0.25);
}

.pkp_form button,
.pkp_form input[type="submit"] {
  border: none;
  border-radius: var(--radius-xs);
  padding: 0.9rem 1.6rem;
  background: linear-gradient(135deg, var(--color-primary), #0a66ff);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease;
}

.pkp_form button:hover,
.pkp_form input[type="submit"]:hover {
  transform: translateY(-2px);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

thead {
  background: var(--color-primary);
  color: #fff;
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.95rem;
}

tbody tr:nth-child(odd) {
  background: #f7f9fd;
}

tbody tr:hover {
  background: rgba(0, 84, 207, 0.08);
}

/* Footer */
footer.site-footer {
  background: #0c1b2b;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4rem;
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.footer-inner h5 {
  color: #fff;
  margin-top: 0;
}

.footer-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive tweaks */
@media (max-width: 960px) {
  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    padding: 2.25rem;
  }

  .section__header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1.8rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  nav.site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .card,
  .article {
    padding: 1.1rem;
  }

  .site-brand__title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
    letter-spacing: 0.02em;
  }
}

@media (max-width: 420px) {
  .header-inner {
    padding: 1rem 0.75rem;
  }

  .hero__title {
    font-size: 2.3rem;
  }

  .hero__lead {
    font-size: 1rem;
  }
}
