:root {
  --forest: #1a332c;
  --coral: #e8734a;
  --ink: #28030f;
  --sage: #4a635b;
  --clinic: #e9f0ec;
  --sterile: #f5faf7;
  --line: rgba(26, 51, 44, 0.14);
  --paper: #fbfdfb;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(232, 115, 74, 0.12), transparent 34rem),
    linear-gradient(120deg, rgba(245, 250, 247, 0.9), rgba(233, 240, 236, 0.95));
  color: var(--ink);
  font-family: var(--font-sans);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--forest);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: top 0.2s ease;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 253, 251, 0.84);
  backdrop-filter: blur(18px);
}

.brand-lockup img {
  display: block;
  width: 202px;
  height: auto;
}

.topbar-meta {
  display: flex;
  gap: 14px;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-meta span + span {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.doc-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  max-width: 1440px;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 72px;
  height: calc(100svh - 72px);
  padding: 36px 24px;
  border-right: 1px solid var(--line);
}

.sidebar nav {
  display: grid;
  gap: 4px;
}

.sidebar a {
  border-radius: 8px;
  color: var(--sage);
  font-size: 0.93rem;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sidebar a:hover,
.sidebar a.active {
  background: rgba(26, 51, 44, 0.08);
  color: var(--forest);
  transform: translateX(2px);
}

.content {
  min-width: 0;
  padding: 64px clamp(28px, 6vw, 96px) 96px;
}

.hero {
  max-width: 960px;
  min-height: calc(100svh - 136px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 72px;
}

.eyebrow,
.section-kicker {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 18px 0 22px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(3.15rem, 8vw, 6.8rem);
  font-weight: 400;
  line-height: 0.98;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  color: var(--sage);
  font-size: 1.18rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-actions span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(245, 250, 247, 0.7);
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 10px 14px;
}

.doc-section {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px);
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.section-body {
  max-width: 920px;
}

.section-body h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
}

.section-body > p {
  max-width: 760px;
  margin: 0 0 26px;
  color: var(--sage);
  font-size: 1.04rem;
  line-height: 1.72;
}

.definition-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.definition-list div {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--forest);
  font-weight: 800;
}

dd {
  margin: 0;
  color: var(--sage);
  line-height: 1.55;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.logo-surface {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.logo-surface.light {
  background: var(--paper);
}

.logo-surface.dark {
  background: var(--forest);
  color: white;
}

.logo-surface img {
  width: min(100%, 248px);
  height: auto;
}

.logo-surface.compact img {
  width: 84px;
}

figcaption {
  display: grid;
  gap: 6px;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 700;
}

figcaption span {
  opacity: 0.72;
}

figcaption a {
  width: fit-content;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 8px 12px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  opacity: 1;
}

figcaption a:hover {
  opacity: 0.78;
  transform: translateY(-1px);
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.swatch {
  min-height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.swatch span,
.swatch strong,
.swatch em {
  display: block;
}

.swatch span {
  margin-bottom: auto;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.swatch strong {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.swatch em {
  font-style: normal;
  line-height: 1.45;
  opacity: 0.82;
}

.forest,
.ink {
  color: white;
}

.forest { background: #1a332c; }
.coral { background: #e8734a; color: white; }
.ink { background: #28030f; }
.sage { background: #4a635b; color: white; }
.clinic { background: #e9f0ec; }
.sterile { background: #f5faf7; }

.type-specimen {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  margin-top: 26px;
}

.type-specimen > div,
.do-dont > div,
.statement-stack {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 253, 251, 0.72);
  padding: 26px;
}

.type-specimen span {
  display: block;
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.type-specimen strong {
  display: block;
  margin-bottom: 18px;
  color: var(--forest);
  font-size: 1.35rem;
}

.serif {
  font-family: var(--font-serif);
}

.sample {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.do-dont {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.do-dont h3 {
  margin: 0 0 16px;
  color: var(--forest);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.do-dont p,
.statement-stack p {
  margin: 0;
  color: var(--sage);
  line-height: 1.62;
}

.do-dont p + p,
.statement-stack p + p {
  margin-top: 12px;
}

.rule-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.rule-list li {
  position: relative;
  padding-left: 26px;
  color: var(--sage);
  line-height: 1.55;
}

.rule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.rule-list.strong li {
  color: var(--forest);
  font-weight: 700;
}

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

  .topbar-meta {
    display: none;
  }

  .doc-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 72px;
    height: auto;
    overflow-x: auto;
    padding: 12px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 253, 251, 0.84);
    backdrop-filter: blur(18px);
  }

  .sidebar nav {
    display: flex;
    min-width: max-content;
  }

  .sidebar a:hover,
  .sidebar a.active {
    transform: none;
  }

  .content {
    padding: 44px 20px 72px;
  }

  .hero {
    min-height: auto;
    padding: 38px 0 64px;
  }

  .doc-section {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 54px 0;
  }

  .definition-list div,
  .type-specimen,
  .do-dont {
    grid-template-columns: 1fr;
  }

  .logo-grid,
  .swatch-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
