.longform-page {
  padding-bottom: 76px;
}

.longform-hero {
  position: relative;
  min-height: clamp(520px, 60vw, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy-deep);
}

.longform-hero__image,
.longform-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.longform-hero__image {
  object-fit: cover;
}

.longform-hero__shade {
  background:
    linear-gradient(180deg, rgb(13 24 34 / 0.12) 0%, rgb(13 24 34 / 0.18) 34%, rgb(13 24 34 / 0.9) 100%),
    linear-gradient(90deg, rgb(13 24 34 / 0.44), transparent 70%);
}

.longform-hero__content {
  position: relative;
  z-index: 1;
  width: min(89.1vw, 1180px);
  margin: 0 auto;
  padding: 80px 0 52px;
}

.longform-hero__content .eyebrow {
  color: #f1c78f;
}

.longform-hero h1 {
  max-width: 960px;
  margin: 9px 0 18px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(44px, 6.4vw, 82px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.longform-hero__content > p:not(.eyebrow) {
  max-width: 780px;
  margin: 0;
  color: #f7efe3;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.42;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  color: #ddd8d0;
  font-size: 10px;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.article-byline span + span::before {
  content: "◇";
  margin-right: 18px;
  color: var(--gold);
}

.article-shell {
  width: min(89.1vw, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 245px minmax(0, 760px);
  justify-content: space-between;
  gap: clamp(50px, 8vw, 120px);
  padding: 70px 0 48px;
}

.article-toc {
  position: sticky;
  top: 118px;
  align-self: start;
  padding: 24px 22px;
  background: rgb(255 253 248 / 0.74);
  border: 1px solid var(--border);
}

.article-toc ol {
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.article-toc li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 7px;
  padding: 9px 0;
  border-top: 1px solid rgb(213 193 164 / 0.62);
  color: #4e4b46;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.28;
}

.article-toc li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--rust);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.article-toc a:hover {
  color: var(--rust);
}

.article-copy {
  min-width: 0;
}

.article-introduction {
  margin-bottom: 42px;
  padding-left: clamp(20px, 3vw, 34px);
  border-left: 3px solid var(--rust);
}

.article-introduction p {
  margin: 0 0 17px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 29px);
  line-height: 1.42;
}

.article-funnel {
  margin: 42px 0 54px;
  padding: clamp(26px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  border: 1px solid var(--border);
}

.article-funnel--top {
  background:
    radial-gradient(circle at 18% 22%, rgb(116 80 42 / 0.045) 0 0.7px, transparent 0.9px) 0 0 / 7px 7px,
    #eadbc7;
}

.article-funnel--bottom {
  color: var(--white);
  background: var(--navy-deep);
  border-color: #2c3e4d;
}

.article-funnel h2 {
  margin: 5px 0 10px;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 37px);
  font-weight: 400;
  line-height: 1.05;
}

.article-funnel p:last-child {
  max-width: 570px;
  margin: 0;
  color: #554f47;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.52;
}

.article-funnel--bottom p:last-child {
  color: #d9d5cf;
}

.longform-entry-content .mg-article-section {
  padding: 36px 0 38px;
  scroll-margin-top: 112px;
  border-top: 1px solid var(--border);
}

.longform-entry-content .mg-article-section h2,
.full-recipe h2,
.article-resources h2 {
  margin: 0 0 19px;
  font-family: var(--serif);
  font-size: clamp(31px, 3.4vw, 45px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.longform-entry-content .mg-article-section > p,
.longform-entry-content .mg-article-section > ul {
  color: #494641;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
}

.longform-entry-content .mg-article-section > p {
  margin: 0 0 18px;
}

.longform-entry-content .mg-article-section > ul {
  margin: 21px 0;
  padding-left: 24px;
}

.longform-entry-content .mg-article-section li {
  margin-bottom: 9px;
}

.longform-entry-content .section-sources {
  margin-top: 25px !important;
  padding: 14px 17px;
  color: #625e56 !important;
  background: #f1e8dc;
  border-left: 2px solid var(--gold);
  font-family: var(--sans) !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
}

.longform-entry-content .section-sources a,
.article-resources aside a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.full-recipe {
  margin: 50px 0;
  background: #fffaf1;
  border: 1px solid var(--border);
}

.full-recipe > header {
  padding: clamp(28px, 4vw, 46px);
  background: #e9dbc8;
  border-bottom: 1px solid var(--border);
}

.full-recipe .recipe-facts {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0 0;
  padding: 0;
  border: 1px solid var(--border);
}

.full-recipe .recipe-facts div {
  padding: 15px;
  border-right: 1px solid var(--border);
}

.full-recipe .recipe-facts div:last-child {
  border-right: 0;
}

.full-recipe .recipe-facts dt {
  color: var(--rust);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.full-recipe .recipe-facts dd {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 17px;
}

.recipe-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.35fr);
}

.recipe-ingredients,
.recipe-method {
  padding: clamp(28px, 4vw, 43px);
}

.recipe-ingredients {
  background: #f3e9db;
  border-right: 1px solid var(--border);
}

.recipe-layout h3 {
  margin: 0 0 19px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.recipe-layout h4 {
  margin: 24px 0 8px;
  color: var(--rust);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recipe-layout ul,
.recipe-layout ol {
  margin: 0;
  padding-left: 20px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
}

.recipe-layout li {
  margin-bottom: 10px;
}

.recipe-method ol {
  padding-left: 28px;
}

.recipe-method li {
  margin-bottom: 24px;
  padding-left: 8px;
}

.recipe-method li::marker {
  color: var(--rust);
  font-family: var(--sans);
  font-weight: 700;
}

.recipe-method strong {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.recipe-method p {
  margin: 5px 0 0;
}

.recipe-notes {
  padding: 24px clamp(28px, 4vw, 43px);
  border-top: 1px solid var(--border);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.55;
}

.recipe-notes p {
  margin: 7px 0;
}

.article-resources {
  width: min(89.1vw, 1180px);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.72fr);
  gap: clamp(38px, 6vw, 80px);
  background: var(--paper);
  border: 1px solid var(--border);
}

.article-resources .related-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-resources aside {
  padding-left: clamp(24px, 3vw, 42px);
  border-left: 1px solid var(--border);
}

.article-resources aside ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.article-resources aside li {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.35;
}

.article-resources aside span {
  display: block;
  margin-top: 5px;
  color: #6a655e;
  font-size: 13px;
}

.editorial-comments {
  width: min(89.1vw, 760px);
  margin: 45px auto 0;
}

.property-article .longform-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.property-gallery {
  width: min(89.1vw, 1180px);
  margin: 54px 50%;
  padding: clamp(30px, 4vw, 48px);
  transform: translateX(-50%);
  background: #eee0cd;
  border: 1px solid var(--border);
}

.property-gallery > header {
  max-width: 700px;
  margin-bottom: 28px;
}

.property-gallery h2 {
  margin: 5px 0 8px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 43px);
  font-weight: 400;
  line-height: 1.05;
}

.property-gallery header > p:last-child {
  margin: 0;
  color: #5d5851;
  font-family: var(--serif);
  font-size: 14px;
}

.property-gallery > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.property-gallery figure {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #d1c0a8;
}

.property-gallery picture,
.property-gallery img {
  width: 100%;
  height: 100%;
}

.property-gallery img {
  display: block;
  object-fit: cover;
  transition: transform 240ms ease;
}

.property-gallery figure:hover img {
  transform: scale(1.015);
}

@media (max-width: 820px) {
  .article-shell {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 42px;
  }

  .article-toc {
    position: static;
  }

  .article-toc ol {
    columns: 2;
    column-gap: 24px;
  }

  .article-funnel,
  .recipe-layout,
  .article-resources {
    grid-template-columns: 1fr;
  }

  .recipe-ingredients {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .article-resources aside {
    padding: 30px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .property-gallery > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .longform-hero {
    min-height: 560px;
  }

  .longform-hero__content {
    padding-bottom: 36px;
  }

  .longform-hero h1 {
    font-size: 43px;
  }

  .article-byline {
    display: grid;
    gap: 5px;
  }

  .article-byline span + span::before {
    content: none;
  }

  .article-toc ol {
    columns: 1;
  }

  .longform-entry-content .mg-article-section > p,
  .longform-entry-content .mg-article-section > ul {
    font-size: 16px;
  }

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

  .full-recipe .recipe-facts div:nth-child(2) {
    border-right: 0;
  }

  .full-recipe .recipe-facts div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .article-resources .related-links {
    grid-template-columns: 1fr;
  }

  .property-gallery {
    width: 100%;
    padding: 22px;
  }

  .property-gallery > div {
    grid-template-columns: 1fr;
  }
}

/* Planning collection, network directory, and native inquiry form. */
.planning-library,
.network-directory,
.about-contact-page {
  width: min(1180px, 89.1vw);
  margin: 0 auto 70px;
}

.planning-library__hero,
.about-contact-page__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 345px;
  margin-bottom: 46px;
  border: 1px solid var(--border);
  background: #ead7bc;
}

.planning-library__hero > div,
.about-contact-page__hero > div {
  align-self: center;
  padding: clamp(38px, 6vw, 86px);
}

.planning-library__hero h1,
.about-contact-page__hero h1,
.network-directory__intro h1 {
  margin: 8px 0 14px;
  font-family: var(--serif);
  font-size: clamp(44px, 5.7vw, 76px);
  font-weight: 400;
  line-height: 0.98;
}

.planning-library__hero > div > p:last-child,
.about-contact-page__hero > div > p:last-child,
.network-directory__intro > p:last-child {
  color: #4d4944;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
}

.planning-library__hero-media,
.about-contact-page__media {
  min-height: 345px;
  display: block;
  overflow: hidden;
}

.planning-library__hero-media img,
.about-contact-page__media img {
  width: 100%;
  height: 100%;
  min-height: 345px;
  display: block;
  object-fit: cover;
}

.planning-library__intro {
  margin: 0 auto 34px;
  padding: 0 0 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 38px;
  border-bottom: 1px solid var(--border);
}

.planning-library__intro p {
  max-width: 820px;
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
}

.planning-library__intro strong {
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.planning-library__funnel {
  width: 100%;
  margin: 30px 0;
}

.planning-library__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0 42px;
}

.planning-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  transition: transform .18s ease, box-shadow .18s ease;
}

.planning-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgb(31 39 46 / .10);
}

.planning-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.planning-card > div {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.planning-card h2 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.06;
}

.planning-card div > p:not(.eyebrow) {
  margin: 0 0 22px;
  color: #59534c;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
}

.planning-card span {
  margin-top: auto;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.network-directory__intro {
  max-width: 900px;
  margin: 0 auto 45px;
  padding: 58px 0 34px;
  text-align: center;
}

.network-directory__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.network-brand {
  position: relative;
  min-height: 290px;
  padding: clamp(30px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--border);
  scroll-margin-top: 110px;
}

.network-brand:first-child {
  grid-column: 1 / -1;
}

.network-brand h2 {
  margin: 9px 0 14px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
  line-height: 1;
}

.network-brand > p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 0 24px;
  color: #4f4a44;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.58;
}

.network-brand__link {
  width: fit-content;
  margin-top: auto;
  padding-bottom: 5px;
  display: inline-flex;
  gap: 10px;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.legacy-anchor {
  position: absolute;
  transform: translateY(-120px);
}

.about-contact-page__story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 50px;
}

.about-contact-page__story > div {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--border);
  background: var(--paper);
}

.about-contact-page__story h2,
.about-contact-page__contact h2 {
  margin: 8px 0 16px;
  font-family: var(--serif);
  font-size: clamp(31px, 3.6vw, 46px);
  font-weight: 400;
  line-height: 1.03;
}

.about-contact-page__story p:not(.eyebrow),
.about-contact-page__contact-intro > p:not(.eyebrow) {
  color: #514b45;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.62;
}

.about-contact-page__contact {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--paper);
  scroll-margin-top: 110px;
}

.about-contact-page__contact-intro,
.about-contact-page__form {
  padding: clamp(28px, 5vw, 58px);
}

.about-contact-page__contact-intro {
  background: #ead7bc;
}

.about-contact-page__contact-intro a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mg-contact-form {
  display: grid;
  gap: 17px;
}

.mg-contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mg-contact-form p {
  margin: 0;
}

.mg-contact-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mg-contact-form input[type="text"],
.mg-contact-form input[type="email"],
.mg-contact-form select,
.mg-contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  border: 1px solid #b9a98f;
  border-radius: 0;
  background: #fffdf8;
  font: inherit;
}

.mg-contact-form textarea {
  resize: vertical;
}

.mg-contact-form__consent label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #5d554c;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.mg-contact-form__website {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.mg-contact-form__privacy {
  color: #746a5e;
  font-size: 12px;
}

.mg-contact-notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
}

.mg-contact-notice--success {
  color: #244f42;
  background: #e8f2ec;
}

.mg-contact-notice--error {
  color: #793426;
  background: #f7e7e1;
}

@media (max-width: 900px) {
  .planning-library__hero,
  .about-contact-page__hero,
  .about-contact-page__contact {
    grid-template-columns: 1fr;
  }

  .planning-library__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .network-directory__grid,
  .about-contact-page__story {
    grid-template-columns: 1fr;
  }

  .network-brand:first-child {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .planning-library,
  .network-directory,
  .about-contact-page {
    width: 92vw;
  }

  .planning-library__grid,
  .mg-contact-form__row {
    grid-template-columns: 1fr;
  }

  .planning-library__intro {
    align-items: flex-start;
    flex-direction: column;
  }
}
