/* Meg Maginn, L.C.S.W — rebuilt from the Squarespace site (Epilogue / Pontano Sans, greyscale) */
@font-face { font-family: "Epilogue"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/epilogue.woff2) format("woff2"); }
@font-face { font-family: "Epilogue"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(/fonts/epilogue-italic.woff2) format("woff2"); }
@font-face { font-family: "Pontano Sans"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/pontano-sans.woff2) format("woff2"); }

:root {
  --white: #fafafa; --light: #fff; --bright: #dcdcdc; --dark: #1c1c1c; --black: #000; --mid: #6b6b6b; --line: rgba(0,0,0,.14);
  --heading: "Epilogue", system-ui, sans-serif; --body: "Pontano Sans", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem); --max: 90rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--dark); font-family: var(--body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .6em; color: var(--dark); }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h4 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
p { margin: 0 0 1em; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { padding-left: 1.3em; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--black); color: var(--white); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 50rem; }

/* buttons: black pill (primary), outline pill (secondary) */
.btn { display: inline-block; font-family: var(--body); font-size: 1rem; line-height: 1.2; padding: 1.1em 2em; border-radius: 999px; background: var(--dark); color: var(--white); text-decoration: none; border: 1px solid var(--dark); cursor: pointer; transition: opacity .15s, background .15s, color .15s; }
.btn:hover { opacity: .85; }
.btn.ghost { background: transparent; color: var(--dark); }
.btn.ghost:hover { background: var(--dark); color: var(--white); opacity: 1; }
.btn.sm { padding: .8em 1.6em; font-size: .95rem; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(250,250,250,.95); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 5.5rem; }
.logo { display: block; flex: none; }
.logo img { height: 3.4rem; width: auto; }
.nav { display: flex; align-items: center; gap: 1.4rem; margin-left: .5rem; }
.nav a { font-size: .95rem; text-decoration: none; color: var(--dark); padding: .2rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--dark); }
.social { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; }
.social a { display: block; width: 1.05rem; height: 1.05rem; color: var(--dark); }
.social svg { width: 100%; height: 100%; fill: currentColor; }
.top .btn { flex: none; }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: .4rem; cursor: pointer; width: 2.6rem; height: 2.6rem; }
.burger span { display: block; height: 2px; background: var(--dark); margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 60rem) {
  .nav, .social, .top .btn { display: none; }
  .burger { display: block; }
  .top.open .nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); padding: 1rem var(--pad) 1.5rem; border-bottom: 1px solid var(--line); }
  .top.open .nav a { font-family: var(--heading); font-size: 1.5rem; padding: .5rem 0; border: 0; }
  .top.open .nav .btn { margin-top: 1rem; display: inline-block; font-family: var(--body); font-size: 1rem; }
  .top.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .top.open .burger span:nth-child(2) { opacity: 0; }
  .top.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (min-width: 60.01rem) { .nav .btn { display: none; } }

/* sections */
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section.light { background: var(--light); }
.section.bright { background: var(--bright); color: var(--black); }
.section.bright h1, .section.bright h2, .section.bright h3, .section.bright h4 { color: var(--black); }
.section.tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.banner { padding: var(--pad) var(--pad) 0; max-width: var(--max); margin: 0 auto; }
.banner img { width: 100%; aspect-ratio: 1920 / 960; object-fit: cover; }
@media (max-width: 40rem) { .banner img { aspect-ratio: 3 / 2; } }

/* home hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2rem, 3.5vw, 2.9rem); padding-bottom: .4em; border-bottom: 1px solid var(--dark); display: inline-block; margin-bottom: 1.2em; }
.hero .quote { font-family: var(--heading); font-style: italic; text-align: center; max-width: 24rem; margin: 0 auto 2.5rem; font-size: 1rem; }
.hero .quote cite { display: block; font-style: italic; margin-top: 1em; }
.hero .call { margin-bottom: 2rem; }
.hero figure { margin: 0; }
.hero img { width: 100%; max-height: 48rem; object-fit: cover; object-position: top; }
@media (max-width: 48rem) { .hero { grid-template-columns: 1fr; } .hero figure { order: -1; max-width: 28rem; } }
.intro { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.intro p { max-width: none; }
.intro .cta { display: flex; justify-content: flex-end; }

/* home gallery (4 linked tiles + 3 decorative, masonry-like) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tile { position: relative; margin: 0; overflow: hidden; background: var(--bright); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile a { display: block; height: 100%; text-decoration: none; color: var(--dark); }
.tile a:hover img { transform: scale(1.04); }
.tile figcaption { padding: .6rem 0 0; font-size: .95rem; }
.tile.tall { grid-row: span 2; }
.tile:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.tile:nth-child(2) { grid-column: 2; grid-row: 1 / span 3; }
.tile:nth-child(3) { grid-column: 3; grid-row: 1 / span 2; }
.tile:nth-child(4) { grid-column: 4; grid-row: 1 / span 3; }
.tile:nth-child(5) { grid-column: 1; grid-row: 3 / span 2; }
.tile:nth-child(6) { grid-column: 3; grid-row: 3 / span 2; }
.tile:nth-child(7) { grid-column: 2 / span 1; grid-row: 4; }
.tiles img { aspect-ratio: 4 / 3; }
.tile:nth-child(2) img, .tile:nth-child(4) img { aspect-ratio: 3 / 4.6; }
@media (max-width: 48rem) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile:nth-child(n) { grid-column: auto; grid-row: auto; }
  .tiles img { aspect-ratio: 1; }
}

/* offerings list, service pages */
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding: clamp(2rem, 4vw, 3.5rem) 0; }
.offer + .offer { border-top: 1px solid var(--line); }
.offer figure { margin: 0; }
.offer img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.offer .btn { margin-top: 1.5rem; }
.offer.rev figure { order: 2; }
@media (max-width: 48rem) { .offer { grid-template-columns: 1fr; } .offer.rev figure { order: 0; } }
.service { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.service figure { margin: 0; position: sticky; top: 7rem; }
.service img { width: 100%; }
.service .receive { font-family: var(--heading); font-style: italic; font-weight: 500; margin-top: 2rem; }
.service ul { margin: .5rem 0 0; }
.service li { margin-bottom: .5em; }
.service .actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
@media (max-width: 48rem) { .service { grid-template-columns: 1fr; } .service figure { position: static; order: -1; } }

/* staircase quote */
.stair { text-align: center; }
.stair blockquote { margin: 0 auto 2rem; font-family: var(--heading); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 40rem; }
.stair cite { display: block; font-style: normal; font-weight: 600; font-family: var(--body); font-size: .9rem; margin-top: 1rem; }
.stair img { margin: 0 auto; max-width: 36rem; width: 100%; }

/* bio */
.bio { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.bio figure { margin: 0; }
.bio img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.bio h1 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.bio p { font-size: .95rem; }
.acc { margin-top: 3rem; border-top: 1px solid var(--dark); }
.acc details { border-bottom: 1px solid var(--dark); }
.acc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; font-family: var(--heading); font-size: 1.05rem; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc ul { margin: 0 0 1.25rem; padding-left: 1.2em; font-size: .95rem; }
.acc li { margin-bottom: .35em; }
@media (max-width: 48rem) { .bio { grid-template-columns: 1fr; } .bio figure { max-width: 24rem; } }

/* testimonials carousel */
.quotes { position: relative; text-align: center; }
.quotes h2 { font-size: 1rem; font-family: var(--body); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2rem; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 2rem; }
.track::-webkit-scrollbar { display: none; }
.track blockquote { flex: 0 0 100%; scroll-snap-align: center; margin: 0; padding: 0 clamp(2.5rem, 8vw, 8rem); }
.track p { font-family: var(--heading); font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.3; max-width: 42rem; margin: 0 auto 1.5rem; }
.track cite { font-style: normal; font-size: .95rem; }
.qnav { position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: var(--dark); color: var(--white); font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; }
.qnav.prev { left: 0; } .qnav.next { right: 0; }
.qdots { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; }
.qdots button { width: .6rem; height: .6rem; border-radius: 50%; border: 1px solid var(--dark); background: transparent; padding: 0; cursor: pointer; }
.qdots button[aria-current] { background: var(--dark); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.contact h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); text-transform: uppercase; letter-spacing: .02em; }
.contact .ways { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.contact.single { grid-template-columns: 1fr; max-width: 46rem; text-align: center; }
.contact.single .ways { justify-content: center; }
@media (max-width: 48rem) { .contact { grid-template-columns: 1fr; } }

/* resources / blog */
.call-row { text-align: center; padding-top: 1.5rem; }
.posts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem); }
.post { text-align: center; }
.post a { text-decoration: none; color: inherit; }
.post img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 1.25rem; }
.post .meta { font-size: .85rem; color: var(--mid); margin-bottom: .6rem; }
.post .meta a { text-decoration: underline; }
.post h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.post h2 a:hover { text-decoration: underline; }
.post .excerpt { text-align: left; font-size: .95rem; }
.post .more { font-size: .9rem; text-decoration: underline; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 0 0 3rem; padding: 0; list-style: none; }
.filters a { display: inline-block; padding: .4em 1em; border: 1px solid var(--dark); border-radius: 999px; font-size: .85rem; text-decoration: none; }
.filters a[aria-current] { background: var(--dark); color: var(--white); }
.post.hide { display: none; }
@media (max-width: 40rem) { .posts { grid-template-columns: 1fr; } }

/* single post */
.article { max-width: 46rem; margin: 0 auto; }
.article header { text-align: center; margin-bottom: 2.5rem; }
.article h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.article .meta { font-size: .9rem; color: var(--mid); }
.article .meta a { text-decoration: underline; }
.article .lead { width: 100%; max-height: 32rem; object-fit: cover; margin: 0 0 3rem; }
.article .body { font-size: 1.05rem; }
.article .body h2 { font-size: 1.35rem; margin: 2em 0 .5em; }
.article .body p { margin-bottom: 1.2em; }
.article .body li { margin-bottom: .6em; }
.article .refs { font-size: .85rem; color: var(--mid); margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.article .refs a { word-break: break-all; }
.tags { margin: 2.5rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: .25em .8em; }
.author { display: flex; gap: 1rem; align-items: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: .95rem; }
.author img { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; object-position: top; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); font-size: .95rem; }
.pager a { text-decoration: none; max-width: 45%; }
.pager a:hover { text-decoration: underline; }
.pager span { display: block; font-size: .8rem; color: var(--mid); }
.pager .next { text-align: right; margin-left: auto; }

/* footer */
.foot { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.foot .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.foot h4 { margin: 0; font-weight: 400; font-size: 1.05rem; }
.foot .links { text-align: right; font-family: var(--heading); font-size: 1.05rem; line-height: 1.8; }
.foot .links a { display: block; }
.foot small { display: block; width: 100%; color: var(--mid); font-size: .8rem; margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tile img { transition: none; } }
@media print { .top, .foot .links, .qnav, .qdots, .burger { display: none; } }
