:root {
  --tp-red: #d71920;
  --tp-red-dark: #a90f15;
  --tp-navy: #0c1424;
  --tp-navy-soft: #172033;
  --tp-ink: #101827;
  --tp-muted: #6b7280;
  --tp-line: rgba(15, 23, 42, 0.12);
  --tp-light: #f7f3ee;
  --tp-white: #ffffff;
  --tp-radius-lg: 28px;
  --tp-radius-md: 18px;
  --tp-shadow: 0 22px 70px rgba(12, 20, 36, 0.14);
  --tp-shadow-soft: 0 14px 34px rgba(12, 20, 36, 0.09);
  --tp-container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--tp-white);
  color: var(--tp-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

.container {
  width: min(100% - 40px, var(--tp-container));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  top: 12px;
  left: 12px;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--tp-navy);
  color: var(--tp-white);
  border-radius: 10px;
}

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

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

.site-branding {
  display: flex;
  align-items: center;
  min-width: 0;
}

.custom-logo-link img {
  max-height: 72px;
  width: auto;
}

.brand-text {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--tp-red), var(--tp-red-dark));
  color: var(--tp-white);
  font-weight: 950;
  letter-spacing: -0.06em;
  box-shadow: 0 12px 24px rgba(215, 25, 32, 0.28);
}

.brand-copy {
  display: grid;
  line-height: 1.18;
}

.brand-copy strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--tp-muted);
  font-weight: 600;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--tp-navy);
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: var(--tp-navy);
  color: var(--tp-white);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--tp-line);
  border-radius: 14px;
  background: var(--tp-white);
  cursor: pointer;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: var(--tp-navy);
  border-radius: 999px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 132px) 0;
  background:
    radial-gradient(circle at 78% 12%, rgba(215, 25, 32, 0.26), transparent 28%),
    linear-gradient(135deg, #0c1424 0%, #101d34 48%, #d71920 160%);
  color: var(--tp-white);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 92%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--tp-red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero-section .eyebrow {
  color: #ffb4b8;
}

.eyebrow.dark {
  color: var(--tp-navy);
}

.hero-copy h1,
.section-heading h2,
.notice-card h2,
.archive-hero h1,
.single-header h1 {
  margin: 0;
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.hero-copy h1 {
  max-width: 900px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.hero-copy p {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.06rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 950;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--tp-red);
  color: var(--tp-white);
  box-shadow: 0 16px 32px rgba(215, 25, 32, 0.32);
}

.btn-primary:hover {
  background: var(--tp-red-dark);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--tp-white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-dark {
  color: var(--tp-white);
  background: var(--tp-navy);
}

.hero-card {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--tp-radius-lg);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.23);
  backdrop-filter: blur(20px);
}

.card-topline {
  display: inline-flex;
  margin-bottom: 90px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffd8da;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.hero-card h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.78);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.mini-stats span {
  display: grid;
  gap: 4px;
  padding: 14px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 800;
}

.mini-stats strong {
  color: var(--tp-white);
  font-size: 1.2rem;
  line-height: 1;
}

.notice-section {
  padding: 0 0 70px;
  background: linear-gradient(to bottom, var(--tp-light) 0%, var(--tp-white) 100%);
}

.notice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: -42px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--tp-radius-lg);
  background: var(--tp-white);
  box-shadow: var(--tp-shadow);
}

.notice-card h2 {
  color: var(--tp-navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.notice-card p {
  max-width: 790px;
  margin: 16px 0 0;
  color: var(--tp-muted);
  font-size: 1.08rem;
}

.feature-section,
.news-section {
  padding: clamp(70px, 8vw, 112px) 0;
}

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

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  max-width: 790px;
  color: var(--tp-navy);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.post-card,
.single-article,
.error-404 {
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius-lg);
  background: var(--tp-white);
  box-shadow: var(--tp-shadow-soft);
}

.feature-card {
  padding: clamp(24px, 3vw, 34px);
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--tp-red);
  font-weight: 950;
  letter-spacing: -0.04em;
  font-size: 2.6rem;
}

.feature-card h3 {
  margin: 0 0 14px;
  color: var(--tp-navy);
  font-size: 1.35rem;
  line-height: 1.1;
}

.feature-card p {
  margin: 0;
  color: var(--tp-muted);
}

.news-section,
.page-shell {
  background: var(--tp-light);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  overflow: hidden;
}

.post-thumbnail {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--tp-navy);
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.04);
}

.post-card-body {
  padding: 24px;
}

.post-meta,
.single-meta {
  color: var(--tp-red);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.updated:not(.published) {
  display: none;
}

.post-card-title {
  margin: 10px 0 10px;
  font-size: 1.35rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.post-card-title a,
.read-more,
.text-link {
  color: var(--tp-navy);
  text-decoration: none;
}

.post-card-title a:hover,
.read-more:hover,
.text-link:hover {
  color: var(--tp-red);
}

.post-card-excerpt,
.empty-card p {
  color: var(--tp-muted);
}

.read-more,
.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  font-weight: 950;
}

.read-more::after,
.text-link::after {
  content: "→";
  margin-left: 7px;
}

.archive-hero {
  padding: clamp(70px, 8vw, 112px) 0 34px;
  background: var(--tp-navy);
  color: var(--tp-white);
}

.archive-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.archive-hero .archive-description {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.75);
}

.archive-grid {
  padding: 42px 0 70px;
}

.pagination-wrap {
  padding-bottom: 70px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--tp-white);
  border: 1px solid var(--tp-line);
  text-decoration: none;
  font-weight: 900;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--tp-red);
  color: var(--tp-white);
}

.singular-shell {
  padding: clamp(52px, 7vw, 92px) 0;
  background: var(--tp-light);
}

.single-article {
  max-width: 920px;
  padding: clamp(28px, 5vw, 62px);
}

.single-header {
  margin-bottom: 26px;
}

.single-header h1 {
  color: var(--tp-navy);
  font-size: clamp(2.4rem, 5.8vw, 5.4rem);
}

.page-header-clean h1 {
  margin-bottom: 0;
}

.single-featured-image {
  margin: 28px 0;
  overflow: hidden;
  border-radius: var(--tp-radius-lg);
}

.prose {
  color: #1f2937;
  font-size: 1.08rem;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--tp-navy);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.prose h2 {
  margin-top: 1.7em;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.prose a {
  color: var(--tp-red);
  font-weight: 800;
}

.prose blockquote {
  margin: 30px 0;
  padding: 24px 28px;
  border-left: 6px solid var(--tp-red);
  border-radius: 18px;
  background: var(--tp-light);
  color: var(--tp-navy);
  font-size: 1.18rem;
  font-weight: 750;
}

.entry-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--tp-line);
}

.entry-footer a {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--tp-light);
  color: var(--tp-navy);
  text-decoration: none;
  font-weight: 800;
}

.post-navigation {
  width: min(100% - 40px, 920px);
  margin: 28px auto 0;
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.post-navigation a {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 18px;
  border-radius: var(--tp-radius-md);
  background: var(--tp-white);
  text-decoration: none;
  box-shadow: var(--tp-shadow-soft);
}

.nav-subtitle {
  color: var(--tp-red);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-title {
  color: var(--tp-navy);
  font-weight: 900;
  line-height: 1.2;
}

.search-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 560px;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--tp-line);
  border-radius: 999px;
  background: var(--tp-white);
  color: var(--tp-ink);
}

.search-submit {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--tp-red);
  color: var(--tp-white);
  cursor: pointer;
  font-weight: 950;
}

.error-404 {
  max-width: 760px;
  padding: clamp(30px, 5vw, 58px);
  margin-top: 60px;
  margin-bottom: 80px;
}

.error-404 h1 {
  margin: 0 0 12px;
  color: var(--tp-navy);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.error-404 .search-form {
  margin: 26px 0;
}

.site-footer {
  padding-top: 62px;
  background: var(--tp-navy);
  color: var(--tp-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr) minmax(220px, 0.6fr);
  gap: 36px;
}

.footer-kicker {
  color: #ffb4b8;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-brand h2 {
  max-width: 560px;
  margin: 10px 0 10px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.footer-brand p,
.footer-column p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-column h3 {
  margin-top: 0;
  color: var(--tp-white);
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li + li {
  margin-top: 8px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--tp-white);
}

.footer-bottom {
  margin-top: 52px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .container {
    width: min(100% - 28px, var(--tp-container));
  }

  .menu-toggle {
    display: inline-block;
  }

  .main-navigation {
    position: absolute;
    top: 86px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 14px;
    border: 1px solid var(--tp-line);
    border-radius: 22px;
    background: var(--tp-white);
    box-shadow: var(--tp-shadow-soft);
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    display: grid;
    gap: 4px;
  }

  .main-navigation a {
    justify-content: center;
  }

  .hero-grid,
  .feature-grid,
  .posts-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .notice-card,
  .section-heading.split {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-card .card-topline {
    margin-bottom: 44px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 76px;
  }

  .main-navigation {
    top: 76px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .hero-section {
    padding-top: 52px;
  }

  .hero-actions,
  .search-form {
    flex-direction: column;
  }

  .btn,
  .search-submit {
    width: 100%;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  .single-article {
    padding: 24px;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }
}
