/*
 * WOW Club visual layer
 * Keeps Melaka's Ghost features intact while matching wowclub.com.
 */

:root,
:root:not([data-user-color-scheme]) {
  color-scheme: light;
  --color-mode: 'light';
  --color-brand: #ea2891;
  --color-brand-soft: #f86db5;
  --color-white: #fff;
  --color-dark: #000;
  --color-text: #000;
  --color-gray: #848484;
  --color-error: #bf3157;
  --color-success: #097756;
  --color-border: #e5e7eb;
  --color-border-dark: #e5e7eb;
  --bg-color: #fff;
  --bg-gray: #f3f3f5;
  --bg-white: #fff;
  --bg-card: #fff;
  --wow-display: 'Baskerville BT Roman', 'Libre Baskerville', Baskerville, Georgia, serif;
  --wow-sans: Geist, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wow-radius-lg: 56px;
  --wow-radius-md: 32px;
  --wow-radius-sm: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  color: #000;
  background: #fff;
  font-family: var(--wow-sans);
  font-size: 16px;
  line-height: 1.55;
}

body::selection,
body *::selection {
  color: #000;
  background: rgba(248, 109, 181, 0.34);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #000;
  font-family: var(--wow-display);
  font-weight: 400;
  letter-spacing: -0.02em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 4px;
}

.o-grid {
  width: min(100%, 1280px);
  max-width: 1280px;
  padding-right: 24px;
  padding-left: 24px;
}

.o-grid .o-grid {
  width: auto;
  padding-right: 0;
  padding-left: 0;
}

.o-grid__col {
  padding-right: 16px;
  padding-left: 16px;
}

/* Header */
.c-header-shell {
  position: relative;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.c-header {
  margin: 0;
  padding: 26px 0;
  box-shadow: none;
}

.c-header__inner,
.c-header__brand {
  display: flex;
  align-items: center;
}

.c-header__inner {
  justify-content: space-between;
  gap: 32px;
}

.c-header__brand {
  min-width: 0;
  gap: 18px;
}

.c-logo {
  display: inline-flex;
  flex: none;
  align-items: center;
}

.c-logo__img {
  width: 200px;
  max-height: none;
}

.c-header__divider {
  width: 1px;
  height: 28px;
  background: #d9d9d9;
}

.c-header__journal-link {
  color: #000;
  font-family: var(--wow-display);
  font-size: 18px;
  line-height: 1;
}

.c-header__navigation {
  flex: 1;
}

.c-nav {
  gap: clamp(18px, 2.3vw, 40px);
}

.c-nav__item,
.c-nav__item:not(:last-child) {
  margin-right: 0;
  color: #848484;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.c-nav__link,
.c-nav a {
  position: relative;
  transition: color 180ms ease;
}

.c-nav__link::after,
.c-nav__item:not(.is-membership) > a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: '';
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 220ms ease;
}

.c-nav__link:hover,
.c-nav__link:focus,
.c-nav a:hover,
.c-nav a:focus,
.c-nav__link--current {
  color: #000;
}

.c-nav__link:hover::after,
.c-nav__link:focus::after,
.c-nav__item:not(.is-membership) > a:hover::after,
.c-nav__item:not(.is-membership) > a:focus::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.c-nav .c-btn,
.c-btn {
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid #000;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-family: var(--wow-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.c-nav .c-btn:hover,
.c-btn:hover {
  color: #fff;
  border-color: var(--color-brand);
  background: var(--color-brand);
  transform: translateY(-1px);
}

.c-btn--light {
  color: #000;
  border-color: #d9d9d9;
  background: #fff;
}

.c-nav__icon {
  width: 22px;
  height: 22px;
  color: #000;
}

/* Journal masthead */
.c-journal-intro {
  padding-top: clamp(72px, 9vw, 132px);
  padding-bottom: clamp(64px, 8vw, 112px);
}

.c-journal-intro__eyebrow {
  margin-bottom: 28px;
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.c-journal-intro__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.7fr);
  align-items: end;
  gap: clamp(36px, 8vw, 120px);
}

.c-journal-intro__title {
  max-width: 900px;
  font-size: clamp(58px, 8vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.c-journal-intro__aside {
  max-width: 370px;
  padding-bottom: 8px;
  color: #575757;
  font-size: 17px;
  line-height: 1.6;
}

.c-journal-intro__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-bottom: 5px;
  color: #000;
  border-bottom: 1px solid #000;
  font-size: 15px;
  font-weight: 500;
  transition: gap 180ms ease, color 180ms ease, border-color 180ms ease;
}

.c-journal-intro__link:hover {
  gap: 18px;
  color: var(--color-brand);
  border-color: var(--color-brand);
}

/* Post grid */
.js-grid {
  row-gap: 56px;
}

.c-post-card-wrap {
  align-self: stretch;
}

.c-post-card {
  margin-bottom: 0;
}

.c-post-card__media,
.c-post-card__image-wrap,
.c-post-card__image {
  border-radius: var(--wow-radius-md);
}

.c-post-card__media {
  background: var(--bg-gray);
}

.c-post-card__image-wrap,
.c-post-card__image {
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 350ms ease;
}

.c-post-card__image-wrap {
  padding-top: 74%;
  overflow: hidden;
}

.c-post-card__image {
  top: 0;
  transform: scale(1.001);
}

.c-post-card__content,
.c-post-card__content--no-image {
  padding: 24px 4px 0;
  background: transparent;
  box-shadow: none;
}

.c-post-card__content,
.c-post-card__title,
.c-post-card__title-link {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.c-post-card__title {
  margin-bottom: 14px;
  font-family: var(--wow-display);
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.c-post-card__meta,
.c-post-hero__meta {
  color: #848484;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.c-post-card__author a,
.c-post-hero__author a {
  color: #848484;
}

.c-post-card:hover .c-post-card__image-wrap {
  transform: none;
}

.c-post-card:hover .c-post-card__image {
  filter: saturate(1.05);
  transform: scale(1.035);
}

.c-post-card:hover .c-post-card__title-link {
  color: var(--color-brand);
}

.c-post-card--no-image {
  min-height: 320px;
  padding: 28px;
  border-radius: var(--wow-radius-md);
  background: #f3f3f5;
  box-shadow: none;
}

.c-post-card--first.c-post-card--with-image {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.7fr);
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--wow-radius-lg);
  background: #f3f3f5;
}

.c-post-card-wrap:nth-of-type(1) .c-post-card--first .c-post-card__media,
.c-post-card--first.c-post-card--with-image .c-post-card__media {
  width: auto;
}

.c-post-card-wrap:nth-of-type(1) .c-post-card--first .c-post-card__image-wrap,
.c-post-card--first.c-post-card--with-image .c-post-card__image-wrap {
  height: 100%;
  padding-top: 0;
  border-radius: 0;
}

.c-post-card--first.c-post-card--with-image .c-post-card__image {
  border-radius: 0;
}

.c-post-card--first.c-post-card--with-image .c-post-card__content {
  position: static;
  display: flex;
  width: auto;
  padding: clamp(38px, 5vw, 68px);
  flex-direction: column;
  justify-content: flex-end;
  background: #f3f3f5;
  transform: none;
  box-shadow: none;
}

.c-post-card--first .c-post-card__title {
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.c-post-card--featured__icon {
  right: 24px;
  bottom: 24px;
  left: auto;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-brand-soft);
  fill: #fff;
}

/* Sections beneath the main feed */
hr,
hr.seperator {
  margin-top: clamp(64px, 8vw, 112px);
  margin-bottom: clamp(56px, 7vw, 96px);
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.c-title-bar {
  margin-bottom: 32px;
  padding: 0;
  box-shadow: none;
}

.c-title-bar__title {
  font-family: var(--wow-display);
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-transform: none;
}

.c-title-bar__link {
  gap: 8px;
}

.c-tag-card {
  overflow: hidden;
  border-radius: var(--wow-radius-md);
  background: #f3f3f5;
}

.c-tag-card::after {
  padding-bottom: 86%;
}

.c-tag-card::before,
.c-tag-card__image {
  border-radius: var(--wow-radius-md);
}

.c-tag-card__title {
  padding: 28px;
  font-family: var(--wow-display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.1;
}

.c-card-author,
.c-teaser {
  border: 0;
  border-radius: var(--wow-radius-sm);
  background: #f3f3f5;
  box-shadow: none;
}

.c-card-author__image {
  box-shadow: none;
}

.c-card-author__name,
.c-teaser__title {
  font-family: var(--wow-display);
  font-weight: 400;
}

.c-teaser__image {
  border-radius: 14px;
  box-shadow: none;
}

/* Article and page heroes */
.post-template .o-wrapper,
.page-template .o-wrapper,
.author-template .o-wrapper,
.tag-template .o-wrapper {
  padding-top: clamp(48px, 6vw, 84px);
}

.c-post-hero {
  overflow: hidden;
  border-radius: var(--wow-radius-lg);
  background: #f3f3f5;
}

.c-post-hero__media {
  width: 60%;
}

.c-post-hero__image-wrap {
  height: min(66vw, 690px);
  max-height: 690px;
  min-height: 500px;
  padding-top: 0;
  overflow: hidden;
  background: #f3f3f5;
}

.c-post-hero__image {
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-post-hero__content {
  right: 0;
  top: auto;
  bottom: 0;
  display: flex;
  width: 40%;
  min-height: 52%;
  padding: clamp(36px, 5vw, 72px);
  flex-direction: column;
  justify-content: flex-end;
  background: #f3f3f5;
  transform: none;
  box-shadow: none;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.c-post-hero__title {
  font-family: var(--wow-display);
  font-size: clamp(36px, 4vw, 62px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.04em;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.c-post-hero__share {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.c-share__heading {
  margin-bottom: 10px;
  color: #6f6f6f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.c-share {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  border: 0;
}

.c-share__item,
.c-share__item:not(:last-child) {
  min-width: 0;
  border: 0;
  text-align: left;
}

.c-share__item--native {
  display: none;
}

.c-share__link {
  display: flex;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #292929;
  font-family: var(--wow-sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.c-share__link:hover,
.c-share__link:focus {
  color: var(--color-brand);
  border-color: rgba(234, 40, 145, 0.48);
  background: #fff;
  transform: translateY(-1px);
}

.c-share__icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-share__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c-post-hero__content--no-image {
  position: static;
  width: 100%;
  min-height: 420px;
  padding: clamp(48px, 7vw, 92px);
  border-radius: var(--wow-radius-lg);
  box-shadow: none;
}

.c-post-hero__content--page {
  padding: clamp(36px, 5vw, 72px);
}

.c-post {
  max-width: 760px;
  padding-top: clamp(56px, 8vw, 104px);
}

.c-content {
  color: #292929;
  font-size: 18px;
  line-height: 1.75;
}

.c-content > p:first-child {
  color: #000;
  font-family: var(--wow-display);
  font-size: 24px;
  line-height: 1.55;
}

.c-content h2,
.c-content h3,
.c-content h4 {
  margin-top: 1.7em;
  margin-bottom: 0.6em;
  font-family: var(--wow-display);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.c-content h2 {
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.08;
}

.c-content h3 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

.c-content a {
  color: #000;
  text-decoration-color: var(--color-brand-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.c-content blockquote,
blockquote {
  padding: 32px 0 32px 32px;
  border: 0;
  border-left: 4px solid var(--color-brand);
  background: transparent;
  box-shadow: none;
  font-family: var(--wow-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.35;
}

.c-content img,
.c-content .kg-image,
.kg-gallery-image img,
.kg-card img {
  border-radius: var(--wow-radius-sm);
}

.c-share,
.c-tags a,
.c-subscribe,
.c-post-upgrade-cta {
  border-radius: var(--wow-radius-sm);
  box-shadow: none;
}

.c-tags a {
  background: #f3f3f5;
}

.c-archive,
.c-author {
  margin-bottom: clamp(48px, 7vw, 88px);
}

.c-archive__title,
.c-author__title {
  font-family: var(--wow-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.c-pagination {
  padding-top: 64px;
}

.c-pagination__button,
.c-subscribe-form__button {
  border-radius: 999px;
}

/* Search */
.c-search {
  background: rgba(255, 255, 255, 0.98);
}

.c-search-form__input {
  border: 0;
  border-bottom: 1px solid #000;
  border-radius: 0;
  background: transparent;
  font-family: var(--wow-display);
  font-size: clamp(28px, 5vw, 60px);
}

/* Footer */
.c-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(80px, 10vw, 144px);
  padding: clamp(72px, 9vw, 120px) 0 36px;
  border-radius: var(--wow-radius-lg) var(--wow-radius-lg) 0 0;
  background: #f3f3f5;
}

.c-footer::after {
  position: absolute;
  right: -120px;
  bottom: -210px;
  width: 460px;
  height: 460px;
  content: '';
  border: 1px solid rgba(234, 40, 145, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(234, 40, 145, 0.04), 0 0 0 108px rgba(234, 40, 145, 0.025);
  pointer-events: none;
}

.c-footer__statement {
  max-width: 850px;
  margin-bottom: clamp(64px, 10vw, 132px);
  font-family: var(--wow-display);
  font-size: clamp(54px, 8vw, 108px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.c-footer__statement span,
.c-footer__statement strong {
  display: block;
}

.c-footer__statement span {
  color: #848484;
}

.c-footer__statement strong {
  color: #000;
  font-weight: 400;
}

.c-footer__headline {
  margin-bottom: 22px;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.c-footer-list li {
  font-size: 14px;
  line-height: 1.45;
}

.c-footer-list a {
  margin-bottom: 9px;
  padding: 0;
  color: #616161;
}

.c-footer-list a:hover {
  color: var(--color-brand);
}

.c-footer .c-subscribe-form .form-group,
.c-footer .c-subscribe-form__input[type='email'] {
  border-radius: 999px;
  background: #fff;
}

.c-footer__bottom {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid #d9d9d9;
}

.c-footer__copyright {
  color: #848484;
}

.c-social-icons .icon {
  fill: #000;
}

/* Mobile and tablet */
@media (max-width: 63.99em) {
  :root {
    --wow-radius-lg: 36px;
    --wow-radius-md: 24px;
    --wow-radius-sm: 16px;
  }

  .c-header {
    padding: 20px 0;
  }

  .c-logo__img {
    width: 150px;
  }

  .c-header__journal-link {
    font-size: 16px;
  }

  .c-off-canvas-toggle {
    right: 0;
  }

  .c-off-canvas-toggle__icon,
  .c-off-canvas-toggle__icon::before,
  .c-off-canvas-toggle__icon::after {
    height: 1px;
    background: #000;
  }

  .c-off-canvas-content {
    background: #fff;
  }

  .c-nav {
    align-items: flex-start;
  }

  .c-nav__item {
    margin-bottom: 22px;
    color: #000;
    font-family: var(--wow-display);
    font-size: 28px;
    font-weight: 400;
    text-transform: none;
  }

  .c-journal-intro__layout {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 36px;
  }

  .c-journal-intro__aside {
    max-width: 520px;
  }

  .c-post-card--first.c-post-card--with-image {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .c-post-card-wrap:nth-of-type(1) .c-post-card--first .c-post-card__image-wrap,
  .c-post-card--first.c-post-card--with-image .c-post-card__image-wrap {
    height: auto;
    padding-top: 64%;
  }

  .c-post-card--first.c-post-card--with-image .c-post-card__content {
    padding: 36px;
  }

  .c-post-hero__media,
  .c-post-hero__content {
    width: 100%;
  }

  .c-post-hero__image-wrap {
    min-height: 0;
    height: auto;
    padding-top: 68%;
  }

  .c-post-hero__content {
    position: static;
    min-height: 0;
    padding: 38px;
  }

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

  .c-share__item--native.is-supported {
    display: block;
  }
}

@media (max-width: 39.99em) {
  .o-grid {
    padding-right: 12px;
    padding-left: 12px;
  }

  .o-grid__col {
    padding-right: 10px;
    padding-left: 10px;
  }

  .c-header__brand {
    gap: 11px;
  }

  .c-logo__img {
    width: 132px;
  }

  .c-header__divider {
    height: 22px;
  }

  .c-header__journal-link {
    font-size: 15px;
  }

  .c-journal-intro {
    padding-top: 58px;
    padding-bottom: 62px;
  }

  .c-journal-intro__eyebrow {
    margin-bottom: 20px;
  }

  .c-journal-intro__title {
    font-size: clamp(50px, 16vw, 72px);
  }

  .c-journal-intro__aside {
    font-size: 16px;
  }

  .js-grid {
    row-gap: 44px;
  }

  .c-post-card--first.c-post-card--with-image .c-post-card__content,
  .c-post-hero__content,
  .c-post-hero__content--no-image {
    padding: 28px;
  }

  .c-post-card--first .c-post-card__title {
    font-size: 34px;
  }

  .c-content {
    font-size: 17px;
  }

  .c-content > p:first-child {
    font-size: 21px;
  }

  .c-footer {
    border-radius: 36px 36px 0 0;
  }

  .c-footer__statement {
    font-size: clamp(52px, 16vw, 72px);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
