/* Growth-Journal.space — editorial static site */

:root {
  --bg: #f7f5f2;
  --text: #1a1a1a;
  --muted: #4d4d4d;
  --accent: #6b4e3d;
  --accent-hover: #523b2f;
  --border: #d9d4cc;
  --note-bg: #efeae3;
  --max-read: 38rem;
  --max-wide: 52rem;
  --font-serif: "Literata", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

.wrap {
  width: min(100% - 2rem, var(--max-read));
  margin-inline: auto;
}

.wrap--wide {
  width: min(100% - 2rem, var(--max-wide));
}

/* HEADER */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.site-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

.site-title:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 1.25rem;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

body.nav-open .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-nav a {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
  }
}

/* Sections */
.section {
  padding-block: 3.5rem;
}

.section--tight {
  padding-block: 2.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.section-lede {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 36rem;
}

/* LEAD */
.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.lead h1,
.page-header h1,
.article-body h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.lead-support,
.page-lede {
  margin: 0 0 1.25rem;
  max-width: var(--max-read);
}

.lead-cta {
  margin: 1.5rem 0 0;
}

.lead-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .lead-grid {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 14rem);
    gap: 2.5rem;
  }
}

.note-rail {
  margin: 0;
}

.note-block {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  background: var(--note-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: 0;
}

.link-button {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border: 1px solid var(--accent);
}

.link-button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff !important;
}

.link-button--ghost {
  background: transparent;
  color: var(--accent) !important;
}

.link-button--ghost:hover {
  background: var(--note-bg);
  color: var(--accent-hover) !important;
}

/* START READING paths */
.paths {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .paths {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.path-block {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.path-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.path-intro {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.path-links {
  margin: 0;
  padding-left: 1.15rem;
}

.path-links li {
  margin-bottom: 0.45rem;
}

.path-links a {
  font-weight: 500;
}

/* THEMES */
.themes .theme-groups {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 700px) {
  .themes .theme-groups {
    grid-template-columns: repeat(2, 1fr);
  }
}

.theme-group {
  border-left: 3px solid var(--border);
  padding-left: 1rem;
}

.theme-group--span {
  grid-column: 1 / -1;
  border-left-color: var(--accent);
}

.theme-label {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.theme-group p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* SELECTED ESSAYS */
.essay-feature {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 2rem;
  background: #fffef9;
}

.essay-feature-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.65rem;
  line-height: 1.3;
}

.essay-feature-title a {
  color: var(--text);
  text-decoration: none;
}

.essay-feature-title a:hover {
  color: var(--accent);
}

.essay-feature-summary {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.essay-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.essay-teaser {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.essay-teaser:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.essay-teaser-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  line-height: 1.35;
}

.essay-teaser-title a {
  color: var(--text);
  text-decoration: none;
}

.essay-teaser-title a:hover {
  color: var(--accent);
}

.essay-teaser-summary {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.essay-read {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.essay-read a {
  text-decoration: none;
}

.essay-read a:hover {
  text-decoration: underline;
}

/* ARCHIVE */
.archive-intro {
  margin: 0 0 1rem;
  color: var(--muted);
}

.archive-list {
  margin: 0;
  padding-left: 1.35rem;
  max-width: var(--max-read);
}

.archive-list li {
  margin-bottom: 0.5rem;
}

.archive-list a {
  font-weight: 500;
}

/* CONTACT NOTE */
.contact-note {
  border-top: 1px solid var(--border);
}

.contact-inline {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.contact-inline li {
  margin-bottom: 0.35rem;
}

.contact-cta {
  margin: 1.5rem 0 0;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1rem 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

.footer-name {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.footer-tag {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 28rem;
}

.nav-list--footer {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-list--footer a {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.nav-list--footer a:hover {
  color: var(--accent);
}

.footer-contact p {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.copyright {
  text-align: left;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 2rem auto 0;
  width: min(100% - 2rem, var(--max-wide));
}

/* Inner pages */
.page-main {
  padding-block: 2.5rem 3rem;
}

.narrow-page {
  max-width: var(--max-read);
}

.page-header {
  margin-bottom: 2rem;
}

.prose-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.prose-block p,
.prose-block ul {
  margin: 0 0 1rem;
}

.prose-block ul {
  padding-left: 1.25rem;
}

.contact-dl {
  margin: 0;
}

.contact-dl dt {
  font-weight: 600;
  margin-top: 1rem;
}

.contact-dl dt:first-child {
  margin-top: 0;
}

.contact-dl dd {
  margin: 0.25rem 0 0;
}

.contact-form .field {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.form-note,
.form-hint {
  font-size: 0.9rem;
  color: var(--muted);
}

.form-hint {
  margin-top: 0.75rem;
}

/* Article layout */
.article-page .breadcrumb {
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.article-page .breadcrumb a {
  font-weight: 500;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.article-body {
  font-size: 1.05rem;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 2.25rem 0 0.75rem;
  line-height: 1.25;
}

.article-body p {
  margin: 0 0 1rem;
}

.related {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.related ul {
  margin: 0;
  padding-left: 1.2rem;
}

.related li {
  margin-bottom: 0.4rem;
}

.policy-page .prose-heading {
  margin-top: 2.5rem;
}

.policy-page .prose-block:first-of-type .prose-heading {
  margin-top: 1.5rem;
}
