@import url("./tokens.css");
@import url("./brand-themes.css");
@import url("./type-tokens.css");

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

html {
  color: var(--color-text);
  background: var(--color-page);
  font-family: var(--font-body);
  font-size: 100%;
  line-height: var(--line-height-body);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 18rem),
    var(--brand-parent-background);
}

body.has-lightbox {
  overflow: hidden;
}

body,
button,
input {
  font: inherit;
}

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

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

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

.container {
  width: min(100% - (var(--layout-site-margin) * 2), var(--layout-container-max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(252, 252, 252, 0.94);
  border-bottom: var(--border-width-main) solid var(--nav-border);
  box-shadow: var(--shadow-micro);
  backdrop-filter: blur(16px);
}

.site-header > .container {
  width: calc(100% - 2rem);
}

.site-header__top {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--brand-parent-ink);
  font-family: var(--font-body);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  font-weight: var(--font-weight-extra-bold);
  line-height: 1.15;
}

.brand-mark__love {
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05em;
  font-style: italic;
  font-weight: var(--font-weight-regular);
  line-height: 1;
}

.brand-mark__inc {
  font-family: var(--font-body);
  font-weight: var(--font-weight-extra-bold);
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark__tag {
  margin-left: var(--space-3);
  padding: 0.28rem var(--space-2);
  color: var(--color-text-muted);
  background: var(--color-background-dark);
  border: var(--border-width-main) solid var(--color-border);
  border-radius: var(--radius-micro);
  font-size: 0.55rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-dots {
  display: inline-flex;
  gap: var(--space-1);
  margin-left: var(--space-2);
}

.brand-dots span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: var(--radius-round);
}

.brand-dots span:nth-child(1) {
  background: var(--brand-money);
}

.brand-dots span:nth-child(2) {
  background: var(--brand-food);
}

.brand-dots span:nth-child(3) {
  background: var(--brand-exploring);
}

.brand-dots span:nth-child(4) {
  background: var(--brand-property);
}

.site-search {
  display: none;
  min-width: 14rem;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  color: var(--input-placeholder);
  background: var(--color-surface-subtle);
  border-radius: var(--radius-round);
  box-shadow: inset var(--shadow-micro);
}

.site-search::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border: 1.5px solid currentColor;
  border-radius: var(--radius-round);
  box-shadow: 0.38rem 0.38rem 0 -0.3rem currentColor;
}

.site-search input {
  width: 100%;
  min-width: 0;
  color: var(--color-text);
  background: transparent;
  border: 0;
  outline: 0;
}

.site-search input::placeholder {
  color: var(--input-placeholder);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-actions__link {
  color: var(--color-text);
  font-size: var(--font-size-text-small);
}

.icon-button {
  display: inline-grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  color: var(--brand-parent-ink);
  background: var(--color-surface);
  border: var(--border-width-main) solid var(--color-border);
  border-radius: var(--radius-round);
  cursor: pointer;
  font-size: var(--font-size-text-small);
}

.icon-button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.button {
  display: inline-flex;
  min-height: var(--button-height-small);
  align-items: center;
  justify-content: center;
  gap: var(--button-gap);
  padding: var(--space-2) var(--button-padding-inline);
  color: var(--button-secondary-text);
  background: var(--button-secondary-background);
  border: var(--border-width-main) solid var(--button-secondary-border);
  border-radius: var(--button-radius);
  cursor: pointer;
}

.button--primary {
  color: var(--button-primary-text);
  background: var(--button-primary-background);
  border-color: var(--button-primary-background);
}

.site-header__nav {
  display: flex;
  min-height: var(--nav-height-secondary);
  align-items: center;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
}

.site-header__nav::-webkit-scrollbar {
  display: none;
}

.site-header__nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-heading);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.site-header__nav a:hover {
  color: var(--brand-500);
  border-bottom-color: currentColor;
}

.page-main {
  padding-bottom: var(--layout-section-main);
}

.hero-card,
.article-card {
  min-width: 0;
}

.hero-card__link,
.article-card__link {
  display: grid;
  gap: var(--space-4);
}

.article-card--static .article-card__link,
.hero-card__link--static {
  cursor: default;
}

.article-card--static {
  opacity: 0.82;
}

.hero-card__media,
.article-card__media {
  position: relative;
}

.hero-card__image,
.article-card__image {
  width: 100%;
  object-fit: cover;
  background: var(--color-surface-subtle);
  border-radius: var(--media-radius);
  box-shadow: var(--card-shadow);
}

.hero-card__image {
  aspect-ratio: 16 / 10;
}

.hero-card__body {
  display: grid;
  gap: var(--space-3);
}

.eyebrow {
  margin: 0;
  color: var(--brand-500);
  font-weight: var(--font-weight-semibold);
}

.hero-card h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--brand-parent-ink);
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  line-height: 1;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-text-small);
  line-height: 1.3;
}

.article-meta__category {
  color: var(--brand-500);
  font-weight: var(--font-weight-semibold);
}

.article-meta__read-time::before {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: var(--space-1);
  border: 1.5px solid currentColor;
  border-radius: var(--radius-round);
  vertical-align: -0.1em;
}

.story-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: var(--button-height-micro);
  padding: var(--space-1) var(--space-2);
  color: var(--brand-900);
  background: var(--brand-100);
  border: var(--border-width-main) solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-round);
  box-shadow: var(--shadow-micro);
  font-size: var(--font-size-text-small);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}

.story-badge--muted {
  color: var(--color-text-muted);
  background: var(--color-surface-subtle);
}

.hero-card__media .story-badge,
.article-card__media .story-badge {
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
}

.featured-panel {
  display: grid;
  gap: var(--space-5);
}

.featured-panel__title {
  margin: 0;
  color: var(--color-text-heading);
  font-size: var(--font-size-h5);
  letter-spacing: 0;
}

.featured-list {
  display: grid;
  gap: var(--space-5);
}

.article-card__image {
  aspect-ratio: 4 / 3;
}

.article-card--large .article-card__image {
  aspect-ratio: 16 / 9;
}

.article-card__body {
  display: grid;
  gap: var(--space-2);
}

.article-card__title {
  margin: 0;
  color: var(--color-grey-800);
  font-size: var(--font-size-text-main);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0;
  line-height: 1.2;
}

.article-card--large .article-card__title {
  font-size: var(--font-size-text-large);
}

.archive-hero {
  min-height: 32rem;
  display: grid;
  align-items: center;
  padding-block: var(--space-8);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 34rem),
    var(--brand-parent-background);
  border-bottom: var(--border-width-main) solid var(--color-border);
}

.archive-hero__inner {
  display: grid;
  gap: var(--space-5);
  justify-items: center;
  text-align: center;
}

.archive-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.archive-hero h1 {
  max-width: 61rem;
  margin: 0;
  color: var(--brand-parent-ink);
  font-family: var(--font-display);
  font-size: clamp(2.625rem, 6vw, 4.75rem);
  font-weight: var(--font-weight-regular);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  letter-spacing: 0;
  line-height: 1.02;
  text-wrap: balance;
}

.archive-hero h1 em {
  display: block;
  color: #4a403a;
  font-style: italic;
  font-weight: var(--font-weight-regular);
}

.archive-hero__intro {
  max-width: 39rem;
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
}

.brand-wordmark {
  display: inline;
  font-family: var(--font-body);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  white-space: nowrap;
}

.brand-wordmark--money {
  color: var(--brand-money);
}

.brand-wordmark--food {
  color: var(--brand-food);
}

.brand-wordmark--exploring {
  color: var(--brand-exploring);
}

.brand-wordmark--property {
  color: var(--brand-property);
}

.brand-wordmark__love {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05em;
  font-style: italic;
  font-weight: var(--font-weight-regular);
  line-height: 1;
}

.brand-wordmark__suffix {
  font-size: 0.88em;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.archive-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(100%, 44rem);
  min-height: 4.25rem;
  padding: var(--space-1);
  background: var(--color-surface);
  border: 2px solid var(--brand-parent-ink);
  border-radius: var(--radius-round);
  box-shadow: var(--shadow-small);
}

.archive-search input {
  min-width: 0;
  padding: 0 var(--space-5);
  color: var(--color-text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 0.92rem;
}

.archive-search button {
  min-width: 5.75rem;
  color: var(--color-grey-100);
  background: var(--brand-parent-ink);
  border: 0;
  border-radius: var(--radius-round);
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
}

.search-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--font-size-text-small);
}

.search-prompts > span {
  align-self: center;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.search-prompts div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.search-prompts button,
.filter-group button,
.sort-group button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 2rem;
  padding: var(--space-1) var(--space-3);
  color: var(--color-text);
  background: var(--color-surface);
  border: var(--border-width-main) solid var(--color-border);
  border-radius: var(--radius-round);
  cursor: pointer;
  font-size: var(--font-size-text-small);
}

.archive-controls {
  background: rgba(252, 252, 252, 0.72);
  border-bottom: var(--border-width-main) solid var(--color-border);
}

.archive-controls__inner {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  overflow-x: auto;
}

.filter-group,
.sort-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
}

.filter-label {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: var(--font-size-text-small);
  font-weight: var(--font-weight-regular);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.filter-group button.is-active {
  color: var(--color-grey-100);
  background: var(--brand-parent-ink);
  border-color: var(--brand-parent-ink);
}

.sort-group {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: var(--font-size-text-small);
  font-weight: var(--font-weight-regular);
  text-transform: uppercase;
}

.sort-group button {
  min-height: auto;
  padding-inline: 0;
  color: var(--color-text-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sort-group button.is-active {
  color: var(--brand-parent-ink);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.brand-dot {
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: var(--radius-round);
  background: var(--brand-parent-ink);
}

.brand-dot--money {
  background: var(--brand-money);
}

.brand-dot--food {
  background: var(--brand-food);
}

.brand-dot--exploring {
  background: var(--brand-exploring);
}

.brand-dot--property {
  background: var(--brand-property);
}

.editorial-feed {
  padding-top: var(--space-7);
}

.feed-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-2) var(--space-4);
  align-items: end;
  margin-bottom: var(--space-6);
}

.feed-heading p,
.feed-heading h2 {
  margin: 0;
}

.feed-heading p,
.feed-heading span {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: var(--font-size-text-small);
}

.feed-heading p {
  grid-column: 1;
  grid-row: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.feed-heading h2 {
  grid-column: 1;
  grid-row: 2;
  color: var(--brand-parent-ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.25rem);
  font-weight: var(--font-weight-regular);
  font-variation-settings: "opsz" 144, "SOFT" 30;
  line-height: 1.1;
}

.feed-heading span {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}

.archive-grid {
  column-count: 1;
  column-gap: var(--space-5);
}

.archive-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 var(--space-5);
  break-inside: avoid;
  background: var(--color-surface);
  border: var(--border-width-main) solid var(--color-border);
  border-radius: var(--radius-small);
  overflow: hidden;
}

.archive-card--static {
  opacity: 0.82;
}

.archive-card__link {
  display: grid;
  color: inherit;
  cursor: pointer;
}

.archive-card--static .archive-card__link {
  cursor: default;
}

.archive-card__media {
  position: relative;
  overflow: hidden;
  background: var(--color-background-dark);
}

.archive-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.archive-card--compact .archive-card__media img {
  aspect-ratio: 16 / 8;
}

.archive-card__media .story-badge {
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
}

.archive-card__content {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
}

.archive-card__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  color: var(--brand-parent-ink);
  font-size: 0.62rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.archive-card[data-brand="money"] .archive-card__eyebrow {
  color: var(--brand-money);
}

.archive-card[data-brand="food"] .archive-card__eyebrow {
  color: var(--brand-food);
}

.archive-card[data-brand="exploring"] .archive-card__eyebrow {
  color: var(--brand-exploring);
}

.archive-card[data-brand="property"] .archive-card__eyebrow {
  color: var(--brand-property);
}

.archive-card__meta {
  gap: var(--space-2);
  color: var(--color-text-muted);
}

.archive-card__author {
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
}

.archive-card h3 {
  margin: 0;
  color: var(--brand-parent-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: var(--font-weight-regular);
  line-height: 1.1;
}

.archive-card--list h3 {
  font-size: 1.25rem;
}

.archive-card__list {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style-position: inside;
  color: var(--color-text);
  counter-reset: item;
}

.archive-card__list li {
  padding-top: var(--space-2);
  border-top: var(--border-width-main) solid var(--color-border);
  font-size: var(--font-size-text-small);
}

.promo-band,
.newsletter {
  position: relative;
  display: grid;
  gap: var(--space-5);
  margin-block: var(--space-8);
  padding: var(--space-6);
  overflow: hidden;
  border-radius: var(--radius-main);
}

.promo-band {
  color: var(--color-grey-200);
  background: var(--brand-parent-ink);
}

.promo-band .button--primary {
  color: var(--brand-parent-ink);
  background: var(--color-grey-100);
  border-color: var(--color-grey-100);
}

.promo-band::after,
.newsletter::after {
  content: "";
  position: absolute;
  right: -4rem;
  top: -5rem;
  width: min(45vw, 28rem);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 30% 30%, var(--brand-money) 0 13%, transparent 14%),
    radial-gradient(circle at 70% 30%, var(--brand-food) 0 13%, transparent 14%),
    radial-gradient(circle at 30% 70%, var(--brand-exploring) 0 13%, transparent 14%),
    radial-gradient(circle at 70% 70%, var(--brand-property) 0 13%, transparent 14%);
  opacity: 0.22;
  transform: rotate(12deg);
}

.promo-band h2,
.newsletter h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--font-size-h1);
  line-height: var(--line-height-heading-tight);
}

.promo-band p,
.newsletter p {
  max-width: 34rem;
  margin: 0;
}

.promo-band__content,
.newsletter__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-4);
  justify-items: start;
}

.content-section {
  margin-top: var(--layout-section-small);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.section-heading__title {
  margin: 0;
  color: var(--color-grey-800);
  font-family: var(--font-body);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  line-height: var(--line-height-heading-tight);
}

.section-heading__link {
  color: var(--brand-500);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

.section-heading__link::after {
  content: ">";
  margin-left: var(--space-2);
}

.article-grid {
  display: grid;
  gap: var(--space-5) var(--space-6);
}

.newsletter {
  color: var(--brand-900);
  background: var(--brand-100);
}

.newsletter form {
  display: grid;
  gap: var(--space-2);
  width: min(100%, 38rem);
}

.newsletter input {
  min-height: var(--button-height-medium);
  padding: var(--space-3);
  color: var(--color-text);
  background: var(--input-background);
  border: var(--border-width-main) solid var(--input-border);
  border-radius: var(--input-radius);
  box-shadow: var(--input-shadow);
}

.site-footer {
  background: var(--color-surface);
  border-top: var(--border-width-main) solid var(--color-border);
}

.footer-cta {
  color: var(--footer-cta-text);
  background: var(--footer-cta-background);
}

.footer-cta__inner {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-8);
}

.footer-cta h2,
.footer-cta p {
  max-width: 32rem;
  margin: 0;
}

.brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.brand-pill {
  padding: var(--space-2) var(--space-3);
  color: var(--brand-parent-ink);
  background: var(--color-grey-200);
  border-radius: var(--radius-small);
  font-weight: var(--font-weight-semibold);
}

.footer-columns {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-8);
}

.footer-column__title {
  margin: 0 0 var(--space-3);
  color: var(--color-text-heading);
  font-size: var(--font-size-h5);
}

.footer-column ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a {
  color: var(--color-text-muted);
}

.footer-legal {
  display: grid;
  gap: var(--space-2);
  justify-items: center;
  padding-block: var(--space-4);
  color: var(--color-text-muted);
  border-top: var(--border-width-main) solid var(--color-border);
  font-size: var(--font-size-text-small);
  text-align: center;
}

.gallery-page {
  padding-top: var(--space-6);
}

.gallery-article {
  display: grid;
  gap: var(--layout-section-small);
}

.gallery-hero {
  display: grid;
  gap: var(--space-6);
}

.gallery-hero__content {
  display: grid;
  gap: var(--space-4);
}

.gallery-hero h1 {
  max-width: 21ch;
  margin: 0;
  color: var(--brand-parent-ink);
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 6.4vw, 4.35rem);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  line-height: 0.98;
}

.gallery-standfirst {
  max-width: 38rem;
  margin: 0;
  color: var(--color-text);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.45;
}

.gallery-byline {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-text-small);
}

.gallery-hero__image {
  width: 100%;
  max-height: 44rem;
  object-fit: cover;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-image);
  cursor: zoom-in;
}

.gallery-slides {
  display: grid;
  gap: var(--space-6);
}

.gallery-slide {
  display: grid;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: var(--border-width-main) solid var(--color-border);
}

.gallery-slide__figure {
  display: grid;
  gap: var(--space-2);
  margin: 0;
}

.gallery-slide__image-button {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-main);
  cursor: zoom-in;
}

.gallery-slide__figure img,
.gallery-slide__image-button img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-main);
}

.gallery-slide__figure figcaption {
  color: var(--color-text-muted);
  font-size: var(--font-size-text-small);
}

.gallery-slide__content {
  display: grid;
  gap: var(--space-3);
}

.gallery-slide__content h2 {
  margin: 0;
  color: var(--color-grey-800);
  font-family: var(--font-heading);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  line-height: var(--line-height-heading-tight);
}

.gallery-slide__content p {
  max-width: 42rem;
  margin: 0;
  color: var(--color-text);
}

.gallery-related {
  margin-top: var(--layout-section-main);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: var(--space-5);
  background: rgba(16, 13, 11, 0.9);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox__figure {
  display: grid;
  gap: var(--space-3);
  width: min(100%, 72rem);
  margin: 0;
  color: var(--color-grey-100);
}

.gallery-lightbox__figure img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-small);
}

.gallery-lightbox__figure figcaption {
  color: var(--color-grey-200);
  font-size: var(--font-size-text-small);
}

.gallery-lightbox__close {
  position: absolute;
  right: var(--space-5);
  top: var(--space-5);
  min-height: var(--button-height-small);
  padding: var(--space-2) var(--space-3);
  color: var(--brand-parent-ink);
  background: var(--color-grey-100);
  border: 0;
  border-radius: var(--radius-round);
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
}

.gallery-slideshow-page {
  padding-top: var(--space-6);
}

.gallery-slideshow {
  display: grid;
  gap: var(--space-7);
}

.gallery-slideshow__header {
  display: grid;
  gap: var(--space-4);
  max-width: 58rem;
}

.gallery-slideshow__header h1 {
  margin: 0;
  color: var(--brand-parent-ink);
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 6vw, 4.5rem);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  line-height: 1;
}

.slideshow-viewer {
  display: grid;
  gap: var(--space-4);
  max-width: 56rem;
}

.slideshow-viewer__media {
  position: relative;
  overflow: hidden;
  background: var(--color-background-dark);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-image);
}

.slideshow-viewer__image-button {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.slideshow-viewer__media img,
.slideshow-viewer__image-button img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.slideshow-viewer__button {
  position: absolute;
  top: 50%;
  display: inline-grid;
  width: 2.75rem;
  height: 4.75rem;
  place-items: center;
  color: var(--brand-parent-ink);
  background: rgba(255, 255, 255, 0.88);
  border: 0;
  border-radius: var(--radius-small);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.slideshow-viewer__button--prev {
  left: var(--space-3);
}

.slideshow-viewer__button--next {
  right: var(--space-3);
}

.slideshow-viewer__thumbnails {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-1);
}

.slideshow-thumbnail {
  flex: 0 0 5rem;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-small);
  cursor: pointer;
  opacity: 0.72;
}

.slideshow-thumbnail.is-active {
  border-color: var(--brand-500);
  opacity: 1;
}

.slideshow-thumbnail img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.slideshow-viewer__content {
  display: grid;
  gap: var(--space-3);
  max-width: 48rem;
}

.slideshow-viewer__content h2 {
  margin: 0;
  color: var(--color-grey-800);
  font-family: var(--font-heading);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-heading-tight);
}

.slideshow-viewer__caption {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-text-small);
}

.slideshow-viewer__body {
  display: grid;
  gap: var(--space-3);
  color: var(--color-text);
}

.slideshow-viewer__body p {
  margin: 0;
}

.slideshow-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 30vw);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.slideshow-fullscreen[hidden] {
  display: none;
}

.slideshow-fullscreen__image-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: var(--space-8) var(--space-7) calc(var(--space-8) + 4rem);
}

.slideshow-fullscreen__image-panel img {
  width: min(100%, 72rem);
  max-height: calc(100vh - 12rem);
  object-fit: contain;
  box-shadow: var(--shadow-image);
}

.slideshow-fullscreen__copy {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  min-width: 0;
  min-height: 0;
  padding: var(--space-7) var(--space-5);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.92);
  border-left: var(--border-width-main) solid var(--color-border);
}

.slideshow-fullscreen__copy h2 {
  margin: 0;
  color: var(--brand-parent-ink);
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-heading-tight);
}

.slideshow-fullscreen__eyebrow,
.slideshow-fullscreen__caption {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-text-small);
}

.slideshow-fullscreen__body {
  display: grid;
  gap: var(--space-3);
  color: var(--color-text);
  font-size: var(--font-size-text-small);
  line-height: 1.45;
}

.slideshow-fullscreen__body p {
  margin: 0;
}

.slideshow-fullscreen__close {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 1;
  min-height: 2rem;
  padding: var(--space-1) var(--space-3);
  color: var(--brand-parent-ink);
  background: var(--color-surface);
  border: var(--border-width-main) solid var(--color-border);
  border-radius: var(--radius-round);
  cursor: pointer;
  box-shadow: var(--shadow-micro);
}

.slideshow-fullscreen__button {
  position: absolute;
  top: 50%;
  display: inline-grid;
  width: 2.5rem;
  height: 4.5rem;
  place-items: center;
  color: var(--brand-parent-ink);
  background: rgba(255, 255, 255, 0.9);
  border: var(--border-width-main) solid var(--color-border);
  border-radius: var(--radius-small);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.slideshow-fullscreen__button--prev {
  left: var(--space-4);
}

.slideshow-fullscreen__button--next {
  right: var(--space-4);
}

.slideshow-fullscreen__thumbnails {
  position: fixed;
  left: var(--space-4);
  right: calc(30vw + var(--space-4));
  bottom: var(--space-4);
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-block: var(--space-1);
}

.slideshow-fullscreen__thumbnail {
  flex: 0 0 4.5rem;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-small);
  cursor: pointer;
  opacity: 0.64;
}

.slideshow-fullscreen__thumbnail.is-active {
  border-color: var(--brand-500);
  opacity: 1;
}

.slideshow-fullscreen__thumbnail img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.article-page,
.video-page {
  padding-top: var(--space-6);
}

.article-template,
.video-template {
  display: grid;
  gap: var(--space-7);
}

.video-template {
  gap: var(--layout-section-small);
}

.video-feature__header {
  max-width: 58rem;
}

.video-template--feature .video-player {
  width: 100%;
}

.video-template--gallery .gallery-hero h1 {
  max-width: 21ch;
  font-size: clamp(2.35rem, 6.4vw, 4.35rem);
  line-height: 0.98;
}

.video-template__teaser {
  margin: 0;
  color: var(--brand-parent-ink);
  font-size: var(--font-size-text-main);
  font-weight: var(--font-weight-semibold);
}

.article-template__header {
  display: grid;
  gap: var(--space-4);
  max-width: 100%;
}

.article-template__header h1 {
  max-width: 100%;
}

.article-template__standfirst {
  max-width: 100%;
}

.article-template__header h1,
.video-template h1 {
  margin: 0;
  color: var(--brand-parent-ink);
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  line-height: 0.98;
}

.article-template__standfirst {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.45;
}

.article-template__byline {
  margin: 0;
  color: var(--color-text-muted);
}

.article-template__image {
  width: 100%;
  max-height: 44rem;
  object-fit: cover;
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-image);
}

.article-template__body {
  display: grid;
  gap: var(--space-5);
  max-width: 44rem;
  color: var(--color-text);
  font-size: var(--font-size-text-large);
  line-height: var(--line-height-body);
}

.article-template__body h2,
.article-template__body p {
  margin: 0;
}

.article-template__body h2 {
  color: var(--color-text-heading);
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  line-height: var(--line-height-heading);
}

.video-player {
  position: relative;
  overflow: hidden;
  background: var(--brand-parent-ink);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-image);
}

.video-player--expandable {
  cursor: zoom-in;
}

.video-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--brand-parent-ink);
}

.video-player__button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  width: 5rem;
  height: 5rem;
  align-items: center;
  justify-content: center;
  color: var(--brand-parent-ink);
  background: var(--color-grey-100);
  border: 0;
  border-radius: var(--radius-round);
  box-shadow: var(--shadow-medium);
  font-weight: var(--font-weight-semibold);
  transform: translate(-50%, -50%);
}

.video-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 28vw);
  background: rgba(16, 13, 11, 0.92);
}

.video-fullscreen[hidden] {
  display: none;
}

.video-fullscreen__player {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  padding: var(--space-8) var(--space-7);
}

.video-fullscreen__player video {
  width: min(100%, 76rem);
  max-height: calc(100vh - 8rem);
  background: var(--brand-parent-ink);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-image);
}

.video-fullscreen__copy {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-7) var(--space-5);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.94);
  overflow-y: auto;
}

.video-fullscreen__copy h2 {
  margin: 0;
  color: var(--brand-parent-ink);
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-heading-tight);
}

.video-fullscreen__copy p {
  margin: 0;
}

.video-fullscreen__close {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 1;
  min-height: 2rem;
  padding: var(--space-1) var(--space-3);
  color: var(--brand-parent-ink);
  background: var(--color-surface);
  border: var(--border-width-main) solid var(--color-border);
  border-radius: var(--radius-round);
  box-shadow: var(--shadow-micro);
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
}

@media (min-width: 42rem) {
  .archive-grid {
    column-count: 2;
  }

  .newsletter form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

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

  .article-grid .article-card--large {
    grid-column: span 1;
  }
}

@media (min-width: 64rem) {
  .archive-grid {
    column-count: 4;
  }

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

  .article-grid .article-card--large {
    grid-column: span 2;
  }

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

  .promo-band,
  .newsletter {
    min-height: 14rem;
  }

  .gallery-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: end;
  }

  .video-template--feature .video-player video {
    max-height: 46rem;
  }

  .gallery-slide {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
    align-items: start;
  }
}

@media (max-width: 36rem) {
  .site-actions {
    display: none;
  }

  .brand-mark__tag,
  .site-search {
    display: none;
  }

  .archive-search {
    grid-template-columns: 1fr;
    border-radius: var(--radius-main);
  }

  .archive-search input {
    min-height: 3rem;
  }

  .archive-search button {
    min-height: 3rem;
  }

  .archive-controls__inner,
  .feed-heading {
    display: grid;
  }

  .feed-heading span {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .hero-card h1 {
    max-width: 100%;
  }

  .promo-band,
  .newsletter {
    padding: var(--space-5);
  }

  .slideshow-fullscreen {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 55vh) minmax(0, 1fr) auto;
  }

  .slideshow-fullscreen__image-panel {
    padding: var(--space-7) var(--space-4) var(--space-4);
  }

  .slideshow-fullscreen__copy {
    padding: var(--space-4);
    border-left: 0;
    border-top: var(--border-width-main) solid var(--color-border);
  }

  .slideshow-fullscreen__thumbnails {
    position: static;
    grid-row: 3;
    padding: var(--space-2) var(--space-4) var(--space-4);
    background: rgba(255, 255, 255, 0.92);
  }

  .video-fullscreen {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 58vh) minmax(0, 1fr);
  }

  .video-fullscreen__player {
    padding: var(--space-7) var(--space-4) var(--space-4);
  }

  .video-fullscreen__copy {
    padding: var(--space-4);
  }
}
