@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
  --canvas: #f5f1ec;
  --surface-1: #ffffff;
  --surface-2: #ede8e2;
  --ink: #111111;
  --ink-muted: #626260;
  --ink-subtle: #7b7b78;
  --hairline: #d3cec6;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 12px;
  --rounded-xl: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--canvas);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--ink-muted);
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 56px;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav-logo {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.nav-logo span {
  color: var(--ink-muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s;
}

.nav-dropdown-toggle:hover {
  color: var(--ink);
}

.nav-dropdown-toggle svg {
  transition: transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 8px;
  min-width: 260px;
  box-shadow: 0 4px 16px rgba(17,17,17,0.08);
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink-muted);
  border-radius: var(--rounded-md);
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover {
  background: var(--canvas);
  color: var(--ink);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 32px 24px;
  z-index: 99;
}

.nav-mobile-menu.open {
  display: block;
}

.nav-mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--hairline);
}

.nav-mobile-menu a:last-child {
  border-bottom: none;
}

.nav-mobile-menu a:hover {
  color: var(--ink);
}

/* ── Hero ── */
.hero {
  padding: 80px 0 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -1.2px;
  color: var(--ink);
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-muted);
  letter-spacing: -0.1px;
}

.hero-image-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Section titles ── */
.section-header {
  margin-bottom: 40px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.section-title {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--ink);
}

.section-lead {
  font-size: 17px;
  color: var(--ink-muted);
  margin-top: 12px;
  line-height: 1.55;
}

/* ── Sections ── */
.section {
  padding: 80px 0;
}

.section-divider {
  height: 1px;
  background: var(--hairline);
  margin: 0 32px;
}

/* ── Article Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  overflow: hidden;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: var(--ink-subtle);
}

.article-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-2);
}

.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.03);
}

.article-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.article-card-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 10px;
}

.article-card-excerpt {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
  flex: 1;
}

.article-card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.article-card-date {
  font-size: 12px;
  color: var(--ink-subtle);
}

.article-card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-card-link:hover {
  color: var(--ink-muted);
}

/* ── Article page ── */
.article-hero {
  padding: 48px 0 0;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.article-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-subtle);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: var(--rounded-sm);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.article-date {
  font-size: 13px;
  color: var(--ink-subtle);
}

.article-title {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -1.0px;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 800px;
}

.article-lead {
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-muted);
  letter-spacing: -0.1px;
  max-width: 720px;
  margin-bottom: 40px;
}

.article-image-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xl);
  overflow: hidden;
  margin-bottom: 56px;
  max-height: 480px;
}

.article-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.article-image-caption {
  font-size: 12px;
  color: var(--ink-subtle);
  padding: 10px 16px;
  border-top: 1px solid var(--hairline);
}

.article-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  padding-bottom: 96px;
}

.article-body {
  max-width: 720px;
}

.article-body h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 16px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px 0;
  padding-left: 20px;
}

.article-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.article-body strong {
  font-weight: 600;
  color: var(--ink);
}

.article-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
}

.article-body a:hover {
  text-decoration-color: var(--ink-muted);
}

.info-box {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--ink);
  border-radius: var(--rounded-md);
  padding: 20px 24px;
  margin: 28px 0;
}

.info-box p {
  margin-bottom: 0;
  font-size: 15px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
}

.data-table th {
  background: var(--surface-2);
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}

.data-table td {
  padding: 10px 14px;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--hairline);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* ── Sidebar ── */
.article-sidebar {
  padding-top: 4px;
}

.sidebar-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  border-bottom: 1px solid var(--hairline);
}

.sidebar-links li:last-child {
  border-bottom: none;
}

.sidebar-links a {
  display: block;
  padding: 10px 0;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.sidebar-links a:hover {
  color: var(--ink);
}

/* ── Contact Form ── */
.contact-section {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xl);
  padding: 48px;
  max-width: 640px;
  margin: 0 auto;
}

.contact-title {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 8px;
}

.contact-desc {
  font-size: 15px;
  color: var(--ink-muted);
  margin-bottom: 32px;
  line-height: 1.55;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-md);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink-muted);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-subtle);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit {
  background: var(--ink);
  color: #ffffff;
  border: none;
  border-radius: var(--rounded-md);
  padding: 10px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
  min-height: 44px;
}

.form-submit:hover {
  opacity: 0.85;
}

.form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.form-message {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--rounded-md);
  font-size: 14px;
  display: none;
}

.form-message.success {
  background: #f0faf4;
  border: 1px solid #b7e2c9;
  color: #1a7a45;
}

.form-message.error {
  background: #fff5f5;
  border: 1px solid #f5c0c0;
  color: #c0392b;
}

/* ── Cookie Banner ── */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  border-radius: var(--rounded-lg);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 680px;
  width: calc(100% - 48px);
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(17,17,17,0.25);
}

#cookie-banner p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  flex: 1;
}

#cookie-banner a {
  color: rgba(255,255,255,0.65);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn-accept {
  background: #fff;
  color: var(--ink);
  border: none;
  border-radius: var(--rounded-md);
  padding: 8px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.cookie-btn-reject {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--rounded-md);
  padding: 8px 18px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

/* ── Footer ── */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding: 64px 32px 40px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--ink-subtle);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-links a {
  font-size: 13px;
  color: var(--ink-subtle);
  transition: color 0.15s;
}

.footer-col-links a:hover {
  color: var(--ink-muted);
}

.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 12px;
  color: var(--ink-subtle);
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--ink-subtle);
  max-width: 480px;
  text-align: right;
  line-height: 1.5;
}

/* ── Page content (about/privacy/terms) ── */
.page-hero {
  padding: 56px 0 40px;
}

.page-title {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -1.0px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 640px;
}

.page-content {
  padding-bottom: 96px;
}

.page-body {
  max-width: 720px;
}

.page-body h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 14px;
}

.page-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.page-body ul {
  margin: 0 0 18px 20px;
}

.page-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.page-body strong {
  font-weight: 600;
  color: var(--ink);
}

.page-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
}

.updated-date {
  font-size: 13px;
  color: var(--ink-subtle);
  margin-bottom: 40px;
}

/* ── About page specifics ── */
.about-image-card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--rounded-xl);
  overflow: hidden;
  margin-bottom: 48px;
  max-height: 420px;
}

.about-image-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.breadcrumb a,
.breadcrumb span {
  font-size: 13px;
  color: var(--ink-subtle);
}

.breadcrumb a:hover {
  color: var(--ink-muted);
}

.breadcrumb-sep {
  font-size: 12px;
  color: var(--ink-subtle);
}

/* ── Related articles ── */
.related-section {
  padding: 64px 0;
  border-top: 1px solid var(--hairline);
}

.related-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin-bottom: 28px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

  .article-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-mobile-menu {
    padding: 16px 20px 24px;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-title {
    font-size: 34px;
    letter-spacing: -0.8px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 26px;
  }

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

  .contact-section {
    padding: 32px 24px;
  }

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

  .footer-brand-desc {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-disclaimer {
    text-align: center;
  }

  .article-title {
    font-size: 30px;
    letter-spacing: -0.6px;
  }

  .article-lead {
    font-size: 16px;
  }

  .article-image-card img {
    height: 240px;
  }

  #cookie-banner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    bottom: 16px;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .page-title {
    font-size: 30px;
  }

  .section-divider {
    margin: 0 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

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