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

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #000;
  background: #fff;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
ol, ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── CSS Variables ── */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f4f4f4;
  --gray-200: #e8e8e8;
  --gray-400: #999999;
  --gray-600: #555555;
  --nav-width: 220px;
  --transition: 220ms ease;
  --radius: 10px;
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.15);
  --glass-bg-light: rgba(0,0,0,0.03);
  --glass-border-light: rgba(0,0,0,0.08);
}

/* ── Layout Wrapper ── */
.page-wrapper {
  display: grid;
  grid-template-columns: var(--nav-width) 1fr;
  min-height: 100vh;
}

.main-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ── Side Navigation ── */
.sidenav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  z-index: 100;
  overflow-y: auto;
}

.sidenav > ol {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.5rem 0 0;
}

.sidenav > ol > li > a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.01em;
  transition: color var(--transition), background var(--transition), padding-left var(--transition);
  min-height: 44px;
  border-left: 2px solid transparent;
}

.sidenav > ol > li > a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
  padding-left: 2rem;
  border-left-color: #fff;
  text-decoration: none;
}

/* ── Mobile Top Navigation ── */
.topnav {
  display: none;
  background: #000;
  padding: 0 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.topnav > ol {
  display: flex;
  flex-direction: row;
  gap: 0;
  white-space: nowrap;
}

.topnav > ol > li > a {
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  height: 52px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
  min-height: 44px;
}

.topnav > ol > li > a:hover {
  color: #fff;
  text-decoration: none;
}

/* ── Hero Section ── */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-img-slot {
  overflow: hidden;
  position: relative;
}

.hero-img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.slot-1 {
  transform: translateY(-3%);
}

.slot-2 {
  transform: translateY(3%);
}

.hero-slash {
  position: absolute;
  top: 0;
  left: 50%;
  width: 80px;
  height: 100%;
  background: #000;
  transform: skewX(-4deg) translateX(-50%);
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  padding: 3rem 3rem 4rem;
  max-width: 600px;
  color: #fff;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 480px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background: #fff;
  color: #000;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid #fff;
  transition: background var(--transition), color var(--transition);
  min-height: 48px;
}

.cta-btn:hover {
  background: transparent;
  color: #fff;
  text-decoration: none;
}

/* ── Page Header (non-home) ── */
.page-header {
  background: #000;
  color: #fff;
  padding: 4rem 3rem 3rem;
  border-bottom: 1px solid #222;
}

.page-header-inner {
  max-width: 800px;
}

.page-eyebrow {
  margin-bottom: 0.75rem;
}

.page-eyebrow span {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.2rem 0.6rem;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

.page-lead {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  max-width: 640px;
}

.policy-date {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  margin-top: 1rem;
}

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.breadcrumb > ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--gray-600);
  flex-wrap: wrap;
}

.breadcrumb > ol > li + li::before {
  content: '›';
  margin-right: 0.5rem;
  color: var(--gray-400);
}

.breadcrumb a {
  color: var(--gray-600);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: #000;
  text-decoration: none;
}

/* ── Main Content Area ── */
main#main-content {
  flex: 1;
  padding: 2rem 0;
}

/* ── Content Section (main > section > figure/aside) ── */
.content-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 2rem 0;
  align-items: start;
}

.section-aside {
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  border-right: 1px solid var(--gray-200);
  position: sticky;
  top: 2rem;
}

.aside-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.875rem;
}

.aside-title span,
.aside-sub span {
  display: inline-block;
}

.aside-sub {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin: 1.25rem 0 0.625rem;
}

.aside-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aside-nav > li > a {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.8125rem;
  color: var(--gray-600);
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
  transition: color var(--transition), border-color var(--transition);
  min-height: 32px;
  line-height: 1.9;
}

.aside-nav > li > a:hover {
  color: #000;
  border-left-color: #000;
  text-decoration: none;
}

.aside-tags {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.aside-tags a {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  min-height: 32px;
  line-height: 2;
}

.aside-tags a:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  text-decoration: none;
}

/* ── Content Figure ── */
.content-fig {
  padding: 1.5rem 2rem;
  min-width: 0;
}

/* ── Page Content (injected HTML) ── */
.page-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #1a1a1a;
  max-width: 720px;
}

.page-content h2 {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.page-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content ul, .page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: revert;
}

.page-content li {
  margin-bottom: 0.375rem;
}

.page-content a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  opacity: 0.6;
}

.page-content strong { font-weight: 600; }
.page-content em { font-style: italic; }

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

.page-content th, .page-content td {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--gray-200);
  text-align: left;
}

.page-content th {
  background: var(--gray-100);
  font-weight: 600;
}

/* ── Entry specific ── */
.entry-hero {
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.entry-hero-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

.entry-meta {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.pub-date, .mod-date {
  font-size: 0.8125rem;
  color: var(--gray-400);
  display: block;
}

.entry-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}

.entry-body {
  max-width: 680px;
}

/* ── Section Heading ── */
.section-heading {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-heading span {
  display: inline-block;
}

/* ── Category Grid ── */
.cats-section, .entries-section, .related-section, .tagged-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 2rem 3rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  background: var(--glass-bg-light);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  min-height: 110px;
}

.cat-card:hover {
  border-color: #000;
  background: #000;
  transform: translateY(-2px);
  text-decoration: none;
}

.cat-card:hover > strong,
.cat-card:hover > .cat-desc {
  color: #fff;
}

.cat-card > strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #000;
  transition: color var(--transition);
}

.cat-desc {
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.5;
  transition: color var(--transition);
}

/* ── Entry Grid ── */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  min-height: 100px;
}

.glass-card {
  background: var(--glass-bg-light);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border-light);
}

.entry-card:hover {
  transform: translateY(-3px);
  border-color: #000;
  background: #000;
  text-decoration: none;
}

.entry-card:hover > strong,
.entry-card:hover > .entry-desc,
.entry-card:hover > .entry-date {
  color: #fff;
}

.entry-card > strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #000;
  transition: color var(--transition);
  line-height: 1.4;
}

.entry-desc {
  font-size: 0.8125rem;
  color: var(--gray-600);
  line-height: 1.5;
  transition: color var(--transition);
}

.entry-date {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: auto;
  transition: color var(--transition);
}

/* ── About-specific ── */
.about-brand-block {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #000;
}

.about-brand-name {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ── Tag list (inline chips) ── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  border: 1px solid var(--gray-200);
  color: #000;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  min-height: 32px;
}

.tag-list a:hover {
  background: #000;
  color: #fff;
  border-color: #000;
  text-decoration: none;
}

/* ── Footer ── */
.site-footer {
  background: #000;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid #222;
  margin-top: auto;
}

.site-footer > section {
  padding: 2.5rem 1.75rem;
  border-right: 1px solid #1a1a1a;
}

.site-footer > section:last-child {
  border-right: none;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.625rem;
  color: #fff;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.site-footer h3 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.site-footer h3 span {
  display: inline-block;
}

.site-footer ol {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.site-footer ol li a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  display: block;
  padding: 0.2rem 0;
  min-height: 28px;
  line-height: 1.8;
}

.site-footer ol li a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-tags .tag-list {
  flex-direction: column;
  align-items: flex-start;
}

.footer-tags .tag-list a {
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  min-height: 36px;
}

.footer-tags .tag-list a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.footer-legal p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer-legal-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-legal-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.footer-legal-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ── Stagger animation ── */
@media (prefers-reduced-motion: no-preference) {
  .entry-card, .cat-card {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeInUp 0.4s ease forwards;
  }

  .entry-card:nth-child(1), .cat-card:nth-child(1) { animation-delay: 0.05s; }
  .entry-card:nth-child(2), .cat-card:nth-child(2) { animation-delay: 0.1s; }
  .entry-card:nth-child(3), .cat-card:nth-child(3) { animation-delay: 0.15s; }
  .entry-card:nth-child(4), .cat-card:nth-child(4) { animation-delay: 0.2s; }
  .entry-card:nth-child(5), .cat-card:nth-child(5) { animation-delay: 0.25s; }
  .entry-card:nth-child(6), .cat-card:nth-child(6) { animation-delay: 0.3s; }
  .entry-card:nth-child(n+7), .cat-card:nth-child(n+7) { animation-delay: 0.35s; }

  @keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-card, .cat-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .entry-card:hover, .cat-card:hover {
    transform: none;
  }
  * { transition-duration: 0ms !important; }
}

/* ── Responsive: Tablet ── */
@media (max-width: 900px) {
  .page-wrapper {
    grid-template-columns: 1fr;
  }

  .sidenav {
    display: none;
  }

  .topnav {
    display: block;
  }

  .main-area {
    width: 100%;
  }

  .content-section {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .section-aside {
    position: static;
    padding: 1.25rem;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .aside-title, .aside-sub {
    grid-column: 1 / -1;
  }

  .content-fig {
    padding: 1.5rem;
  }

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

  .hero-text {
    padding: 2rem 1.5rem 3rem;
  }

  .cats-section, .entries-section, .related-section, .tagged-section {
    padding: 1.5rem;
  }
}

/* ── Responsive: Mobile ── */
@media (max-width: 600px) {
  .page-header {
    padding: 2.5rem 1.25rem 2rem;
  }

  .hero-section {
    height: auto;
    min-height: 100svh;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero-text {
    padding: 1.5rem 1.25rem 2.5rem;
    width: 100%;
    max-width: none;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-media {
    position: absolute;
    inset: 0;
  }

  .hero-slash {
    width: 40px;
  }

  .content-section {
    padding: 1rem;
  }

  .section-aside {
    grid-template-columns: 1fr;
  }

  .content-fig {
    padding: 1rem;
  }

  .cats-section, .entries-section, .related-section, .tagged-section {
    padding: 1rem;
  }

  .cat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .entry-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

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

  .site-footer > section {
    border-right: none;
    border-bottom: 1px solid #1a1a1a;
    padding: 1.75rem 1.25rem;
  }

  .site-footer > section:last-child {
    border-bottom: none;
  }

  .breadcrumb {
    padding: 0.75rem 1rem;
  }

  .entry-title {
    font-size: 1.5rem;
  }

  .cat-card, .entry-card {
    padding: 1.125rem;
  }
}

/* ── Print ── */
@media print {
  .sidenav, .topnav, .site-footer { display: none; }
  .page-wrapper { display: block; }
  .content-section { display: block; }
  .section-aside { display: none; }
}
