:root {
  color: #171912;
  background: #fff;
  font-family: "Inter", sans-serif;
  font-synthesis: none;
  --display-font: "Plus Jakarta Sans", sans-serif;
  --focus: #1b4dd8;
  --line: #c8c9c4;
  --editorial-width: 100rem;
  --editorial-gutter: clamp(1.25rem, 6vw, 6rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: #171912;
  background: #fff;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover { text-decoration-thickness: 0.14em; }

a:focus-visible {
  border-radius: 0.125rem;
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.25rem;
}

.site-header {
  color: #111827;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
}

.site-header a { text-decoration: none; }

.site-header__logo {
  order: 1;
  flex: none;
}

.site-header__logo img {
  display: block;
  width: auto;
  height: 2.5rem;
}

.site-header__search {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
  min-width: 0;
  padding: 0.375rem;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.site-header__search svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.site-header__location,
.site-header__query,
.site-header__view-link,
.site-header__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  color: #0f172a;
  background: #fff;
  border-radius: 0.5rem;
}

.site-header__location {
  flex: none;
  gap: 0.5rem;
  min-width: 8rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

.site-header__query {
  flex: 1;
  justify-content: flex-start;
  gap: 0.5rem;
  min-width: 11rem;
  padding: 0.375rem 0.5rem;
  overflow: hidden;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 500;
  background: transparent;
  white-space: nowrap;
}

.site-header__query span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.site-header__view-link {
  width: 2rem;
  border: 1px solid #e2e8f0;
}

.site-header__submit {
  width: 2rem;
  color: #fff;
  background: #2669e5;
}

.site-header__location:hover,
.site-header__view-link:hover { background: #f8fafc; }
.site-header__submit:hover { background: #1d4ed8; }

.site-header__sign-in {
  order: 2;
  flex: none;
  margin-left: auto;
  padding: 0.5rem 1rem;
  color: #374151;
  background: #f3f4f6;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 150ms ease;
}

.site-header__sign-in:hover { background: #e5e7eb; }

@media (min-width: 64rem) {
  .site-header__inner { flex-wrap: nowrap; }

  .site-header__search {
    order: 2;
    flex: 1;
    max-width: 44rem;
    margin-inline: auto;
  }

  .site-header__sign-in {
    order: 3;
    margin-left: 0;
  }
}

.editorial-hero {
  background: #d2e8d4;
}

.editorial-hero--sage { background: #d2e8d4; }
.editorial-hero--cream { background: #f7f4ec; }
.editorial-hero--lavender { background: #e2e0f4; }
.editorial-hero--blue { background: #d6e8f6; }
.editorial-hero--peach { background: #fbe8df; }

.editorial-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(20rem, 5fr);
  width: 100%;
  max-width: var(--editorial-width);
  min-height: 42rem;
  margin: 0 auto;
  padding-inline: var(--editorial-gutter);
}

.editorial-hero--text-only .editorial-hero__inner {
  grid-template-columns: minmax(0, 1fr);
}

.editorial-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(2rem, 6vw, 6rem);
}

.editorial-label,
.editorial-meta {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.editorial-hero h1,
.content-index h1 {
  max-width: 13ch;
  margin: clamp(2rem, 7vh, 5rem) 0 0;
  font-family: var(--display-font);
  font-size: clamp(3rem, 6.6vw, 7.5rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-wrap: balance;
}

.editorial-hero__summary {
  max-width: 38rem;
  margin: 2rem 0 0;
  font-family: var(--display-font);
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  line-height: 1.45;
}

.editorial-hero__sub-summary {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.65;
}

.editorial-hero__summary > :first-child,
.editorial-hero__sub-summary > :first-child { margin-top: 0; }

.editorial-hero__summary > :last-child,
.editorial-hero__sub-summary > :last-child { margin-bottom: 0; }

.editorial-hero .editorial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 3rem;
}

.editorial-hero__media {
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 2.5rem);
  align-self: center;
}

.editorial-hero__media picture {
  display: block;
  aspect-ratio: 1;
}

.editorial-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(15rem, 4fr);
  gap: clamp(3rem, 8vw, 9rem);
  max-width: var(--editorial-width);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 9rem) var(--editorial-gutter);
}

.editorial-navigation {
  grid-column: 2;
  grid-row: 1;
}

.editorial-navigation nav {
  position: sticky;
  top: 2rem;
  padding-top: 0.75rem;
  border-top: 0.125rem solid #171912;
}

.editorial-navigation h2 {
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editorial-navigation ol {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.editorial-navigation a {
  display: inline-block;
  font-family: var(--display-font);
  line-height: 1.35;
}

.editorial-article {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.editorial-article__title,
.editorial-prose h2,
.editorial-prose h3,
.editorial-prose h4 {
  font-family: var(--display-font);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.editorial-article__title {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 5rem);
  line-height: 1;
}

.editorial-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 4rem;
}

.editorial-prose {
  max-width: 70ch;
  font-size: 1.125rem;
  line-height: 1.75;
}

.editorial-prose p,
.editorial-prose ul,
.editorial-prose ol,
.editorial-prose blockquote { margin: 0 0 1.6em; }

.editorial-prose h2 {
  margin: 2.4em 0 0.75em;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.06;
}

.editorial-prose h3 {
  margin: 2em 0 0.65em;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.15;
}

.editorial-prose h4 {
  margin: 1.8em 0 0.5em;
  font-size: 1.25rem;
  line-height: 1.25;
}

.editorial-prose ul,
.editorial-prose ol { padding-left: 1.4em; }
.editorial-prose li + li { margin-top: 0.55em; }

.editorial-prose blockquote {
  margin-left: 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 0.25rem solid #171912;
  font-family: var(--display-font);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.45;
}

.editorial-prose .editorial-small-text {
  max-width: 72ch;
  font-size: 0.9rem !important;
  line-height: 1.4;  
}

.editorial-quote {
  margin: 2.5rem 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 0;
  background: #f0f0ed;
  font-family: var(--display-font);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.45;
}

.editorial-quote > :first-child { margin-top: 0; }
.editorial-quote > :last-child { margin-bottom: 0; }

.editorial-prose img,
.editorial-prose embed,
.editorial-prose iframe { max-width: 100%; }
.editorial-prose .richtext-image { height: auto; }
.editorial-prose .richtext-image.full-width { width: 100%; }

.editorial-prose .richtext-image.left {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}

.editorial-prose .richtext-image.right {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}

.editorial-section { scroll-margin-top: 2rem; }

.site-footer {
  color: #111827;
  background: #fff;
  border-top: 1px solid #f3f4f6;
}

.site-footer__inner {
  max-width: var(--editorial-width);
  margin: 0 auto;
  padding: 4rem var(--editorial-gutter) 5rem;
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1rem;
}

.site-footer__statement {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(1.25rem, 2vw, 3.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.site-footer__navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-top: 0.5rem;
}

.site-footer__navigation a {
  color: #111827;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.5rem;
  text-transform: uppercase;
  transition: color 150ms ease;
}

.site-footer__navigation a:hover { color: #059669; }

.site-footer__copyright {
  margin: 0;
  color: #9ca3af;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 48rem) {
  .site-footer__top {
    flex-direction: row;
    align-items: flex-start;
  }
}

.content-index {
  min-height: 65vh;
  max-width: var(--editorial-width);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 9rem) var(--editorial-gutter);
}

.content-index__list {
  margin: clamp(4rem, 8vw, 8rem) 0 0;
  padding: 0;
  border-top: 0.125rem solid #171912;
  list-style: none;
}

.content-index__list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.content-index__list a {
  font-family: var(--display-font);
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 600;
}

.content-index__empty { color: #5e6059; }

@media (max-width: 63.99rem) {
  .editorial-hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .editorial-hero__content { min-height: 34rem; }

  .editorial-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .editorial-navigation,
  .editorial-article { grid-column: 1; }
  .editorial-navigation { grid-row: 1; }
  .editorial-article { grid-row: 2; }
  .editorial-navigation nav { position: static; }
}

@media (max-width: 35rem) {
  .editorial-hero__content { min-height: 30rem; }

  .editorial-prose .richtext-image.left,
  .editorial-prose .richtext-image.right {
    float: none;
    width: 100%;
    margin: 1rem 0;
  }
}

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