:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #5c6875;
  --line: #d9e0e8;
  --paper: #ffffff;
  --wash: #f4f6f8;
  --page: #e7ebef;
  --page-deep: #d6dde4;
  --navy: #123047;
  --blue: #1d66d1;
  --green: #287a59;
  --amber: #c67b18;
  --red: #b0382f;
  --radius: 8px;
  --shadow: 0 14px 36px rgba(23, 33, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0, rgba(255, 255, 255, 0) 360px),
    linear-gradient(135deg, var(--page) 0%, #f6f7f8 48%, var(--page-deep) 100%);
  background-attachment: fixed;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body,
button,
input,
textarea,
select {
  font: 16px/1.6 Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5.4rem);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.15rem;
}

.site-header,
.site-footer,
.home-hero,
.page-shell,
.article-shell {
  width: min(100% - 32px, 1160px);
  margin: 0 auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 10px;
  padding: 0 18px;
  border: 1px solid rgba(217, 224, 232, 0.82);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(23, 33, 43, 0.07);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 10px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(18, 48, 71, 0.16));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
  background: var(--wash);
}

.nav-toggle {
  display: none;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 14px;
  font-weight: 700;
}

.home-hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 40px;
  padding: 46px 0 72px;
}

.hero-copy-block {
  display: grid;
  gap: 22px;
}

.hero-copy-block p:not(.eyebrow),
.page-heading p,
.section-heading p {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-primary,
.button-secondary,
.button-danger {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--blue);
  color: #fff;
}

.button-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.button-secondary.is-disabled,
.button-secondary:disabled {
  color: #74808d;
  background: #eef1f4;
  cursor: not-allowed;
}

.button-danger {
  background: var(--red);
  color: #fff;
}

.hero-panel,
.article-card,
.service-card,
.admin-panel,
.login-card,
.preview-frame,
.feature-band article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
}

.hero-logo {
  width: min(100%, 220px);
  justify-self: center;
  border-radius: 24px;
  filter: drop-shadow(0 16px 24px rgba(23, 33, 43, 0.22));
}

.hero-panel span {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.88rem;
}

.hero-panel a {
  padding: 14px;
  border-radius: var(--radius);
  background: var(--wash);
  text-decoration: none;
  font-weight: 800;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  background: rgba(255, 255, 255, 0.56);
  padding: 52px max(16px, calc((100vw - 1160px) / 2));
}

.app-cta-band {
  width: min(100% - 32px, 1160px);
  margin: 0 auto 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}

.app-cta-band p:not(.eyebrow) {
  max-width: 68ch;
  color: rgba(255, 255, 255, 0.78);
}

.app-cta-band .eyebrow {
  color: #76d6a7;
}

.feature-band article {
  padding: 22px;
}

.feature-band p,
.service-card p,
.article-card p,
.article-card span,
.site-footer p,
.breadcrumbs,
.article-meta,
.status-text {
  color: var(--muted);
}

.page-shell,
.article-shell {
  padding: 56px 0;
}

.page-shell,
.article-shell,
.admin-shell {
  background: rgba(255, 255, 255, 0.22);
}

.page-shell.compact {
  padding-top: 68px;
}

.page-heading,
.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 26px;
}

.service-grid,
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-search {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid rgba(217, 224, 232, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 26px rgba(23, 33, 43, 0.06);
}

.blog-search input {
  min-height: 48px;
  font-size: 1rem;
}

.article-card mark {
  border-radius: 4px;
  background: rgba(255, 196, 57, 0.55);
  color: inherit;
  padding: 0 2px;
}

.service-card,
.article-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  text-decoration: none;
}

.article-card h2 {
  font-size: 1.25rem;
}

.article-card h2 a {
  text-decoration: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.94rem;
}

.article {
  max-width: 840px;
}

.article-hero {
  display: grid;
  gap: 14px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 700;
}

.article-content {
  display: grid;
  gap: 18px;
  padding-top: 28px;
  font-size: 1.06rem;
}

.article-content h2 {
  margin-top: 16px;
  font-size: 1.8rem;
}

.article-content h3 {
  margin-top: 8px;
}

.article-content ul {
  margin: 0;
  padding-left: 22px;
}

.article-content a {
  color: var(--blue);
  font-weight: 700;
}

.faq-block {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.related-articles {
  margin-top: 42px;
}

.related-articles h2 {
  margin-bottom: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0;
  border-top: 1px solid rgba(23, 33, 43, 0.12);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 700;
}

.admin-shell {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 32px 0 60px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.admin-panel,
.login-card {
  padding: 20px;
}

.post-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.post-list button {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
}

.editor-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

.field textarea {
  min-height: 320px;
  resize: vertical;
  font-family: Consolas, "Courier New", monospace;
}

.preview-frame {
  min-height: 420px;
  margin-top: 16px;
  padding: 20px;
  overflow: auto;
}

.hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .site-header {
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .home-hero,
  .feature-band,
  .app-cta-band,
  .service-grid,
  .article-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    padding-top: 28px;
  }

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

  .button-primary,
  .button-secondary,
  .button-danger {
    width: 100%;
  }
}
