:root {
  --bg: #f3f6f8;
  --bg-accent: #e7eef2;
  --surface: #ffffff;
  --ink: #152028;
  --ink-muted: #4d5d69;
  --border: #d3dde4;
  --accent: #0f6e6a;
  --accent-hover: #0b5754;
  --accent-soft: #d8efed;
  --focus: #1a7a8a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(21, 32, 40, 0.04), 0 8px 24px rgba(21, 32, 40, 0.06);
  --font-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-display: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --max: 44rem;
  --wide: 56rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #d9ecea 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, #dce6ef 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-accent) 100%);
  background-attachment: fixed;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.site-header__inner,
.site-footer__inner,
.main {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

.main {
  padding: 2.5rem 0 4rem;
}

.hero {
  max-width: var(--max);
  margin-bottom: 2.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.1rem;
  max-width: 38rem;
}

.section-label {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.app-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .app-grid {
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  }
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.app-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.app-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--secondary {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border-color: transparent;
}

.btn--secondary:hover {
  background: #c5e5e2;
  color: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--bg);
  color: var(--ink);
}

.doc-page {
  max-width: var(--max);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--border);
}

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

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

.doc-page h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--ink-muted);
}

.placeholder {
  margin: 0 0 1.25rem;
  padding: 1.1rem 1.2rem;
  background: #fff8e8;
  border: 1px solid #edd9a8;
  border-radius: 10px;
  color: #5c4a1e;
}

.content-block {
  margin-bottom: 1.75rem;
}

.content-block h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.content-block p {
  margin: 0;
  color: var(--ink-muted);
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}

.site-footer__inner {
  padding: 1.25rem 0 2rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
