:root {
  --navy: #16324f;
  --navy-deep: #0e2236;
  --blue: #2c4e73;
  --orange: #e07a2d;
  --mist: #dce5ec;
  --cream: #f6f1e8;
  --paper: #fffaf2;
  --white: #ffffff;
  --text: #14253a;
  --muted: #65758a;
  --line: rgba(22, 50, 79, 0.14);
  --shadow: 0 18px 42px rgba(14, 34, 54, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 12%, rgba(220, 229, 236, 0.72), transparent 28rem),
    linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

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

.main-container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 250, 242, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: min(660px, 64vw);
  max-height: 124px;
  object-fit: contain;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  font-weight: 900;
}

.brand-text {
  margin-left: 10px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 900;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.main-menu a {
  padding: 10px 12px;
  border-radius: 8px;
}

.main-menu a:hover,
.main-menu a:focus-visible {
  color: var(--orange);
  background: rgba(224, 122, 45, 0.09);
}

.main-menu a:first-child {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(224, 122, 45, 0.22);
}

.home-hero {
  padding: 42px 0 28px;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 34px;
  align-items: center;
}

.home-hero-copy {
  padding: 14px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-hero-copy h1,
.post-title-block h1,
.text-panel h1,
.author-intro h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

.home-hero-copy p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--blue);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-primary,
.button-secondary,
.post-author a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.button-primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 14px 28px rgba(224, 122, 45, 0.24);
}

.button-secondary,
.post-author a {
  color: var(--navy);
  background: rgba(220, 229, 236, 0.72);
  border: 1px solid var(--line);
}

.featured-article {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.featured-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--mist);
}

.featured-image img,
.article-thumb img,
.post-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-body {
  padding: 24px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.featured-body h2 {
  margin: 12px 0 10px;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
}

.featured-body p,
.article-row-body p,
.side-box p,
.post-title-block p,
.post-note p,
.post-author p,
.text-panel p,
.author-intro p,
.author-bio {
  color: var(--muted);
}

.featured-body p,
.article-row-body p {
  margin: 0;
}

.topic-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0 36px;
}

.topic-pill {
  min-height: 128px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.topic-pill span {
  color: var(--navy);
  font-weight: 900;
}

.topic-pill p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
  padding-bottom: 56px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.side-box h2,
.post-note h2,
.post-author h2,
.author-posts h2 {
  margin: 0;
  color: var(--navy);
  line-height: 1.15;
}

.section-heading h2 {
  font-size: 32px;
}

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

.article-row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-row.compact {
  grid-template-columns: 190px minmax(0, 1fr);
}

.article-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mist);
  border-radius: 6px;
}

.article-row-body h3 {
  margin: 10px 0;
  color: var(--navy);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.14;
}

.article-row-body h3 a:hover,
.featured-body h2 a:hover,
.side-links a:hover {
  color: var(--orange);
}

.side-panel {
  display: grid;
  gap: 16px;
}

.side-box {
  padding: 20px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.side-box-accent {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.side-box-accent h2,
.side-box-accent p {
  color: var(--white);
}

.side-box h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

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

.side-links a {
  display: grid;
  gap: 3px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.side-links a:first-child {
  padding-top: 0;
  border-top: 0;
}

.side-links time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.side-links span {
  color: var(--navy);
  font-weight: 900;
  line-height: 1.22;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 8px 10px;
  color: var(--navy);
  background: var(--mist);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.post-hero {
  padding: 40px 0 26px;
}

.post-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 34px;
  align-items: center;
}

.post-title-block p {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 18px;
}

.post-cover {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.post-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 34px;
  align-items: start;
  padding-bottom: 36px;
}

.article-content {
  min-width: 0;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 19px;
}

.article-content h2,
.article-content h3 {
  margin: 34px 0 12px;
  color: var(--navy);
  line-height: 1.18;
}

.article-content h2 {
  font-size: 30px;
}

.article-content h3 {
  font-size: 24px;
}

.article-content p {
  margin: 0 0 20px;
}

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

.article-content li {
  margin: 8px 0;
}

.post-note,
.post-author,
.text-panel,
.author-intro {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.post-note {
  padding: 20px;
}

.post-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  margin-bottom: 56px;
}

.simple-page {
  padding: 40px 0 60px;
}

.author-intro {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  padding: 30px;
}

.author-mark {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--orange);
  border-radius: 8px;
  font-size: 28px;
  font-weight: 900;
}

.author-bio p {
  margin-bottom: 0;
}

.author-posts {
  margin-top: 32px;
}

.text-panel {
  max-width: 820px;
  padding: 34px;
}

.text-panel h2 {
  margin: 28px 0 10px;
  color: var(--navy);
}

.pagination {
  display: flex;
  gap: 8px;
  padding-bottom: 48px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  padding: 10px 12px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.pagination span {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: var(--navy-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 24px;
  padding: 30px 0;
}

.footer-grid strong {
  color: var(--white);
}

.footer-grid p {
  margin: 8px 0 0;
}

.cookie-box {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: min(380px, calc(100% - 36px));
  display: none;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cookie-box.is-visible {
  display: flex;
}

.cookie-box p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cookie-box button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--orange);
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 980px) {
  .home-hero-grid,
  .content-grid,
  .post-hero-grid,
  .post-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .post-note {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  .main-container {
    width: min(100% - 28px, 1160px);
  }

  .header-inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

  .brand img {
    width: min(600px, 82vw);
    max-height: 112px;
  }

  .main-menu {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

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

  .home-hero-copy h1,
  .post-title-block h1,
  .text-panel h1,
  .author-intro h1 {
    font-size: clamp(32px, 10vw, 46px);
  }

  .article-row,
  .article-row.compact {
    grid-template-columns: 1fr;
  }

  .article-thumb {
    aspect-ratio: 16 / 9;
  }

  .article-content,
  .text-panel,
  .author-intro {
    padding: 24px;
  }

  .post-author {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .topic-row {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .post-cover {
    aspect-ratio: 4 / 3;
  }

  .author-intro {
    grid-template-columns: 1fr;
  }
}
