:root {
  --site-ink: #17202a;
  --site-muted: #667085;
  --site-line: #d9e2df;
  --site-panel: #ffffff;
  --site-bg: #f5f7f6;
  --site-accent: #16706b;
  --site-accent-2: #b86f22;
}

body {
  background: var(--site-bg);
  color: var(--site-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

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

#header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

#banner {
  min-height: 300px;
}

#banner:after {
  background:
    radial-gradient(ellipse at center, rgba(5, 10, 18, 0.62) 0%, rgba(5, 10, 18, 0.34) 34%, rgba(5, 10, 18, 0.08) 62%, rgba(5, 10, 18, 0) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.22) 54%, rgba(0, 0, 0, 0.08) 100%);
}

#logo {
  font-size: 42px;
  line-height: 1.05;
  font-weight: 750;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72), 0 1px 3px rgba(0, 0, 0, 0.84);
}

#subtitle {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.5;
  max-width: 680px;
  display: inline-block;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.88), 0 1px 3px rgba(0, 0, 0, 0.95);
}

#main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav-link {
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  margin: 0 2px;
  padding: 11px 14px;
  transition: background 0.18s ease, color 0.18s ease;
}

.main-nav-link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  text-decoration: none;
}

#main {
  padding-top: 32px;
}

.article,
.archive-article,
.widget-wrap {
  border: 1px solid var(--site-line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(24, 37, 43, 0.06);
}

.article {
  margin-bottom: 28px;
}

.article-inner {
  border-radius: 8px;
}

.article-title,
.archive-article-title {
  color: var(--site-ink);
  font-weight: 720;
}

.article-title:hover,
.archive-article-title:hover {
  color: var(--site-accent);
  text-decoration: none;
}

.article-entry {
  color: #28323d;
  font-size: 16px;
  line-height: 1.78;
}

.article-entry h2,
.article-entry h3 {
  color: var(--site-ink);
  letter-spacing: 0;
}

.article-entry blockquote {
  border-left-color: var(--site-accent);
  background: #f1f7f5;
  color: #33413d;
}

.article-entry code {
  background: #eef5f3;
  border: 1px solid #d8e7e2;
  border-radius: 4px;
  color: #17202a;
  font-family: "Source Code Pro", Consolas, monospace;
  font-size: 0.92em;
  line-height: 1.4;
  padding: 0.08em 0.28em;
  white-space: normal;
}

.article-entry blockquote code {
  background: rgba(255, 255, 255, 0.72);
}

.article-entry .equation-block {
  background: #f6faf9;
  border: 1px solid #d5e4df;
  border-left: 4px solid var(--site-accent);
  border-radius: 8px;
  color: #17202a;
  font-family: "Source Code Pro", Consolas, monospace;
  font-size: 18px;
  line-height: 1.75;
  margin: 22px 0;
  overflow-x: auto;
  padding: 18px 22px;
}

.article-entry .equation-block div {
  display: grid;
  grid-template-columns: minmax(72px, max-content) 28px minmax(220px, 1fr);
  gap: 10px;
  white-space: nowrap;
}

.article-entry .equation-block .eq-left {
  color: #115b57;
  font-weight: 650;
}

.article-entry .equation-block .eq-op {
  color: var(--site-accent-2);
  text-align: center;
}

.article-entry figure.highlight,
.article-entry .highlight {
  background: #f6faf9 !important;
  border: 1px solid #d5e4df;
  border-radius: 8px;
  color: #17202a !important;
  margin: 20px 0;
  overflow-x: auto;
}

.article-entry figure.highlight .gutter,
.article-entry .highlight .gutter {
  display: none;
}

.article-entry figure.highlight table,
.article-entry .highlight table {
  background: transparent !important;
  border: 0;
  width: auto;
}

.article-entry figure.highlight td,
.article-entry .highlight td,
.article-entry figure.highlight pre,
.article-entry .highlight pre,
.article-entry figure.highlight code,
.article-entry .highlight code,
.article-entry figure.highlight .line,
.article-entry .highlight .line {
  background: transparent !important;
  color: #17202a !important;
}

.article-entry figure.highlight pre,
.article-entry .highlight pre,
.article-entry figure.highlight code,
.article-entry .highlight code {
  font-size: 14px;
  line-height: 1.55;
}

.article-entry figure.highlight td,
.article-entry .highlight td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.article-entry table {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}

.article-entry th {
  background: #edf4f2;
}

.article-entry th,
.article-entry td {
  border: 1px solid #d8e3df;
  padding: 9px 11px;
}

.article-meta,
.article-category,
.article-tag-list,
.archive-article-date {
  color: var(--site-muted);
}

.article-category a,
.article-tag-list-link {
  border: 1px solid #cfe1dc;
  border-radius: 999px;
  color: var(--site-accent);
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  margin: 2px 4px 2px 0;
  padding: 6px 9px;
}

.article-category a:hover,
.article-tag-list-link:hover {
  background: #e8f3f0;
  text-decoration: none;
}

.article-more-link a {
  background: var(--site-accent);
  border-radius: 999px;
  color: #ffffff;
  display: inline-block;
  font-weight: 650;
  padding: 9px 14px;
}

.article-more-link a:hover {
  background: #115b57;
  text-decoration: none;
}

.quant-lock-panel {
  background: #f6faf9;
  border: 1px solid #d5e4df;
  border-radius: 8px;
  margin: 8px 0 24px;
  max-width: 720px;
  padding: 28px;
}

.quant-lock-panel h1 {
  margin-top: 0;
}

.quant-muted {
  color: var(--site-muted);
  line-height: 1.65;
}

.quant-form label {
  color: var(--site-ink);
  display: block;
  font-weight: 650;
  margin: 18px 0 8px;
}

.quant-input-row {
  display: flex;
  gap: 10px;
  max-width: 520px;
}

.quant-input-row input {
  border: 1px solid #c8d8d4;
  border-radius: 8px;
  flex: 1;
  font-size: 16px;
  min-width: 0;
  padding: 11px 12px;
}

.quant-input-row button {
  background: var(--site-accent);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  padding: 0 18px;
}

.quant-input-row button:hover {
  background: #115b57;
}

.quant-form .quant-remember {
  align-items: center;
  color: var(--site-muted);
  display: flex;
  font-weight: 500;
  gap: 8px;
  margin-top: 14px;
}

.quant-error {
  color: #b42318;
  min-height: 24px;
}

.quant-content {
  background: #ffffff;
  border: 1px solid var(--site-line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(24, 37, 43, 0.06);
  padding: 28px;
}

.quant-content h1 {
  margin-top: 0;
}

.quant-page .article-footer,
.quant-page .article-share-link,
.quant-page .article-tag-list,
.quant-page #article-nav {
  display: none;
}

.widget-title {
  color: var(--site-ink);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.widget a {
  color: #34413f;
}

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

#footer {
  background: #102033;
  color: rgba(255, 255, 255, 0.72);
}

#footer a {
  color: #d9f3ee;
}

@media (max-width: 760px) {
  #logo {
    font-size: 32px;
  }

  #subtitle {
    font-size: 15px;
  }

  #banner {
    min-height: 250px;
  }

  .article-entry {
    font-size: 15px;
  }

  .quant-input-row {
    flex-direction: column;
  }

  .quant-input-row button {
    padding: 11px 18px;
  }
}
