/*
Theme Name: Melhor do Sul
Theme URI: https://melhordosul.com.br/
Author: Melhor do Sul
Description: Editorial travel magazine theme inspired by the Melhor do Sul portal design.
Version: 1.0.2
Text Domain: melhor-do-sul
*/

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

:root {
  --ink: #171717;
  --ink-soft: #272727;
  --paper: #ffffff;
  --mist: #f0f0f0;
  --line: #d9d9d9;
  --muted: #666666;
  --cyan: #31a1b3;
  --cyan-dark: #218394;
  --berry: #6f1234;
  --purple: #9344db;
  --pink: #ef3bc0;
  --blue: #3b68e8;
  --gradient: linear-gradient(105deg, #f13abc 0%, #9944d9 48%, #2f78df 100%);
  --container: 1180px;
  --reading: 760px;
  --radius: 4px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.screen-reader-text,
.screen-reader-text:focus {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  clip: auto;
  white-space: normal;
  box-shadow: var(--shadow);
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.reading-width {
  width: min(100% - 48px, var(--reading));
  margin-inline: auto;
}

.section {
  padding: 84px 24px;
}

.section--tight {
  padding-block: 48px;
}

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

.section--cyan {
  color: var(--paper);
  background: var(--cyan);
}

.section--berry {
  color: var(--paper);
  background: var(--berry);
}

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

.section--gradient {
  color: var(--paper);
  background: var(--gradient);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section--dark .eyebrow,
.section--cyan .eyebrow,
.section--berry .eyebrow,
.section--gradient .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading h2,
.section-heading h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.3vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-heading p:not(.eyebrow) {
  max-width: 600px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.section--dark .section-heading p:not(.eyebrow),
.section--cyan .section-heading p:not(.eyebrow),
.section--berry .section-heading p:not(.eyebrow),
.section--gradient .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  color: var(--paper);
  background: var(--cyan-dark);
  transform: translateY(-2px);
}

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

.button--outline {
  color: currentColor;
  background: transparent;
  border-color: currentColor;
}

.button--small {
  min-height: 34px;
  padding: 7px 14px;
  font-size: 0.66rem;
}

/* Header */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
}

.site-header__socialbar {
  color: var(--paper);
  background: var(--ink);
  border-top: 3px solid var(--blue);
}

.site-header__socialbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 48px, var(--container));
  min-height: 54px;
  margin-inline: auto;
  font-size: 0.68rem;
  font-weight: 500;
}

.site-header__top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 136px;
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  padding-block: 16px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.site-brand__image {
  display: block;
  width: 210px;
  height: auto;
}

.site-brand__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--paper);
  background: var(--gradient);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.82;
  text-align: center;
  text-transform: uppercase;
}

.site-brand__mark span {
  display: block;
}

.site-brand__name {
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.site-brand__name span {
  display: block;
}

.site-brand__name span:last-child {
  color: var(--blue);
}

.site-header__social {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__socialbar .site-header__social {
  position: static;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header__socialbar .site-header__social a {
  width: auto;
  height: auto;
  color: var(--paper);
  border: 0;
  border-radius: 0;
  font-size: 0.82rem;
}

.site-header__socialbar .site-header__social a:hover,
.site-header__socialbar .site-header__social a:focus-visible {
  color: var(--cyan);
  background: transparent;
  border-color: transparent;
}

.site-header__social a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.67rem;
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-header__social a:hover,
.site-header__social a:focus-visible {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 38px;
  padding: 8px;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav-shell {
  padding: 7px 0;
  background: var(--gradient);
}

.site-search {
  width: min(100% - 48px, 670px);
  margin-inline: auto;
}

.site-search__form {
  position: relative;
}

.site-search__input {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 9px 48px 9px 28px;
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: var(--paper);
  font: inherit;
  font-size: 0.8rem;
}

.site-search__submit {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 30px;
  height: 30px;
  overflow: hidden;
  padding: 0;
  color: transparent;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
}

.site-search__submit::before {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  content: "";
}

.site-search__submit::after {
  position: absolute;
  top: 19px;
  left: 19px;
  width: 8px;
  height: 2px;
  background: var(--muted);
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.site-nav {
  display: none;
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 48px);
  min-height: 46px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 14px 0;
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
  transition: opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .current-menu-item > a {
  opacity: 0.66;
}

/* Home */

.home-hero {
  padding: 58px 24px 74px;
  color: var(--paper);
  background: var(--ink);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 18px;
  width: min(100%, var(--container));
  margin-inline: auto;
}

.home-hero__lead {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 530px;
  overflow: hidden;
  padding: 42px;
  isolation: isolate;
  background-position: center;
  background-size: cover;
}

.home-hero__lead::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: inherit;
  content: "";
  transition: transform 500ms ease;
}

.home-hero__lead::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 25%, rgba(0, 0, 0, 0.88) 100%);
  content: "";
}

.home-hero__lead:hover::before {
  transform: scale(1.04);
}

.home-hero__lead-content {
  max-width: 570px;
}

.home-hero__lead h1 {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.home-hero__lead p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.84);
}

.home-hero__side {
  display: grid;
  gap: 18px;
}

.home-hero__side-card {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 256px;
  overflow: hidden;
  padding: 24px;
  isolation: isolate;
  background-position: center;
  background-size: cover;
}

.home-hero__side-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 15%, rgba(0, 0, 0, 0.88));
  content: "";
}

.home-hero__side-card h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.home-hero__side-card p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
}

.story-grid {
  display: grid;
  gap: 34px 22px;
}

.story-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.story-card {
  min-width: 0;
}

.story-card__media {
  position: relative;
  aspect-ratio: 1.34;
  overflow: hidden;
  background: var(--mist);
}

.story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.story-card:hover .story-card__media img,
.story-card:focus-within .story-card__media img {
  transform: scale(1.05);
}

.story-card__body {
  padding-top: 14px;
}

.story-card__meta {
  display: block;
  margin-bottom: 7px;
  color: var(--cyan);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section--dark .story-card__meta,
.section--cyan .story-card__meta,
.section--berry .story-card__meta {
  color: rgba(255, 255, 255, 0.7);
}

.story-card h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1.13;
}

.story-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.section--dark .story-card p,
.section--cyan .story-card p,
.section--berry .story-card p {
  color: rgba(255, 255, 255, 0.7);
}

.story-card__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-card__link::after {
  display: inline-block;
  margin-left: 7px;
  content: "→";
  transition: transform 180ms ease;
}

.story-card:hover .story-card__link::after {
  transform: translateX(4px);
}

.home-callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.home-callout__image {
  aspect-ratio: 1.5;
  overflow: hidden;
}

.home-callout__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-callout h2 {
  max-width: 520px;
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.home-callout p {
  max-width: 530px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.76);
}

/* Page heroes and editorial pages */

.page-hero {
  padding: clamp(70px, 10vw, 140px) 24px 80px;
  text-align: center;
}

.page-hero--dark {
  color: var(--paper);
  background: var(--ink);
}

.page-hero--cyan {
  color: var(--paper);
  background: var(--cyan);
}

.page-hero__inner {
  width: min(100%, 800px);
  margin-inline: auto;
}

.page-hero h1 {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  letter-spacing: -0.075em;
  line-height: 0.95;
}

.page-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
}

.editorial-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
  gap: 36px;
  align-items: center;
  width: min(100%, 920px);
  margin-inline: auto;
}

.editorial-feature__image {
  aspect-ratio: 1.7;
  overflow: hidden;
}

.editorial-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-feature h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.1vw, 3rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.editorial-feature p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.editorial-bar {
  width: min(100%, 920px);
  margin: 28px auto 24px;
  padding: 13px 18px;
  color: var(--paper);
  background: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.editorial-mosaic {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4px;
  width: min(100%, 920px);
  margin-inline: auto;
}

.editorial-mosaic img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.editorial-mosaic img:first-child {
  grid-row: span 2;
  height: 444px;
}

/* Authors */

.author-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  width: min(100%, 820px);
  margin-inline: auto;
}

.author-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.author-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  opacity: 0.82;
  filter: grayscale(100%);
  transition: transform 350ms ease, filter 350ms ease, opacity 350ms ease;
}

.author-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.82));
  content: "";
}

.author-card:hover img,
.author-card:focus-within img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.04);
}

.author-card__body {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 1;
}

.author-card__body h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.author-card__body span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
}

.author-profile {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 52px;
  align-items: center;
  width: min(100%, 860px);
  margin-inline: auto;
}

.author-profile__portrait {
  aspect-ratio: 0.88;
  overflow: hidden;
}

.author-profile__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.author-profile h2 {
  margin: 0 0 6px;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.author-profile__role {
  display: block;
  margin-bottom: 22px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.author-profile p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* Articles */

.article-intro {
  padding-bottom: 48px;
}

.article-intro h1 {
  max-width: 920px;
  margin-inline: auto;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-body {
  width: min(100% - 48px, 820px);
  margin: 0 auto;
  padding: 54px 0 72px;
}

.article-body__image {
  width: min(100%, 680px);
  aspect-ratio: 1.55;
  margin: 0 auto 40px;
  object-fit: cover;
}

.article-body__content {
  max-width: var(--reading);
  margin-inline: auto;
  color: #333;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.article-body__content h2,
.article-body__content h3 {
  color: var(--ink);
  font-family: "Roboto", Arial, sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.article-body__content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.comment-box {
  width: min(100% - 48px, 660px);
  margin: 0 auto 64px;
  padding: 34px;
  color: var(--paper);
  background: var(--ink);
}

.comment-box h2,
.comment-box .comment-reply-title {
  margin: 0 0 24px;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.comment-box .comment-form {
  display: grid;
  gap: 12px;
}

.comment-box .comment-form-comment,
.comment-box .comment-form-author,
.comment-box .comment-form-email,
.comment-box .comment-form-url {
  margin: 0;
}

.comment-box label {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  font-weight: 700;
}

.comment-box input:not([type="submit"]),
.comment-box textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 2px;
  color: var(--paper);
  background: transparent;
}

.comment-box textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-box .form-submit {
  margin: 4px 0 0;
}

.comment-box input[type="submit"] {
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.related-heading {
  width: min(100% - 48px, var(--container));
  margin: 0 auto 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* About and advertise */

.about-lead {
  width: min(100%, 720px);
  margin-inline: auto;
  text-align: center;
}

.about-lead p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.about-story {
  display: grid;
  grid-template-columns: 190px minmax(0, 570px);
  gap: 38px;
  align-items: center;
  width: min(100%, 760px);
  margin-inline: auto;
}

.about-story__portrait {
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 50%;
}

.about-story__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.about-story h2,
.about-evolution h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.about-story p,
.about-evolution p {
  margin: 0 0 14px;
  color: var(--muted);
}

.about-evolution {
  width: min(100%, 660px);
  margin-inline: auto;
  text-align: center;
}

.about-evolution p {
  color: rgba(255, 255, 255, 0.72);
}

.about-evolution__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 14px;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-size: 0.95rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 800px);
  margin: 0 auto;
}

.value-card {
  min-height: 122px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  text-align: center;
}

.value-card__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0 auto 10px;
  color: var(--purple);
  font-size: 0.9rem;
}

.value-card h3 {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.value-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.purpose {
  width: min(100%, 660px);
  margin-inline: auto;
  text-align: center;
}

.purpose h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  letter-spacing: -0.07em;
  line-height: 1;
}

.purpose p {
  max-width: 540px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
}

.advertise-intro {
  width: min(100%, 660px);
  margin-inline: auto;
  text-align: center;
}

.advertise-intro p {
  margin: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 800px);
  margin: 34px auto 0;
}

.service-card {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  text-align: center;
}

.service-card__icon {
  color: var(--purple);
  font-size: 1.1rem;
}

.service-card h3 {
  margin: 9px 0 0;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
}

.proof-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 720px);
  margin: 30px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.proof-point {
  padding: 20px 14px;
  text-align: center;
}

.proof-point + .proof-point {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.proof-point strong {
  display: block;
  font-size: 1.15rem;
}

.proof-point span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.66rem;
}

.contact-block {
  width: min(100%, 600px);
  margin-inline: auto;
  text-align: center;
}

.contact-block h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.contact-block > p {
  max-width: 520px;
  margin: 0 auto 22px;
  color: var(--muted);
  font-size: 0.84rem;
}

.gradient-form,
.newsletter-form {
  display: grid;
  gap: 10px;
}

.gradient-form {
  width: min(100%, 560px);
  margin-inline: auto;
}

.gradient-form input,
.gradient-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 2px;
  color: var(--paper);
  background: transparent;
}

.gradient-form input::placeholder,
.gradient-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.gradient-form textarea {
  min-height: 108px;
  resize: vertical;
}

.gradient-form .button {
  justify-self: center;
}

/* Menu page */

.mega-menu-demo {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  min-height: 580px;
  width: min(100%, 980px);
  margin-inline: auto;
  background: var(--ink);
}

.mega-menu-demo__links {
  padding: 38px 30px;
}

.mega-menu-demo__links h1 {
  margin: 0 0 28px;
  color: var(--paper);
  font-size: 1.7rem;
  letter-spacing: -0.06em;
}

.mega-menu-demo__links ul {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mega-menu-demo__links a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.mega-menu-demo__links a:hover,
.mega-menu-demo__links a:focus-visible {
  color: var(--paper);
}

.mega-menu-demo__mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
}

.mega-menu-demo__mosaic a {
  position: relative;
  overflow: hidden;
}

.mega-menu-demo__mosaic a:first-child {
  grid-row: span 2;
}

.mega-menu-demo__mosaic a:last-child {
  grid-column: span 2;
}

.mega-menu-demo__mosaic img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  transition: transform 350ms ease;
}

.mega-menu-demo__mosaic a::after {
  position: absolute;
  inset: auto 0 0;
  padding: 18px 14px 12px;
  color: var(--paper);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  content: attr(aria-label);
  font-size: 0.72rem;
  font-weight: 800;
}

.mega-menu-demo__mosaic a:hover img,
.mega-menu-demo__mosaic a:focus-visible img {
  transform: scale(1.05);
}

/* Forms, newsletter, footer */

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

.newsletter__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.newsletter h2 {
  max-width: 380px;
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.newsletter p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.newsletter-form {
  grid-template-columns: 1fr 1fr;
}

.newsletter-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c6c6c6;
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
}

.newsletter-form .button {
  grid-column: 1 / -1;
  justify-self: start;
}

.form-status {
  min-height: 1.35em;
  margin: 0;
  color: var(--cyan-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

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

.site-footer__main {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 30px;
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  padding: 54px 0 48px;
}

.site-footer .site-brand {
  color: var(--paper);
}

.site-footer .site-brand__image {
  width: 190px;
  padding: 5px 8px;
  background: var(--paper);
}

.site-footer .site-brand__name span:last-child {
  color: #67a1ff;
}

.site-footer__main h2,
.site-footer__main h3 {
  margin: 0 0 12px;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-footer__main p,
.site-footer__main a {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.76rem;
}

.site-footer__main p {
  max-width: 260px;
  margin: 16px 0 0;
}

.site-footer__main ul {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer__main a:hover,
.site-footer__main a:focus-visible {
  color: var(--paper);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px max(24px, calc((100% - var(--container)) / 2));
  color: var(--muted);
  background: var(--paper);
  font-size: 0.68rem;
}

.site-footer__bottom .site-brand__mark {
  width: 33px;
  height: 33px;
  font-size: 0.46rem;
}

.site-footer__bottom .site-brand__name {
  font-size: 0.82rem;
}

.site-footer__bottom .site-brand__image {
  width: 142px;
  padding: 3px 6px;
}

/* Figma home sections */

.mds-home {
  background: var(--paper);
}

.mds-home-section {
  --mds-section-bg: #ffffff;
  --mds-accent: #171717;
  color: var(--ink);
  background: var(--mds-section-bg);
  padding: 58px 24px 76px;
}

.mds-home-section--dark,
.mds-home-section--berry,
.mds-home-section--cyan,
.mds-home-section--gradient {
  color: var(--paper);
}

.mds-section-inner {
  width: min(100%, 1010px);
  margin-inline: auto;
}

.mds-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(23, 23, 23, .34);
}

.mds-home-section--dark .mds-section-heading,
.mds-home-section--berry .mds-section-heading,
.mds-home-section--cyan .mds-section-heading,
.mds-home-section--gradient .mds-section-heading {
  border-bottom-color: rgba(255, 255, 255, .58);
}

.mds-section-heading__title {
  min-width: 0;
}

.mds-section-heading h2 {
  display: block;
  margin: 0;
  color: var(--mds-accent);
  font-size: clamp(1.25rem, 1.7vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1;
}

.mds-home-section--dark .mds-section-heading h2,
.mds-home-section--berry .mds-section-heading h2,
.mds-home-section--cyan .mds-section-heading h2,
.mds-home-section--gradient .mds-section-heading h2 {
  color: var(--paper);
}

.mds-section-heading__title > span {
  display: block;
  width: 58px;
  margin-top: 8px;
  border-top: 2px solid var(--mds-accent);
}

.mds-home-section--dark .mds-section-heading__title > span,
.mds-home-section--berry .mds-section-heading__title > span,
.mds-home-section--cyan .mds-section-heading__title > span,
.mds-home-section--gradient .mds-section-heading__title > span {
  border-top-color: rgba(255, 255, 255, .9);
}

.mds-section-heading__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 23px;
  padding: 3px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease;
}

.mds-section-heading__more:hover,
.mds-section-heading__more:focus-visible {
  color: var(--mds-section-bg);
  background: currentColor;
}

.mds-cover-mosaic,
.mds-mosaic {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.mds-cover-mosaic {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  aspect-ratio: 2.17;
}

.mds-cover-mosaic__item:first-child {
  grid-row: 1 / -1;
}

.mds-tile,
.mds-tile__link {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.mds-tile__link {
  display: block;
  height: 100%;
  color: var(--paper);
  background: var(--ink);
  isolation: isolate;
}

.mds-tile__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.mds-tile:hover .mds-tile__link img,
.mds-tile:focus-within .mds-tile__link img {
  transform: scale(1.04);
}

.mds-tile__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .02) 28%, rgba(0, 0, 0, .86) 100%);
}

.mds-tile__copy {
  position: absolute;
  right: 17px;
  bottom: 15px;
  left: 17px;
  z-index: 2;
  display: grid;
  gap: 6px;
}

.mds-tile__meta {
  color: rgba(255, 255, 255, .78);
  font-size: .52rem;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1.2;
}

.mds-tile__copy strong {
  max-width: 560px;
  font-size: clamp(.78rem, 1.15vw, 1.14rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.06;
}

.mds-cover-mosaic__item:first-child .mds-tile__copy strong {
  max-width: 470px;
  font-size: clamp(1.1rem, 2vw, 2rem);
}

.mds-three-vertical,
.mds-four-cards {
  display: grid;
  gap: 24px 2px;
}

.mds-three-vertical {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mds-four-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mds-story-card {
  min-width: 0;
}

.mds-story-card__media {
  position: relative;
  display: block;
  aspect-ratio: .775;
  overflow: hidden;
  color: var(--paper);
  background: var(--mist);
}

.mds-story-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .72));
  content: "";
}

.mds-story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.mds-story-card:hover .mds-story-card__media img,
.mds-story-card:focus-within .mds-story-card__media img {
  transform: scale(1.04);
}

.mds-story-card__badge {
  position: absolute;
  right: 9px;
  bottom: 8px;
  z-index: 1;
  padding: 3px 7px;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 999px;
  font-size: .48rem;
  line-height: 1;
}

.mds-story-card__body {
  padding: 15px 1px 0;
}

.mds-story-card__body h3 {
  margin: 0;
  font-size: clamp(.95rem, 1.3vw, 1.28rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.mds-story-card__body p {
  margin: 15px 0 0;
  color: rgba(23, 23, 23, .62);
  font-size: .64rem;
  line-height: 1.4;
}

.mds-home-section--dark .mds-story-card__body p,
.mds-home-section--berry .mds-story-card__body p,
.mds-home-section--cyan .mds-story-card__body p,
.mds-home-section--gradient .mds-story-card__body p {
  color: rgba(255, 255, 255, .72);
}

.mds-mosaic {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: minmax(190px, 1.7fr) minmax(130px, 1fr);
  aspect-ratio: 1.65;
}

.mds-mosaic:not(.mds-mosaic--ad) .mds-mosaic__item:first-child {
  grid-column: 1 / 3;
  grid-row: 1;
}

.mds-mosaic--ad {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(190px, 1.8fr) minmax(130px, 1fr);
  aspect-ratio: 1.64;
}

.mds-mosaic--ad .mds-mosaic__item:first-child {
  grid-column: 1 / -1;
  grid-row: auto;
}

.mds-mosaic--ad .mds-mosaic__item:nth-child(n + 4) {
  display: none;
}

.mds-ad-layout {
  min-width: 0;
}

.mds-ad-layout--has-ad {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 2px;
  align-items: stretch;
}

.mds-ad-layout--has-ad.mds-ad-layout--left {
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
}

.mds-ad-layout--has-ad .mds-ad-slot {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 24px;
  color: var(--paper);
  background: var(--ink);
  text-align: center;
}

.mds-ad-layout--has-ad .mds-ad-slot > * {
  max-width: 100%;
}

.mds-ad-layout--no-ad .mds-mosaic--ad {
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: minmax(190px, 1.7fr) minmax(130px, 1fr);
  aspect-ratio: 1.65;
}

.mds-ad-layout--no-ad .mds-mosaic--ad .mds-mosaic__item:first-child {
  grid-column: 1 / 3;
  grid-row: 1;
}

.mds-ad-layout--no-ad .mds-mosaic--ad .mds-mosaic__item:nth-child(n + 4) {
  display: block;
}

.mds-ad-row {
  margin-top: 26px;
}

.mds-ad-row .mds-ad-slot {
  display: grid;
  place-items: center;
  min-height: 84px;
  padding: 18px;
  color: var(--paper);
  background: var(--ink);
  text-align: center;
}

@media (max-width: 860px) {
  .mds-home-section {
    padding-inline: 24px;
  }

  .mds-ad-layout--has-ad,
  .mds-ad-layout--has-ad.mds-ad-layout--left {
    grid-template-columns: 1fr;
  }

  .mds-ad-layout--has-ad .mds-ad-slot {
    min-height: 160px;
  }

  .mds-ad-layout--has-ad.mds-ad-layout--left .mds-ad-slot {
    order: -1;
  }
}

@media (max-width: 680px) {
  .mds-home-section {
    padding: 44px 16px 56px;
  }

  .mds-section-heading {
    gap: 12px;
    margin-bottom: 20px;
  }

  .mds-section-heading h2 {
    font-size: 1.25rem;
  }

  .mds-cover-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(230px, 1.4fr) minmax(150px, 1fr) minmax(150px, 1fr);
    aspect-ratio: auto;
  }

  .mds-cover-mosaic__item:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .mds-three-vertical,
  .mds-four-cards {
    grid-template-columns: 1fr 1fr;
    gap: 22px 12px;
  }

  .mds-mosaic,
  .mds-ad-layout--no-ad .mds-mosaic--ad {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(210px, 1.3fr) minmax(150px, 1fr) minmax(150px, 1fr);
    aspect-ratio: auto;
  }

  .mds-mosaic:not(.mds-mosaic--ad) .mds-mosaic__item:first-child,
  .mds-ad-layout--no-ad .mds-mosaic--ad .mds-mosaic__item:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .mds-mosaic--ad .mds-mosaic__item:nth-child(n + 4) {
    display: none;
  }

  .mds-ad-layout--no-ad .mds-mosaic--ad .mds-mosaic__item:nth-child(n + 4) {
    display: block;
  }
}

@media (max-width: 430px) {
  .mds-three-vertical,
  .mds-four-cards {
    grid-template-columns: 1fr;
  }

  .mds-story-card__media {
    aspect-ratio: 1.05;
  }
}

/* WordPress content fallback */

.page-content {
  width: min(100% - 48px, var(--reading));
  margin-inline: auto;
  padding-block: 74px;
}

.page-content > :first-child {
  margin-top: 0;
}

.page-content h1,
.page-content h2,
.page-content h3 {
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.page-content img {
  margin-block: 24px;
}

.archive-header {
  padding: 80px 24px 36px;
  background: var(--ink);
  color: var(--paper);
}

.archive-header h1 {
  width: min(100%, var(--container));
  margin: 0 auto;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.archive-loop {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  padding-block: 70px;
}

@media (max-width: 860px) {
  .home-hero__grid,
  .editorial-feature,
  .newsletter__inner,
  .home-callout {
    grid-template-columns: 1fr;
  }

  .home-hero__lead {
    min-height: 460px;
  }

  .home-hero__side {
    grid-template-columns: 1fr 1fr;
  }

  .author-profile {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px;
  }

  .site-footer__main {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .site-footer__main > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .container,
  .site-header__top,
  .site-nav,
  .site-footer__main,
  .site-footer__bottom {
    width: min(100% - 32px, var(--container));
  }

  .section {
    padding: 62px 16px;
  }

  .reading-width,
  .article-body,
  .comment-box,
  .page-content,
  .archive-loop {
    width: min(100% - 32px, var(--reading));
  }

  .site-header__top {
    min-height: 70px;
  }

  .site-header__socialbar-inner {
    width: min(100% - 32px, var(--container));
    min-height: 46px;
  }

  .site-search {
    width: min(100% - 32px, 670px);
  }

  .site-brand__image {
    width: 176px;
  }

  .site-header__social {
    display: none;
  }

  .menu-toggle {
    position: absolute;
    right: 0;
    display: block;
  }

  .site-nav {
    display: none;
    padding-block: 6px 14px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: grid;
    justify-content: stretch;
    gap: 0;
  }

  .site-nav a {
    padding: 14px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .home-hero {
    padding: 28px 16px 48px;
  }

  .home-hero__lead {
    min-height: 500px;
    padding: 24px;
  }

  .home-hero__side {
    grid-template-columns: 1fr;
  }

  .home-hero__side-card {
    min-height: 220px;
  }

  .story-grid--3,
  .story-grid--4,
  .author-grid,
  .values-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-card,
  .author-card img {
    min-height: 210px;
  }

  .author-profile,
  .about-story {
    grid-template-columns: 1fr;
  }

  .author-profile__portrait {
    width: min(100%, 330px);
    margin-inline: auto;
  }

  .about-story__portrait {
    margin-inline: auto;
  }

  .editorial-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .editorial-mosaic img,
  .editorial-mosaic img:first-child {
    height: 170px;
  }

  .editorial-mosaic img:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

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

  .proof-point:nth-child(3) {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 0;
  }

  .proof-point:last-child {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-form .button {
    grid-column: auto;
    justify-self: stretch;
  }

  .site-footer__main {
    grid-template-columns: 1fr 1fr;
    width: min(100% - 32px, var(--container));
  }

  .site-footer__main > :first-child {
    grid-column: 1 / -1;
  }

  .site-footer__bottom {
    width: 100%;
    padding-inline: 16px;
  }

  .mega-menu-demo {
    grid-template-columns: 1fr;
  }

  .mega-menu-demo__mosaic {
    min-height: 430px;
  }
}

@media (max-width: 430px) {
  .story-grid--3,
  .story-grid--4,
  .author-grid,
  .values-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .story-grid--3 .story-card,
  .story-grid--4 .story-card {
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 14px;
    align-items: start;
  }

  .story-grid--3 .story-card__body,
  .story-grid--4 .story-card__body {
    padding-top: 0;
  }

  .story-card__media {
    aspect-ratio: 1;
  }

  .comment-box {
    padding: 24px 18px;
  }

  .mega-menu-demo__links {
    padding: 30px 22px;
  }
}
