/* Fresh Ritual — deep forest / warm copper. All geometry mirrors the reference
   site's measured layout; colours, type and copy come from this site's fingerprint. */
:root {
  --base: #0d1b16;
  --panel: #13251e;
  --panel-2: #172b22;
  --ink: #f1efe6;
  --muted: #9bb0a3;
  --accent: #d8a25c;
  --accent-dark: #a9742f;
  --line: rgba(241, 239, 230, .14);
  --radius: 22px;
  --radius-sm: 12px;
  --container: 1400px;
  --gap: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--base); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 2rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.eyebrow, .section-tag {
  display: inline-block; border-radius: 999px; padding: 4px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(216, 162, 92, .12); color: var(--accent); margin-bottom: 12px;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--base); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.inner { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* Header — single line, path-aware pill menu, no utility row. */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13, 27, 22, .94); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--container); margin: 0 auto; padding: 10px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.brand-mark { color: var(--accent); font-size: 1.2rem; }
.brand-name { font-size: 1.05rem; }
.pill-nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.pill-nav a { color: var(--muted); padding: 7px 14px; border-radius: 999px; font-size: .9rem; white-space: nowrap; }
.pill-nav a:hover { color: var(--ink); background: rgba(241, 239, 230, .06); text-decoration: none; }
.pill-nav a.is-active { color: var(--base); background: var(--accent); font-weight: 700; }

/* Hero — reference geometry: split grid, 90vh, 40px bottom round. */
.hero { min-height: 90vh; display: grid; grid-template-columns: 1fr 1fr; border-radius: 0 0 40px 40px; background-color: var(--panel); background-size: cover; background-position: center; overflow: hidden; }
.hero-inner { padding: 80px 50px 80px 60px; display: flex; flex-direction: column; justify-content: center; max-width: 760px; }
.hero h1 { max-width: 12ch; }
.hero-lede { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero-examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 28px; }
.hero-examples a { border: 1px solid var(--line); background: rgba(13, 27, 22, .6); border-radius: 999px; padding: 6px 14px; font-size: .86rem; }
.btn-primary { display: inline-block; width: fit-content; background: var(--accent); color: var(--base); font-weight: 700; border-radius: var(--radius-sm); padding: 15px 26px; }
.btn-primary:hover { background: #e5b677; text-decoration: none; }

/* Home sections — six in exact order, measured section padding. */
.tb-section, .tb-tools-section, .tb-posts-section, .tb-authors-section, .tb-tags-section { max-width: var(--container); margin: 0 auto; padding: 60px 32px; }
.tb-tools-section { padding-top: 20px; }
.tb-tags-section { padding-bottom: 80px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 0; }
.tb-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card { display: block; background: var(--panel); border-radius: var(--radius); padding: 24px; color: var(--ink); }
.cat-card:hover { background: var(--panel-2); text-decoration: none; transform: translateY(-3px); }
.cat-card p { color: var(--muted); font-size: .92rem; }
.cat-card h3 { margin-top: 10px; }
.emoji-icon { font-size: 1.35rem; line-height: 1; }
.feature-strip, .related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tb-posts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 40px; }
.tool-card { background: var(--panel); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; min-height: 176px; }
.tool-card:hover { background: var(--panel-2); transform: translateY(-3px); }
.card-link { color: var(--ink); }
.card-link h3 { margin: 8px 0 0; font-size: 1.02rem; }
.tool-card p { color: var(--muted); font-size: .88rem; margin: 0; flex: 1; }
.card-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.tb-authors-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 520px)); gap: 22px; justify-content: center; }
.tb-author-card { background: var(--panel); border-radius: 20px; padding: 28px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; transition: background .25s ease, transform .25s ease; }
.tb-author-card:hover { background: var(--panel-2); transform: translateY(-3px); }
.tb-author-card img { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; margin-bottom: 14px; }
.tb-author-card p { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-cloud a { border-radius: 999px; padding: 7px 16px; background: var(--panel); color: var(--ink); font-size: .88rem; }
.tag-cloud a:hover { background: var(--accent); color: var(--base); text-decoration: none; }

/* Category + directory. */
.breadcrumbs { color: var(--muted); font-size: .88rem; padding: 28px 0 12px; }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 70ch; }
.category-band { margin: 44px 0; }
.category-band > h2 { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.category-band > h2 span { font-size: .8rem; color: var(--muted); font-weight: 400; }
.band-grid, .dir-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.band-more { margin-top: 16px; color: var(--muted); }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 36px 0 64px; border-top: 1px solid var(--line); }

/* Tool form — reference geometry: 800px container, 12px radius, 4 chips in one row. */
.tool-page { padding-bottom: 60px; }
.tool-shell { margin: 28px 0 40px; }
.name-generator-container { max-width: 800px; margin: 0 auto; padding: 20px; background: var(--panel); border-radius: 12px; }
.description-label { font-weight: 700; margin-bottom: 4px; }
.description-note { color: var(--muted); font-size: .88rem; margin-bottom: 12px; }
.description-box { width: 100%; min-height: 112px; resize: vertical; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--base); color: var(--ink); padding: 12px 14px; font: inherit; }
.style-options { display: flex; gap: 15px; margin: 25px 0 0; }
.style-chip { flex: 1; min-width: 0; padding: 12px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--base); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; font: inherit; font-size: .92rem; }
.style-chip span { display: block; overflow-wrap: anywhere; }
.style-chip[aria-checked="true"] { background: rgba(216, 162, 92, .16); border-color: var(--accent); color: var(--accent); }
.generate-button { width: 100%; padding: 15px; background: var(--accent); color: var(--base); border: 0; border-radius: 8px; font-size: 18px; font-weight: 700; cursor: pointer; margin: 20px 0; }
.generate-button:disabled { opacity: .6; cursor: wait; }
.loading { color: var(--accent); margin: 0 0 12px; }
.results-container { margin-top: 20px; display: grid; gap: 10px; }
.result-card { counter-increment: result; background: var(--base); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.result-card::before { content: counter(result) "."; color: var(--accent); font-weight: 700; }
.result-card .result-text { flex: 1; white-space: pre-wrap; }
.copy-btn { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.tool-note { color: var(--muted); font-size: .82rem; margin: 14px 0 0; }
.results-container { counter-reset: result; }

/* Longread. */
.longread { max-width: 820px; margin: 0 auto 40px; }
.longread p, .longread li { color: var(--ink); }
.longread h2 { margin-top: 44px; }
.example-list { columns: 2; padding-left: 22px; }
.example-list li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; margin: 20px 0; }
.longread table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.longread th, .longread td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.longread th { background: var(--panel); color: var(--accent); }
.faq-heading { font-weight: 700; font-size: 1.15rem; margin-top: 40px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq-item h3 { color: var(--accent); }
.article-disclaimer { background: var(--panel); border-radius: var(--radius); padding: 18px 20px; margin-top: 32px; color: var(--muted); font-size: .9rem; }
.author-strip { display: flex; gap: 20px; align-items: center; background: var(--panel); border-radius: var(--radius); padding: 22px; max-width: 820px; margin: 0 auto 40px; }
.author-strip img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; }
.related-section { border-top: 1px solid var(--line); padding-top: 28px; }

/* Author + legal. */
.author-head { text-align: center; padding: 56px 0 24px; }
.author-head img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; margin: 0 auto 18px; }
.author-head .lede { margin: 0 auto; }
.legal-page > h1 { text-align: center; padding-top: 56px; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-top: 56px; }
.legal-toc { position: sticky; top: 90px; align-self: start; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; }
.legal-toc li { margin-bottom: 8px; }
.legal-toc a { color: var(--muted); font-size: .9rem; }
.legal-article { max-width: 760px; text-align: left; }
.legal-article h2 { margin-top: 36px; }
.legal-article h3 { margin-top: 24px; }
.legal-lede { font-size: 1.08rem; color: var(--muted); }
.legal-updated { color: var(--muted); font-size: .86rem; }
.not-found { min-height: 60vh; padding-top: 80px; }

/* Footer — four pill columns, each editor listed once. */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 48px 32px 64px; }
.footer-grid { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-grid h3, .footer-head { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; margin: 0 0 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid p { color: var(--muted); font-size: .88rem; }
.footer-note { font-size: .8rem !important; }

@media (max-width: 900px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .pill-nav { flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; }
  .hero-inner { padding: 60px 24px; }
  .tb-cat-grid, .band-grid, .dir-grid, .feature-strip, .related-grid, .tb-posts-grid { grid-template-columns: repeat(2, 1fr); }
  .tb-authors-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; }
  .style-options { flex-wrap: wrap; }
  .style-chip { flex: 1 1 45%; }
}
@media (max-width: 580px) {
  .tb-cat-grid, .band-grid, .dir-grid, .feature-strip, .related-grid, .tb-posts-grid { grid-template-columns: 1fr; }
  .style-options { flex-direction: column; }
  .example-list { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
}
