@charset "utf-8";

:root {
  --bg: #f4efe5;
  --panel: rgba(255, 253, 248, 0.96);
  --panel-strong: #fff4de;
  --text: #1f2b38;
  --muted: #5f6f7e;
  --brand: #0b537e;
  --brand-dark: #072f4d;
  --accent: #e88d17;
  --accent-soft: #fff1d1;
  --line: #d9ccb2;
  --shadow: 0 20px 55px rgba(18, 36, 53, 0.09);
  --shadow-soft: 0 10px 24px rgba(18, 36, 53, 0.06);
  --radius: 24px;
  --max-width: 1240px;
  --heading-font: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --body-font: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--body-font);
  background:
    radial-gradient(circle at top left, rgba(232, 141, 23, 0.18), transparent 26%),
    radial-gradient(circle at bottom right, rgba(11, 83, 126, 0.1), transparent 24%),
    linear-gradient(180deg, #f8f3e7 0%, #eef3f6 100%);
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--brand-dark);
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 24px auto 40px;
}

.site-header,
.page-sidebar .card,
.page-main .hero-strip,
.page-main .article-card,
.site-footer {
  background: var(--panel);
  border: 1px solid rgba(10, 77, 120, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 32px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(10, 77, 120, 0.96), rgba(7, 47, 77, 0.94)),
    linear-gradient(180deg, #0a4d78, #072f4d);
  position: relative;
  overflow: hidden;
}

.site-header h1,
.page-main h1,
.page-main h2,
.page-main h3,
.page-main h4 {
  margin-top: 0;
  font-family: var(--heading-font);
  letter-spacing: -0.02em;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffd092;
}

.brand-block h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.brand-block p:last-child {
  margin-bottom: 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.header-side {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 250px;
}

.clock-card,
.language-switch {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.clock-card strong,
.language-switch strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.72);
}

.clock-card p {
  margin: 0;
}

.language-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.language-switch a,
.language-switch span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.language-switch .is-active {
  background: var(--accent);
  color: #1f1507;
}

.page-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.page-sidebar {
  display: grid;
  gap: 20px;
  align-content: start;
}

.page-sidebar .card {
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}

.page-sidebar .accent-card {
  background: var(--panel-strong);
}

.page-sidebar h2 {
  margin-bottom: 14px;
  color: var(--brand-dark);
  font-size: 1.35rem;
}

.page-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-sidebar li + li {
  margin-top: 10px;
}

.page-sidebar li a,
.page-sidebar li span {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f6f8fb, #edf3f8);
  border: 1px solid rgba(11, 83, 126, 0.08);
  text-decoration: none;
  font-weight: 700;
}

.page-sidebar li span {
  color: var(--muted);
  font-weight: 600;
}

.page-main {
  display: grid;
  gap: 24px;
}

.hero-strip,
.article-card {
  padding: 26px 28px;
}

.hero-strip {
  background:
    linear-gradient(135deg, rgba(255, 247, 228, 0.96), rgba(233, 242, 248, 0.96)),
    linear-gradient(180deg, #fff6e2, #e8f0f6);
  color: var(--brand-dark);
  position: relative;
  overflow: hidden;
}

.hero-strip .eyebrow {
  color: #c87718;
}

.hero-strip h1 {
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.hero-strip p {
  margin-bottom: 0;
  color: rgba(16, 42, 67, 0.86);
  line-height: 1.7;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.breadcrumb a,
.breadcrumb strong {
  color: var(--brand-dark);
}

.breadcrumb span {
  color: rgba(16, 42, 67, 0.48);
}

.article-card {
  overflow: hidden;
}

.article-body {
  font-size: 1.02rem;
  line-height: 1.75;
}

.article-body .content-block + .content-block {
  margin-top: 24px;
}

.article-body .content-card {
  margin: 0 0 24px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbf6ea, #f6f0e1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.article-body .content-card p:last-child,
.article-body .content-block p:last-child {
  margin-bottom: 0;
}

.article-body .info-list {
  margin: 16px 0;
  padding-left: 24px;
}

.article-body .stack-list {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}

.article-body .news-card,
.article-body .event-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf9, #f7f2e8);
  box-shadow: var(--shadow-soft);
}

.article-body .news-card h3,
.article-body .event-card h3 {
  margin-bottom: 10px;
}

.article-body .meta-chip {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.article-body .archive-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: #fff6e6;
}

.article-body .event-grid {
  display: grid;
  gap: 18px;
}

.article-body .event-card img {
  margin-top: 12px;
  margin-bottom: 16px;
}

.article-body .info-list li + li {
  margin-top: 8px;
}

.article-body > :first-child {
  margin-top: 0 !important;
}

.article-body p,
.article-body li,
.article-body td,
.article-body div {
  line-height: 1.7;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--brand-dark);
}

.article-body table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
  margin: 1rem 0;
}

.article-body > table:first-child,
.article-body > center > table:first-child {
  margin-top: 0;
}

.article-body center {
  display: block;
}

.article-body table[align],
.article-body td[align],
.article-body p[align] {
  text-align: inherit;
}

.article-body td,
.article-body th {
  padding: 10px 12px;
  vertical-align: top;
}

.article-body img {
  max-width: 100% !important;
  height: auto !important;
  margin: 1rem auto;
  border-radius: 14px;
}

.article-body hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d6c8ad, transparent);
  margin: 24px 0;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ef9a28, #dc7f0b);
  color: #1f1507;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(232, 141, 23, 0.22);
}

.button-link:hover,
.button-link:focus-visible {
  background: #d8830f;
  color: #1f1507;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 20px 24px;
  color: #f4f6f8;
  background:
    linear-gradient(135deg, rgba(7, 47, 77, 0.98), rgba(10, 77, 120, 0.95)),
    linear-gradient(180deg, #072f4d, #0a4d78);
}

.site-header::after,
.hero-strip::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
  pointer-events: none;
}

.site-footer p {
  margin: 0 0 4px;
}

.site-footer img {
  width: 92px;
  height: auto;
}

@media (max-width: 1100px) {
  .site-header,
  .page-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max-width));
    margin-top: 10px;
  }

  .site-header,
  .page-sidebar .card,
  .page-main .hero-strip,
  .page-main .article-card,
  .site-footer {
    padding: 18px;
    border-radius: 18px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
