/* Plumelin design system: tokens, foundations, shared shell and reusable components. */

:root {
  --ink: #1c2f47;
  --ink-rgb: 28, 47, 71;
  --ink-70: rgba(var(--ink-rgb), 0.7);
  --ink-2: #213852;
  --paper: #fbf6ee;
  --paper-rgb: 251, 246, 238;
  --paper-2: #fffaf5;
  --paper-2-rgb: 255, 250, 245;
  --paper-card-rgb: 255, 250, 242;
  --paper-warm: #f5e6d2;
  --paper-soft: #fff8ef;
  --dark-copy: rgba(var(--paper-2-rgb), 0.8);
  --body: var(--ink-70);
  --muted: var(--ink-70);
  --slate: var(--body);
  --coral-ink: #b34f3c;
  --overline: var(--coral-ink);
  --overline-gap: 8px;
  --line: #e1d5c2;
  --line-warm-rgb: 231, 217, 193;
  --coral: #fd9c81;
  --coral-rgb: 253, 156, 129;
  --coral-2: #e87961;
  --coral-2-rgb: 232, 121, 97;
  --coral-hover: #ffb097;
  --focus-ring: var(--ink);
  --ink-glow: #6686aa;
  --ink-glow-rgb: 102, 134, 170;
  --blue: var(--ink-glow);
  --white: #ffffff;
  --white-rgb: 255, 255, 255;
  --cream-rgb: 227, 196, 161;
  --surface-dark: #14263d;
  --surface-dark-deep: #0f1b2b;
  --nav-shadow-rgb: 23, 40, 61;
  --product-shadow-rgb: 38, 74, 119;
  --shadow-deep-rgb: 7, 18, 32;
  --shadow-card-soft: 0 0 32px rgba(var(--ink-rgb), 0.05);
  --shadow-editor-surface: 0 14px 38px rgba(var(--ink-rgb), 0.13);
  --shadow-editor-panel: 0 10px 28px rgba(var(--ink-rgb), 0.13);

  --person-mara: #5b21b6;
  --person-mara-soft: #f3e8ff;
  --person-claire: #9a3412;
  --person-claire-soft: #ffedd5;
  --person-sol: #075985;
  --person-sol-soft: #e0f2fe;

  --serif: "Fraunces", "Iowan Old Style", "Apple Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --weight-light: 300;
  --weight-regular: 400;
  --weight-emphasis: 400;
  --weight-display-regular: 500;
  --weight-title: 700;
  --weight-action: 700;
  --text-line-height: 1.5;
  --title-line-height: 0.9;
  --tracking-text: 0px;
  --tracking-title: 0px;
  --page: min(1160px, calc(100vw - 40px));
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 44px);
  --nav-height: 74px;
  --radius: 12px;
  --rule: var(--line);
  --coral-deep: var(--coral-2);
  --paper-grid:
    linear-gradient(90deg, rgba(var(--ink-rgb), 0.035) 1px, transparent 1px) 0 0 / 64px 64px;
  --shadow: 0 18px 50px rgba(var(--ink-rgb), 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  margin: 0;
  color: var(--body);
  background:
    var(--paper-grid),
    linear-gradient(180deg, var(--paper-2), var(--paper-warm) 52%, var(--paper));
  font-family: var(--sans);
  font-size: 16px;
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-text);
  line-height: var(--text-line-height);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

.inline-link {
  color: var(--coral-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--ink);
}

.text-link {
  color: var(--ink);
  font-weight: var(--weight-action);
  text-decoration-line: underline;
  text-decoration-color: rgba(var(--ink-rgb), 0.25);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color 160ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration-color: var(--coral-ink);
}

.text-link--light {
  color: var(--paper-2);
  text-decoration-color: rgba(var(--paper-2-rgb), 0.34);
}

.text-link--light:hover,
.text-link--light:focus-visible {
  text-decoration-color: var(--coral);
}

.text-link__arrow {
  display: inline-block;
  margin-inline-start: 0.35em;
  line-height: 1;
  transition: transform 160ms ease;
}

.text-link:hover .text-link__arrow,
.text-link:focus-visible .text-link__arrow {
  transform: translateX(3px);
}

.text-link--down:hover .text-link__arrow,
.text-link--down:focus-visible .text-link__arrow {
  transform: translateY(3px);
}

button {
  font: inherit;
}

[data-person="mara"] {
  --person-color: var(--person-mara);
  --person-soft: var(--person-mara-soft);
}

[data-person="claire"] {
  --person-color: var(--person-claire);
  --person-soft: var(--person-claire-soft);
}

[data-person="sol"] {
  --person-color: var(--person-sol);
  --person-soft: var(--person-sol-soft);
}

.person-avatar {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--person-color);
  background: var(--person-soft);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: var(--weight-action);
  line-height: 1;
}

strong,
b {
  font-weight: var(--weight-regular);
}

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

::selection {
  color: var(--ink);
  background: var(--coral);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  width: 100%;
  min-height: var(--nav-height);
  padding: 14px max(20px, calc((100vw - 1160px) / 2));
  color: var(--ink);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-nav.is-stuck,
.site-nav.is-open {
  color: var(--ink);
  background: rgba(var(--paper-rgb), 0.94);
  backdrop-filter: blur(22px) saturate(155%);
  box-shadow: 0 8px 18px rgba(var(--nav-shadow-rgb), 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: var(--weight-display-regular);
  line-height: 1;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

.brand__mark img,
.site-nav.is-stuck .brand__mark img,
.site-nav.is-open .brand__mark img,
.footer .brand__mark img {
  width: 100%;
  height: 100%;
  filter: none;
}

.nav-cluster {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  gap: clamp(12px, 1.65vw, 24px);
  font-size: 14px;
  font-weight: var(--weight-emphasis);
}

.nav-links a,
.footer nav a {
  text-underline-offset: 5px;
}

.nav-links a:hover,
.footer nav a:hover {
  text-decoration: underline;
}

.nav-cta,
.mobile-menu__cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: var(--weight-emphasis);
  line-height: 1.1;
}

.nav-cta {
  margin-left: clamp(18px, 3vw, 34px);
  padding: 11px 17px;
  white-space: nowrap;
  color: var(--ink);
  background: var(--coral);
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 220ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 180ms ease;
}

.home-page .nav-cta {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.home-page .nav-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.button {
  padding: 14px 20px;
  border: 0;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 160ms ease;
}

.button--primary {
  color: var(--ink);
  background: var(--coral);
}

.button--secondary-dark {
  color: var(--paper-2);
  background: var(--ink);
}

.button--primary:hover,
.nav-cta:hover,
.mobile-menu__cta:hover {
  background: var(--coral-hover);
}

.button--secondary-dark:hover {
  background: var(--ink-2);
}

.button--outline {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}

.button--outline:hover {
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--ink-70);
}

.button--secondary {
  color: var(--white);
  background: rgba(var(--white-rgb), 0.14);
}

.button--secondary:hover {
  background: rgba(var(--white-rgb), 0.22);
}

.menu-button {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: inherit;
  background: rgba(var(--white-rgb), 0.16);
  cursor: pointer;
}

.site-nav.is-stuck .menu-button,
.site-nav.is-open .menu-button {
  background: rgba(var(--nav-shadow-rgb), 0.08);
}

.menu-button span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--coral);
  transition: transform 180ms ease;
}

.menu-button span:first-child {
  transform: translateY(-4px);
}

.menu-button span:last-child {
  transform: translateY(4px);
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-height) 0 auto 0;
  z-index: 11;
  display: grid;
  gap: 4px;
  padding: 16px 20px 24px;
  color: var(--ink);
  background: var(--white);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 8px 18px rgba(var(--nav-shadow-rgb), 0.08);
}

.mobile-menu a {
  padding: 13px 4px;
  font-weight: var(--weight-emphasis);
}

.mobile-menu__cta {
  margin-top: 8px;
  padding-inline: 18px;
  color: var(--ink);
  background: var(--coral);
}

.nav-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-menu__trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.nav-menu__trigger::before {
  content: "";
  order: 2;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.nav-menu__trigger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 3px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms var(--ease-out);
}

.nav-menu.is-open .nav-menu__trigger::before {
  transform: rotate(225deg) translate(-2px, -1px);
}

.nav-menu__trigger:hover::after,
.nav-menu__trigger:focus-visible::after,
.nav-menu.is-open .nav-menu__trigger::after,
.nav-menu__trigger.is-active::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-menu__trigger:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.nav-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: -18px;
  z-index: 30;
  display: grid;
  min-width: 252px;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 8px;
  background: rgba(var(--paper-2-rgb), 0.8);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  backdrop-filter: blur(22px) saturate(155%);
  box-shadow: 0 22px 50px rgba(var(--ink-rgb), 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  visibility: hidden;
  transition: opacity 160ms ease, transform 180ms var(--ease-out);
}

.nav-menu.is-open .nav-menu__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.nav-menu__panel a {
  justify-content: flex-start;
  width: auto;
  margin-inline: 2px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--ink);
}

.nav-menu__panel a::after {
  display: none;
}

.nav-menu__panel a:hover,
.nav-menu__panel a:focus-visible,
.nav-menu__panel a[aria-current="page"] {
  background: rgba(var(--coral-rgb), 0.16);
}

.mobile-menu__label {
  display: block;
  margin: 8px 0 2px;
  color: rgba(var(--ink-rgb), 0.58);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-route__label {
  color: var(--process-route-label-color, var(--coral-ink));
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: var(--weight-title);
  line-height: 1.15;
}

.process-route__title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.2vw, 2.35rem);
  font-weight: var(--weight-title);
  line-height: 1.05;
}

.process-route__copy {
  max-width: 54ch;
  margin: 12px 0 0;
  color: var(--slate);
  line-height: 1.65;
}

.process-routes {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(var(--ink-rgb), 0.18);
}

.process-route {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  padding: clamp(30px, 4vw, 48px) 0;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.18);
}

.process-route__content {
  min-width: 0;
}

.process-routes--has-formats .process-route {
  grid-template-columns: minmax(120px, 0.42fr) minmax(300px, 1fr) minmax(210px, auto);
}

.feature-gateway__grid,
.detail-card-grid,
.publisher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.detail-card,
.publisher-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: var(--overline-gap);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(var(--ink-rgb), 0.1);
  border-radius: 8px;
  background: rgba(var(--paper-card-rgb), 0.74);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(var(--ink-rgb), 0.08);
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease, border-color 180ms ease;
}

.detail-card-grid--white .detail-card {
  background: var(--white);
}

.feature-card:hover,
.feature-card:focus-visible {
  border-color: rgba(var(--coral-rgb), 0.5);
  box-shadow: 0 24px 55px rgba(var(--ink-rgb), 0.12);
  transform: translateY(-4px);
}

.feature-card:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.overline,
.feature-card span,
.detail-card span,
.publisher-card span,
.page-kicker {
  display: block;
  color: var(--overline);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: var(--weight-action);
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.overline--dark {
  color: var(--coral);
}

.feature-card h3,
.detail-card h3,
.publisher-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.1vw, 32px);
  line-height: var(--title-line-height);
}

.feature-card p,
.detail-card p,
.publisher-card p {
  margin: 0;
  color: var(--slate);
  line-height: var(--text-line-height);
}

.page-hero {
  padding: calc(var(--nav-height) + 62px) 0 70px;
  background:
    radial-gradient(circle at 16% 18%, rgba(var(--coral-rgb), 0.2), transparent 32%),
    radial-gradient(circle at 86% 24%, rgba(var(--ink-glow-rgb), 0.16), transparent 29%),
    var(--paper-grid),
    linear-gradient(180deg, var(--paper-2), var(--paper));
}

.page-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.page-hero__layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(var(--ink-rgb), 0.58);
  font-size: 0.9rem;
}

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

.breadcrumb a:hover {
  color: var(--ink);
}

.page-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7vw, 64px);
  font-weight: var(--weight-title);
  line-height: var(--title-line-height);
  text-wrap: balance;
}

.page-hero__copy {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--slate);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.7;
}

.page-hero__panel {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3.5vw, 36px);
  border: 1px solid rgba(var(--ink-rgb), 0.12);
  border-radius: 8px;
  background: rgba(var(--paper-card-rgb), 0.78);
  box-shadow: 0 26px 60px rgba(var(--ink-rgb), 0.12);
}

.page-hero__panel strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: var(--weight-title);
  line-height: var(--title-line-height);
}

.page-hero__panel p,
.page-hero__panel li {
  margin: 0;
  color: var(--slate);
  line-height: 1.65;
}

.page-hero__panel ul,
.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-hero__panel li,
.detail-list li {
  position: relative;
  padding-left: 18px;
}

.page-hero__panel li::before,
.detail-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.label-page .page-hero {
  padding-bottom: clamp(50px, 6vw, 64px);
}

@media (min-width: 981px) {
  .label-page .page-hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(440px, 0.78fr);
  }
}

.page-section {
  padding: clamp(70px, 9vw, 120px) 0;
}

.page-section--warm {
  background: linear-gradient(180deg, rgba(var(--paper-card-rgb), 0.64), rgba(var(--paper-rgb), 0.92));
}

.section-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-cta {
  padding: clamp(66px, 8vw, 100px) var(--gutter);
  background: var(--ink);
  color: var(--paper-2);
  text-align: center;
}

.page-cta h2 {
  max-width: 840px;
  margin: 0 auto;
  color: var(--paper-2);
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 56px);
  line-height: var(--title-line-height);
}

.page-cta p {
  max-width: 660px;
  margin: 18px auto 30px;
  color: var(--dark-copy);
  line-height: 1.7;
}

@media (max-width: 980px) {
  .process-route,
  .process-routes--has-formats .process-route {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .nav-cluster {
    display: none;
  }

  .page-hero__layout,
  .feature-gateway__grid,
  .detail-card-grid,
  .publisher-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .process-route,
  .process-routes--has-formats .process-route {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero h1,
  .display--hero {
    max-width: 10ch;
    font-size: clamp(2.4rem, 10vw, 3.05rem);
  }

  .page-hero {
    padding-top: calc(var(--nav-height) + 38px);
  }

  .page-hero h1 {
    font-size: clamp(3rem, 12vw, 4rem);
  }

  .label-page .page-hero {
    padding-top: calc(var(--nav-height) + 18px);
    padding-bottom: 30px;
  }

  .label-page .page-hero__layout {
    gap: 16px;
  }

  .label-page .breadcrumb {
    margin-bottom: 14px;
  }

  .label-page .page-hero h1 {
    max-width: 12ch;
    font-size: clamp(2.55rem, 10vw, 3.1rem);
  }

  .label-page .page-hero__copy {
    margin-top: 16px;
    font-size: 1rem;
    line-height: 1.58;
  }

}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: var(--weight-emphasis);
  letter-spacing: var(--tracking-title);
  line-height: var(--title-line-height);
  text-wrap: balance;
}

.proof,
.section,
.final,
.footer {
  width: var(--page);
  margin-inline: auto;
}

.studio-card span,
.compare-grid span,
.tier__badge {
  display: inline-block;
  margin-bottom: var(--overline-gap);
  color: var(--coral-2);
  font-size: 13px;
  font-weight: var(--weight-emphasis);
}

.proof-strip p {
  max-width: 360px;
}

.proof__text h2,
.section h2,
.final h2 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 4.4vw, 56px);
  line-height: var(--title-line-height);
}

.proof__text p,
.section__intro p,
.split p,
.two-columns p,
.process p,
.publisher p:not(.publisher__kicker),
.final p {
  max-width: 700px;
  color: var(--body);
  text-wrap: pretty;
}

.studio-card,
.compare-grid article,
.tier {
  border-radius: var(--radius);
  background: var(--paper-2);
}

.studio-card h3,
.compare-grid h3,
.tier h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: var(--title-line-height);
}

.studio-card p,
.compare-grid p,
.tier p {
  margin-bottom: 0;
}

.section__intro--dark h2,
.section__intro--dark p {
  color: inherit;
}

.tier strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: var(--title-line-height);
}

.tier small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.tier--featured .tier__badge {
  color: var(--ink);
}

.final {
  padding: clamp(66px, 9vw, 112px) 0;
  text-align: center;
}

.final h2,
.final p {
  margin-inline: auto;
}

.final p {
  margin-bottom: 26px;
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

:is(.pricing, .page-cta, .section.publisher, .certification-panel--dark) :is(a, button):focus-visible {
  outline-color: var(--white);
}

@media (max-width: 900px) {
  :root {
    --page: min(720px, calc(100vw - 32px));
  }

  .site-nav {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-inline: 16px;
  }

  .nav-cluster {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--ink);
    background: rgba(var(--paper-2-rgb), 0.92);
  }

  .hero {
    min-height: clamp(700px, 84svh, 820px);
  }

  .hero__content {
    padding-bottom: 68px;
  }

  .proof,
  .proof-strip,
  .split,
  .split--reverse,
  .two-columns,
  .studio__layout,
  .compare-grid,
  .pricing-grid,
  .publisher,
  .footer {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    padding-inline: 16px;
  }

  .publisher {
    padding-inline: 0;
  }

  .publisher__inner {
    grid-template-columns: 1fr;
  }

  .publisher .button {
    justify-self: start;
  }

  .footer {
    justify-items: start;
  }

  .footer nav {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero__content {
    width: min(358px, calc(100vw - 32px));
    margin-left: 16px;
    margin-right: auto;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 12vw, 4rem);
    line-height: var(--title-line-height);
  }

  .proof__text h2,
  .section h2,
  .final h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .hero__actions,
  .final .button {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .button--secondary {
    width: auto;
  }

}

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

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

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav-links a,
.footer nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 0 12px;
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a::after,
.footer nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 3px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover,
.nav-links a.is-active,
.footer nav a:hover,
.footer nav a:focus-visible {
  color: var(--ink);
  text-decoration: none;
  background: transparent;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after,
.footer nav a:hover::after,
.footer nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-links a:focus-visible,
.footer nav a:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--focus-ring);
  outline-offset: 4px;
}

.button:hover {
  transform: translateY(-1px);
}

.story-page__path,
.story-label,
.panel-kicker,
.world-card span,
.context-board span,
.export-sheet span,
.tier__badge {
  color: var(--coral-deep);
  font-size: 11px;
  font-weight: var(--weight-emphasis);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  width: auto;
  padding: clamp(76px, 11vw, 132px) 0;
}

.section__intro {
  max-width: var(--container);
  margin: 0 auto clamp(34px, 5vw, 62px);
  text-align: left;
}

.section__intro .h2 {
  max-width: 780px;
}

.section__intro p {
  max-width: 65ch;
  margin: 18px 0 0;
  font-size: 1rem;
}

.studio-panel,
.faq__list details {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(var(--white-rgb), 0.76);
  box-shadow: 0 1px 0 rgba(var(--white-rgb), 0.82) inset;
}

.worldbuilding__grid,
.craft__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.world-card,
.craft__grid article,
.context-board article,
.context-board aside,
.collaboration-board article {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(var(--white-rgb), 0.76);
  box-shadow: 0 1px 0 rgba(var(--white-rgb), 0.82) inset;
}

.craft__grid article {
  display: flex;
  padding: 0;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.craft__grid article:hover,
.craft__grid article:focus-within {
  border-color: rgba(var(--coral-rgb), 0.42);
  background: rgba(var(--white-rgb), 0.88);
  box-shadow:
    0 1px 0 rgba(var(--white-rgb), 0.86) inset,
    0 16px 34px rgba(var(--ink-rgb), 0.1);
  transform: translateY(-2px);
}

.craft-card {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 100%;
  flex-direction: column;
  padding: 28px 28px 72px;
  color: inherit;
}

.craft-card > span:first-child {
  color: var(--overline);
}

.world-card h3,
.craft__grid h3,
.context-board h3 {
  margin: var(--overline-gap) 0 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: var(--title-line-height);
}

.world-card p,
.craft__grid p,
.context-board p,
.context-lab__copy p,
.context-lab__copy li,
.export-suite__copy p,
.collaboration__copy p,
.collaboration-board strong {
  color: var(--muted);
}

.context-lab__layout,
.export-suite__layout,
.collaboration__layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

.context-lab__layout {
  grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1.32fr);
}

.context-lab__copy,
.collaboration__copy {
  max-width: 560px;
}

.context-lab__copy ul,
.writing-points,
.export-checklist {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.writing-points {
  color: var(--muted);
}

.writing-points li {
  position: relative;
  padding-left: 22px;
  color: inherit;
}

.writing-points li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.context-lab__copy li {
  position: relative;
  padding-left: 24px;
  font-weight: var(--weight-emphasis);
}

.context-lab__copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid var(--coral-deep);
  border-left: 2px solid var(--coral-deep);
  transform: rotate(-45deg);
}
