:root {
  --bg: #e9f0f7;
  --paper: #ffffff;
  --paper-alt: #f4f8fd;
  --ink: #101828;
  --muted: #475467;
  --navy: #0f345f;
  --sky: #0b75bf;
  --red: #bc1f3e;
  --red-dark: #8f1630;
  --line: #c9d8e8;
  --shadow: 0 18px 42px rgba(13, 30, 54, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Libre Franklin", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 10%, rgba(11, 117, 191, 0.2), transparent 36%),
    radial-gradient(circle at 8% 95%, rgba(188, 31, 62, 0.15), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  line-height: 1.65;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bitter", Georgia, serif;
  line-height: 1.2;
}

a {
  color: inherit;
}

.site-header,
.layout,
.site-footer {
  width: min(1180px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.site-header {
  padding: 1.5rem 0 1.1rem;
  animation: fade-rise 0.55s ease both;
}

.header-banner {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(8, 34, 67, 0.2);
  box-shadow: var(--shadow);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-top: 0.95rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: linear-gradient(115deg, #08254a 0%, #0d4c84 55%, #95162f 100%);
  color: #f8fbff;
  border: 1px solid rgba(248, 251, 255, 0.18);
  box-shadow: 0 14px 28px rgba(8, 31, 57, 0.28);
}

.brand-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  border: 2px solid rgba(248, 251, 255, 0.45);
  background: rgba(248, 251, 255, 0.95);
  object-fit: contain;
  padding: 0.25rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  font-weight: 700;
  font-size: 0.74rem;
}

.site-brand .eyebrow {
  color: #ffdee4;
}

.site-header h1 {
  font-size: clamp(1.7rem, 3.3vw, 2.4rem);
}

.tagline {
  margin: 0.9rem 0 0;
  max-width: 70ch;
  color: #1f3352;
  font-weight: 500;
}

.layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.4rem;
  padding-bottom: 2.35rem;
}

.author-panel,
.content-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.author-panel {
  padding: 1.05rem;
  height: fit-content;
  position: sticky;
  top: 1rem;
  animation: fade-rise 0.68s ease both;
}

.author-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 13px;
  border: 1px solid var(--line);
}

.author-panel h2 {
  margin-top: 0.85rem;
  font-size: 1.35rem;
}

.author-panel p {
  margin: 0.58rem 0 0;
}

.meta {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid rgba(11, 117, 191, 0.32);
  background: rgba(11, 117, 191, 0.08);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.author-social {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.author-social h3 {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a3d67;
}

.social-grid {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

a.social-button,
a.social-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.45rem 0.55rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background-color: #173a66;
  box-shadow: 0 8px 16px rgba(9, 26, 48, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

a.social-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 20px rgba(9, 26, 48, 0.24);
}

.social-facebook {
  background: linear-gradient(135deg, #1458c8 0%, #1877f2 100%);
}

.social-instagram {
  background-color: #c13584;
  background-image: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
}

.social-x {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.content-panel {
  padding: 1.15rem;
  animation: fade-rise 0.8s ease both;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 0.65rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
}

.section-head h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  color: #112f56;
}

.article-stream {
  display: grid;
  gap: 0.8rem;
}

.article-row {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  padding: 0;
  animation: fade-rise 0.84s ease both;
}

.article-stream .article-row:nth-child(1) {
  animation-delay: 0.05s;
}

.article-stream .article-row:nth-child(2) {
  animation-delay: 0.12s;
}

.article-stream .article-row:nth-child(3) {
  animation-delay: 0.19s;
}

.article-stream .article-row:nth-child(4) {
  animation-delay: 0.25s;
}

.article-row-image {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.article-row-copy {
  padding: 0.95rem 1rem 1rem;
}

.article-row-copy time,
.post-card time,
.post-date {
  display: inline-block;
  color: var(--navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.76rem;
}

.article-row-copy h3 {
  margin-top: 0.35rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.article-row-copy p {
  margin: 0.45rem 0 0;
  color: #233752;
  max-width: 78ch;
}

.newsletter-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(15, 52, 95, 0.24);
  border-radius: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 1rem;
  background: linear-gradient(125deg, #0f345f 0%, #0b5b99 52%, #a81836 100%);
  box-shadow: 0 15px 32px rgba(10, 31, 56, 0.26);
}

.content-panel > .newsletter-panel:first-child {
  margin-top: 0;
  margin-bottom: 1rem;
}

.newsletter-copy {
  color: #eaf2ff;
}

.newsletter-copy h2 {
  margin-top: 0.38rem;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
}

.newsletter-copy p {
  margin: 0.58rem 0 0;
  color: #d6e7ff;
  max-width: 48ch;
}

.newsletter-panel .eyebrow {
  color: #ffd5de;
}

.newsletter-form {
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(235, 245, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(1px);
}

.newsletter-form label {
  display: inline-block;
  color: #f4f8ff;
  font-weight: 700;
  font-size: 0.93rem;
  margin-bottom: 0.45rem;
}

.newsletter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.newsletter-row input[type="email"] {
  width: 100%;
  border: 1px solid rgba(10, 33, 58, 0.22);
  border-radius: 10px;
  padding: 0.72rem 0.78rem;
  font: inherit;
  color: #0b203d;
  background: #ffffff;
}

.newsletter-row input[type="email"]:focus {
  outline: 2px solid rgba(11, 117, 191, 0.4);
  border-color: rgba(11, 117, 191, 0.8);
}

.newsletter-button {
  border: 1px solid rgba(10, 33, 58, 0.25);
  border-radius: 10px;
  padding: 0.72rem 1rem;
  font: inherit;
  font-weight: 700;
  background: #ffffff;
  color: #17345c;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.newsletter-button:hover {
  background: #edf5ff;
  box-shadow: 0 8px 15px rgba(8, 27, 50, 0.2);
  transform: translateY(-1px);
}

.newsletter-note {
  margin: 0.6rem 0 0;
  color: #e1edff;
  font-size: 0.84rem;
}

.newsletter-message {
  margin: 0.58rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 1.35rem;
}

.newsletter-message.is-visible.is-success {
  color: #d2ffe2;
}

.newsletter-message.is-visible.is-error {
  color: #ffd9df;
}

.post-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.post-card h3 {
  margin-top: 0.35rem;
  font-size: 1.08rem;
  color: #132948;
}

.post-card p {
  margin: 0.45rem 0 0;
  color: #30445d;
}

.read-more,
.back-link {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(188, 31, 62, 0.35);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.read-more:hover,
.back-link:hover {
  color: var(--red-dark);
  border-bottom-color: var(--red-dark);
}

.back-link {
  margin-top: 0;
}

.feature {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.feature-image {
  width: 100%;
  height: clamp(200px, 28vw, 320px);
  object-fit: cover;
}

.feature-copy {
  padding: 1rem 1.15rem 1.2rem;
  border-top: 4px solid rgba(15, 52, 95, 0.1);
}

.feature-copy h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.feature-copy p {
  margin: 0.78rem 0 0;
  color: #233752;
}

.long-post .feature-copy p {
  max-width: 72ch;
}

.posts {
  margin-top: 1rem;
}

.posts h2 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.preview-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.preview-image {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.preview-copy {
  padding: 1rem;
}

.site-footer {
  padding: 0 0 2rem;
}

.site-footer p {
  margin: 0;
  color: #3a4f67;
  font-size: 0.88rem;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1050px) {
  .layout {
    grid-template-columns: 270px 1fr;
  }

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

  .newsletter-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .author-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header,
  .layout,
  .site-footer {
    width: min(1180px, calc(100% - 1.15rem));
  }

  .site-header {
    padding-top: 1rem;
  }

  .site-brand {
    padding: 0.7rem 0.8rem;
  }

  .brand-icon {
    width: 50px;
    height: 50px;
  }

  .content-panel,
  .author-panel {
    border-radius: 14px;
  }

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

  .article-row-image {
    min-height: 180px;
  }

  .newsletter-panel {
    padding: 0.88rem;
  }

  .newsletter-form {
    padding: 0.75rem;
  }

  .newsletter-row {
    grid-template-columns: 1fr;
  }

  .newsletter-button {
    width: 100%;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .feature-copy {
    padding: 0.9rem 0.9rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
