:root {
  color-scheme: dark;
  --bg: #020407;
  --bg-soft: #070b12;
  --panel: #0b111b;
  --panel-strong: #101a2a;
  --text: #f6f8ff;
  --muted: #a7b6c8;
  --faint: #6f8298;
  --line: rgba(92, 184, 255, 0.2);
  --accent: #00a3ff;
  --accent-2: #6bd7ff;
  --warn: #7cc8ff;
  --danger: #ff6b7a;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7fbff;
  --bg-soft: #eef7ff;
  --panel: #ffffff;
  --panel-strong: #e7f4ff;
  --text: #07111f;
  --muted: #516274;
  --faint: #75869a;
  --line: rgba(0, 92, 168, 0.2);
  --accent: #006dff;
  --accent-2: #009dff;
  --warn: #116fb7;
  --danger: #b93245;
  --shadow: 0 18px 48px rgba(16, 20, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(0, 163, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 163, 255, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 88px 88px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: -80px;
  z-index: 100;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--bg);
  background: var(--accent);
  font-weight: 800;
}

.skip-link:focus {
  top: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-soft) 94%, transparent);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 195px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
}

.nav-links a,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 750;
}

.nav-links a[aria-current="page"],
.nav-links a:hover,
.theme-toggle:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  cursor: pointer;
}

.theme-dot {
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-hero h1 {
  max-width: 900px;
}

.page-hero .compact-title {
  max-width: none;
  font-size: clamp(2.7rem, 7vw, 5rem);
}

.page-hero .single-line-title {
  white-space: nowrap;
}

.lead {
  max-width: 730px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel);
  font-size: 14px;
  font-weight: 850;
}

.button.primary {
  color: #06110f;
  border-color: transparent;
  background: var(--accent);
}

.button:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.button.primary:hover {
  color: #06110f;
}

.section,
.page-section {
  padding: 74px 0;
}

.page-hero {
  padding: 94px 0 74px;
  background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
  border-bottom: 1px solid var(--line);
}

.section.alt,
.page-section.alt {
  background: color-mix(in srgb, var(--bg-soft) 78%, transparent);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(260px, 0.42fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2,
.panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.1;
}

.section-heading p,
.panel p,
.card p,
.timeline-item p,
.small-note {
  color: var(--muted);
}

.grid-2,
.grid-3,
.home-layout {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-layout {
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 0.44fr);
  align-items: start;
}

.about-panel {
  display: grid;
  align-content: start;
  padding: 30px;
}

.about-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.08;
}

.about-intro {
  max-width: 730px;
  margin: 18px 0 0;
  color: var(--muted);
}

.about-points {
  display: grid;
  margin-top: 30px;
}

.about-point {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.about-point:first-child {
  padding-top: 0;
  border-top: 0;
}

.about-point:last-child {
  padding-bottom: 0;
}

.about-point h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
}

.about-point p {
  margin: 12px 0 0;
  color: var(--muted);
}

.panel,
.card,
.timeline-item,
.news-panel,
.news-source,
.feed-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: none;
}

.panel,
.card,
.news-panel,
.news-source,
.feed-item {
  padding: 24px;
}

.card h3,
.news-source h3,
.feed-item h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
}

.card p,
.news-source p,
.feed-item p {
  margin: 12px 0 0;
}

.cert-grid {
  align-items: stretch;
}

.cert-card {
  display: flex;
  flex-direction: column;
}

.cert-card h3 {
  margin-top: 0;
}

.cert-card .text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding-top: 16px;
}

.cert-note {
  max-width: 850px;
  margin: -8px 0 28px;
}

.cert-meta {
  color: var(--faint);
  font-size: 13px;
  font-weight: 800;
}

.cert-rating {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
}

.cert-rating span {
  color: var(--faint);
  margin: 0 7px;
}

.project-feature {
  display: grid;
  gap: 26px;
}

.project-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.project-header h2 {
  margin-top: 0;
}

.project-header .tag {
  margin-bottom: 14px;
}

.project-meta,
.project-grid {
  display: grid;
  gap: 12px;
}

.project-meta {
  min-width: 210px;
}

.project-meta span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 54%, transparent);
  font-size: 13px;
  font-weight: 850;
}

.project-summary {
  max-width: 900px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-block {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.project-block h3 {
  margin: 0;
  font-size: 1.08rem;
}

.project-block p {
  margin: 10px 0 0;
  color: var(--muted);
}

.project-validation {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.project-validation h3 {
  margin: 0;
  font-size: 1.18rem;
}

.project-validation > p {
  max-width: 900px;
  margin: 10px 0 0;
  color: var(--muted);
}

.validation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.validation-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 48%, transparent);
}

.validation-grid strong {
  display: block;
}

.validation-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--panel-strong) 70%, transparent);
  font-size: 12px;
  font-weight: 850;
}

.tag.accent {
  color: #06110f;
  border-color: transparent;
  background: var(--accent);
}

.tag.warn {
  color: #06111d;
  border-color: transparent;
  background: var(--warn);
}

.card > .tag,
.news-panel > .tag {
  display: flex;
  width: fit-content;
  margin-bottom: 14px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
}

.timeline-item strong {
  color: var(--accent);
}

.timeline-item h3 {
  margin: 0 0 6px;
}

.simple-heading {
  display: block;
  margin-bottom: 24px;
}

.resume-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: end;
}

.resume-copy {
  max-width: 760px;
}

.resume-download {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 52%, transparent);
}

.resume-download h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
}

.resume-download .button {
  width: 100%;
}

.news-source a,
.feed-item a,
.text-link {
  color: var(--accent);
  font-weight: 850;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.44fr);
  gap: 28px;
  align-items: start;
}

.contact-primary h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.contact-primary p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-link-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 54%, transparent);
}

.contact-link-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.contact-link-card strong {
  color: var(--accent);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.contact-link-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.feed-list {
  display: grid;
  gap: 14px;
}

.news-panel {
  position: sticky;
  top: 94px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 48%),
    color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: var(--shadow);
}

.news-panel h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.08;
}

.news-panel > p {
  margin: 0;
  color: var(--muted);
}

.news-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
}

.news-panel .news-source {
  padding: 14px 0;
  border-width: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.news-panel .news-source:first-child {
  padding-top: 0;
  border-top: 0;
}

.news-panel .news-source:last-child {
  padding-bottom: 0;
}

.news-source h3 {
  font-size: 1rem;
}

.news-source p {
  color: var(--muted);
  font-size: 13px;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 800;
}

.news-source-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-size: 13px;
}

.feed-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.security-score {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.security-score div {
  min-height: 116px;
  padding: 18px;
  background: var(--panel);
}

.security-score strong {
  display: block;
  font-size: 1.8rem;
}

.security-score span {
  color: var(--muted);
  font-size: 13px;
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  font-size: 14px;
}

@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
  }

  .brand {
    min-width: 0;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .section-heading,
  .grid-2,
  .grid-3,
  .project-header,
  .project-grid,
  .validation-grid,
  .home-layout,
  .contact-panel,
  .resume-panel {
    grid-template-columns: 1fr;
  }

  .project-meta {
    min-width: 0;
  }

  .resume-download {
    max-width: 300px;
  }

  .news-panel {
    position: static;
  }

  .page-hero .single-line-title {
    font-size: 3.3rem;
  }

  .security-score {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 18px;
  }

  .nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-links a,
  .theme-toggle {
    padding: 8px 9px;
    font-size: 13px;
  }

  .section,
  .page-section {
    padding: 54px 0;
  }

  .page-hero {
    padding: 62px 0 50px;
  }

  .page-hero .compact-title {
    font-size: 3rem;
  }

  .page-hero .single-line-title {
    font-size: 1.55rem;
  }

  .timeline-item,
  .feed-item {
    grid-template-columns: 1fr;
  }

  .security-score {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .page-hero .single-line-title {
    font-size: 1.32rem;
  }
}
