:root {
  --bg: #f2f2f2;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --charcoal: #1f1f1f;
  --text: #2f2f2f;
  --muted: #777777;
  --line: #e7e7e7;
  --accent: #ff5b4d;
  --accent-deep: #f34739;
  --shadow: 0 16px 40px rgba(20, 20, 20, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
}

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

input,
button,
textarea {
  font: inherit;
}

.site-frame {
  width: min(1240px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--surface);
  box-shadow: 0 0 50px rgba(26, 26, 26, 0.08);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 32px;
  background: rgba(31, 31, 31, 0.98);
}

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

.brand-wrap {
  flex-wrap: wrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong,
.hero-caption h1,
.post-body h2,
.widget-title,
.article-hero h1,
.article-body h2,
.article-body h3,
.legal-card h1,
.legal-card h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.brand-copy strong {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 700;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.utility-nav,
.main-nav,
.footer-links,
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.utility-nav a,
.main-nav a,
.footer-links a,
.legal-links a {
  text-decoration: none;
}

.utility-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  align-items: center;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a.is-active,
.main-nav a:hover,
.utility-nav a:hover,
.footer-links a:hover,
.legal-links a:hover,
.text-link:hover,
.post-body h2 a:hover,
.popular-item:hover strong,
.breadcrumb a:hover,
.article-body a:hover {
  color: var(--accent);
}

.main-nav a.is-active,
.main-nav a:hover {
  border-bottom-color: var(--accent);
}

.spark-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #d8d2ca;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.36) 36%, rgba(0, 0, 0, 0.12) 70%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-caption {
  position: absolute;
  left: clamp(28px, 6vw, 84px);
  bottom: 90px;
  width: min(430px, calc(100% - 56px));
  padding: 28px 32px;
  background: rgba(24, 24, 24, 0.66);
  color: #ffffff;
}

.hero-label,
.post-meta,
.section-kicker,
.article-meta,
.toc-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-label {
  padding: 11px 16px;
  background: var(--accent);
  color: #ffffff;
}

.hero-caption h1,
.article-hero h1,
.legal-card h1 {
  margin: 0;
  line-height: 1.06;
}

.hero-caption h1 {
  font-size: clamp(2.8rem, 5.6vw, 4.5rem);
}

.hero-caption p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-top: -27px;
  background: rgba(31, 31, 31, 0.48);
  color: #ffffff;
  font-size: 2.2rem;
  line-height: 1;
}

.hero-arrow-left {
  left: 0;
}

.hero-arrow-right {
  right: 0;
}

.hero-dots {
  position: absolute;
  right: 50%;
  bottom: 22px;
  display: flex;
  gap: 10px;
  transform: translateX(50%);
}

.hero-dots span {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

.hero-dots .is-active {
  background: #ffffff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #ffffff;
}

.button-primary:hover {
  filter: brightness(0.98);
}

.intro-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px 34px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.intro-icon {
  width: 54px;
  height: 54px;
  border: 2px solid #ffd0c9;
  border-radius: 50%;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.55rem;
}

.intro-copy h2 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
  line-height: 1.18;
}

.intro-copy p,
.post-body p,
.widget p,
.popular-copy small,
.article-hero p,
.article-body p,
.article-body li,
.article-sidebar p,
.legal-card p,
.legal-card li,
.widget-note,
.site-footer p {
  color: var(--muted);
  line-height: 1.78;
}

.intro-copy p,
.site-footer p {
  margin: 0;
}

.content-area {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(290px, 0.9fr);
  gap: 30px;
  padding: 30px 34px 46px;
}

.content-column {
  display: grid;
  gap: 26px;
}

.post-card,
.widget,
.article-panel,
.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.post-media {
  display: block;
  overflow: hidden;
}

.post-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

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

.post-meta {
  margin-bottom: 16px;
}

.post-meta time {
  color: #9a9a9a;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.post-body h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.14;
}

.post-body h2 a {
  text-decoration: none;
}

.post-body p {
  margin: 0 0 18px;
  font-size: 1.04rem;
}

.text-link {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.sidebar {
  display: grid;
  gap: 22px;
  align-self: start;
}

.widget {
  padding: 24px;
}

.widget-title {
  margin: 0 0 18px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.popular-list {
  display: grid;
  gap: 16px;
}

.popular-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  text-decoration: none;
}

.popular-thumb {
  width: 84px;
  height: 68px;
  object-fit: cover;
}

.popular-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.popular-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.25;
}

.popular-copy small {
  font-size: 0.83rem;
}

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-list li + li {
  border-top: 1px solid var(--line);
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  text-decoration: none;
}

.category-list span {
  position: relative;
  padding-left: 18px;
}

.category-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent);
}

.category-list em {
  color: #9b9b9b;
  font-style: normal;
}

.newsletter-form {
  display: grid;
  gap: 12px;
}

.newsletter-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.widget-note {
  display: block;
  margin-top: 14px;
  font-size: 0.88rem;
}

.legal-links {
  flex-direction: column;
  gap: 10px;
}

.legal-links a {
  color: var(--muted);
}

.site-footer {
  padding: 34px;
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.9);
}

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

.footer-column strong {
  display: block;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  color: #ffffff;
}

.footer-links a,
.footer-column a {
  color: rgba(255, 255, 255, 0.82);
}

.page-body {
  background: var(--bg);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1172px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 0;
  color: #8d8d8d;
  font-size: 0.94rem;
}

.breadcrumb a {
  text-decoration: none;
}

.article-shell,
.legal-shell {
  width: min(1172px, calc(100% - 48px));
  margin: 0 auto;
}

.article-hero {
  padding: 24px 0 0;
}

.article-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
}

.article-hero p {
  max-width: 68ch;
  margin: 18px 0 0;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(290px, 0.95fr);
  gap: 30px;
  padding: 26px 0 48px;
}

.article-panel {
  padding: 28px;
}

.article-panel.toc-box {
  background: #fcfcfc;
}

.article-panel.tip-box {
  background: #fff8f6;
}

.article-sidebar {
  display: grid;
  gap: 22px;
  align-self: start;
}

.toc-title {
  margin-bottom: 14px;
}

.article-body ul,
.article-body ol,
.legal-card ul {
  padding-left: 20px;
}

.article-body h2 {
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: 2.1rem;
  line-height: 1.18;
}

.article-body h3 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 1.45rem;
  line-height: 1.24;
}

.highlight-list {
  display: grid;
  gap: 12px;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.next-links a {
  display: block;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.legal-shell {
  padding: 34px 0 48px;
}

.legal-card {
  padding: 30px;
}

.legal-card h1 {
  font-size: clamp(2.6rem, 4.8vw, 4rem);
}

.legal-card h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.55rem;
}

.footer-links {
  gap: 10px 14px;
}

#cookie-box-center {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  z-index: 9999;
}

#cookie-box-center > * {
  pointer-events: auto;
}

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

.post-card,
.widget,
.article-panel,
.legal-card,
.hero-caption {
  animation: rise-in 0.55s ease both;
}

@media (max-width: 1080px) {
  .content-area,
  .article-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 840px) {
  .topbar,
  .brand-wrap,
  .intro-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    position: static;
  }

  .intro-strip {
    display: flex;
  }

  .hero-caption {
    left: 22px;
    right: 22px;
    bottom: 52px;
    width: auto;
    padding: 22px 24px;
  }

  .spark-hero,
  .hero-image {
    min-height: 560px;
  }

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

@media (max-width: 640px) {
  .topbar,
  .content-area,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .spark-hero,
  .hero-image {
    min-height: 500px;
  }

  .hero-caption h1,
  .article-hero h1 {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  .intro-copy h2,
  .post-body h2,
  .article-body h2,
  .legal-card h1 {
    font-size: clamp(1.9rem, 8vw, 2.7rem);
  }

  .post-body,
  .widget,
  .article-panel,
  .legal-card {
    padding: 20px;
  }

  .popular-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .popular-thumb {
    width: 72px;
    height: 58px;
  }

  .breadcrumb,
  .article-shell,
  .legal-shell {
    width: min(100% - 32px, 100%);
  }

  .next-links {
    grid-template-columns: 1fr;
  }
}
