* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-background: #f5f5f7;
  --color-background-alt: #ffffff;
  --color-text-primary: #0f0f11;
  --color-text-secondary: #4a4a4f;
  --color-accent: #0071e3;
  --color-accent-dark: #004ba8;
  --color-border-soft: rgba(15, 23, 42, 0.08);
  --color-border-strong: rgba(15, 23, 42, 0.12);
  --color-surface-glass: rgba(255, 255, 255, 0.72);
  --color-border-highlight: rgba(255, 255, 255, 0.72);
  --color-border-surface: rgba(255, 255, 255, 0.55);
  --color-glass-tint: rgba(225, 239, 255, 0.42);
  --glass-gradient: linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(245, 245, 247, 0.68));
  --glass-gradient-strong: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(245, 245, 247, 0.82));
  --surface-card: #ffffff;
  --surface-elevated: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(245, 245, 247, 0.7));
  --surface-pill: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));
  --glow-primary: 0 26px 60px rgba(0, 113, 227, 0.18);
  --shadow-soft: 0 22px 48px rgba(15, 23, 42, 0.08);
  --shadow-softer: 0 32px 60px rgba(15, 23, 42, 0.06);
  --backdrop-glass: saturate(180%) blur(20px);
}

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-feature-settings: "kern", "liga", "clig";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.68;
  color: var(--color-text-primary);
  background: linear-gradient(to bottom left, rgba(0, 113, 227, 0.18) 0%, rgba(232, 240, 255, 0.92) 48%, var(--color-background) 75%, var(--color-background-alt) 100%);
  background-attachment: fixed;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1, h2, h3 {
  font-family: "Book Antiqua";
  color: var(--color-text-primary);
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
}
h1 {
  font-size: 1.8rem;
}
h2 {
  font-size: 1.4rem;
}
h3 {
  font-size: 1.2rem;
}

p {
  margin-top: 0;
  margin-bottom: 0.95rem;
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  text-decoration-color: rgba(0, 113, 227, 0.25);
  transition: color 0.2s ease, text-decoration-color 0.2s ease, text-shadow 0.2s ease;
}
a:hover {
  color: var(--color-accent-dark);
  text-decoration-color: rgba(0, 75, 168, 0.4);
  text-shadow: 0 8px 18px rgba(0, 113, 227, 0.2);
}
a:visited {
  color: #0056b3;
}
a:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.35);
  outline-offset: 3px;
}

hr {
  margin-top: 30px;
  margin-bottom: 30px;
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

img {
  max-width: 100%;
  vertical-align: middle;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.7);
}

figure > img {
  display: block;
}

figcaption {
  font-size: 0.875rem;
  color: rgba(15, 23, 42, 0.55);
  text-align: center;
  margin-top: 0.4rem;
}

figure {
  margin-block: 1.6rem;
}

ul, ol {
  margin-left: 30px;
  margin-bottom: 1rem;
}

li > ul,
li > ol {
  margin-bottom: 0;
}

blockquote {
  color: var(--color-text-secondary);
  border-left: 3px solid rgba(0, 113, 227, 0.35);
  padding: 20px 26px;
  font-size: 1rem;
  font-style: italic;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.6));
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  position: relative;
  overflow: hidden;
}

blockquote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 113, 227, 0.16), transparent 45%), radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.08), transparent 55%);
  pointer-events: none;
  mix-blend-mode: screen;
}

blockquote > :last-child {
  margin-bottom: 0;
}

blockquote i,
blockquote em {
  font-style: normal;
}

pre, 
code {
  font-family: "Menlo", "Inconsolata", "Consolas", "Roboto Mono", "Ubuntu Mono", "Liberation Mono", "Courier New", monospace;
  background-color: rgba(245, 245, 247, 0.75);
}

pre {
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.55;
  color: #1f2933;
  background: var(--surface-elevated);
  border: 1px solid var(--color-border-surface);
  border-radius: 20px;
  overflow-x: auto;
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
}

pre > code {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
}

code {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  font-size: 0.95em;
  color: var(--color-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 18px rgba(15, 23, 42, 0.08);
  vertical-align: baseline;
}

/**
 * Shared surfaces
 */
.card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--color-border-highlight);
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  overflow: hidden;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  --card-raise: -4px;
}

.card-hover:hover,
.card-hover:focus-within {
  transform: translateY(var(--card-raise, -4px));
  box-shadow: var(--glow-primary);
  border-color: rgba(0, 113, 227, 0.3);
}

.wrapper {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: 30px;
  padding-top: 18px;
  padding-bottom: 12px;
}

.page-content > .wrapper {
  padding-top: 0px;
  padding-bottom: 0px;
}

.wrapper::after {
  content: "";
  display: table;
  clear: both;
}

table {
  margin-bottom: 32px;
  width: 100%;
  text-align: left;
  color: var(--color-text-primary);
  border-collapse: collapse;
  border: 1px solid var(--color-border-surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--surface-elevated);
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
}

table tr:nth-child(even) {
  background-color: rgba(245, 245, 247, 0.7);
}

table tr:hover {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(0, 113, 227, 0.1));
  transition: background 0.2s ease;
}

table th,
table td {
  padding: 12px 18px;
}

table th {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 245, 247, 0.65));
  border: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

table td {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

table tr:last-child td {
  border-bottom: none;
}
@media screen and (max-width: 800px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
            -ms-overflow-style: -ms-autohiding-scrollbar;
  }
}


/**
 * Site header
 */

.site-header {
  position: relative;
  width: 100%;
  min-height: 44px;
  line-height: 1;
  background: var(--glass-gradient);
  border-top: 1px solid var(--color-border-highlight);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 6px 0;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  z-index: 30;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 35%, rgba(0, 113, 227, 0.08) 85%, rgba(0, 113, 227, 0));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.site-header:hover::after {
  opacity: 1;
}

.site-header .wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 1.68rem;
  font-family: "Book Antiqua";
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  color: var(--color-text-primary);
  letter-spacing: 0.025em;
  text-decoration: none;
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transition: color 0.2s ease, text-shadow 0.3s ease;
}

.site-title:visited {
  color: var(--color-text-primary);
}

.site-title:hover,
.site-title:focus-visible {
  color: var(--color-accent);
  text-shadow: 0 18px 40px rgba(0, 113, 227, 0.28);
}

.site-nav {
  border: none;
  background-color: transparent;
  display: flex;
  gap: clamp(30px, 5vw, 44px);
  align-items: center;
  float: none;
  margin-left: auto;
}

.site-nav label[for="nav-trigger"],
.site-nav #nav-trigger {
  display: none;
}

.site-nav .nav-item {
  font-family: "Book Antiqua";
  font-size: 1.1rem;
  color: var(--color-text-primary);
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-left: 15px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, text-shadow 0.3s ease;
}

.site-nav .nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0.35;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav .nav-item:hover,
.site-nav .nav-item:focus-visible {
  color: var(--color-accent);
  text-shadow: 0 14px 22px rgba(0, 113, 227, 0.24);
}

.site-nav .nav-item:hover::after,
.site-nav .nav-item:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}



/**
 * Site footer
 */
.site-footer {
  border-top: 1px solid var(--color-border-highlight);
  padding: 12px 0 18px 0;
  background: var(--glass-gradient);
  color: var(--color-text-secondary);
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  box-shadow: 0 -12px 24px rgba(15, 23, 42, 0.04);
}

.site-footer .wrapper {
  text-align: left;
  max-width: 860px;
}

.footer-heading {
  font-size: 1.125rem;
  margin-bottom: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  font-weight: 600;
}

.feed-subscribe .svg-icon {
  padding: 5px 5px 2px 0;
}

.contact-list {
  list-style: none;
  margin-left: 0;
}

.footer-col-wrapper {
  font-size: 0.9375rem;
  color: rgba(15, 23, 42, 0.55);
  line-height: 1.7;
}

.footer-col {
  margin-bottom: 18px;
}

.site-footer a {
  color: var(--color-accent);
  text-decoration-color: rgba(0, 113, 227, 0.4);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.site-footer a:hover {
  color: var(--color-accent-dark);
  text-decoration-color: rgba(0, 75, 168, 0.55);
}

.footer-col-1,
.footer-col-2 {
  width: calc(50% - 15px);
}

.footer-col-3 {
  width: calc(100% - 15px);
}

@media screen and (min-width: 800px) {
  .footer-col-1 {
    width: calc(35% - 15px);
  }

  .footer-col-2 {
    width: calc(20% - 15px);
  }

  .footer-col-3 {
    width: calc(45% - 15px);
  }
}

@media screen and (min-width: 600px) {
  .footer-col-wrapper {
    display: flex;
  }

  .footer-col {
    width: calc(100% - 15px);
    padding: 0 15px;
  }

  .footer-col:first-child {
    padding-right: 15px;
    padding-left: 0;
  }

  .footer-col:last-child {
    padding-right: 0;
    padding-left: 15px;
  }
}

.page-content {
  padding-top: 60px;
  padding-bottom: 36px;
  flex: 1 0 auto;
}

.page-heading {
  margin-top: 0.65rem;
  margin-bottom: 2.4rem;
}

.post-list-heading {
  font-size: 1.75rem;
  margin-top: 0.65rem;
  margin-bottom: 1.8rem;
}

.home {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 5vw, 42px);
}

.home-section {
  padding: 32px 36px;
  --card-raise: -3px;
}

.home-section h2 {
  margin-top: 0;
}

.home-section ul {
  margin-left: 1.35rem;
  margin-bottom: 0;
}

.home-section li {
  margin-bottom: 0.65rem;
}

.home-section ul ul {
  margin-top: 0.5rem;
}

.home-section li:last-child {
  margin-bottom: 0;
}

.post-card-list {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4.5vw, 34px);
  margin: 0;
}

.post-card {
  padding: 36px;
}

.post-card h3 {
  margin-top: 0rem;
  margin-bottom: 0rem;
}

.post-meta {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.post-card-link {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  width: 100%;
  height: 100%;
}

.post-card-link:visited {
  color: inherit;
}

.post-card-link h3 {
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--color-text-primary);
  transition: color 0.2s ease, transform 0.2s ease;
}

.post-card-link .post-excerpt {
  color: var(--color-text-secondary);
}

.post-card:hover .post-card-link h3,
.post-card:focus-within .post-card-link h3 {
  color: var(--color-accent);
  transform: translateY(-1px);
}

.post-card:hover .post-meta,
.post-card:focus-within .post-meta {
  color: rgba(0, 113, 227, 0.6);
}

.post-excerpt {
  color: var(--color-text-secondary);
}

.post-excerpt > :first-child {
  margin-top: 0;
}

.post-excerpt > :last-child {
  margin-bottom: 0;
}

/**
 * Responsive helpers
 */

@media screen and (max-width: 600px) {
  pre,
  code {
    font-family: monospace;
  }

  .wrapper {
    padding-inline: 18px;
  }

  .site-title {
    padding-right: 45px;
  }

  .site-header .wrapper {
    align-items: flex-start;
  }

  .site-nav {
    position: absolute;
    top: 9px;
    right: 18px;
    background: var(--surface-pill);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    text-align: right;
    padding: 6px 10px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: var(--backdrop-glass);
    -webkit-backdrop-filter: var(--backdrop-glass);
    display: block;
    margin-left: 0;
  }

  .site-nav label[for="nav-trigger"] {
    display: block;
    float: right;
    width: 36px;
    height: 36px;
    cursor: pointer;
  }

  .site-nav .menu-icon {
    float: right;
    width: 36px;
    height: 26px;
    line-height: 0;
    padding-top: 18px;
    text-align: center;
    color: var(--color-text-primary);
  }

  .site-nav .menu-icon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--color-text-primary);
    transition: color 0.2s ease;
  }

  .site-nav .menu-icon > svg path {
    fill: var(--color-text-primary);
  }

  .site-nav #nav-trigger ~ label[for="nav-trigger"] .menu-icon::before {
    content: "\f0c9";
    font-size: 1.25em;
    color: var(--color-text-primary);
  }

  .site-nav #nav-trigger ~ .nav-items {
    clear: both;
    display: none;
  }

  .site-nav #nav-trigger:checked ~ label[for="nav-trigger"] .menu-icon::before {
    content: "\f00d";
    font-size: 1.5em;
    color: var(--color-accent);
  }

  .site-nav #nav-trigger:checked ~ .nav-items {
    display: block;
    padding-bottom: 5px;
  }

  .site-nav #nav-trigger:checked ~ .nav-items .nav-item {
    margin-left: 20px;
    padding: 5px 10px;
  }

  .site-nav .nav-item {
    display: block;
    padding: 5px 0;
    color: var(--color-text-primary);
    line-height: 1.5;
  }

  .site-nav .nav-item::after {
    display: none;
  }

  .home-section,
  .research-card,
  .post-card {
    padding: clamp(22px, 6vw, 30px);
  }

  .post-header {
    padding: 24px 20px 22px;
  }
}



/**
 * Posts
 */
.post-header {
  margin-bottom: 36px;
  padding: 26px;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  border: 1px solid var(--color-border-surface);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(245, 245, 247, 0.68));
}


.post-meta .bullet-divider {
  padding-inline: 15px;
}

.post-meta .meta-label {
  font-weight: 600;
}

.post-meta .force-inline {
  display: inline;
}

.post-meta .force-inline::before {
  content: "•";
  padding-inline: 5px;
}

.post-meta .post-authors {
  margin-top: 3px;
}

.post-title,
.post-content h1 {
  margin-bottom: 14px;
  margin-top: 20px;
  line-height: 1.2;
}

.post-content {
  margin-bottom: 40px;
  font-size: 1.05rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: var(--color-text-secondary);
}

.post-content p,
.post-content ul,
.post-content ol {
  margin-bottom: 1.2rem;
}

.post-content img {
  margin-block: 1.6rem;
}

.comments-disabled-message {
  text-align: center;
  font-weight: 300;
}


.research-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 4vw, 40px);
}

.research-card {
  padding: 32px 36px 16px 36px;
}

.research-card h2 {
  margin-top: 0px;
  margin-bottom: 1rem;
}
.research-card h3 {
  margin-top: 0px;
  margin-bottom: 1.2rem;
}
.research-card p {
  color: var(--color-text-secondary);
  margin-bottom: 0.8rem;
}

.research-links {
  margin-bottom: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  color: rgba(15, 23, 42, 0.58);
}

.research-links a {
  font-weight: 600;
  color: var(--color-accent);
}

/**
 * Pagination navbar
 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
  list-style-type: none;
  padding: 0;
}

.pagination li {
  float: none;
  margin: 0;
  min-width: 45px;
  min-height: 45px;
  text-align: center;
}

.pagination li a {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: var(--surface-pill);
  color: var(--color-text-primary);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: var(--backdrop-glass);
  -webkit-backdrop-filter: var(--backdrop-glass);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pagination li a:hover {
  border-color: rgba(0, 113, 227, 0.6);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(0, 113, 227, 0.15));
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 113, 227, 0.18);
}

.pagination li a,
.pagination li div {
  min-width: 41px;
  padding: 10px 12px;
  text-align: center;
  box-sizing: border-box;
}

.pagination li div {
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(15, 23, 42, 0.35);
}

.pagination li div.pager-edge {
  color: rgba(15, 23, 42, 0.2);
  border: 1px dashed rgba(15, 23, 42, 0.2);
}

.pagination li div.current-page {
  font-weight: 600;
  background: linear-gradient(160deg, rgba(0, 113, 227, 0.92), rgba(45, 171, 255, 0.92));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 18px 34px rgba(0, 113, 227, 0.38);
}



/**
 * Task-lists
 */

.task-list {
  margin-left: 0;
  padding-left: 18px;
}

.task-list-item {
  list-style-type: none;
}

.task-list-item-checkbox {
  position: relative;
  margin-right: 10px;
  margin-left: -18px;
  appearance: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.86);
  vertical-align: text-top;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 8px rgba(15, 23, 42, 0.12);
}

.task-list-item-checkbox::after {
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  content: "";
  border: solid transparent;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.task-list-item-checkbox:checked::after {
  border-color: #ffffff;
}

.task-list-item-checkbox:checked {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.25);
}



/**
 * Grid helpers
 */
@media screen and (min-width: 800px) {
  .one-half {
    width: calc(50% - 15px);
  }
}
