/* Slack Murphy Partners at Compass - shared stylesheet (design authority) */

:root {
  --ink: #2a1d16;
  --paper: #fffcf8;
  --mist: #f7efe4;
  --stone: #6a5a4d;
  --pine: #8a3b1f;
  --line: #e8d8c4;

  --font-heading: "Jost", "Futura", "Century Gothic", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 72rem;
  --gutter: 1.25rem;
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Typography */

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 9vw, 5.25rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.875rem, 5vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  text-wrap: pretty;
}

.eyebrow,
.section-label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pine);
}

.eyebrow {
  margin-bottom: 1.25rem;
}

.eyebrow-light {
  color: #f2cdb4;
}

.slash {
  display: inline-block;
  margin-inline: 0.35em;
  color: var(--stone);
  transform: skewX(-12deg);
}

.lede {
  font-size: 1.125rem;
  color: var(--stone);
  max-width: 38rem;
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--pine);
  border-color: var(--pine);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--mist);
  border-color: var(--mist);
}

.btn-outline-light {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
  overflow-wrap: anywhere;
}

.btn-outline-light:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.text-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}

.text-link::after {
  content: " \2192";
}

.text-link:hover {
  color: var(--pine);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}

.brand img {
  width: 7.5rem;
  height: auto;
}

.brand-team {
  padding-left: 0.875rem;
  border-left: 1px solid var(--line);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  line-height: 1.3;
}

.header-phone {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--pine);
}

.site-nav {
  order: 3;
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.25rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--stone);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--ink);
}

/* Hero */

.hero {
  padding-block: 2.5rem 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-copy h1 {
  margin-bottom: 1.5rem;
}

.hero-copy .lede {
  margin-bottom: 2rem;
}

.hero-copy .btn-row {
  width: 100%;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--stone);
}

.hero-figure {
  position: relative;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  object-position: 50% 18%;
  background: var(--mist);
}

.hero-figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--ink);
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--stone);
}

.hero-figure figcaption strong {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* Proof */

.proof {
  background: var(--mist);
  padding-block: 3rem;
}

.section-label {
  margin-bottom: 2rem;
}

.proof-grid {
  display: grid;
  gap: 2rem;
}

.proof-grid li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
}

.proof-grid h3 {
  margin-bottom: 0.625rem;
  font-size: 1.375rem;
}

.proof-grid p {
  color: var(--stone);
  font-size: 0.9375rem;
}

/* Generic section */

.section {
  padding-block: 4rem;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

/* Testimonials */

.testimonials {
  background: var(--ink);
  color: var(--paper);
}

.testimonials-grid {
  display: grid;
  gap: 2.5rem;
}

.testimonials-intro {
  max-width: 40rem;
}

.testimonials-intro h2 {
  margin-bottom: 1rem;
  color: var(--paper);
}

.testimonials-intro p {
  margin-bottom: 1.75rem;
  color: var(--line);
}

.testimonial-list {
  display: grid;
  align-content: start;
  gap: 1.5rem;
}

.testimonial {
  padding: 1.5rem;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
}

.testimonial blockquote p {
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--paper);
}

.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.9375rem;
  color: var(--line);
}

.testimonial figcaption strong {
  color: var(--paper);
}

.testimonial-note {
  padding-top: 1.25rem;
  border-top: 1px solid var(--stone);
  color: var(--line);
  font-size: 0.9375rem;
}

.testimonial-list .testimonial + .testimonial-note {
  margin-top: 0;
}

@media (min-width: 64rem) {
  .testimonials-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
  }
}

/* Services */

.service-grid {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 2rem;
}

.service-card > p {
  margin-bottom: 1.5rem;
  color: var(--stone);
}

.check-list {
  width: 100%;
  margin-bottom: 2rem;
  border-top: 1px solid var(--line);
}

.check-list li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.875rem;
  height: 1px;
  background: var(--pine);
  transform: rotate(-35deg);
}

.service-card .text-link {
  margin-top: auto;
}

/* Areas */

.areas {
  background: var(--mist);
}

.areas-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.areas-intro {
  color: var(--stone);
  max-width: 34rem;
}

.area-list {
  display: grid;
  border-top: 1px solid var(--ink);
}

.area-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* FAQ teaser */

.faq-grid {
  display: grid;
  gap: 2.5rem;
}

.faq-intro p {
  margin-bottom: 1.5rem;
  color: var(--stone);
  max-width: 26rem;
}

.faq-intro h2 {
  margin-bottom: 1rem;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  display: block;
  padding: 1.25rem 2.5rem 1.25rem 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 1.1rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--pine);
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  padding: 0 2.5rem 1.5rem 0;
  color: var(--stone);
}

/* CTA */

.cta {
  background: var(--pine);
  color: var(--paper);
  padding-block: 4rem;
}

.cta-inner {
  display: grid;
  gap: 2.5rem;
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p:not(.eyebrow) {
  color: #f6e3d3;
  max-width: 34rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-self: center;
}

.cta-link {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: #f6e3d3;
  text-align: center;
}

.cta-link:hover {
  color: var(--paper);
}

/* Footer */

.site-footer {
  background: var(--mist);
  border-top: 1px solid var(--line);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1.25rem;
  max-width: 22rem;
  color: var(--stone);
  font-size: 0.9375rem;
}

.footer-col h2 {
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pine);
}

.footer-col li + li {
  margin-top: 0.5rem;
}

.footer-col a {
  text-decoration: none;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.footer-col a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-base {
  display: grid;
  gap: 0.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--stone);
}

/* Tablet and up */

@media (min-width: 40rem) {
  :root {
    --gutter: 2rem;
  }

  .btn-row {
    flex-direction: row;
  }

  .hero-copy .btn-row {
    width: auto;
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }

  .area-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .cta-link {
    margin-top: 0;
    padding-inline: 0.5rem;
  }
}

/* Desktop */

@media (min-width: 64rem) {
  .brand img {
    width: 9.5rem;
  }

  .header-inner {
    flex-wrap: nowrap;
    padding-block: 1rem;
  }

  .site-nav {
    order: 0;
    width: auto;
    border-top: 0;
    padding-top: 0;
    margin-left: auto;
    margin-right: 2rem;
  }

  .site-nav ul {
    gap: 2rem;
  }

  .site-nav a {
    padding-inline: 0;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
  }

  .hero {
    padding-block: 5rem 6rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 5rem;
  }

  .proof {
    padding-block: 4.5rem;
  }

  .proof-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .section {
    padding-block: 6rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .service-card {
    padding: 2.5rem;
  }

  .areas-head {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 4rem;
  }

  .area-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .faq-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
  }

  .cta {
    padding-block: 6rem;
  }

  .cta-inner {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-link {
    text-align: left;
    padding-inline: 0;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 0.8fr 1fr 1.2fr;
    gap: 3rem;
  }

  .footer-base {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }
}

/* Interior pages: about, faq, contact */

[id] {
  scroll-margin-top: 8rem;
}

.page-head {
  padding-block: 3rem 3.5rem;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  max-width: 18ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
}

.page-head .btn-row {
  margin-top: 2rem;
}

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 2rem;
}

.split {
  display: grid;
  gap: 1.5rem;
}

.split-title h2 {
  max-width: 14ch;
}

.prose p {
  max-width: 38rem;
  color: var(--stone);
}

.prose p + p {
  margin-top: 1.25rem;
}

.prose p:first-child {
  font-size: 1.125rem;
  color: var(--ink);
}

.prose .text-link {
  margin-top: 1.75rem;
}

.statement {
  background: var(--ink);
  color: var(--paper);
  padding-block: 4rem;
}

.statement p:not(.eyebrow) {
  max-width: 50rem;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.fact-list {
  border-top: 1px solid var(--ink);
}

.fact-list > div {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.fact-list dt {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
}

.fact-list dd {
  margin: 0;
  max-width: 40rem;
  color: var(--stone);
}

.fact-list a {
  color: var(--ink);
}

.qa-group {
  display: grid;
  gap: 1.5rem;
  padding-block: 3rem;
  border-bottom: 1px solid var(--line);
}

.qa-wrap {
  display: grid;
  gap: 1.5rem;
}

.qa-title h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.qa {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}

.qa:first-child {
  border-top: 1px solid var(--ink);
  padding-top: 1.5rem;
}

.qa h3 {
  margin-bottom: 0.75rem;
  font-size: 1.375rem;
  line-height: 1.25;
}

.qa p {
  max-width: 40rem;
  color: var(--stone);
}

.qa a {
  color: var(--ink);
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-method {
  display: block;
  padding: 1.5rem 0;
  border-top: 1px solid var(--ink);
  text-decoration: none;
}

.contact-method:last-of-type {
  border-bottom: 1px solid var(--ink);
}

.contact-method span {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pine);
}

.contact-method strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.contact-method:hover strong {
  color: var(--pine);
}

.contact-actions {
  margin-top: 2rem;
}

.panel {
  padding: 2rem 1.5rem;
  background: var(--mist);
}

.panel h2 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.panel > p {
  margin-bottom: 1.5rem;
  color: var(--stone);
}

.panel .check-list {
  margin-bottom: 1.5rem;
}

.panel .check-list li {
  background: transparent;
}

.panel-note {
  font-size: 0.9375rem;
  color: var(--stone);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-block: 1.75rem 2rem;
}

.tag-list li {
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 500;
}

.steps {
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
  color: var(--pine);
}

.steps h3 {
  margin-bottom: 0.625rem;
  font-size: 1.375rem;
}

.steps p {
  color: var(--stone);
  font-size: 0.9375rem;
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 64rem) {
  .page-head {
    padding-block: 5rem 5.5rem;
  }

  .split {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
  }

  .statement {
    padding-block: 6rem;
  }

  .fact-list > div {
    grid-template-columns: 0.6fr 1.4fr;
    gap: 3rem;
  }

  .qa-group {
    padding-block: 4.5rem;
  }

  .qa-wrap {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 5rem;
  }

  .qa-title {
    position: sticky;
    top: 7rem;
    align-self: start;
  }

  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: start;
  }

  .panel {
    padding: 2.5rem;
  }
}

/* Blog: index cards and article layout */

.post-meta {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

.more {
  display: inline-block;
  margin-top: auto;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--pine);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--pine);
  text-decoration: none;
}

.more::after {
  content: " \2192";
}

.post-feature-slot:empty {
  display: none;
}

.post-feature {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.post-feature__img,
.post-card__img {
  display: block;
  width: 100%;
  border-radius: 0.25rem;
  background-color: var(--mist);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.post-feature__img {
  aspect-ratio: 16 / 10;
}

.post-card__img {
  aspect-ratio: 3 / 2;
}

.post-feature__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.post-feature__body h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
}

.post-feature__body p:not(.post-meta) {
  max-width: 38rem;
  color: var(--stone);
}

.post-grid {
  display: grid;
  gap: 3rem 2rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: inherit;
  text-decoration: none;
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.post-card__body h2,
.post-card__body h3 {
  font-size: 1.5rem;
}

.post-card__body p:not(.post-meta) {
  color: var(--stone);
  font-size: 0.9375rem;
}

.post-card:hover .post-card__body h2,
.post-card:hover .post-card__body h3,
.post-feature:hover .post-feature__body h2,
.post-feature:hover .post-feature__body h3 {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.post-grid:empty {
  display: block;
  padding: 3.5rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--mist);
  text-align: center;
}

.post-grid:empty::before {
  content: "Articles coming soon";
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  color: var(--ink);
}

.post-grid:empty::after {
  content: "We are putting together practical guides for buyers and sellers in the northwest suburbs. Check back soon, or call 224.508.5788 with a question today.";
  display: block;
  max-width: 34rem;
  margin-inline: auto;
  color: var(--stone);
}

.article {
  padding-block: 2.5rem 4rem;
}

.article-column {
  max-width: 72ch;
  margin-inline: auto;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--pine);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.article h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
}

.article .post-meta {
  margin-bottom: 1.5rem;
}

.article .excerpt {
  margin-bottom: 2rem;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--stone);
}

.article-column > img,
.article-column > figure {
  width: 100%;
  margin-block: 0 2.5rem;
  border-radius: 0.25rem;
}

.article .prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  overflow-wrap: break-word;
}

.article .prose > :first-child {
  margin-top: 0;
}

.article .prose p {
  max-width: none;
  margin: 0 0 1.25rem;
  font-size: inherit;
  color: var(--ink);
}

.article .prose p + p {
  margin-top: 0;
}

.article .prose h2 {
  margin: 2.75rem 0 1rem;
  font-size: clamp(1.625rem, 4vw, 2.125rem);
}

.article .prose h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.375rem;
}

.article .prose ul,
.article .prose ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.article .prose ul {
  list-style: disc;
}

.article .prose ol {
  list-style: decimal;
}

.article .prose li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.article .prose li::marker {
  color: var(--pine);
}

.article .prose a {
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.article .prose a:hover {
  text-decoration-thickness: 2px;
}

.article .prose blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 3px solid var(--pine);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--ink);
}

.article .prose blockquote p {
  margin-bottom: 0.75rem;
  font-size: inherit;
}

.article .prose img {
  max-width: 100%;
  margin: 2rem 0;
  border-radius: 0.25rem;
}

.article .prose figure {
  margin: 2rem 0;
}

.article .prose figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--stone);
}

.article .prose hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.article .prose table {
  display: block;
  width: 100%;
  margin: 2rem 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.article .prose th,
.article .prose td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.article .prose th {
  font-family: var(--font-heading);
  font-weight: 500;
  background: var(--mist);
}

.article .prose code {
  padding: 0.1em 0.35em;
  background: var(--mist);
  font-size: 0.9em;
}

@media (min-width: 40rem) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 48rem) {
  .post-feature {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 3rem;
  }
}

@media (min-width: 64rem) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .article {
    padding-block: 3.5rem 6rem;
  }
}

/* Areas dropdown in primary nav (details/summary, no JavaScript) */
.nav-areas {
  position: relative;
}

.nav-areas summary {
  display: block;
  padding: 0.5rem 0.25rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  cursor: pointer;
  list-style: none;
}

.nav-areas summary::-webkit-details-marker {
  display: none;
}

.nav-areas summary::after {
  content: "";
  display: inline-block;
  width: 0.35em;
  height: 0.35em;
  margin-left: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
}

.nav-areas details[open] summary::after {
  transform: translateY(0.05em) rotate(-135deg);
}

.nav-areas summary:hover,
.nav-areas details[open] summary,
.nav-areas:has(a[aria-current="page"]) summary {
  color: var(--ink);
}

.nav-areas:has(a[aria-current="page"]) summary {
  box-shadow: inset 0 -2px 0 var(--ink);
}

.nav-areas summary:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.site-nav .nav-areas ul {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  display: block;
  min-width: 12rem;
  padding: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(42, 29, 22, 0.12);
}

.site-nav .nav-areas ul a {
  padding: 0.625rem 0.75rem;
  white-space: nowrap;
}

.site-nav .nav-areas ul a:hover {
  background: var(--mist);
}

.site-nav .nav-areas ul a[aria-current="page"] {
  background: var(--mist);
  box-shadow: none;
}

@media (min-width: 64rem) {
  .nav-areas summary {
    padding-inline: 0;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
  }
}

/* Sticky mobile call button */
.sticky-call {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3.5rem;
  padding: 0.875rem var(--gutter) calc(0.875rem + env(safe-area-inset-bottom, 0px));
  background: var(--pine);
  color: var(--paper);
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 -4px 16px rgba(42, 29, 22, 0.18);
}

.sticky-call:hover,
.sticky-call:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.sticky-call:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: -6px;
}

body {
  padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 48rem) {
  .sticky-call {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* Photo gallery */

.gallery-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--mist);
}

.gallery-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ink);
  font-size: 0.9375rem;
  color: var(--stone);
}

.gallery-item figcaption strong {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.gallery-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--stone);
}

.about-photo {
  display: flex;
  flex-direction: column;
  margin: 2rem 0;
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--mist);
}

.about-photo figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ink);
  font-size: 0.9375rem;
  color: var(--stone);
}

.about-photo figcaption strong {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

@media (min-width: 40rem) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .gallery-item-feature {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery-item-feature img {
    flex: 1;
    min-height: 0;
    aspect-ratio: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}


/* ---- CMS blog fallback (overridden by the site's own rules) ---- */
:where(.post-grid){display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.5rem}
:where(.post-card),:where(.post-feature){display:block;text-decoration:none;color:inherit}
:where(.post-card__img),:where(.post-feature__img){display:block;width:100%;aspect-ratio:16/10;border-radius:12px;background-color:currentColor;opacity:.9;background-size:cover;background-position:center}
:where(.post-card__body),:where(.post-feature__body){display:block;padding-top:.75rem}
:where(.post-meta){display:block;font-size:.8rem;opacity:.7;letter-spacing:.02em}
:where(.post-card) h3,:where(.post-feature) h3{margin:.35rem 0 .4rem}
:where(.more){display:inline-block;margin-top:.5rem;font-weight:600}
:where(.post-empty){opacity:.7;padding:2rem 0}
:where(.prose){line-height:1.75;max-width:72ch}
:where(.prose) h2{margin-top:2rem}
:where(.prose) h3{margin-top:1.5rem}
:where(.prose) img{max-width:100%;height:auto}
:where(.prose) ul{padding-left:1.25rem}
:where(.prose) blockquote{margin:1.5rem 0;padding-left:1rem;border-left:3px solid currentColor;opacity:.85}
:where(.ph){display:flex;align-items:flex-end;padding:.75rem}
:where(.ph-label){font-size:.7rem;letter-spacing:.12em;font-weight:700;opacity:.75}
