:root {
  --ink: #202124;
  --ink-secondary: #3c4043;
  --ink-muted: #5f6368;
  --ink-faint: #9aa0a6;
  --surface: #ffffff;
  --canvas: #f8f9fa;
  --border: #dadce0;
  --border-hover: #bdc1c6;
  --accent: #1a73e8;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 680px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

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

html {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

::selection {
  background: var(--ink);
  color: var(--surface);
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 250, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.8125rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  transition: opacity 0.15s ease;
}

.brand:hover {
  opacity: 0.7;
}

.brand-name {
  color: var(--ink-muted);
  font-weight: 600;
}

.brand-sep {
  color: var(--ink-faint);
  font-weight: 400;
}

.brand-sub {
  color: var(--ink);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.375rem 0.6875rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.header-link:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border);
}

.header-link svg {
  flex-shrink: 0;
}

/* ─── Main Content ─── */
.main-content {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

/* ─── Page Header ─── */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.875rem;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

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

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-hover);
  flex-shrink: 0;
}

/* ─── Document ─── */
.document {
  color: var(--ink-secondary);
}

.document-intro {
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.document-intro p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.document-intro p:last-child {
  margin-bottom: 0;
}

/* ─── Sections ─── */
.section {
  margin-bottom: 2.5rem;
}

.section:last-of-type {
  margin-bottom: 0;
}

.section h2 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--border);
}

.section p {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.section p:last-child {
  margin-bottom: 0;
}

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

/* ─── Lists ─── */
.section ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section ul li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-hover);
}

.section ul ul {
  padding-left: 0.5rem;
  margin: 0.375rem 0;
  gap: 0.375rem;
}

.section ul ul li {
  padding-left: 1rem;
  font-size: 0.9375rem;
}

.section ul ul li::before {
  width: 4px;
  height: 4px;
  background: var(--border);
  top: 0.8rem;
}

/* ─── Links ─── */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Contact ─── */
.contact-card {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
}

.contact-label {
  font-weight: 600;
  color: var(--ink);
  min-width: 75px;
  flex-shrink: 0;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-text {
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.footer-text a {
  color: var(--ink-muted);
}

.footer-text a:hover {
  color: var(--ink);
}

.footer-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--ink);
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .header-inner {
    padding: 0.6875rem 1rem;
  }

  .main-content {
    padding: 2.25rem 1rem 3.5rem;
  }

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

  .section h2 {
    font-size: 1.0625rem;
  }

  .page-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .meta-dot {
    display: none;
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 380px) {
  .main-content {
    padding: 1.5rem 0.75rem 2.5rem;
  }

  .page-title {
    font-size: 1.375rem;
  }
}
