:root {
  --paper: #FAFAF7;
  --ink: #1B1023;
  --lure: #FF5B3D;
  --mist: #EAE3E7;
  --depth: #241531;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Header */
.site-header {
  margin-bottom: 2.5rem;
}

.wordmark-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hook-glyph {
  width: 1.75rem;
  height: 3rem;
  color: var(--lure);
  flex-shrink: 0;
}

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

.tagline {
  margin: 0.35rem 0 0 2.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
}

/* Hero */
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.hero h1 em {
  color: var(--lure);
  font-style: italic;
}

.hero p {
  font-size: 1.05rem;
  max-width: 46ch;
  color: var(--ink);
  opacity: 0.75;
  margin: 0 0 2rem;
}

/* Proof strip */
.proof {
  margin: -0.75rem 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.proof summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
}

.proof summary::-webkit-details-marker {
  display: none;
}

.proof-badge {
  background: var(--ink);
  color: var(--paper);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proof summary strong {
  color: var(--lure);
}

.proof-how {
  opacity: 0.55;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.proof summary:hover .proof-how {
  opacity: 0.85;
}

.proof > p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 58ch;
  margin: 0.6rem 0 0;
  opacity: 0.7;
}

.results-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

/* Form */
textarea {
  width: 100%;
  min-height: 220px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  padding: 1rem;
  border: 2px solid var(--mist);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}

textarea:focus-visible {
  outline: 3px solid var(--lure);
  outline-offset: 2px;
  border-color: var(--lure);
}

.field-hint {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink);
  opacity: 0.5;
}

/* Buttons */
button,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 91, 61, 0.35);
}

.btn-secondary {
  background: var(--mist);
  color: var(--ink);
}

.btn-secondary:hover {
  transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--lure);
  outline-offset: 2px;
}

.actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Results list */
.hooks-list {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hooks-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 12px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.hooks-list .hook-glyph {
  width: 1rem;
  height: 1.7rem;
  margin-top: 0.15rem;
}

/* Methodology page */
.method-standfirst {
  font-size: 1.05rem;
  opacity: 0.75;
  max-width: 52ch;
  margin: 0 0 2.5rem;
}

.method h2 {
  margin: 2.5rem 0 0.75rem;
}

.method-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lure);
}

.method p {
  max-width: 62ch;
  margin: 0 0 1rem;
}

.method-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 2.5rem;
}

.method .actions {
  margin: 2rem 0 2.5rem;
}

.proof > p a {
  color: var(--lure);
}

/* Banners */
.banner {
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.banner--success {
  background: #EAF7EC;
  color: #1E7E34;
}

.banner--error {
  background: #FDECEA;
  color: #A94442;
}

/* Ad slot */
.ad-slot--placeholder {
  border: 1px dashed var(--mist);
  border-radius: 10px;
  padding: 1.75rem;
  text-align: center;
  color: var(--ink);
  opacity: 0.4;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   Article system (hub, category, article, editorial pages)
   ========================================================================== */

/* Site nav — sits under the tagline in the header */
.site-nav {
  margin: 0.6rem 0 0 2.25rem;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.7;
  text-decoration: none;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.site-nav a:hover {
  color: var(--lure);
  opacity: 1;
  border-bottom-color: var(--lure);
}

/* Shared page heading — hub, category, editorial, and article <h1> all lack
   the .hero class, so they'd otherwise fall back to the browser default */
.page--articles-hub h1,
.page--articles-category h1,
.page--editorial h1,
.page--article article > h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0.55;
  margin: 0 0 1.5rem;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--lure);
  opacity: 1;
}

/* Byline */
.byline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.55;
  margin: 0 0 2rem;
}

.byline a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--mist);
  text-underline-offset: 2px;
}

.byline a:hover {
  color: var(--lure);
  text-decoration-color: var(--lure);
}

/* Article body — readable measure, comfortable rhythm */
.page--article article {
  max-width: 68ch;
}

.page--article article > p:not(.byline) {
  line-height: 1.65;
  margin: 0 0 1.15rem;
}

.page--article article > h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.85rem;
}

.page--article article > h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 2rem 0 0.6rem;
}

.page--article article > ul,
.page--article article > ol {
  line-height: 1.65;
  margin: 0 0 1.15rem;
  padding-left: 1.4rem;
}

.page--article article li {
  margin-bottom: 0.4rem;
}

.page--article article p a {
  color: var(--lure);
  text-decoration: underline;
  text-decoration-color: rgba(255, 91, 61, 0.4);
  text-underline-offset: 2px;
}

.page--article article p a:hover {
  text-decoration-color: var(--lure);
}

.page--article article pre {
  overflow-x: auto;
}

/* Hook CTA — the recurring conversion card dropped into article bodies.
   Deliberately breaks from the white/mist card language used elsewhere
   (hooks-list, category-grid) using the --depth token, so it reads as a
   distinct moment rather than another content block. */
.hook-cta {
  display: block;
  background: var(--depth);
  color: var(--paper);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: center;
  margin: 2.5rem 0;
}

.hook-cta-head {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lure);
  margin: 0 0 0.6rem;
}

.hook-cta > p:not(.hook-cta-head) {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.8;
  margin: 0 0 1.25rem;
}

.hook-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Related articles — simple divided list of links */
.related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mist);
}

.related h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related ul li a {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--mist);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.related ul li:last-child a {
  border-bottom: none;
}

.related ul li a:hover {
  color: var(--lure);
  border-bottom-color: var(--lure);
}

/* Category grid — hub page's category cards */
.category-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
}

.category-grid a {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.category-grid a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 16, 35, 0.08);
  border-color: var(--lure);
}

.category-grid h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.category-grid p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.65;
  margin: 0;
}

.category-description {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.75;
  max-width: 52ch;
  margin: 0 0 2rem;
}

/* Latest articles (hub) and category article list — same card language as
   .hooks-list for a consistent "list of things" pattern across the site */
.latest {
  margin-top: 2.5rem;
}

.latest h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

.latest ul,
.article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
}

.latest li,
.article-list li {
  background: #fff;
  border: 1px solid var(--mist);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.latest li a,
.article-list li a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-decoration: none;
}

.latest li a:hover,
.article-list li a:hover {
  color: var(--lure);
}

.latest li .meta,
.article-list li .meta {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink);
  opacity: 0.6;
  margin: 0.35rem 0 0;
}

.empty-state {
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.6;
  max-width: 50ch;
}

/* Responsive */
@media (max-width: 480px) {
  .page {
    padding: 1.75rem 1.25rem 3rem;
  }

  .tagline {
    margin-left: 0;
  }

  .site-nav {
    margin-left: 0;
  }

  .hook-cta {
    padding: 1.5rem 1.25rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
