:root {
  --ink-muted: #6B6B65;
  --border2: #8A8A84;
  --accent: #C83C00;
  --accent-hover: #A83200;
}

html, body { overflow-x: hidden; }

header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.csp-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: .45rem .75rem;
  border: 1px solid var(--border2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: 600 .82rem/1 'DM Sans', sans-serif;
  cursor: pointer;
}

.csp-menu-icon {
  display: inline-block;
  width: 17px;
  height: 12px;
  margin-right: .45rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}

.csp-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  border-top: 2px solid currentColor;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.submit-btn,
.generate-btn,
.copy-btn,
.gen-btn,
.cta-btn,
.css-copy-btn {
  background-color: var(--accent) !important;
  color: #fff !important;
}

.submit-btn:hover,
.generate-btn:hover,
.copy-btn:hover,
.gen-btn:hover,
.cta-btn:hover,
.css-copy-btn:hover {
  background-color: var(--accent-hover) !important;
}

.article-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: -1rem 0 2.5rem;
  border: 1px solid var(--border);
  border-radius: 14px;
}

@media (max-width: 1050px) {
  header { height: 58px !important; padding: 0 1rem !important; position: sticky !important; }
  header .logo { flex-shrink: 0; }
  .csp-menu-toggle { display: inline-flex; }
  header nav {
    display: none !important;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
    flex-direction: column;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: .2rem !important;
    padding: .75rem 1rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border2);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
  }
  header.csp-menu-open nav { display: flex !important; }
  header nav a { width: 100%; padding: .75rem .85rem !important; font-size: .9rem !important; }
}

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