:root {
  color-scheme: dark;
  --night: #07090d;
  --charcoal: #11151c;
  --panel: #171c24;
  --panel-soft: #202632;
  --cream: #f5efe0;
  --muted: #aab1b2;
  --line: rgba(245, 239, 224, 0.16);
  --gold: #caa34a;
  --green: #0b7b6f;
  --rose: #b35264;
  --blue: #224e78;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(179, 82, 100, 0.22), transparent 28%),
    radial-gradient(circle at 14% 26%, rgba(11, 123, 111, 0.18), transparent 30%),
    linear-gradient(180deg, var(--night), #10141b 48%, #0d1016);
  color: var(--cream);
}

a {
  color: inherit;
}

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

.home-header {
  align-items: center;
  background: rgba(7, 9, 13, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 54px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: grid;
  gap: 3px;
  text-decoration: none;
}

.brand span,
.eyebrow,
.kicker {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand strong {
  color: var(--cream);
  font-size: 16px;
}

.home-nav {
  display: flex;
  gap: 4px;
}

.home-nav a {
  border-radius: 6px;
  color: #cbd1d0;
  font-size: 14px;
  font-weight: 850;
  padding: 8px 12px;
  text-decoration: none;
}

.home-nav a:hover {
  background: rgba(245, 239, 224, 0.08);
  color: var(--cream);
}

.loading-hero {
  min-height: 70vh;
  padding: clamp(28px, 5vw, 76px) clamp(18px, 4vw, 54px);
}

.loading-shadow {
  animation: pulse 1.4s ease-in-out infinite;
  background: linear-gradient(90deg, rgba(245, 239, 224, 0.05), rgba(245, 239, 224, 0.12), rgba(245, 239, 224, 0.05));
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: 360px;
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.home-page {
  display: grid;
  gap: 34px;
  padding-bottom: 64px;
}

.hero {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  min-height: 72vh;
  padding: clamp(36px, 6vw, 84px) clamp(18px, 4vw, 54px) 24px;
}

@media (min-width: 1100px) {
  .hero {
    gap: clamp(42px, 5vw, 88px);
    grid-template-columns: minmax(0, 1fr) minmax(400px, 560px);
    padding-inline: max(clamp(72px, 7vw, 120px), calc((100vw - 1500px) / 2));
  }
}

.hero-copy {
  align-content: center;
  display: grid;
  gap: 20px;
  max-width: 880px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(46px, 8vw, 106px);
  letter-spacing: 0;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-lead {
  color: #d7dcda;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.82;
  max-width: 760px;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
}

.button.secondary {
  background: rgba(245, 239, 224, 0.08);
  color: var(--cream);
}

.hero-feature {
  align-self: center;
  background: rgba(245, 239, 224, 0.95);
  border: 1px solid rgba(245, 239, 224, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: #15171b;
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 16px;
}

@media (min-width: 1100px) {
  .hero-feature {
    justify-self: end;
    width: 100%;
  }
}

.feature-image-wrap,
.article-image-wrap {
  background: #12151c;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(245, 239, 224, 0.1);
  overflow: hidden;
  position: relative;
}

.feature-image-wrap::before,
.article-image-wrap::before {
  background: linear-gradient(90deg, rgba(245, 239, 224, 0.04), rgba(245, 239, 224, 0.14), rgba(245, 239, 224, 0.04));
  content: "";
  inset: 0;
  position: absolute;
}

.hero-feature img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  position: relative;
  width: 100%;
}

.hero-feature h2 {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.14;
}

.feature-meta,
.article-type {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: clamp(14px, 3vw, 34px);
  padding: 0 clamp(18px, 4vw, 54px);
}

.category-card {
  align-content: end;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.08), rgba(7, 9, 13, 0.72) 62%, rgba(7, 9, 13, 0.94)),
    var(--category-image),
    var(--panel);
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  display: grid;
  gap: 8px;
  min-height: 230px;
  overflow: hidden;
  padding: 18px;
  position: relative;
  text-decoration: none;
}

.category-card::before {
  background: linear-gradient(135deg, rgba(11, 123, 111, 0.22), transparent 46%, rgba(202, 163, 74, 0.18));
  content: "";
  inset: 0;
  opacity: 0.78;
  position: absolute;
  transition: opacity 180ms ease;
}

.category-card:hover::before {
  opacity: 1;
}

.category-card span,
.category-card strong,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.category-card strong {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.14;
}

.category-card p {
  color: #e6e2d7;
  line-height: 1.55;
  max-width: 22em;
}

.section {
  display: grid;
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 54px);
}

.home-featured-section {
  display: grid;
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 54px);
}

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

.home-featured-card {
  align-content: end;
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.12), rgba(7, 9, 13, 0.76) 58%, rgba(7, 9, 13, 0.95)),
    var(--featured-image),
    var(--panel);
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 10px;
  min-height: 250px;
  overflow: hidden;
  padding: 20px;
  position: relative;
  text-decoration: none;
}

.home-featured-card::before {
  background: linear-gradient(135deg, rgba(11, 123, 111, 0.18), transparent 48%, rgba(202, 163, 74, 0.2));
  content: "";
  inset: 0;
  position: absolute;
}

.home-featured-card .home-card-meta,
.home-featured-card span,
.home-featured-card strong,
.home-featured-card p {
  position: relative;
  z-index: 1;
}

.home-featured-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-featured-card strong {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.18;
}

.home-featured-card p {
  color: #ded8c9;
  line-height: 1.6;
  max-width: 28em;
}

.home-card-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.home-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.home-tag {
  background: rgba(204, 166, 82, 0.84);
  border: 1px solid rgba(245, 239, 224, 0.24);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  color: #11161b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 5px 8px;
  text-transform: none;
}

.home-featured-card .home-tag,
.article-card .home-tag {
  color: #11161b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

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

.section-heading h2 {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
  text-transform: uppercase;
}

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

.article-carousel {
  display: flex;
  grid-template-columns: none;
  margin-inline: calc(clamp(18px, 4vw, 54px) * -1);
  overflow-x: auto;
  padding: 0 clamp(18px, 4vw, 54px) 8px;
  scroll-padding-inline: clamp(18px, 4vw, 54px);
  scroll-snap-type: x proximity;
}

.article-carousel .article-card {
  flex: 0 0 clamp(280px, 32vw, 430px);
  scroll-snap-align: start;
}

.article-carousel::-webkit-scrollbar {
  height: 10px;
}

.article-carousel::-webkit-scrollbar-track {
  background: rgba(245, 239, 224, 0.06);
  border-radius: 999px;
}

.article-carousel::-webkit-scrollbar-thumb {
  background: rgba(202, 163, 74, 0.7);
  border-radius: 999px;
}

.section-actions {
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.article-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 14px;
  padding: 14px;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.article-card-link:hover,
.article-card-link:focus-visible {
  border-color: rgba(202, 163, 74, 0.65);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.article-card-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.article-card img {
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  object-fit: cover;
  position: relative;
  width: 100%;
}

.article-card h3 {
  font-size: 22px;
  line-height: 1.24;
}

.article-card p {
  color: var(--muted);
  line-height: 1.65;
}

.flow-band {
  background: #f2efe5;
  color: #15171b;
  display: grid;
  gap: 20px;
  margin-top: 14px;
  padding: clamp(28px, 5vw, 58px) clamp(18px, 4vw, 54px);
}

.flow-band h2 {
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1;
  text-transform: uppercase;
}

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

.flow-card {
  background: #fffdf7;
  border: 1px solid #d7d0bf;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 18px;
  text-decoration: none;
}

.flow-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.flow-card strong {
  font-size: 22px;
  line-height: 1.25;
}

@media (max-width: 1040px) {
  .hero,
  .flow-grid {
    grid-template-columns: 1fr;
  }

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

  .home-featured-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .home-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-nav {
    overflow-x: auto;
    width: 100%;
  }

  .category-strip {
    grid-template-columns: 1fr;
  }
}
