@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --canvas: #f7f7f4;
  --canvas-soft: #fafaf7;
  --ink: #26251e;
  --body-text: #5a5852;
  --muted: #807d72;
  --muted-soft: #a09c92;
  --accent: #f54e00;
  --accent-active: #d04200;
  --card: #ffffff;
  --hairline: #e6e5e0;
  --hairline-soft: #efeee8;
  --hairline-strong: #cfcdc4;
  --surface-strong: #e6e5e0;
  --success: #1f8a65;
  --error: #cf2d56;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--canvas);
  color: var(--body-text);
  font-family: 'Inter', system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: 48px;
  letter-spacing: -0.72px;
  line-height: 1.1;
}

h2 {
  font-size: 36px;
  letter-spacing: -0.72px;
}

h3 {
  font-size: 22px;
  letter-spacing: -0.11px;
  line-height: 1.3;
}

h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

p {
  margin-bottom: 16px;
  color: var(--body-text);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-nav {
  background-color: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.2px;
  flex-shrink: 0;
}

.nav-logo .accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--body-text);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.nav-mobile {
  display: none;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 20px 24px;
  border-bottom: 1px solid var(--hairline);
}

.nav-mobile.open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
}

.nav-mobile ul li {
  border-bottom: 1px solid var(--hairline-soft);
}

.nav-mobile ul li a {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--body-text);
  padding: 12px 0;
}

.hero {
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero h1 {
  max-width: 740px;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 18px;
  color: var(--body-text);
  max-width: 560px;
  margin-bottom: 0;
  line-height: 1.6;
}

.hero-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-top: 56px;
}

.hero-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.hero-image figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 16px;
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
}

section {
  padding: 80px 0;
}

.section-divider {
  border-top: 1px solid var(--hairline);
}

.section-header {
  margin-bottom: 48px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.72px;
  max-width: 600px;
  line-height: 1.2;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}

.article-card:hover {
  border-color: var(--hairline-strong);
}

.article-card-image {
  height: 200px;
  overflow: hidden;
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-image img {
  transform: scale(1.02);
}

.article-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}

.article-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card p {
  font-size: 14px;
  color: var(--body-text);
  margin-bottom: 0;
  flex: 1;
  line-height: 1.6;
}

.article-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-soft);
}

.intro-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-band-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.intro-band-text p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.intro-band-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.intro-band-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.topic-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 28px 24px;
}

.topic-card-icon {
  width: 36px;
  height: 36px;
  background: var(--surface-strong);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.topic-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.topic-card p {
  font-size: 14px;
  color: var(--body-text);
  margin: 0;
  line-height: 1.6;
}

.article-page-header {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--hairline);
}

.article-page-header .breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.article-page-header .breadcrumb a {
  color: var(--muted);
}

.article-page-header .breadcrumb a:hover {
  color: var(--accent);
}

.article-page-header .breadcrumb span {
  margin: 0 8px;
}

.article-page-header h1 {
  font-size: 42px;
  max-width: 760px;
  margin-bottom: 20px;
}

.article-page-header .article-meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 72px;
  padding: 64px 0;
}

.article-main-content h2 {
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.325px;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

.article-main-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-main-content h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 14px;
}

.article-main-content p {
  font-size: 16px;
  color: var(--body-text);
  margin-bottom: 22px;
  line-height: 1.75;
}

.article-main-content ul,
.article-main-content ol {
  margin: 0 0 22px 24px;
  color: var(--body-text);
}

.article-main-content li {
  margin-bottom: 10px;
  line-height: 1.65;
  font-size: 16px;
}

.article-main-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-figure {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin: 40px 0;
}

.article-figure img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.article-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 16px;
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
}

.article-pullquote {
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 32px 0;
  background: var(--card);
  border-radius: 0 8px 8px 0;
}

.article-pullquote p {
  font-size: 18px;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  letter-spacing: -0.1px;
}

.article-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}

.sidebar-box {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-box h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.sidebar-box ul {
  list-style: none;
}

.sidebar-box ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 14px;
  line-height: 1.45;
}

.sidebar-box ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-box ul li a {
  color: var(--body-text);
  font-size: 14px;
}

.sidebar-box ul li a:hover {
  color: var(--accent);
}

.page-header {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--hairline);
}

.page-header h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  padding: 80px 0;
}

.about-text h2 {
  font-size: 30px;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 18px;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.contact-section {
  padding: 80px 0;
}

.contact-section h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.contact-section > .container > p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 40px;
}

.contact-form-wrap {
  max-width: 600px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}

input:focus,
textarea:focus {
  border-color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-soft);
}

textarea {
  height: 140px;
  resize: vertical;
}

.btn-submit {
  background: var(--ink);
  color: var(--canvas);
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  height: 44px;
  transition: opacity 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-submit:hover {
  opacity: 0.85;
}

.btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-message {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 16px;
  display: none;
}

.form-message.success {
  background: #eef7f4;
  border: 1px solid var(--success);
  color: var(--success);
  display: block;
}

.form-message.error-msg {
  background: #fef2f5;
  border: 1px solid var(--error);
  color: var(--error);
  display: block;
}

.legal-content {
  max-width: 720px;
  padding: 64px 0 80px;
}

.legal-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--body-text);
  margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 24px;
  color: var(--body-text);
}

.legal-content li {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
}

.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  max-width: 260px;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--body-text);
}

.footer-col ul li a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.footer-bottom-links a {
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom-links a:hover {
  color: var(--ink);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  padding: 20px 0;
  z-index: 999;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cookie-text {
  font-size: 14px;
  color: #cfcdc4;
  max-width: 680px;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--muted-soft);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-accept {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.cookie-reject {
  background: transparent;
  color: #cfcdc4;
  border: 1px solid #5a5852;
  border-radius: 8px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.cookie-reject:hover {
  border-color: #807d72;
}

.disclaimer-band {
  background: var(--canvas-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 0;
}

.disclaimer-band p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .article-sidebar {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-band {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  h1 {
    font-size: 32px;
    letter-spacing: -0.4px;
  }

  h2 {
    font-size: 26px;
  }

  .hero {
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-image img {
    height: 240px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 56px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

  .article-page-header h1 {
    font-size: 30px;
  }

  .article-layout {
    padding: 40px 0;
  }

  .page-header h1 {
    font-size: 30px;
  }

  .about-image img {
    height: 280px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-accept,
  .cookie-reject {
    flex: 1;
    text-align: center;
  }
}
