/* ============================================
   The Longer Look — shared stylesheet
   Mobile-first. Used by every page on the site.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #1A2E45;
  --ink-soft: #2C3E5C;
  --bronze: #8C6B3F;
  --bronze-soft: #B89870;
  --cream: #F4EFE6;
  --cream-soft: #FAF7F0;
  --rule: #C9C0B0;
  --body: #1E1E1C;
  --body-soft: #4A4A4A;
  --muted: #6B6660;
  --paper: #FFFFFF;

  --gutter: 1.25rem;
  --gutter-lg: 2rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'EB Garamond', Georgia, serif;
  color: var(--body);
  background: var(--cream-soft);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

p, li, h1, h2, h3, blockquote, .stand, .desc, .standfirst, .title {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* ============================================
   Masthead
   ============================================ */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.masthead-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.masthead-title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0;
}

.masthead-title:hover { color: var(--bronze); }

.masthead-nav {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.masthead-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
  padding: 0.5rem 0;
  display: inline-block;
}

.masthead-nav a:hover,
.masthead-nav a:focus { color: var(--bronze); }
.masthead-nav a.current { color: var(--bronze); font-weight: 500; }

/* ============================================
   Main container
   ============================================ */

main { flex: 1; width: 100%; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem var(--gutter) 1rem;
}

.container--wide { max-width: 880px; }

/* ============================================
   Typography (mobile-first)
   ============================================ */

.eyebrow {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--bronze);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.eyebrow::before, .eyebrow::after {
  content: "·";
  margin: 0 0.5rem;
  color: var(--bronze-soft);
}

.eyebrow--left { text-align: left; }
.eyebrow--left::before, .eyebrow--left::after { content: none; }

h1.title {
  font-size: 1.85rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

h1.title--left { text-align: left; }

.standfirst {
  font-size: 1.1rem;
  line-height: 1.55;
  font-style: italic;
  color: var(--body-soft);
  text-align: center;
  max-width: 580px;
  margin: 0 auto 1.5rem;
}

.standfirst--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.byline {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.byline strong { color: var(--body); font-weight: 500; }

p {
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: var(--body);
}

p.lead { font-size: 1.18rem; line-height: 1.6; }

h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2.4rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h3 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bronze);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}

ul, ol {
  margin: 1rem 0 1.5rem 1.25rem;
  padding-left: 0.25rem;
}

li {
  margin-bottom: 0.7rem;
  font-size: 1.06rem;
  line-height: 1.65;
  padding-left: 0.25rem;
}

strong { font-weight: 600; color: var(--body); }
em { font-style: italic; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--bronze-soft);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover, a:focus { color: var(--bronze); }

/* ============================================
   Special blocks
   ============================================ */

.disclosure {
  background: var(--cream);
  border-top: 3px solid var(--bronze);
  border-bottom: 1px solid var(--rule);
  padding: 1.4rem var(--gutter);
  margin: 2rem calc(-1 * var(--gutter)) 2rem;
  font-size: 0.98rem;
  line-height: 1.65;
}

.disclosure h3 { margin-top: 0; margin-bottom: 0.7rem; }
.disclosure p { font-size: 0.98rem; margin-bottom: 0.9rem; }
.disclosure p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 3px solid var(--bronze);
  padding: 0.4rem 0 0.4rem 1.1rem;
  margin: 1.8rem 0;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.recommendation {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  padding: 1.4rem var(--gutter);
  margin: 2rem calc(-1 * var(--gutter)) 2rem;
}

.recommendation h3 { margin-top: 0; color: var(--ink); }
.recommendation p { margin-bottom: 0.7rem; }
.recommendation p:last-child { margin-bottom: 0; }

.triggers {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.triggers li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.7rem;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
  padding-left: 0;
}

.triggers li:last-child { border-bottom: none; }

.triggers .num {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--bronze);
  font-size: 1.05rem;
}

/* ============================================
   Downloads
   ============================================ */

.downloads {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.3rem var(--gutter);
  margin: 2.5rem calc(-1 * var(--gutter)) 2rem;
  text-align: center;
}

.downloads h3 { margin-top: 0; margin-bottom: 0.4rem; }

.downloads p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.download-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.download-links a {
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
  border-radius: 2px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-links a:hover,
.download-links a:focus {
  background: var(--ink);
  color: var(--paper);
}

/* ============================================
   Article navigation
   ============================================ */

.article-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 2.5rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: 'Inter', sans-serif;
}

.article-nav a {
  display: block;
  padding: 1rem 1.2rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  text-decoration: none;
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.45;
  transition: all 0.15s ease;
  min-height: 44px;
}

.article-nav a:hover,
.article-nav a:focus { border-color: var(--bronze); }

.article-nav .label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--bronze);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.article-nav .next { text-align: left; }

.article-nav .prev-empty,
.article-nav .next-empty {
  padding: 1rem 1.2rem;
  border: 1px dashed var(--rule);
  color: var(--muted);
  font-style: italic;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  min-height: 44px;
}

/* ============================================
   Article list
   ============================================ */

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

.article-list li {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
  margin-bottom: 0;
}

.article-list li:last-child { border-bottom: none; }

.article-list .meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--bronze);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.article-list h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0 0 0.45rem;
  font-weight: 600;
}

.article-list h2 a {
  color: var(--ink);
  text-decoration: none;
}

.article-list h2 a:hover,
.article-list h2 a:focus { color: var(--bronze); }

.article-list .stand {
  font-style: italic;
  color: var(--body-soft);
  font-size: 1.02rem;
  margin-bottom: 0.7rem;
  line-height: 1.55;
}

.article-list .read {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--bronze);
  text-decoration: none;
  letter-spacing: 0.04em;
  padding: 0.4rem 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.article-list .read:hover,
.article-list .read:focus { color: var(--ink); }

.article-list--featured li:first-child {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--bronze);
  padding: 1.3rem var(--gutter);
  margin: 0 calc(-1 * var(--gutter)) 1.5rem;
}

.article-list--featured li:first-child h2 { font-size: 1.5rem; }
.article-list--featured li:first-child .meta { color: var(--bronze); }

/* ============================================
   Footer
   ============================================ */

footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding: 2.5rem var(--gutter) 2rem;
}

.footer-inner {
  max-width: 880px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
}

.footer-section h3 { margin-top: 0; margin-bottom: 0.7rem; }

.footer-section p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--body-soft);
  margin-bottom: 0.7rem;
}

.sites-group-label {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.78rem !important;
  color: var(--bronze) !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600 !important;
  margin-top: 1.4rem;
  margin-bottom: 0.4rem !important;
}

.sites-group-label:first-of-type {
  margin-top: 0;
}

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

.sites-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.5;
  padding-left: 0;
}

.sites-list li:last-child { border-bottom: none; }

.sites-list a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.3rem 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.sites-list a:hover,
.sites-list a:focus { color: var(--bronze); }

.sites-list .desc {
  color: var(--muted);
  font-style: italic;
  font-size: 0.92rem;
  margin-top: 0.15rem;
  display: block;
}

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 1.2rem;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.footer-bottom .author { font-style: normal; color: var(--body-soft); }
.footer-bottom .licence { font-style: italic; margin-top: 0.4rem; }

/* ============================================
   Tablet — 600px+
   ============================================ */

@media (min-width: 600px) {
  html { font-size: 18px; }
  :root { --gutter: 2rem; }

  .masthead-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.4rem 2rem;
  }

  .masthead-title {
    font-size: 1.4rem;
    letter-spacing: 0.18em;
  }

  .masthead-nav a {
    margin-left: 1.2rem;
    padding: 0.25rem 0;
  }

  .container { padding: 4rem 2rem 2rem; }

  h1.title { font-size: 2.4rem; }

  .standfirst { font-size: 1.2rem; margin-bottom: 2rem; }

  .byline { padding-bottom: 2rem; margin-bottom: 3rem; }

  p { font-size: 1.1rem; margin-bottom: 1.4rem; }
  p.lead { font-size: 1.2rem; line-height: 1.65; }
  li { font-size: 1.1rem; }

  h2 {
    font-size: 1.55rem;
    margin-top: 2.8rem;
    margin-bottom: 1.1rem;
  }

  h3 {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    margin-top: 2.4rem;
  }

  .disclosure,
  .recommendation,
  .downloads {
    margin-left: 0;
    margin-right: 0;
    padding: 1.7rem 1.9rem;
  }

  .download-links {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }

  .download-links a {
    flex: 0 1 auto;
    padding: 0.65rem 1.4rem;
    min-width: 160px;
  }

  .article-nav {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 3rem 0 2rem;
    padding-top: 2rem;
  }

  .article-nav .next { text-align: right; }
  .article-nav .next-empty { justify-content: flex-end; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
  }

  footer { padding: 3rem 2rem; }

  .article-list li { padding: 2rem 0; }
  .article-list h2 { font-size: 1.5rem; }

  .article-list--featured li:first-child {
    padding: 2rem 2rem;
    margin: 0 0 2rem;
  }

  .article-list--featured li:first-child h2 { font-size: 1.85rem; }

  .triggers li {
    grid-template-columns: 2rem 1fr;
    gap: 1rem;
    padding: 1rem 0;
  }

  blockquote {
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 2rem 0;
    font-size: 1.15rem;
    line-height: 1.6;
  }

  .footer-bottom { font-size: 0.82rem; }
}

/* ============================================
   Desktop — 880px+
   ============================================ */

@media (min-width: 880px) {
  h1.title { font-size: 2.6rem; }
  .standfirst { font-size: 1.25rem; }
  h2 { font-size: 1.6rem; }
}

/* ============================================
   Print
   ============================================ */

@media print {
  .masthead, .article-nav, .downloads, footer .footer-grid {
    display: none;
  }
  body { background: white; color: black; }
  .container { max-width: none; padding: 0; }
  a { text-decoration: none; color: black; }
  .disclosure, .recommendation { border: 1px solid #999; margin: 1rem 0; }
}

/* ============================================
   Reduced motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ============================================
   Focus visibility
   ============================================ */

a:focus-visible,
.download-links a:focus-visible,
.article-nav a:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}

/* ============================================
   Cross-site bar — links to sister sites
   Designed to read as a publication network band rather than a row of links.
   Higher specificity than the global `a` rule via descendant selector.
   ============================================ */

.site-bar {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0.95rem 1.5rem;
  background: linear-gradient(180deg, #EFEAD9 0%, #E8E2CF 100%);
  border-bottom: 1px solid rgba(124, 90, 50, 0.18);
  color: var(--muted);
  line-height: 1.6;
}

.site-bar a,
.site-bar a:link,
.site-bar a:visited {
  color: var(--muted);
  text-decoration: none;
  margin: 0;
  padding: 0 0.85rem;
  white-space: nowrap;
  display: inline-block;
  position: relative;
  transition: color 0.25s ease;
}

/* Subtle vertical-rule separators between items */
.site-bar a + a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 0.7em;
  background: rgba(124, 90, 50, 0.25);
}

.site-bar a:hover,
.site-bar a:focus {
  color: var(--bronze);
  text-decoration: none;
}

/* The current site (themanybuilders is special — it's the canonical hub) */
.site-bar a:first-child {
  font-weight: 500;
  color: var(--ink);
}

@media (max-width: 720px) {
  .site-bar {
    font-size: 0.6rem;
    padding: 0.75rem 0.5rem;
    letter-spacing: 0.06em;
    line-height: 2;
  }
  .site-bar a {
    padding: 0 0.5rem;
  }
}

/* Print: hide the cross-site bar */
@media print {
  .site-bar { display: none; }
}
