:root {
  --page-blue-top: #0569bb;
  --page-blue-bottom: #3aa3ee;
  --navy: #1b2355;
  --light-line: #bfd7f5;
  --pink-line: #df8ea2;
  --deep-shadow: #06224d;
  --text: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: linear-gradient(180deg, var(--page-blue-top) 0%, #0d82d8 48%, var(--page-blue-bottom) 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.page {
  min-height: 100vh;
  padding: 14px 0 4px;
  background: linear-gradient(180deg, var(--page-blue-top) 0%, #0d82d8 48%, var(--page-blue-bottom) 100%);
  display: flex;
  flex-direction: column;
}

.masthead {
  width: min(91.4vw, 1170px);
  margin: 0 auto;
  padding: 9px 13px;
  background: var(--navy);
  border: 3px solid var(--pink-line);
  outline: 3px solid var(--light-line);
  box-shadow: 0 0 0 1px rgba(5, 17, 49, 0.75);
  display: flex;
  justify-content: center;
}

.site-nav {
  min-height: 48px;
  margin: 12px 0 36px;
  background: var(--deep-shadow);
  box-shadow: inset 0 1px 0 rgba(0, 14, 29, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(36px, 8vw, 120px);
  padding: 7px 20px;
}

.nav-link {
  color: var(--light-line);
  font-size: clamp(20px, 2.25vw, 34px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.24),
    0 0 2px rgba(255, 255, 255, 0.45);
}

.nav-link:hover,
.nav-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav-link.active {
  color: #fff;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4.35vw, 61px);
  line-height: 1.65;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.24),
    0 0 2px rgba(255, 255, 255, 0.45);
}

.content {
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 356px) minmax(420px, 790px);
  gap: 19px;
  align-items: center;
  justify-content: center;
  justify-items: center;
}

.countdown {
  background: var(--navy);
  border: 3px solid var(--light-line);
  padding: 10px;
  min-height: 291px;
  display: flex;
  box-shadow: 0 0 0 1px rgba(5, 17, 49, 0.75);
}

.countdown-inner {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 10px 22px;
  text-align: center;
}

.countdown p {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3vw, 43px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: clamp(3px, 0.55vw, 8px);
  text-transform: uppercase;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.45);
}

.countdown p + p {
  margin-top: 18px;
}

.countdown p:last-child {
  font-size: clamp(33px, 3.65vw, 54px);
  font-weight: 900;
  -webkit-text-stroke: 0.75px #fff;
  text-shadow:
    0 0 1px #fff,
    0 0 2px rgba(255, 255, 255, 0.62);
}

.feature-image {
  width: 100%;
  max-width: 790px;
  aspect-ratio: 790 / 388;
  border: 2px solid #1b5a3f;
  display: block;
  object-fit: cover;
}

.blog-content {
  margin: 0 auto;
  display: block;
  padding: 0;
}

.blog-feed {
  width: min(100%, 790px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.blog-post {
  width: 100%;
  background: var(--navy);
  border: 3px solid var(--light-line);
  box-shadow: 0 0 0 1px rgba(5, 17, 49, 0.75);
  color: #fff;
  padding: 18px;
}

.post-header {
  display: flex;
  align-items: center;
  gap: 13px;
}

.post-avatar {
  width: 56px;
  height: 56px;
  border: 2px solid var(--light-line);
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.post-header h2 {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.24),
    0 0 2px rgba(255, 255, 255, 0.45);
}

.post-header time {
  display: block;
  margin-top: 7px;
  color: var(--light-line);
  font-size: 14px;
  font-weight: 900;
}

.post-text {
  margin: 16px 0 0;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.3;
  font-weight: 900;
  white-space: pre-wrap;
}

.post-photos {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.post-photos img {
  width: 100%;
  border: 2px solid #1b5a3f;
  display: block;
  object-fit: contain;
}

.post-media,
.post-youtube {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.post-media video,
.post-youtube iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid #1b5a3f;
  display: block;
  background: #000;
}

.post-actions {
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 12px;
  text-align: left;
}

.post-action-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.post-action-links button {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 900;
  padding: 0;
  cursor: pointer;
}

.post-action-links button:hover,
.post-action-links button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-like-summary {
  margin-top: 9px;
  color: var(--light-line);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 18px;
  font-weight: 900;
}

.post-like-summary strong {
  color: var(--light-line);
}

.like-summary-muted {
  color: var(--light-line);
}

.like-summary-text {
  color: #fff;
}

.like-icon {
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.empty-post {
  min-height: 291px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
}

.content,
.blog-content {
  width: min(90.8vw, 1165px);
  min-height: 388px;
}

.footer {
  margin: auto auto 0;
  padding-top: 28px;
  padding-bottom: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 900;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 38px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .page {
    padding: 14px 0 4px;
  }

  .masthead,
  .content,
  .blog-content {
    width: 100%;
  }

  h1 {
    white-space: normal;
    line-height: 1.15;
    padding: 11px 0;
  }

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

  .site-nav {
    margin-bottom: 28px;
  }

  .countdown {
    min-height: 235px;
  }

  .countdown p {
    font-size: clamp(24px, 8vw, 43px);
  }

  .countdown p:last-child {
    font-size: clamp(33px, 9.4vw, 54px);
  }
}

@media (max-width: 420px) {
  .countdown p {
    font-size: clamp(21px, 7vw, 32px);
    letter-spacing: 2px;
  }

  .countdown p:last-child {
    font-size: clamp(29px, 8.6vw, 40px);
  }
}
