/* =====================================================
   site.css — shared styles for betterdayswithdylan.com
   Loaded on every page via <link>. Page-specific styles
   live in a small <style> block on the page itself.
   ===================================================== */

/* ======= TOKENS ======= */
:root {
  --bg: #1a2632;
  --bg-2: #26323e;
  --cream: #f5efe4;
  --cream-dim: rgba(245, 239, 228, 0.62);
  --cream-faint: rgba(245, 239, 228, 0.18);
  --rule: rgba(245, 239, 228, 0.12);
  --blue-h: 240;
  --blue-c: 0.09;
  --blue-l: 0.68;
  --blue: oklch(var(--blue-l) var(--blue-c) var(--blue-h));
  --blue-soft: oklch(calc(var(--blue-l) + 0.08) calc(var(--blue-c) - 0.03) var(--blue-h));
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

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

html,
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ======= LAYOUT ======= */
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 22px;
  }
}

/* ======= UTILITIES ======= */
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  white-space: nowrap;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.eyebrow .tick {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
}

/* ======= BUTTONS ======= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: #febc32;
  color: var(--bg);
}

.btn-primary:hover {
  background: #ffd066;
}

.btn-ghost {
  color: var(--cream);
  border-color: var(--cream-faint);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue-soft);
}

.btn .arrow {
  transition: transform 0.2s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-row {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ======= NEIGHBORHOOD HERO ======= */
.nh-hero {
  position: relative;
  padding: 170px 40px 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.nh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, oklch(var(--blue-l) var(--blue-c) var(--blue-h) / 0.10), transparent 55%),
    repeating-linear-gradient(135deg, rgba(245, 239, 228, 0.035) 0 10px, rgba(245, 239, 228, 0.01) 10px 20px);
  pointer-events: none;
}

.nh-hero .wrap {
  position: relative;
  z-index: 1;
}

.nh-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.nh-breadcrumb a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.2s ease;
}

.nh-breadcrumb a:hover {
  color: var(--cream);
}

.nh-breadcrumb .sep {
  color: var(--cream-faint);
  font-size: 11px;
}

.nh-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 8vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.nh-hero h1 em {
  font-style: italic;
  color: var(--blue-soft);
  font-weight: 300;
}

.nh-hero .meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
}

.nh-hero .meta .item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nh-hero .meta .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.nh-hero .meta .v {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 18px;
  color: var(--cream);
}

.nh-hero .lede {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.5;
  color: var(--cream-dim);
  max-width: 800px;
}

/* HERO WITH PHOTO */
.nh-hero.has-photo .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 960px) {
  .nh-hero.has-photo .wrap {
    grid-template-columns: 1fr;
  }
}

.hero-figure {
  position: relative;
  z-index: 1;
  aspect-ratio: 10/7;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  overflow: hidden;
  width: 100%;
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(245, 239, 228, 0.05) 0 10px, rgba(245, 239, 228, 0.015) 10px 20px);
}

.hero-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-figure .tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--cream-dim);
}

.hero-figure .corner {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
  padding: 6px 10px;
  border: 1px solid var(--cream-faint);
  background: rgba(26, 38, 50, 0.6);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cream);
}

/* ======= STAT STRIP ======= */
.stats {
  border-bottom: 1px solid var(--rule);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--rule);
}

.stat {
  padding: 36px 32px;
  border-right: 1px solid var(--rule);
}

.stat .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 12px;
}

.stat .v {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.stat .v em {
  font-style: italic;
  color: var(--blue-soft);
}

.stat .sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--cream-dim);
}

@media (max-width: 960px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stats-source {
  padding: 18px 40px 4px;
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

@media (max-width: 720px) {
  .stats-source {
    padding: 18px 22px 4px;
  }
}

/* ======= PROS / CONS ======= */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
  max-width: 1100px;
}

.pros-cons .col {
  padding: 32px;
  border: 1px solid var(--rule);
  background: rgba(245, 239, 228, 0.025);
}

.pros-cons .col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 14px;
  font-weight: 500;
}

.pros-cons .col h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 18px;
}

.pros-cons .col h3 em {
  font-style: italic;
  color: var(--blue-soft);
}

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

.pros-cons li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream-dim);
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.pros-cons li:last-child {
  border-bottom: 0;
}

@media (max-width: 600px) {
  .pros-cons {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ======= CONTENT SECTIONS ======= */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--rule);
}

.section.dim {
  background: var(--bg-2);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.section-grid h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.section-grid h2 em {
  font-style: italic;
  color: var(--blue-soft);
}

@media (max-width: 860px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.body-prose p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--cream-dim);
  margin-bottom: 16px;
  max-width: 720px;
}

.body-prose p:last-child {
  margin-bottom: 0;
}

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

.body-prose em {
  font-style: italic;
  color: var(--blue-soft);
}

.body-prose .lede {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.55;
  color: var(--cream-dim);
  margin-bottom: 24px;
}

/* ======= KNOW LIST ======= */
.know-list {
  display: flex;
  flex-direction: column;
}

.know-item {
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: baseline;
}

.know-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.know-item:last-child {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 28px;
}

.know-item .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--blue-soft);
  text-transform: uppercase;
}

.know-item h4 em {
  font-style: italic;
  color: var(--blue-soft);
}

.know-item p strong {
  color: var(--cream);
  font-weight: 500;
}

.know-item p em {
  font-style: italic;
  color: var(--blue-soft);
}

.know-item h4 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 8px;
}

.know-item p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--cream-dim);
}

@media (max-width: 600px) {
  .know-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .know-item:last-child {
    padding-bottom: 0;
  }
}

/* ======= LISTINGS TEASER ======= */
.listings-teaser {
  text-align: center;
}

.listings-teaser .label {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--blue);
  color: var(--blue-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 24px;
}

.listings-teaser h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.listings-teaser h2 em {
  font-style: italic;
  color: var(--blue-soft);
}

.listings-teaser p {
  color: var(--cream-dim);
  font-size: 16px;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 32px;
}

/* ======= CTA BLOCK ======= */
.cta-block {
  padding: 100px 0;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(245, 239, 228, 0.02) 0 10px, rgba(245, 239, 228, 0.005) 10px 20px);
}

.cta-block .wrap {
  position: relative;
  z-index: 1;
}

.cta-block h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin: 0 auto 24px;
}

.cta-block h2 em {
  font-style: italic;
  color: var(--blue-soft);
}

.cta-block p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--cream-dim);
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ======= RELATED GRID ======= */
.related {
  padding: 80px 0;
}

.related h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 32px;
}

.related h3 em {
  font-style: italic;
  color: var(--blue-soft);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 960px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--rule);
  transition: border-color 0.2s ease, transform 0.2s ease;
  background: rgba(245, 239, 228, 0.025);
}

.related-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.related-card .zip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cream-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.related-card h4 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin-bottom: 6px;
}

.related-card span.go {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-soft);
}

/* ======= FOOTER ======= */
footer {
  border-top: 1px solid var(--rule);
  padding: 80px 0 0;
}

footer .footer-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 720px) {
  footer .footer-wrap {
    padding: 0 22px;
  }
}

footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

footer .footer-logo {
  display: inline-block;
  height: 56px;
  margin-bottom: 22px;
}

footer .footer-logo img {
  height: 100%;
  width: auto;
}

footer .footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 18px;
}

footer .footer-kw {
  height: 32px;
  width: auto;
  max-width: 200px;
  margin-bottom: 18px;
  display: block;
}

footer .footer-address {
  font-size: 13px;
  line-height: 1.7;
  color: var(--cream-dim);
}

.footer-credentials {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
}

.footer-credentials img {
  height: 32px;
  width: auto;
  opacity: 0.9;
}

footer .footer-h {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 22px;
  font-weight: 500;
}

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

footer .footer-col li {
  margin-bottom: 12px;
}

footer .footer-col a {
  font-size: 14px;
  color: var(--cream);
  transition: color 0.2s ease;
}

footer .footer-col a:hover {
  color: var(--blue-soft);
}

footer .footer-social {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--cream-faint);
  border-radius: 999px;
  color: var(--cream-dim);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

footer .footer-social a:hover {
  border-color: var(--blue);
  color: var(--blue-soft);
  background: rgba(255, 255, 255, 0.02);
}

footer .footer-social svg {
  width: 18px;
  height: 18px;
}

footer .footer-bottom {
  border-top: 1px solid var(--rule);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cream-dim);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px 32px;
  }

  footer .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  footer {
    padding-top: 60px;
  }

  footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }

  footer .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 22px 0;
  }
}

/* Compensation page hidden — hide all footer links pointing to it */
footer li:has(a[href$="compensation.html"]) { display: none; }
