/* Fourwalls · Article page styles */

:root {
  --bg:        #ffffff;
  --bg-cream:  #f6f3ee;
  --bg-dark:   #131313;
  --ink:       #131313;
  --ink-soft:  #4a4a4a;
  --ink-mute:  #8a8a8a;
  --line:      #e6e3dd;
  --line-dark: #262626;
  --accent:    #a04628;
  --max:       1320px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* ============ NAV ============ */
nav {
  position: sticky;
  top: 0;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border-bottom: 1px solid rgba(230, 227, 221, 0.7);
  z-index: 100;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-mark { display: inline-flex; align-items: center; }
.logo-mark .logo-img {
  height: 64px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-links a { color: var(--ink); transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: all 0.2s ease;
}
.nav-cta:hover { background: transparent; color: var(--ink); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 22px; color: var(--ink); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-inner { padding: 8px 20px; }
  .logo-mark .logo-img { height: 52px; }
}

/* ============ ARTICLE HERO ============ */
.article-shell {
  padding: 80px 0 40px;
  background: var(--bg);
}
.article-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 40px;
}
.article-crumb {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-crumb a { color: var(--ink-mute); transition: color 0.2s ease; }
.article-crumb a:hover { color: var(--accent); }
.article-crumb .sep { color: var(--line); }
.article-eyebrow {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.article-hero h1 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(36px, 5.2vw, 62px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 26px;
}
.article-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 40px;
  max-width: 620px;
}
.article-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.article-meta .meta-cat { color: var(--accent); }
.article-meta .meta-dot { color: var(--line); }

/* ============ ARTICLE BODY ============ */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 40px 80px;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.article-body > p { margin-bottom: 22px; }
.article-body > p:first-of-type::first-letter {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 3.1em;
  font-weight: 700;
  float: left;
  line-height: 0.9;
  padding-right: 12px;
  padding-top: 6px;
  color: var(--ink);
}
.article-body h2 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 52px;
  margin-bottom: 20px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body strong { color: var(--ink); font-weight: 600; }

/* ============ BACK LINK ============ */
.article-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 40px 80px;
  border-top: 1px solid var(--line);
}
.back-link {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 0.25s ease, color 0.2s ease;
}
.back-link:hover { color: var(--ink); gap: 14px; }

/* ============ RELATED ============ */
.related {
  background: var(--bg-cream);
  border-top: 1px solid var(--line);
  padding: 90px 0;
}
.related-head {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 36px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.related-card {
  padding: 34px 32px 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-top-color 0.35s ease;
  display: flex;
  flex-direction: column;
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -22px rgba(0,0,0,0.18);
  border-top-color: var(--accent);
}
.related-card .cat {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.related-card h3 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.24;
  color: var(--ink);
  margin-bottom: 14px;
}
.related-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 20px;
  flex-grow: 1;
}
.related-card .read {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.25s ease;
}
.related-card:hover .read { gap: 12px; }

@media (max-width: 720px) {
  .related-grid { grid-template-columns: 1fr; }
  .article-shell { padding: 40px 0 30px; }
  .article-body { padding: 40px 24px 60px; font-size: 17px; }
  .article-hero { padding: 0 24px; }
  .article-nav { padding: 30px 24px 60px; }
  .article-body > p:first-of-type::first-letter { font-size: 2.6em; }
}

/* ============ FOOTER ============ */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  padding: 90px 0 36px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand .logo-mark--footer .logo-img {
  height: 110px;
  filter: invert(1);
}
.footer-brand .logo-tagline {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  margin-top: 24px;
  max-width: 340px;
}
.footer-grid h4 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; line-height: 1.55; }
.footer-grid a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding: 0 24px 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; padding: 24px 24px 0; text-align: center; }
  footer { padding: 60px 0 30px; }
}
