/* ===== HOME PAGE OWNED STYLES ===== */

.home-hero {
  padding-block: var(--space-2xl) var(--space-3xl);
}
section{
  max-width: 1200px;
  margin: 0 auto;
}
.home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.home-hero__media {
  margin: 0;
  width: 100%;
  min-width: 0;
}

.home-hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: var(--border-hairline) solid var(--color-rule-light);
}

.home-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  min-width: 0;
}

.home-hero__title {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  letter-spacing: var(--text-h1-letter-spacing);
  font-weight: var(--text-h1-weight);
  color: var(--color-graphite);
  margin: 0;
  max-width: 80ch;
}

.home-hero__standfirst {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  color: var(--color-graphite);
  max-width: 70ch;
  margin: 0;
}

.home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--text-meta-size);
  line-height: var(--text-meta-line-height);
  color: var(--color-graphite-soft);
  margin: 0;
}

.home-tag {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-control);
  font-family: var(--font-heading);
  font-size: var(--text-label-size);
  text-transform: uppercase;
  letter-spacing: var(--text-label-letter-spacing);
  font-weight: var(--text-label-weight);
  border: var(--border-hairline) solid transparent;
  border-inline-start-width: 3px;
  background-color: transparent;
  color: var(--color-graphite);
  text-decoration: none;
}

.home-tag--cyan {
  border-inline-start-color: var(--color-electric-cyan);
}

.home-tag--orange {
  border-inline-start-color: var(--color-signal-orange);
}

.home-tag--lime {
  border-inline-start-color: var(--color-soft-lime);
}

.home-tag--violet {
  border-inline-start-color: var(--color-muted-violet);
}

.home-section-header,
.home-latest__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-block-end: var(--space-lg);
}

.home-section-header h2,
.home-latest__header h2 {
  margin: 0;
}

.home-section-link {
  font-family: var(--font-heading);
  font-size: var(--text-label-size);
  text-transform: uppercase;
  letter-spacing: var(--text-label-letter-spacing);
  font-weight: var(--text-label-weight);
  color: var(--color-electric-cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.home-section-link:hover {
  color: var(--color-signal-orange);
}

.home-latest {
  padding-block-end: var(--space-3xl);
}

.home-latest__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.home-news-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  padding-block: var(--space-md);
  border-top: var(--border-hairline) solid var(--color-rule-light);
  min-width: 0;
}

.home-news-item:first-child {
  border-top: none;
  padding-top: 0;
}

.home-news-item__title {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  letter-spacing: var(--text-h3-letter-spacing);
  font-weight: var(--text-h3-weight);
  color: var(--color-graphite);
  margin: 0;
  max-width: 60ch;
}

.home-news-item__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.home-news-item__title a:hover {
  color: var(--color-electric-cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.home-news-item__excerpt {
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
  color: var(--color-graphite-soft);
  max-width: 70ch;
  margin: 0;
}

.home-news-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--text-meta-size);
  line-height: var(--text-meta-line-height);
  color: var(--color-graphite-soft);
  margin: 0;
}

.home-reviews {
  padding-block-end: var(--space-3xl);
}

.home-reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.home-review-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-top: var(--border-hairline) solid var(--color-rule-light);
  padding-top: var(--space-md);
}

.home-review-card__media {
  display: block;
  margin-block-end: var(--space-md);
}

.home-review-card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: var(--border-hairline) solid var(--color-rule-light);
}

.home-review-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  min-width: 0;
}

.home-score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-inline-start: 4px solid var(--color-signal-orange);
  background-color: transparent;
  border-radius: var(--radius-default);
}

.home-score-badge__numeral {
  font-family: var(--font-heading);
  font-size: var(--text-score-size);
  line-height: var(--text-score-line-height);
  letter-spacing: var(--text-score-letter-spacing);
  font-weight: var(--text-score-weight);
  color: var(--color-graphite);
  font-variant-numeric: tabular-nums;
}

.home-score-badge__label {
  font-family: var(--font-heading);
  font-size: var(--text-label-size);
  text-transform: uppercase;
  letter-spacing: var(--text-label-letter-spacing);
  font-weight: var(--text-label-weight);
  color: var(--color-graphite-soft);
}

.home-review-card__title {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  letter-spacing: var(--text-h3-letter-spacing);
  font-weight: var(--text-h3-weight);
  color: var(--color-graphite);
  margin: 0;
  max-width: 60ch;
}

.home-review-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.home-review-card__title a:hover {
  color: var(--color-electric-cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.home-review-card__standfirst {
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
  color: var(--color-graphite-soft);
  max-width: 70ch;
  margin: 0;
}

.home-review-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--text-meta-size);
  line-height: var(--text-meta-line-height);
  color: var(--color-graphite-soft);
  margin: 0;
}

.home-guides {
  padding-block-end: var(--space-3xl);
}

.home-guides__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.home-guide-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  padding-inline-start: var(--space-md);
  border-inline-start: 3px solid var(--color-soft-lime);
  min-width: 0;
}

.home-guide-item__title {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  letter-spacing: var(--text-h3-letter-spacing);
  font-weight: var(--text-h3-weight);
  color: var(--color-graphite);
  margin: 0;
  max-width: 60ch;
}

.home-guide-item__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.home-guide-item__title a:hover {
  color: var(--color-electric-cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.home-guide-item__excerpt {
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
  color: var(--color-graphite-soft);
  max-width: 70ch;
  margin: 0;
}

.home-features {
  padding-block-end: var(--space-3xl);
}

.home-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.home-features__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

.home-feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
  padding-inline-start: var(--space-md);
  border-inline-start: 3px solid var(--color-muted-violet);
  min-width: 0;
}

.home-feature-item__title {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  letter-spacing: var(--text-h3-letter-spacing);
  font-weight: var(--text-h3-weight);
  color: var(--color-graphite);
  margin: 0;
  max-width: 70ch;
}

.home-feature-item__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.home-feature-item__title a:hover {
  color: var(--color-electric-cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.home-feature-item__excerpt {
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
  color: var(--color-graphite-soft);
  max-width: 80ch;
  margin: 0;
}

.home-features__sidebar {
  padding: var(--space-lg);
  border: var(--border-hairline) solid var(--color-rule-light);
  min-width: 0;
}

.home-features__sidebar-title {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-line-height);
  font-weight: var(--text-h4-weight);
  color: var(--color-graphite);
  margin-block-end: var(--space-sm);
}

.home-features__sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.home-features__sidebar-list a {
  color: var(--color-electric-cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.home-features__sidebar-list a:hover {
  color: var(--color-signal-orange);
}

.home-newsletter {
  background-color: var(--color-deep-navy);
  color: var(--color-paper-inverse);
  padding-block: var(--space-3xl);
  text-align: center;
}

.home-newsletter__inner {
  max-width: 600px;
  margin-inline: auto;
  padding-inline: var(--container-padding-mobile);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.home-newsletter h2 {
  color: var(--color-paper-inverse);
  margin: 0;
}

.home-newsletter__text {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  color: var(--color-paper-inverse);
  max-width: 70ch;
  margin: 0;
}

.home-newsletter__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.home-newsletter__field {
  width: 100%;
  max-width: 400px;
}

.home-newsletter__field input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-deep-navy-raised);
  border: var(--border-hairline) solid var(--color-rule-dark);
  border-radius: var(--radius-control);
  color: var(--color-paper-inverse);
  min-height: 44px;
}

.home-newsletter__field input::placeholder {
  color: var(--color-graphite-soft);
}

.home-newsletter__consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  text-align: left;
  max-width: 400px;
  width: 100%;
}

.home-newsletter__consent input {
  width: auto;
  min-height: auto;
  margin-top: 0.2em;
  accent-color: var(--color-electric-cyan);
}

.home-newsletter__consent label {
  font-family: var(--font-body);
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
  text-transform: none;
  letter-spacing: normal;
  font-weight: var(--text-body-small-weight);
  color: var(--color-paper-inverse);
  margin: 0;
}

.home-newsletter__button {
  width: 100%;
  max-width: 400px;
}

.home-newsletter__message {
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
  min-height: 1.5em;
  margin: 0;
}

.home-newsletter__message--success {
  color: var(--color-soft-lime);
}

.home-newsletter__message--error {
  color: var(--color-signal-orange);
}

/* Tablet */
@media (min-width: 768px) {
  .home-hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-lg);
  }

  .home-hero__media {
    grid-column: 1 / span 8;
  }

  .home-hero__content {
    grid-column: 9 / span 4;
  }

  .home-latest__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
  }

  .home-news-item {
    border-top: none;
    padding-top: 0;
  }

  .home-reviews__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
  }

  .home-review-card {
    border-top: none;
    padding-top: 0;
  }

  .home-guides__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
  }

  .home-features__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-lg);
  }

  .home-features__main {
    grid-column: 1 / span 8;
  }

  .home-features__sidebar {
    grid-column: 9 / span 4;
  }

  .home-newsletter__inner {
    padding-inline: var(--container-padding-tablet);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .home-newsletter__inner {
    padding-inline: var(--container-padding-desktop);
  }
}

@media (max-width: 767px) {
  .home-hero__title {
    font-size: var(--text-h2-size);
    line-height: var(--text-h2-line-height);
    letter-spacing: var(--text-h2-letter-spacing);
  }

  .home-hero__standfirst {
    font-size: var(--text-body-size);
    line-height: var(--text-body-line-height);
  }

  .home-newsletter__inner {
    padding-inline: var(--container-padding-mobile);
  }
}
