/* ===================================
   TRIALNL — Motortrial Nieuws
   Design: Rugged, earthy, bold
   =================================== */

/* --- Design Tokens --- */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-hero: clamp(2.5rem,   1rem    + 5vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* --- Light Mode (default) --- */
:root, [data-theme="light"] {
  --color-bg: #f5f2ed;
  --color-surface: #faf8f5;
  --color-surface-2: #ffffff;
  --color-surface-offset: #ece8e1;
  --color-surface-offset-2: #e3ded6;
  --color-divider: #d4cfc6;
  --color-border: #c8c2b8;

  --color-text: #1a1814;
  --color-text-muted: #6b6560;
  --color-text-faint: #a09a94;
  --color-text-inverse: #faf8f5;

  --color-accent: #b8451a;
  --color-accent-hover: #9a3915;
  --color-accent-active: #7d2e11;
  --color-accent-soft: rgba(184, 69, 26, 0.08);

  --color-warning: #c97a20;
  --color-success: #3a7d2a;

  --shadow-sm: 0 1px 3px rgba(26, 24, 20, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 24, 20, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 24, 20, 0.12);
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --color-bg: #141210;
  --color-surface: #1c1a17;
  --color-surface-2: #222019;
  --color-surface-offset: #1e1c19;
  --color-surface-offset-2: #2a2722;
  --color-divider: #2e2b26;
  --color-border: #3a3631;

  --color-text: #d8d4ce;
  --color-text-muted: #8a8580;
  --color-text-faint: #5c5852;
  --color-text-inverse: #1a1814;

  --color-accent: #d4764a;
  --color-accent-hover: #e08b60;
  --color-accent-active: #c06038;
  --color-accent-soft: rgba(212, 118, 74, 0.12);

  --color-warning: #d49440;
  --color-success: #5da34a;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #141210;
    --color-surface: #1c1a17;
    --color-surface-2: #222019;
    --color-surface-offset: #1e1c19;
    --color-surface-offset-2: #2a2722;
    --color-divider: #2e2b26;
    --color-border: #3a3631;
    --color-text: #d8d4ce;
    --color-text-muted: #8a8580;
    --color-text-faint: #5c5852;
    --color-text-inverse: #1a1814;
    --color-accent: #d4764a;
    --color-accent-hover: #e08b60;
    --color-accent-active: #c06038;
    --color-accent-soft: rgba(212, 118, 74, 0.12);
    --color-warning: #d49440;
    --color-success: #5da34a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}

/* ===================================
   HEADER
   =================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.header__nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: none;
  gap: var(--space-1);
}

@media (min-width: 768px) {
  .nav-list {
    display: flex;
  }
  .nav-toggle {
    display: none !important;
  }
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-accent-soft);
}

.nav-link--cta {
  color: var(--color-text-inverse);
  background: var(--color-accent);
  font-weight: 600;
}
.nav-link--cta:hover {
  background: var(--color-accent-hover);
  color: var(--color-text-inverse);
}

/* Mobile nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  z-index: 60;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav open */
@media (max-width: 767px) {
  .nav-list.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--color-surface);
    padding: var(--space-20) var(--space-6) var(--space-6);
    z-index: 55;
    box-shadow: var(--shadow-lg);
    gap: var(--space-1);
    animation: slideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav-list.is-open .nav-link {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
  }
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 52;
}
.mobile-nav-overlay.is-open {
  display: block;
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-accent-soft);
}

/* ===================================
   HERO
   =================================== */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-8) var(--space-4) var(--space-10);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    min-height: 75vh;
    padding: var(--space-12) var(--space-8) var(--space-16);
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(20, 18, 16, 0) 0%,
      rgba(20, 18, 16, 0.3) 40%,
      rgba(20, 18, 16, 0.85) 100%
    ),
    linear-gradient(135deg,
      #2a2520 0%,
      #3d2e1e 30%,
      #1a1510 70%,
      #0d0b08 100%
    );
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 50%, rgba(184, 69, 26, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(201, 122, 32, 0.1) 0%, transparent 40%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--content-default);
  margin: 0 auto;
  width: 100%;
}

.hero__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: var(--color-accent);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  color: #f5f2ed;
  line-height: 1.05;
  margin-bottom: var(--space-4);
  max-width: 16ch;
}

.hero__lead {
  font-size: var(--text-base);
  color: rgba(245, 242, 237, 0.8);
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: var(--space-4);
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(245, 242, 237, 0.5);
  margin-bottom: var(--space-6);
}

.hero__divider {
  opacity: 0.4;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
}
.hero__cta:hover {
  background: var(--color-accent-hover);
}

/* ===================================
   SECTIONS
   =================================== */
.section {
  padding: clamp(var(--space-10), 6vw, var(--space-20)) var(--space-4);
}

.section--alt {
  background: var(--color-surface);
}

.section__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section__header {
  margin-bottom: var(--space-8);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.section__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.section__source {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
}
.section__source a {
  color: var(--color-accent);
  text-decoration: none;
}
.section__source a:hover {
  text-decoration: underline;
}

/* ===================================
   ARTICLES
   =================================== */
.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.tag {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.tag--accent {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

.tag--warning {
  background: rgba(201, 122, 32, 0.1);
  color: var(--color-warning);
}

.article__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
}

.article__footer a {
  color: var(--color-accent);
  text-decoration: none;
}
.article__footer a:hover {
  text-decoration: underline;
}

/* Featured Article */
.article-featured {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .article-featured {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
  }
}

.article-featured__image {
  background: var(--color-surface-offset);
  min-height: 200px;
  overflow: hidden;
}

.article-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
}

@media (min-width: 768px) {
  .article-featured__image img {
    min-height: 100%;
  }
}

.article-featured__body {
  padding: var(--space-6);
}

.article-featured__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.25;
}

.article-featured__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

/* Article Grid */
.article-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-card__image {
  background: var(--color-surface-offset);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .article-card__image img {
  transform: scale(1.03);
}

.article-card__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.article-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.article-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===================================
   CALENDAR TABLE
   =================================== */
.calendar-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--space-4));
  padding: 0 var(--space-4);
}

.calendar-table {
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
}

.calendar-table thead {
  background: var(--color-surface-offset-2);
}

.calendar-table th {
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  white-space: nowrap;
}

.calendar-table td {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-divider);
  white-space: nowrap;
}

.calendar-table__highlight {
  background: var(--color-accent-soft);
}
.calendar-table__highlight td {
  border-top-color: rgba(184, 69, 26, 0.15);
}

.round-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.round-badge--nl {
  background: var(--color-accent);
  color: #fff;
}

.calendar-table__footer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-3) var(--space-4);
  border-top: 2px solid var(--color-divider);
}

.calendar-table--compact {
  font-size: var(--text-sm);
}

/* Mobile table: card layout */
@media (max-width: 639px) {
  .calendar-table thead {
    display: none;
  }
  .calendar-table,
  .calendar-table tbody,
  .calendar-table tr,
  .calendar-table td {
    display: block;
  }
  .calendar-table tr {
    border: 1px solid var(--color-divider);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    margin-bottom: var(--space-2);
    background: var(--color-surface-2);
  }
  .calendar-table__highlight {
    background: var(--color-accent-soft);
  }
  .calendar-table td {
    border-top: none;
    padding: var(--space-1) var(--space-2);
    display: flex;
    justify-content: space-between;
    white-space: normal;
  }
  .calendar-table td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: var(--text-xs);
    color: var(--color-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 5em;
  }
  .calendar-table tfoot td {
    display: block;
  }
  .calendar-table tfoot td::before {
    display: none;
  }
}

/* ===================================
   INFO GRID (Clubs)
   =================================== */
.info-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
}

.info-card__icon {
  margin-bottom: var(--space-3);
}

.info-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.info-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.info-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
}
.info-card__link:hover {
  text-decoration: underline;
}

.sub-section {
  margin-top: var(--space-10);
}

.sub-section__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

/* ===================================
   BEGINNERS / FAQ
   =================================== */
.beginners-content {
  max-width: var(--content-default);
}

.beginners-intro {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.beginners-intro strong {
  color: var(--color-accent);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item__question {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: '+';
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-item__question::after {
  content: '−';
  transform: rotate(0deg);
}

.faq-item__answer {
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.faq-item__answer p {
  margin-bottom: var(--space-3);
}
.faq-item__answer p:last-child {
  margin-bottom: 0;
}

.faq-item__answer strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ===================================
   NEWSLETTER
   =================================== */
.section--newsletter {
  background: var(--color-surface-offset);
}

.newsletter {
  max-width: var(--content-narrow);
  margin: 0 auto;
  text-align: center;
}

.newsletter__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.newsletter__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.newsletter__form {
  text-align: left;
}

.newsletter__input-group {
  display: flex;
  gap: var(--space-2);
}

.newsletter__input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  min-width: 0;
}

.newsletter__input::placeholder {
  color: var(--color-text-faint);
}

.newsletter__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.newsletter__button {
  padding: var(--space-3) var(--space-6);
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  white-space: nowrap;
  flex-shrink: 0;
}

.newsletter__button:hover {
  background: var(--color-accent-hover);
}

.newsletter__button:active {
  background: var(--color-accent-active);
}

.newsletter__help {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-2);
  text-align: center;
}

.newsletter__message {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  text-align: center;
}

.newsletter__message--success {
  color: var(--color-success);
  font-weight: 600;
}

.newsletter__message--error {
  color: var(--color-accent);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding: var(--space-10) var(--space-4) var(--space-6);
}

.footer__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
  .footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer__tagline {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-2);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer__links a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__attribution {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
}
.footer__attribution:hover {
  color: var(--color-accent);
}

/* ===================================
   SCROLL ANIMATIONS
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
