* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #06131d;
  --navy-2: #081923;
  --navy-3: #0b202c;
  --cream: #f5f0e6;
  --white: #f7f4ee;
  --muted: #b9c0c4;
  --gold: #c99555;
  --gold-2: #b88445;
  --line: rgba(245, 240, 230, 0.18);
}

body {
  font-family: Arial, sans-serif;
  background: var(--navy);
  color: var(--white);
}

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

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

h1,
h2,
h3 {
  font-family: Georgia, serif;
  font-weight: 400;
}

.blog-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 36px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
}

.logo-main {
  font-family: Georgia, serif;
  font-size: 27px;
  letter-spacing: 5px;
}

.logo-sub {
  margin-top: 4px;
  font-size: 7px;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 48px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 700;
}

.nav a.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
}

.search {
  font-size: 24px;
  color: var(--white);
}

.eyebrow,
.category {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 700;
}

.gold-line {
  width: 52px;
  height: 2px;
  background: var(--gold);
  margin: 18px 0 24px;
}

/* Blog index */

.blog-hero {
  min-height: 520px;
  padding: 170px 90px 80px;
  background:
    linear-gradient(
      90deg,
      rgba(6, 19, 29, 0.98) 0%,
      rgba(6, 19, 29, 0.82) 45%,
      rgba(6, 19, 29, 0.58) 100%
    ),
    url("images/hero.jpg") center right / cover no-repeat;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 520px;
}

.blog-hero h1 {
  font-size: 56px;
  line-height: 1.08;
}

.blog-hero p:last-child {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.blog-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 36px 80px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}

.filters a.active {
  color: var(--gold);
  position: relative;
}

.filters a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -23px;
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.filters button {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.post-preview {
  display: grid;
  grid-template-columns: 300px 1fr 40px;
  gap: 46px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.post-preview img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.post-copy h2 {
  font-size: 30px;
  line-height: 1.08;
  max-width: 620px;
  margin: 8px 0 10px;
  color: var(--white);
}

.post-copy p {
  max-width: 610px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.meta {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
}

.meta span {
  color: var(--gold);
  margin: 0 10px;
}

.arrow {
  font-size: 24px;
  color: var(--gold);
}

.load-more {
  text-align: center;
  margin-top: 34px;
}

.load-more button {
  padding: 13px 34px;
  background: transparent;
  border: 1px solid var(--gold-2);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  cursor: pointer;
}

/* Article page */

.article-page {
  min-height: 100vh;
  padding: 52px 72px 70px;
  background:
    linear-gradient(
      90deg,
      rgba(6, 19, 29, 0.98),
      rgba(6, 19, 29, 0.9)
    ),
    url("images/hero.jpg") top right / cover no-repeat;
}

.article-top {
  max-width: 1180px;
  margin: 0 auto 92px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  font-size: 14px;
  color: var(--muted);
}

.share {
  display: flex;
  gap: 20px;
  align-items: center;
  color: var(--muted);
}

.share span {
  font-size: 12px;
}

.article {
  max-width: 1040px;
  margin: 0 auto;
}

.article-header {
  max-width: 760px;
  margin-bottom: 52px;
}

.article-header h1 {
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.08;
  margin-top: 14px;
  color: var(--white);
}

.author {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

.author img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.author p:first-child {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.article-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  margin-bottom: 48px;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.75;
  color: var(--white);
}

.article-body p {
  margin-bottom: 28px;
  color: #e4e7e8;
}

.article-body h2 {
  font-size: 34px;
  line-height: 1.2;
  margin: 46px 0 18px;
  color: var(--white);
}

.topics {
  max-width: 900px;
  margin: 54px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.topics span {
  margin-right: 10px;
  color: var(--muted);
}

.topics a {
  border: 1px solid var(--gold-2);
  color: var(--gold);
  padding: 8px 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
}

@media (max-width: 850px) {
  .blog-header {
    position: static;
    padding: 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    background: var(--navy);
  }

  .nav {
    flex-wrap: wrap;
    gap: 22px;
  }

  .blog-hero {
    min-height: auto;
    padding: 70px 28px;
  }

  .blog-hero h1 {
    font-size: 42px;
  }

  .blog-content {
    padding: 24px 28px 60px;
  }

  .filters {
    overflow-x: auto;
    gap: 28px;
  }

  .post-preview {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .arrow {
    display: none;
  }

  .article-page {
    padding: 32px 28px 60px;
  }

  .article-top {
    margin-bottom: 60px;
  }

  .article-image {
    height: 260px;
  }

  .article-body {
    font-size: 17px;
  }
}
