@font-face {
  font-family: "Inter";
  src: url("fonts/Inter/Inter-VariableFont_opsz,wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter/Inter-Italic-VariableFont_opsz,wght.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
}

@font-face {
  font-family: "Dela Gothic One";
  src: url("fonts/Dela_Gothic_One/DelaGothicOne-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --component-text: var(--text, var(--ink, #141414));
  --component-blue: var(--blue, #0073eb);
  --component-pink: var(--pink, #ec2c79);
  --component-glass: var(--glass, rgba(255, 255, 255, 0.7));
  --component-glass-border: var(--glass-border, rgba(255, 255, 255, 0.3));
  --component-max-width: var(--max-width, 1280px);
}

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.site-scrollbar {
  --thumb-height: 96px;
  --thumb-offset: 0px;
  position: fixed;
  inset: 8px 7px 8px auto;
  z-index: 2147483647;
  width: 10px;
  pointer-events: none;
}

.site-scrollbar-thumb {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: var(--thumb-height);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.34);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
  cursor: grab;
  pointer-events: auto;
  transform: translateY(var(--thumb-offset));
  transition: background 160ms ease;
}

.site-scrollbar-thumb:hover,
.site-scrollbar.is-dragging .site-scrollbar-thumb {
  background: rgba(20, 20, 20, 0.5);
}

.site-scrollbar.is-dragging .site-scrollbar-thumb {
  cursor: grabbing;
}

.topbar-wrap {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 2147483647;
  width: min(calc(100% - 32px), var(--component-max-width));
  padding-top: 0;
  transform: translateX(-50%);
  isolation: isolate;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  height: 60px;
  margin: 5px auto 0;
  padding: 10px;
  overflow: hidden;
  overscroll-behavior: none;
  border: 1px solid var(--component-glass-border);
  border-radius: 999px;
  background: var(--component-glass);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 12px 30px rgba(206, 206, 206, 0.18);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  scrollbar-width: none;
}

.topbar::-webkit-scrollbar {
  display: none;
}

.mobile-nav-toggle {
  display: none;
}

.nav-link {
  position: relative;
  padding: 14px 22px;
  border-radius: 999px;
  color: rgba(20, 20, 20, 0.95);
  font-size: clamp(1rem, 1vw + 0.7rem, 1.1rem);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: rgba(154, 154, 154, 0.28);
}

.nav-link.active {
  color: #fff;
  background: var(--component-blue);
}

.nav-icon {
  display: none;
}

.site-footer {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  padding: 34px 24px 26px;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  background: #fff;
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.75fr);
  grid-template-areas:
    "brand subscribe"
    "legal legal";
  gap: 26px 46px;
  width: min(calc(100% - 32px), var(--component-max-width));
  margin: 0 auto;
  padding: 0;
}

.footer-inner,
.footer-inner * {
  box-sizing: border-box;
}

.footer-brand {
  grid-area: brand;
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(300px, 1fr);
  align-items: start;
  gap: clamp(14px, 2vw, 26px);
}

.footer-brand,
.footer-main,
.footer-subscribe {
  min-width: 0;
}

.footer-logo {
  display: block;
  width: 78%;
  height: auto;
  margin-top: -6px;
}

.footer-main {
  padding-top: 4px;
}

.footer-kicker {
  margin: 0 0 8px;
  color: var(--component-pink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-brand h2 {
  max-width: 520px;
  margin: 0 0 8px;
  color: #111;
  font-family: "Dela Gothic One", sans-serif;
  font-size: clamp(1.8rem, 2.45vw, 2.75rem);
  font-weight: 700;
  line-height: 0.98;
}

.footer-copy {
  max-width: 470px;
  margin: 0;
  color: rgba(20, 20, 20, 0.58);
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.34;
}

.footer-nav {
  margin-top: 20px;
}

.footer-nav h3 {
  margin: 0 0 10px;
  color: rgba(20, 20, 20, 0.62);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.1;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, 180px));
  gap: 10px 30px;
  max-width: 410px;
}

.footer-links a {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  padding: 0;
  color: rgba(20, 20, 20, 0.74);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links img {
  width: 18px;
  height: 18px;
  justify-self: center;
  opacity: 0.7;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--component-blue);
}

.footer-links a:hover img,
.footer-links a:focus-visible img {
  opacity: 1;
  filter: invert(31%) sepia(98%) saturate(3310%) hue-rotate(199deg) brightness(98%) contrast(101%);
}

.footer-subscribe {
  grid-area: subscribe;
  position: relative;
  padding-left: 28px;
  border-left: 1px solid rgba(20, 20, 20, 0.1);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-socials a:hover {
  opacity: 0.86;
  transform: translateY(-2px);
}

.footer-socials img {
  display: block;
  width: 40px;
  height: 40px;
}

.footer-subscribe h3 {
  margin: 0 0 8px;
  color: #111;
  font-size: clamp(1.15rem, 1.45vw, 1.55rem);
  font-weight: 700;
  line-height: 1.1;
}

.footer-subscribe p {
  max-width: 480px;
  margin: 0 0 14px;
  color: rgba(20, 20, 20, 0.58);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.34;
}

.footer-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  width: 100%;
}

.footer-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  outline: none;
  color: #222;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.08);
  font-size: 0.9rem;
}

.footer-form input::placeholder {
  color: rgba(20, 20, 20, 0.35);
}

.footer-form button {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  color: #fff;
  background: var(--component-blue);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.footer-form button:hover {
  filter: brightness(1.12);
}

.footer-patchy {
  position: absolute;
  left: 50%;
  bottom: -26px;
  display: block;
  width: clamp(118px, 12vw, 150px);
  height: auto;
  transform: translateX(-43%);
  pointer-events: none;
  filter: contrast(115%);
}

.footer-disclaimer {
  grid-area: legal;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 46px;
  padding-top: 14px;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.footer-disclaimer p {
  min-width: 0;
  margin: 0;
  color: rgba(20, 20, 20, 0.5);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.32;
}

.footer-legal-left {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  align-items: center;
  gap: 20px;
  width: 100%;
}

.footer-credit {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding-left: 20px;
  border-left: 1px solid rgba(20, 20, 20, 0.1);
  text-align: left;
  transition: opacity 0.2s ease;
}

.footer-credit img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-credit-copy {
  min-width: 0;
}

.footer-credit-name,
.footer-credit-detail {
  display: block;
}

.footer-credit-name {
  margin-bottom: 3px;
  color: #111;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.15;
}

.footer-credit-detail {
  color: rgba(20, 20, 20, 0.5);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.3;
}

.footer-credit:hover,
.footer-credit:focus-visible {
  opacity: 0.72;
}

.footer-credit-uplift .footer-credit-name {
  color: #111;
}

@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "subscribe"
      "legal";
    gap: 28px;
  }

  .footer-disclaimer {
    grid-template-columns: 1fr;
  }

  .footer-legal-left {
    grid-template-columns: minmax(220px, 0.75fr) minmax(280px, 1.25fr);
  }

  .footer-brand {
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  }

  .footer-subscribe {
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid rgba(20, 20, 20, 0.1);
    border-left: 0;
  }

  .footer-patchy {
    right: clamp(0px, 7vw, 70px);
    left: auto;
    transform: none;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .footer-subscribe {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(190px, 24vw, 230px);
    grid-template-areas:
      "socials patchy"
      "heading patchy"
      "copy patchy"
      "form patchy";
    column-gap: clamp(24px, 4vw, 50px);
    min-height: 220px;
    padding-right: 0;
  }

  .footer-socials {
    grid-area: socials;
  }

  .footer-subscribe h3 {
    grid-area: heading;
  }

  .footer-subscribe p {
    grid-area: copy;
  }

  .footer-form {
    grid-area: form;
    max-width: 520px;
  }

  .footer-patchy {
    position: static;
    grid-area: patchy;
    align-self: end;
    justify-self: end;
    width: 100%;
    max-width: 230px;
    margin-bottom: -28px;
  }
}

@media (min-width: 701px) and (max-width: 760px) {
  .footer-subscribe {
    grid-template-columns: minmax(0, 1fr) clamp(170px, 26vw, 200px);
    column-gap: 20px;
  }

  .footer-subscribe p {
    max-width: 400px;
  }

  .footer-form {
    max-width: 400px;
  }

  .footer-form input {
    flex: 0 1 250px;
  }

  .footer-form button {
    flex: 0 0 138px;
    padding-inline: 16px;
  }

  .footer-patchy {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .site-scrollbar {
    display: none;
  }

  .topbar-wrap {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    left: auto;
    display: grid;
    justify-items: end;
    width: min(220px, calc(100vw - 24px));
    transform: none;
    pointer-events: none;
  }

  .mobile-nav-toggle {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 2;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    color: var(--component-text);
    background: rgba(255, 255, 255, 0.78);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.7),
      0 14px 32px rgba(20, 20, 20, 0.14);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    appearance: none;
    opacity: 1;
    visibility: visible;
    cursor: pointer;
    pointer-events: auto;
  }

  .mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    flex: 0 0 3px;
    border-radius: 999px;
    background: currentColor;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .topbar-wrap.is-open .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .topbar-wrap.is-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .topbar-wrap.is-open .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .topbar {
    position: absolute;
    top: 68px;
    right: 0;
    display: grid;
    justify-content: stretch;
    gap: 4px;
    width: min(220px, calc(100vw - 24px));
    height: auto;
    max-height: calc(100svh - 92px);
    margin: 0;
    padding: 10px;
    overflow: auto;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.72),
      0 24px 60px rgba(20, 20, 20, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.96);
    transform-origin: top right;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    pointer-events: none;
  }

  .topbar-wrap.is-open .topbar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    text-align: left;
  }

  .nav-icon {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.78;
    transition: filter 0.2s ease, opacity 0.2s ease;
  }

  .nav-link.active .nav-icon {
    opacity: 1;
    filter: invert(1);
  }

  .site-footer {
    padding: 28px 16px max(22px, env(safe-area-inset-bottom));
  }

  .footer-inner {
    width: min(100%, 560px);
    gap: 20px;
  }

  .footer-brand {
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .footer-logo {
    width: 100%;
    margin-top: 0;
  }

  .footer-main {
    padding-top: 0;
  }

  .footer-kicker {
    margin-bottom: 5px;
    font-size: 0.68rem;
  }

  .footer-brand h2 {
    margin-bottom: 0;
    font-size: clamp(1.35rem, 6.2vw, 1.9rem);
    line-height: 1;
  }

  .footer-copy,
  .footer-nav {
    display: none;
  }

  .footer-subscribe {
    padding-top: 18px;
  }

  .footer-socials {
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .footer-socials a,
  .footer-socials img {
    width: 36px;
    height: 36px;
  }

  .footer-subscribe h3 {
    font-size: 1.08rem;
  }

  .footer-subscribe p {
    margin-bottom: 12px;
    font-size: 0.84rem;
  }

  .footer-form {
    max-width: none;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .footer-form input {
    flex: 1 1 0;
    min-width: 0;
    height: 44px;
  }

  .footer-form button {
    flex: 0 0 clamp(118px, 34vw, 152px);
    padding-inline: 14px;
    height: 44px;
  }

  .footer-patchy {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    display: block;
    width: clamp(150px, 46vw, 160px);
    margin: 16px auto -20px;
    transform: none;
  }

  .footer-disclaimer {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 20px;
  }

  .footer-disclaimer p,
  .footer-credit-name {
    font-size: 0.72rem;
  }

  .footer-legal-left {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-credit {
    padding-left: 14px;
  }
}

@media (max-width: 420px) {
  .footer-brand {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .footer-form {
    flex-direction: column;
  }

  .footer-form input,
  .footer-form button {
    flex: none;
    width: 100%;
  }
}

@media (orientation: landscape) and (hover: none) and (pointer: coarse) and (max-height: 600px) {
  .topbar-wrap {
    top: max(8px, env(safe-area-inset-top));
    left: 50%;
    right: auto;
    display: block;
    justify-items: initial;
    width: min(calc(100% - 20px), 880px);
    transform: translateX(-50%);
    pointer-events: auto;
  }

  .mobile-nav-toggle {
    display: none !important;
  }

  .topbar {
    position: relative;
    top: auto;
    right: auto;
    display: flex;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    height: 46px;
    max-height: none;
    margin: 0 auto;
    padding: 6px;
    overflow: auto hidden;
    border-radius: 999px;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-link {
    width: auto;
    padding: 10px 15px;
    font-size: 0.95rem;
    text-align: center;
  }

  .nav-icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar,
  .mobile-nav-toggle span {
    transition: none;
  }
}

/* Keep typography spacing natural and consistent across every page. */
body,
body *,
body *::before,
body *::after {
  letter-spacing: normal !important;
}
