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

:root {
  --guide-bg: #16130e;
  --guide-surface: #1f1b14;
  --guide-accent: #e8a838;
  --guide-accent-hover: #f0b84a;
  --guide-text-primary: #f0ece4;
  --guide-text-secondary: #a09880;
  --guide-text-on-accent: #16130e;
  --guide-border: rgba(255, 255, 255, 0.08);
  --guide-border-strong: rgba(255, 255, 255, 0.15);
  --guide-accent-muted: rgba(232, 168, 56, 0.12);
  --guide-font-heading: 'Oswald', system-ui, sans-serif;
  --guide-font-body: 'Inter', system-ui, sans-serif;
  --guide-max-width: 45rem;
  --guide-space-2: 0.5rem;
  --guide-space-3: 0.75rem;
  --guide-space-4: 1rem;
  --guide-space-5: 1.25rem;
  --guide-space-6: 1.5rem;
  --guide-space-8: 2rem;
  --guide-space-12: 3rem;
  --guide-radius-md: 8px;
  --guide-radius-lg: 12px;
  --guide-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --guide-transition: 200ms var(--guide-ease);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body.guide-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--guide-bg);
  color: var(--guide-text-primary);
  font-family: var(--guide-font-body);
  font-size: 1rem;
  line-height: 1.65;
}

/* Header */

.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--guide-space-4);
  padding: var(--guide-space-5) var(--guide-space-6);
  border-bottom: 1px solid var(--guide-border);
  background-color: var(--guide-bg);
}

.guide-header__brand {
  font-family: var(--guide-font-heading);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--guide-accent);
  text-decoration: none;
  flex-shrink: 0;
}

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

.guide-header__nav {
  display: flex;
  align-items: center;
  gap: var(--guide-space-5);
}

.guide-header__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--guide-text-secondary);
  text-decoration: none;
  transition: color var(--guide-transition);
}

.guide-header__nav a:hover {
  color: var(--guide-text-primary);
}

/* Main content */

.guide-main {
  flex: 1;
  width: 100%;
  max-width: var(--guide-max-width);
  margin: 0 auto;
  padding: var(--guide-space-8) var(--guide-space-6) var(--guide-space-12);
}

.guide-main h1 {
  font-family: var(--guide-font-heading);
  font-size: clamp(1.875rem, 4vw + 0.5rem, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--guide-text-primary);
  margin: 0 0 var(--guide-space-6);
}

.guide-main h2 {
  font-family: var(--guide-font-heading);
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.625rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--guide-text-primary);
  margin: var(--guide-space-8) 0 var(--guide-space-4);
}

.guide-main h2:first-child {
  margin-top: 0;
}

.guide-main p {
  margin: 0 0 var(--guide-space-5);
  color: var(--guide-text-primary);
}

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

.guide-main ol,
.guide-main ul {
  margin: 0 0 var(--guide-space-5);
  padding-left: 1.375rem;
}

.guide-main li {
  margin-bottom: var(--guide-space-3);
  color: var(--guide-text-primary);
}

.guide-main li:last-child {
  margin-bottom: 0;
}

.guide-main ol li::marker {
  color: var(--guide-accent);
  font-weight: 600;
}

.guide-main a:not(.guide-cta__button) {
  color: var(--guide-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color var(--guide-transition);
}

.guide-main a:not(.guide-cta__button):hover {
  color: var(--guide-accent-hover);
}

.guide-main .guide-cta__button {
  color: var(--guide-text-on-accent);
  text-decoration: none;
}

.guide-main strong {
  font-weight: 600;
  color: var(--guide-text-primary);
}

/* Screenshot figures */

.guide-screenshot {
  margin: var(--guide-space-8) 0;
  padding: 0;
  background: var(--guide-surface);
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius-lg);
  overflow: hidden;
}

.guide-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.guide-screenshot figcaption {
  padding: var(--guide-space-4) var(--guide-space-5);
  font-size: 0.875rem;
  color: var(--guide-text-secondary);
  border-top: 1px solid var(--guide-border);
}

/* CTA block */

.guide-cta {
  margin-top: var(--guide-space-12);
  padding: var(--guide-space-8);
  background: var(--guide-surface);
  border: 1px solid var(--guide-border);
  border-radius: var(--guide-radius-lg);
  text-align: center;
}

.guide-cta p {
  margin: 0 0 var(--guide-space-6);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--guide-text-primary);
}

.guide-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--guide-space-4) var(--guide-space-8);
  font-family: var(--guide-font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--guide-text-on-accent);
  background-color: var(--guide-accent);
  border: 1px solid var(--guide-accent);
  border-radius: var(--guide-radius-md);
  text-decoration: none;
  transition:
    background-color var(--guide-transition),
    border-color var(--guide-transition),
    transform var(--guide-transition);
}

.guide-cta__button:hover {
  background-color: var(--guide-accent-hover);
  border-color: var(--guide-accent-hover);
  color: var(--guide-text-on-accent);
}

.guide-cta__button:focus-visible {
  outline: 2px solid var(--guide-accent);
  outline-offset: 2px;
}

.guide-cta__button:active {
  transform: translateY(1px);
}

/* Footer */

.guide-footer {
  padding: var(--guide-space-6);
  border-top: 1px solid var(--guide-border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--guide-text-secondary);
}

.guide-footer a {
  color: var(--guide-text-secondary);
  text-decoration: none;
  transition: color var(--guide-transition);
}

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

.guide-footer p {
  margin: 0;
}

/* Responsive */

@media (max-width: 640px) {
  .guide-header {
    padding: var(--guide-space-4) var(--guide-space-4);
  }

  .guide-header__nav {
    gap: var(--guide-space-4);
  }

  .guide-main {
    padding: var(--guide-space-6) var(--guide-space-4) var(--guide-space-8);
  }

  .guide-cta {
    padding: var(--guide-space-6);
  }

  .guide-cta__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-cta__button:active {
    transform: none;
  }
}
