:root {
  color-scheme: dark;
  --bg: #0d1420;
  --bg-gradient:
    radial-gradient(ellipse 800px 700px at 100% 100%, rgba(0, 41, 102, 0.85) 0%, transparent 70%),
    radial-gradient(ellipse 800px 700px at 0% 0%, rgba(0, 41, 102, 0.85) 0%, transparent 70%),
    radial-gradient(ellipse 560px 340px at 50% 0%, rgba(71, 169, 202, 0.10) 0%, transparent 70%);
  --text: #b4bfcd;
  --text-strong: #eef3f9;
  --text-muted: #8491a3;
  --accent: #47a9ca;
  --accent-hover: #8ad8f0;
  --accent-soft: rgba(71, 169, 202, 0.14);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(71, 169, 202, 0.50);
  --shadow: 0 16px 40px rgba(0, 8, 24, 0.45);
  --selection: rgba(71, 169, 202, 0.35);
  --name-glow: 0 0 36px rgba(71, 169, 202, 0.35);

  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-pill: 999px;

  --ctl-size: clamp(42px, 8vw, 48px);
  --ctl-top: max(20px, env(safe-area-inset-top));
  --ctl-edge: max(20px, env(safe-area-inset-right));
  --ctl-gap: 12px;

  --enter-duration: 750ms;
  --enter-stagger: 70ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f4f7fb;
  --bg-gradient:
    radial-gradient(ellipse 800px 700px at 100% 100%, #dce8ff 0%, transparent 70%),
    radial-gradient(ellipse 800px 700px at 0% 0%, #dce8ff 0%, transparent 70%),
    radial-gradient(ellipse 560px 340px at 50% 0%, rgba(14, 116, 144, 0.07) 0%, transparent 70%);
  --text: #3a4556;
  --text-strong: #0f1e33;
  --text-muted: #5d6a7e;
  --accent: #0e7490;
  --accent-hover: #0a5670;
  --accent-soft: rgba(14, 116, 144, 0.10);
  --surface: rgba(255, 255, 255, 0.70);
  --surface-hover: rgba(255, 255, 255, 0.96);
  --border: rgba(15, 30, 51, 0.12);
  --border-strong: rgba(14, 116, 144, 0.45);
  --shadow: 0 16px 36px rgba(0, 30, 80, 0.12);
  --selection: rgba(14, 116, 144, 0.25);
  --name-glow: none;
}


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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  background-repeat: no-repeat;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--selection);
  color: var(--text-strong);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  line-height: 1.25;
  color: var(--text-strong);
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.main-stuff {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100dvh;
  padding: clamp(5.5rem, 14vh, 8rem) 1.25rem 3rem;
}


.theme-toggle,
#bell-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ctl-size);
  height: var(--ctl-size);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: var(--shadow);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s ease, border-color 0.3s ease, background-color 0.3s ease;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .theme-toggle,
  #bell-btn,
  .nav-link {
    background: var(--bg);
  }
}

@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover,
  #bell-btn:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
  }
}

.theme-toggle:active,
#bell-btn:active {
  transform: scale(0.92);
}

.theme-toggle {
  position: fixed;
  top: var(--ctl-top);
  right: var(--ctl-edge);
  z-index: 9999;
}

.theme-toggle svg,
#bell-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

.theme-toggle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link {
  position: fixed;
  top: var(--ctl-top);
  left: var(--ctl-edge);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  height: var(--ctl-size);
  padding: 0 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-link:hover {
  transform: translateX(-3px);
  border-color: var(--border-strong);
  color: var(--accent-hover);
}


.copyright {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-meta-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-meta-link:hover,
.footer-meta-link:focus-visible {
  opacity: 1;
  color: var(--accent-hover);
}


@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.animate-in {
  animation: pageEnter var(--enter-duration) var(--ease-out) backwards;
}

.stagger > :not(.bell-page) {
  animation: pageEnter var(--enter-duration) var(--ease-out) backwards;
}

.stagger > :nth-child(2) { animation-delay: 70ms; }
.stagger > :nth-child(3) { animation-delay: 140ms; }
.stagger > :nth-child(4) { animation-delay: 210ms; }
.stagger > :nth-child(5) { animation-delay: 280ms; }
.stagger > :nth-child(6) { animation-delay: 350ms; }
.stagger > :nth-child(7) { animation-delay: 420ms; }
.stagger > :nth-child(8) { animation-delay: 490ms; }

.stagger-auto > * {
  animation: pageEnter var(--enter-duration) var(--ease-out) backwards;
  animation-delay: calc(var(--enter-stagger) * var(--i, 0));
}

@media (prefers-reduced-motion: reduce) {
  .animate-in,
  .stagger > *,
  .stagger-auto > * {
    animation: none !important;
  }

  .theme-toggle,
  #bell-btn,
  .nav-link {
    transition: none !important;
  }
}


@media (max-width: 480px) {
  :root {
    --ctl-edge: max(14px, env(safe-area-inset-right));
    --ctl-top: max(14px, env(safe-area-inset-top));
    --ctl-gap: 10px;
  }

  .nav-link {
    padding: 0 0.95rem;
    font-size: 0.82rem;
  }
}


.blogs {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
  max-width: 42rem;
}

.blogs__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-shadow: var(--name-glow);
}

.blogs__lead {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}
.blog-divider {
  display: none;
}


.blog-item {
  position: relative;
  display: grid;
  gap: 0.3rem;
  padding: 1.15rem 3rem 1.25rem 1.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition:
    transform 0.3s var(--ease-out),
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.blog-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  opacity: 0.5;
  transform: scaleY(0.35);
  transition: transform 0.35s var(--ease-out), opacity 0.3s ease;
}

.blog-item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.5rem;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  opacity: 0;
  transform: translate(-6px, -50%) rotate(45deg);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}

.blog-item:hover,
.blog-item:focus-within {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: var(--shadow);
}

.blog-item:hover::before,
.blog-item:focus-within::before {
  opacity: 1;
  transform: scaleY(1);
}

.blog-item:hover::after,
.blog-item:focus-within::after {
  opacity: 1;
  transform: translate(0, -50%) rotate(45deg);
}

.blog-item__date {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.blogs > .blog-item:first-of-type .blog-item__date::after {
  content: "Latest";
  margin-left: 0.65rem;
  padding: 0.1rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.blog-item__link {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-strong);
  text-wrap: balance;
}

.blog-item__link:hover {
  color: var(--accent-hover);
}

.blog-item__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.blog-item__link:focus-visible {
  outline: none;
}

.blog-item:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


.announcement {
  margin: 0 0 0.5rem;
  padding: 0.75rem 1.1rem;
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--accent-soft);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-strong);
}


@media (max-width: 480px) {
  .blog-item {
    padding: 1rem 2.5rem 1.1rem 1.4rem;
  }

  .blog-item__link {
    font-size: 1.04rem;
  }

  .blog-item::after {
    right: 1.1rem;
  }
}

@media (hover: none) {
  .blog-item::before {
    opacity: 0.8;
    transform: scaleY(1);
  }

  .blog-item::after {
    opacity: 0.7;
    transform: translate(0, -50%) rotate(45deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-item,
  .blog-item::before,
  .blog-item::after {
    transition: none;
  }
}


.blogs-page {
  --dot: rgba(138, 216, 240, 0.08);
  isolation: isolate;
}

:root[data-theme="light"] .blogs-page {
  --dot: rgba(14, 116, 144, 0.09);
}

.blogs-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 45%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 45%);
}

.blogs__hero {
  display: grid;
  justify-items: center;
  margin-bottom: 1.5rem;
  text-align: center;
}

.blogs__hero .blogs__title {
  margin: 0 0 0.9rem;
  font-size: clamp(2.6rem, 11vw, 4.2rem);
  letter-spacing: 0.18em;
  padding-left: 0.18em;
}

.blogs__hero .blogs__lead {
  max-width: 28rem;
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
}

.blogs__count {
  margin: 0;
  padding: 0.25rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.blogs__ornament {
  position: relative;
  width: min(100%, 20rem);
  height: 1px;
  margin-top: 1.75rem;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.blogs__ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
  transform: translate(-50%, -50%) rotate(45deg);
}

.blogs__end {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blogs__end a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blogs__end a:hover {
  color: var(--accent-hover);
}

@media (max-width: 480px) {
  .blogs__hero .blogs__lead {
    font-size: 1rem;
  }
}