/*
 * עונים לי — shared inner-page shell.
 * The homepage keeps its dedicated wire composition; public inner pages opt in
 * with html.site-shell and a scoped body.page-shell variant.
 */

@font-face {
  font-family: "Shell Frank";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/frank-ruhl-libre-hebrew.woff2") format("woff2");
}

html.site-shell {
  --shell-paper: #f7f2e6;
  --shell-paper-deep: #eadfca;
  --shell-paper-warm: #f1d8bf;
  --shell-ink: #201d18;
  --shell-muted: #625b4f;
  --shell-yellow: #ffe81a;
  --shell-white: #fffdf7;
  --shell-wire: 3px;
  background: var(--shell-paper);
  overflow-x: clip;
}

html.site-shell body.page-shell {
  --shell-dot-y: 8%;
  margin: 0;
  background:
    radial-gradient(circle at 14% 5%, rgba(255, 232, 26, 0.13), transparent 19rem),
    var(--shell-paper);
  color: var(--shell-ink);
  overflow-x: clip;
}

html.site-shell body.page-shell .skip-link {
  position: fixed;
  inset-inline-start: 8px;
  top: 8px;
  z-index: 1000;
  transform: translateY(calc(-100% - 18px));
}

html.site-shell body.page-shell .skip-link:focus {
  inset-inline-start: 8px;
  top: 8px;
  transform: translateY(0);
}

html.site-shell body.page-shell::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .11 0 0 0 0 .09 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  content: "";
}

html.site-shell body.page-shell h1,
html.site-shell body.page-shell h2,
html.site-shell body.page-shell h3 {
  font-family: "Shell Frank", "Miriam Libre", serif;
  text-wrap: balance;
}

/* Shared masthead: one calm object, matching the approved homepage. */
html.site-shell body.page-shell .masthead {
  position: sticky;
  z-index: 100;
  top: 0;
  padding: 0;
  border-bottom: 2px solid var(--shell-ink);
  background: color-mix(in srgb, var(--shell-paper) 92%, transparent);
  box-shadow: 0 1px 0 rgba(32, 29, 24, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 240ms ease, box-shadow 240ms ease;
}

html.site-shell body.page-shell.shell-scrolled .masthead {
  background: color-mix(in srgb, var(--shell-paper-deep) 94%, transparent);
  box-shadow: 0 7px 24px rgba(32, 29, 24, 0.09);
}

html.site-shell body.page-shell .masthead-row {
  min-height: 70px;
  padding-block: 8px;
}

html.site-shell body.page-shell .masthead-brand {
  gap: 10px;
  min-height: 44px;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

html.site-shell body.page-shell .masthead-mark {
  width: 38px;
  height: 38px;
}

html.site-shell body.page-shell .masthead-date,
html.site-shell body.page-shell .masthead > .wrap > .rule-double {
  display: none;
}

html.site-shell body.page-shell .site-nav {
  border: 0;
  border-top: 1px solid rgba(32, 29, 24, 0.22);
}

html.site-shell body.page-shell .site-nav .wrap {
  display: flex;
  justify-content: center;
}

html.site-shell body.page-shell .site-nav ul {
  justify-content: center;
}

html.site-shell body.page-shell .site-nav a {
  position: relative;
  min-height: 44px;
  padding: 11px 15px 10px;
}

html.site-shell body.page-shell .site-nav a[aria-current="page"] {
  box-shadow: none;
}

html.site-shell body.page-shell .site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 12px;
  bottom: 6px;
  left: 12px;
  height: 7px;
  border-radius: 60% 40% 55% 45%;
  background: var(--shell-yellow);
  transform: rotate(-1deg);
  z-index: -1;
  content: "";
}

html.site-shell body.page-shell :is(.masthead-cta, .btn, .cta-button) {
  position: relative;
  z-index: 0;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: var(--shell-yellow);
  color: var(--shell-ink);
  box-shadow: none;
  isolation: isolate;
}

html.site-shell body.page-shell :is(.masthead-cta, .btn, .cta-button)::before {
  position: absolute;
  z-index: -1;
  inset: -5px -9px;
  border: 3px solid var(--shell-ink);
  border-radius: 48% 52% 49% 51% / 54% 46% 52% 48%;
  pointer-events: none;
  transform: rotate(-1.2deg);
  content: "";
}

html.site-shell body.page-shell :is(.masthead-cta, .btn, .cta-button)::after {
  position: absolute;
  z-index: -2;
  right: -22px;
  top: 50%;
  width: 24px;
  height: var(--shell-wire);
  border-radius: 999px;
  background: var(--shell-ink);
  content: "";
}

html.site-shell body.page-shell :is(.masthead-cta, .btn, .cta-button):hover {
  background: var(--shell-white);
  color: var(--shell-ink);
  transform: translateY(-2px) rotate(-0.3deg);
}

/* Page opening: image, paper and cord form one composition. */
html.site-shell body.page-shell .page-head {
  position: relative;
  min-height: clamp(460px, 72svh, 680px);
  display: grid;
  align-items: center;
  padding: clamp(74px, 9vw, 118px) 0 clamp(86px, 10vw, 132px);
  isolation: isolate;
}

html.site-shell body.page-shell .page-head::before,
html.site-shell body.page-shell .page-head::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

html.site-shell body.page-shell .page-head::after {
  z-index: -1;
  left: clamp(6%, 11vw, 14%);
  bottom: -74px;
  width: clamp(210px, 34vw, 510px);
  height: clamp(180px, 31vw, 430px);
  border: var(--shell-wire) solid var(--shell-ink);
  border-left-color: transparent;
  border-radius: 52% 48% 56% 44%;
  transform: rotate(13deg);
}

html.site-shell body.page-shell .page-head .wrap {
  position: relative;
  width: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}

html.site-shell body.page-shell .page-head .wrap::before {
  position: absolute;
  z-index: -1;
  top: -44px;
  right: -20px;
  bottom: -44px;
  width: min(59%, 650px);
  border: 3px solid var(--shell-ink);
  background: color-mix(in srgb, var(--shell-paper) 94%, white);
  box-shadow: 12px 14px 0 rgba(255, 232, 26, 0.88);
  clip-path: polygon(1.2% 2%, 98.8% 0, 99.6% 96.8%, 95% 100%, 1% 98.5%, 0 7%);
  content: "";
}

html.site-shell body.page-shell .page-head .wrap::after {
  position: absolute;
  z-index: 2;
  right: calc(min(59%, 650px) - 25px);
  top: var(--shell-hero-dot-y, 24%);
  width: 20px;
  height: 20px;
  border: 3px solid var(--shell-ink);
  border-radius: 50%;
  background: var(--shell-yellow);
  box-shadow: 0 0 0 5px var(--shell-paper);
  content: "";
  transition: top 90ms linear;
}

html.site-shell body.page-shell .page-head .wrap > * {
  position: relative;
  z-index: 1;
  width: min(54%, 610px);
}

html.site-shell body.page-shell .page-head .kicker {
  align-self: flex-start;
  width: auto;
  margin-bottom: 18px;
  border: 2px solid var(--shell-ink);
  background: var(--shell-yellow);
  box-shadow: 4px 4px 0 var(--shell-ink);
  transform: rotate(-1deg);
}

html.site-shell body.page-shell .page-head h1 {
  max-width: 15ch;
  font-size: clamp(3.05rem, 7.1vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

html.site-shell body.page-shell .page-head .lead {
  max-width: 43ch;
  margin-top: 24px;
  font-size: clamp(1.08rem, 1.65vw, 1.33rem);
  line-height: 1.58;
}

html.site-shell body.page-shell .page-meta {
  width: auto;
  align-self: flex-start;
  margin-top: 18px;
  padding: 5px 10px;
  border-block: 1px solid var(--shell-ink);
  color: var(--shell-muted);
}

/* The approved workshop visual is part of the composition, not a framed image. */
html.site-shell body.page-shell--how .page-head::before {
  z-index: -2;
  left: 0;
  top: 0;
  bottom: -60px;
  width: min(58vw, 870px);
  background-image:
    linear-gradient(90deg, rgba(247, 242, 230, 0) 38%, var(--shell-paper) 100%),
    linear-gradient(0deg, var(--shell-paper) 0%, rgba(247, 242, 230, 0) 31%),
    url("scene/c-state-3.webp");
  background-position: center, center, left 72%;
  background-repeat: no-repeat;
  background-size: cover, cover, 100% auto;
  -webkit-mask-image: radial-gradient(ellipse 77% 72% at 35% 43%, #000 57%, transparent 100%);
  mask-image: radial-gradient(ellipse 77% 72% at 35% 43%, #000 57%, transparent 100%);
}

html.site-shell body.page-shell--how .page-head h1 {
  max-width: 18ch;
  font-size: clamp(3rem, 6.15vw, 5.65rem);
}

html.site-shell body.page-shell--how .page-head .wrap,
html.site-shell body.page-shell--pricing .page-head .wrap {
  padding-left: min(48vw, 570px);
}

html.site-shell body.page-shell--pricing .page-head::before {
  z-index: -2;
  left: 5%;
  top: 12%;
  width: min(42vw, 530px);
  height: 72%;
  border: 3px solid var(--shell-ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(32, 29, 24, 0.14) 36px 38px),
    var(--shell-white);
  box-shadow: -13px 15px 0 var(--shell-paper-warm);
  clip-path: polygon(3% 0, 97% 1%, 100% 95%, 95% 100%, 4% 97%, 0 5%);
  transform: rotate(-2.5deg);
}

html:not(.site-shell) body.page-shell .shell-price-ticket {
  display: none;
}

html.site-shell body.page-shell--pricing .page-head .wrap > .shell-price-ticket {
  position: absolute;
  z-index: 3;
  left: 7%;
  top: 22%;
  width: min(37vw, 430px);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 0 13px;
  padding: 14px 24px 17px;
  border: 3px solid var(--shell-ink);
  background: var(--shell-yellow);
  box-shadow: 7px 8px 0 var(--shell-ink);
  color: var(--shell-ink);
  transform: rotate(-2.2deg);
}

html.site-shell body.page-shell--pricing .page-head .shell-price-ticket strong {
  grid-row: 1 / 3;
  font-family: "Shell Frank", serif;
  font-size: clamp(4rem, 7vw, 6.6rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
  white-space: nowrap;
}

html.site-shell body.page-shell--pricing .page-head .shell-price-ticket span {
  align-self: end;
  font-size: 1.12rem;
  font-weight: 700;
}

html.site-shell body.page-shell--pricing .page-head .shell-price-ticket small {
  padding-top: 4px;
  border-top: 2px solid var(--shell-ink);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Editorial opening stays calm: a dial watermark and a short local cord. */
html.site-shell body.page-shell--editorial .page-head {
  min-height: clamp(520px, 76svh, 720px);
  background: linear-gradient(180deg, var(--shell-paper) 4%, var(--shell-paper-warm) 60%, var(--shell-paper) 100%);
}

html.site-shell body.page-shell--editorial .page-head::before {
  z-index: -2;
  left: 3%;
  top: 8%;
  width: min(39vw, 440px);
  height: 79%;
  background: url("brand/logo-mark.svg") center / min(31vw, 340px) no-repeat;
  opacity: 0.16;
  transform: rotate(-8deg);
}

html.site-shell body.page-shell--editorial .page-head .wrap {
  padding-left: min(36vw, 430px);
}

html.site-shell body.page-shell--editorial .page-head .wrap::before {
  width: min(70%, 770px);
}

html.site-shell body.page-shell--editorial .page-head .wrap::after {
  right: calc(min(70%, 770px) - 25px);
}

html.site-shell body.page-shell--editorial .page-head .wrap > * {
  width: min(66%, 730px);
}

html.site-shell body.page-shell--editorial .page-head h1 {
  max-width: 17ch;
  font-size: clamp(2.75rem, 5.9vw, 5.45rem);
}

/* Readable route: the cord marks where the reader is, never crosses the copy. */
html.site-shell body.page-shell .article {
  position: relative;
  padding-block: clamp(62px, 9vw, 110px);
}

html.site-shell body.page-shell .article > .wrap {
  position: relative;
}

html.site-shell body.page-shell .article-body {
  position: relative;
  max-width: 74ch;
  margin-inline: auto;
  padding-inline-start: 78px;
}

html.site-shell body.page-shell .article-body::before {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 26px;
  width: var(--shell-wire);
  border-radius: 999px;
  background: var(--shell-ink);
  content: "";
}

html.site-shell body.page-shell .article-body::after {
  position: absolute;
  z-index: 2;
  top: var(--shell-dot-y);
  inset-inline-start: 17px;
  width: 21px;
  height: 21px;
  border: 3px solid var(--shell-ink);
  border-radius: 50%;
  background: var(--shell-yellow);
  box-shadow: 0 0 0 5px var(--shell-paper);
  content: "";
  transition: top 100ms linear;
}

html.site-shell body.page-shell .article-body h2 {
  position: relative;
  margin-top: clamp(2.25em, 7vw, 3.35em);
  padding-top: 0.72em;
  border-top: 3px solid var(--shell-ink);
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  line-height: 1.08;
}

html.site-shell body.page-shell .article-body h2::before {
  position: absolute;
  top: -3px;
  right: -52px;
  width: 52px;
  height: 3px;
  border-radius: 999px;
  background: var(--shell-ink);
  content: "";
}

html.site-shell body.page-shell .article-body h2::after {
  position: absolute;
  top: -11px;
  right: -64px;
  width: 15px;
  height: 15px;
  border: 3px solid var(--shell-ink);
  border-radius: 50%;
  background: var(--shell-paper);
  content: "";
}

html.site-shell body.page-shell .article-body h3 {
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  line-height: 1.24;
}

html.site-shell body.page-shell .article-body p,
html.site-shell body.page-shell .article-body li {
  line-height: 1.72;
}

html.site-shell body.page-shell .article-body :is(code, [dir="ltr"]) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

html.site-shell body.page-shell .article-body blockquote {
  position: relative;
  margin-block: 2.1em;
  padding: 1.35em 1.65em 1.15em;
  border: 3px solid var(--shell-ink);
  border-inline-start-width: 3px;
  background: var(--shell-white);
  box-shadow: -10px 11px 0 var(--shell-yellow);
  transform: rotate(-0.35deg);
}

html.site-shell body.page-shell .article-body blockquote::before {
  position: absolute;
  top: 12px;
  right: 13px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--shell-ink);
  border-radius: 50%;
  background: var(--shell-paper);
  content: "";
}

html.site-shell body.page-shell .table-scroll {
  margin-block: 2.2em;
  padding: 12px;
  border: 3px solid var(--shell-ink);
  background: var(--shell-white);
  box-shadow: 9px 10px 0 var(--shell-paper-warm);
}

html.site-shell body.page-shell .table-scroll:focus-visible {
  outline: 4px solid var(--shell-ink);
  outline-offset: 5px;
}

html.site-shell body.page-shell .article-body table {
  margin: 0;
}

html.site-shell body.page-shell .article-body thead th {
  background: var(--shell-yellow);
}

/* Existing meaningful machines remain; the surrounding colour seam now matches home. */
html.site-shell body.page-shell .mx-scene {
  position: relative;
  border-block: 1px solid rgba(32, 29, 24, 0.22);
  background:
    linear-gradient(180deg, var(--shell-paper) 0, var(--shell-paper-deep) 18%, var(--shell-paper-deep) 82%, var(--shell-paper) 100%);
}

html.site-shell body.page-shell .mx-tag {
  border: 2px solid var(--shell-ink);
  background: var(--shell-yellow);
  box-shadow: 4px 4px 0 var(--shell-ink);
}

html.site-shell body.page-shell .videofig-wrap {
  position: relative;
  padding-block: clamp(68px, 8vw, 100px);
  background: linear-gradient(180deg, var(--shell-paper), var(--shell-paper-deep) 52%, var(--shell-paper));
}

html.site-shell body.page-shell .videofig {
  position: relative;
  max-width: 930px;
  margin-inline: auto;
  padding: 18px 18px 15px;
  border: 3px solid var(--shell-ink);
  background: var(--shell-white);
  box-shadow: -13px 14px 0 var(--shell-yellow);
  transform: rotate(-0.4deg);
}

html.site-shell body.page-shell .videofig::before {
  position: absolute;
  right: -64px;
  top: 49%;
  width: 64px;
  height: var(--shell-wire);
  border-radius: 999px;
  background: var(--shell-ink);
  content: "";
}

/* Two price facts become a physical rack before the register scene. */
html.site-shell body.page-shell--pricing .fact-list--2 {
  position: relative;
  gap: clamp(24px, 5vw, 62px);
  border-top: 0;
}

html.site-shell body.page-shell--pricing .fact-list--2::before {
  position: absolute;
  z-index: -1;
  right: 4%;
  left: 4%;
  top: 50%;
  height: var(--shell-wire);
  border-radius: 999px;
  background: var(--shell-ink);
  content: "";
}

html.site-shell body.page-shell--pricing .fact-list--2 li {
  position: relative;
  padding: 29px 27px 24px;
  border: 3px solid var(--shell-ink);
  background: var(--shell-white);
  box-shadow: 8px 9px 0 var(--shell-yellow);
}

html.site-shell body.page-shell--pricing .fact-list--2 li::before {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--shell-ink);
  border-radius: 50%;
  background: var(--shell-paper);
  content: "";
}

html.site-shell body.page-shell--pricing .fact-list--2 li:nth-child(1) {
  transform: rotate(0.8deg);
}

html.site-shell body.page-shell--pricing .fact-list--2 li:nth-child(2) {
  transform: rotate(-0.7deg);
}

/* Product pages reuse the brand dial as a quiet piece of the same workshop. */
html.site-shell body.page-shell--product:not(.page-shell--how):not(.page-shell--pricing) .page-head::before {
  z-index: -2;
  left: 3%;
  top: 10%;
  width: min(37vw, 430px);
  height: 76%;
  background: url("brand/logo-mark.svg") center / min(29vw, 310px) no-repeat;
  opacity: 0.13;
  transform: rotate(-7deg);
}

html.site-shell body.page-shell--product:not(.page-shell--how):not(.page-shell--pricing) .page-head .wrap {
  padding-left: min(34vw, 420px);
}

/* Legal copy is deliberately quieter, while still belonging to the paper route. */
html.site-shell body.page-shell--legal .page-head {
  min-height: clamp(430px, 61svh, 570px);
  background: linear-gradient(180deg, var(--shell-paper), var(--shell-paper-deep) 54%, var(--shell-paper));
}

html.site-shell body.page-shell--legal .page-head::before {
  z-index: -2;
  left: 5%;
  top: 15%;
  width: min(30vw, 340px);
  height: 66%;
  border: 3px solid rgba(32, 29, 24, 0.3);
  background:
    linear-gradient(135deg, transparent 0 47%, rgba(32, 29, 24, 0.08) 48% 52%, transparent 53%),
    var(--shell-white);
  box-shadow: -10px 11px 0 var(--shell-paper-warm);
  transform: rotate(-2deg);
}

html.site-shell body.page-shell--legal .page-head .wrap {
  padding-left: min(27vw, 340px);
}

/* The blog index becomes a rack of readable paper briefs, not generic cards. */
html.site-shell body.page-shell .post-list {
  display: grid;
  gap: 28px;
  padding: 0;
  border: 0;
}

html.site-shell body.page-shell .post-list > li {
  position: relative;
  padding: 27px 30px 25px;
  border: 3px solid var(--shell-ink);
  background: var(--shell-white);
  box-shadow: 8px 9px 0 var(--shell-paper-warm);
}

html.site-shell body.page-shell .post-list > li:nth-child(odd) {
  transform: rotate(0.25deg);
}

html.site-shell body.page-shell .post-list > li:nth-child(even) {
  transform: rotate(-0.25deg);
}

html.site-shell body.page-shell .post-list > li::before {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--shell-ink);
  border-radius: 50%;
  background: var(--shell-paper);
  content: "";
}

html.site-shell body.page-shell .post-list h2 {
  margin: 5px 0 10px;
  padding: 0;
  border: 0;
  font-size: clamp(1.55rem, 3.1vw, 2.2rem);
}

html.site-shell body.page-shell .post-list h2::before,
html.site-shell body.page-shell .post-list h2::after {
  display: none;
}

html.site-shell body.page-shell .post-list h2 a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* 404 and payment confirmation are one compact paper object on a short cord. */
html.site-shell body.page-shell .notfound {
  position: relative;
  min-height: calc(100svh - 170px);
  display: grid;
  align-items: center;
  padding-block: clamp(78px, 10vw, 124px);
  background: linear-gradient(180deg, var(--shell-paper), var(--shell-paper-warm) 50%, var(--shell-paper));
  isolation: isolate;
}

html.site-shell body.page-shell .notfound::before {
  position: absolute;
  z-index: -1;
  left: 0;
  top: 50%;
  width: 42%;
  height: var(--shell-wire);
  border-radius: 999px;
  background: var(--shell-ink);
  content: "";
}

html.site-shell body.page-shell .notfound .wrap {
  position: relative;
  width: min(calc(100% - 40px), 760px);
  padding: clamp(38px, 6vw, 64px);
  isolation: isolate;
}

html.site-shell body.page-shell .notfound .wrap::before,
html.site-shell body.page-shell .notfound .wrap::after {
  position: absolute;
  pointer-events: none;
  clip-path: polygon(1% 2%, 97% 0, 100% 94%, 95% 100%, 1% 98%, 0 7%);
  content: "";
}

html.site-shell body.page-shell .notfound .wrap::before {
  z-index: -2;
  inset: -4px;
  background: var(--shell-ink);
}

html.site-shell body.page-shell .notfound .wrap::after {
  z-index: -1;
  inset: 0;
  background: var(--shell-white);
  box-shadow: 12px 13px 0 var(--shell-yellow);
}

html.site-shell body.page-shell .notfound .wrap > * {
  position: relative;
  z-index: 1;
}

html.site-shell body.page-shell .notfound-code {
  margin-bottom: 20px;
  font-family: "Shell Frank", serif;
  font-size: clamp(4.7rem, 15vw, 8.5rem);
}

html.site-shell body.page-shell .notfound-code .hl {
  display: inline-block;
  padding-inline: 14px;
  border: 3px solid var(--shell-ink);
  background: var(--shell-yellow);
  box-shadow: 6px 7px 0 var(--shell-ink);
  transform: rotate(-1.5deg);
}

html.site-shell body.page-shell .notfound h1 {
  max-width: 16ch;
  font-size: clamp(2.25rem, 5.6vw, 4.7rem);
  line-height: 0.98;
}

html.site-shell body.page-shell .notfound-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* The authenticated settings page keeps every control immediate and unclipped. */
html.site-shell body.page-shell--app {
  position: relative;
  min-height: 100svh;
  padding: 0 18px 54px;
  background: linear-gradient(180deg, var(--shell-paper), var(--shell-paper-warm) 47%, var(--shell-paper));
  overflow-x: clip;
}

html.site-shell body.page-shell--app::after {
  position: fixed;
  z-index: 0;
  left: 0;
  top: 46%;
  width: 50%;
  height: var(--shell-wire);
  border-radius: 999px;
  background: var(--shell-ink);
  pointer-events: none;
  content: "";
}

html.site-shell body.page-shell--app main,
html.site-shell body.page-shell--app footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 31rem;
}

html.site-shell body.page-shell--app .masthead {
  align-self: stretch;
  width: calc(100% + 36px);
  margin-inline: -18px;
}

html.site-shell body.page-shell--app main {
  padding-top: clamp(32px, 6vw, 70px);
}

html.site-shell body.page-shell--app .brandbar {
  width: max-content;
  margin-bottom: 22px;
  padding: 7px 12px;
  border: 2px solid var(--shell-ink);
  background: var(--shell-yellow);
  box-shadow: 4px 4px 0 var(--shell-ink);
  transform: rotate(-1deg);
}

html.site-shell body.page-shell--app h1 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 9vw, 4.6rem);
  line-height: 0.96;
}

html.site-shell body.page-shell--app .card {
  position: relative;
  padding: clamp(22px, 5vw, 34px);
  border: 3px solid var(--shell-ink);
  background: var(--shell-white);
  box-shadow: -9px 10px 0 var(--shell-yellow);
}

html.site-shell body.page-shell--app .card::before {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--shell-ink);
  border-radius: 50%;
  background: var(--shell-paper);
  content: "";
}

html.site-shell body.page-shell--app .card h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  line-height: 1.25;
}

html.site-shell body.page-shell--app .pause-row {
  min-height: 44px;
  padding-block: 8px;
}

html.site-shell body.page-shell--app :is(input[type="text"], input[type="email"]) {
  min-height: 50px;
  border: 3px solid var(--shell-ink);
  border-radius: 0;
  background: var(--shell-white);
}

html.site-shell body.page-shell--app button {
  position: relative;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  background: var(--shell-yellow);
  color: var(--shell-ink);
  isolation: isolate;
}

html.site-shell body.page-shell--app button::before {
  position: absolute;
  z-index: -1;
  inset: -5px -8px;
  border: 3px solid var(--shell-ink);
  border-radius: 48% 52% 49% 51% / 54% 46% 52% 48%;
  transform: rotate(-1deg);
  content: "";
}

html.site-shell body.page-shell--app button:hover {
  background: var(--shell-white);
  color: var(--shell-ink);
}

html.site-shell body.page-shell--app footer {
  border-top: 3px solid var(--shell-ink);
}

/* CTA is a final cable tag. Content remains on the unclipped parent. */
html.site-shell body.page-shell .endcta {
  margin-top: clamp(64px, 10vw, 104px);
  padding: 34px 34px 30px 58px;
  border: 3px solid var(--shell-ink);
  border-radius: 2px 25px 3px 4px;
  background: var(--shell-white);
  box-shadow: -11px 12px 0 var(--shell-yellow);
  transform: rotate(-0.35deg);
}

html.site-shell body.page-shell .endcta::after {
  position: absolute;
  right: 100%;
  top: 37px;
  width: 80px;
  height: var(--shell-wire);
  border-radius: 999px;
  background: var(--shell-ink);
  content: "";
}

html.site-shell body.page-shell .endcta-tag {
  top: -16px;
  border: 2px solid var(--shell-ink);
  box-shadow: 3px 3px 0 var(--shell-ink);
}

/* Transaction page: a paper form is tied into a short, meaningful route. */
html.site-shell body.page-shell--signup .signup {
  position: relative;
  min-height: calc(100svh - 118px);
  display: grid;
  align-items: center;
  padding-block: clamp(70px, 9vw, 116px);
  background:
    radial-gradient(circle at 16% 48%, rgba(255, 232, 26, 0.8) 0 10px, transparent 11px),
    linear-gradient(180deg, var(--shell-paper), var(--shell-paper-warm) 52%, var(--shell-paper));
}

html.site-shell body.page-shell--signup .signup::before {
  position: absolute;
  left: 0;
  top: 49%;
  width: 50%;
  height: var(--shell-wire);
  border-radius: 999px;
  background: var(--shell-ink);
  content: "";
}

html.site-shell body.page-shell--signup .signup-box {
  position: relative;
  max-width: 690px;
  padding: clamp(36px, 6vw, 58px);
  border: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

html.site-shell body.page-shell--signup .signup-box::before,
html.site-shell body.page-shell--signup .signup-box::after {
  position: absolute;
  pointer-events: none;
  clip-path: polygon(1% 1.8%, 97.7% 0, 100% 93.5%, 95.5% 100%, 1.3% 98%, 0 6%);
  content: "";
}

html.site-shell body.page-shell--signup .signup-box::before {
  z-index: -2;
  inset: -4px;
  background: var(--shell-ink);
}

html.site-shell body.page-shell--signup .signup-box::after {
  z-index: -1;
  inset: 0;
  background: var(--shell-white);
  box-shadow: 13px 14px 0 var(--shell-yellow);
}

html.site-shell body.page-shell--signup .signup-box > * {
  position: relative;
  z-index: 1;
}

html.site-shell body.page-shell--signup .signup-box .kicker {
  border: 2px solid var(--shell-ink);
  background: var(--shell-yellow);
  box-shadow: 3px 3px 0 var(--shell-ink);
}

html.site-shell body.page-shell--signup .signup-box h2.xl {
  max-width: 11ch;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 7vw, 5.1rem);
  line-height: 0.96;
}

html.site-shell body.page-shell--signup :is(input[type="tel"], input[type="text"], input[type="email"], select) {
  min-height: 50px;
  border: 3px solid var(--shell-ink);
  background: var(--shell-white);
  box-shadow: 5px 6px 0 var(--shell-paper-deep);
}

html.site-shell body.page-shell--signup .cta-button {
  margin-top: 24px;
}

html.site-shell body.page-shell--signup .radio-row label {
  min-height: 44px;
  padding-block: 8px;
}

html.site-shell body.page-shell--signup .activation-code {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  text-align: center;
}

/* Footer: the cord reaches a quiet ending. */
html.site-shell body.page-shell > .wrap > .rule-double {
  position: relative;
  height: var(--shell-wire);
  overflow: visible;
}

html.site-shell body.page-shell > .wrap > .rule-double::after {
  position: absolute;
  left: -1px;
  top: -8px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--shell-ink);
  border-radius: 50%;
  background: var(--shell-yellow);
  content: "";
}

html.site-shell body.page-shell footer {
  padding-block: 28px 48px;
}

html.site-shell body.page-shell .footer-inner {
  gap: 16px;
}

html.site-shell body.page-shell .footer-links a {
  min-height: 44px;
  min-width: 44px;
}

html.site-shell body.page-shell main :where([id]) {
  scroll-margin-top: 116px;
}

html.site-shell body.page-shell #a11y-panel .a11y-row {
  display: grid;
  grid-template-columns: 46px minmax(3ch, 1fr) 46px;
  align-items: center;
  gap: 8px;
}

html.site-shell body.page-shell #a11y-panel .a11y-row .a11y-lbl {
  grid-column: 1 / -1;
  margin-inline-end: 0;
}

/* Accessibility modes supplied by a11y.js. */
html.site-shell.a11y-contrast body.page-shell,
html.site-shell.a11y-contrast body.page-shell .masthead,
html.site-shell.a11y-contrast body.page-shell .page-head,
html.site-shell.a11y-contrast body.page-shell .signup,
html.site-shell.a11y-contrast body.page-shell .mx-scene {
  background: #fff !important;
  color: #000 !important;
}

html.site-shell.a11y-font body.page-shell .page-head h1,
html.site-shell.a11y-font body.page-shell .signup-box h2.xl {
  letter-spacing: -0.02em;
  line-height: 1.02;
}

html.site-shell.a11y-no-motion body.page-shell .article-body::after,
html.site-shell.a11y-no-motion body.page-shell .page-head .wrap::after {
  transition: none;
}

/* Accessible mobile navigation, progressively enhanced by a11y.js. */
html.site-shell body.page-shell .mobile-nav-toggle,
html.site-shell body.page-shell .mobile-nav-cta {
  display: none;
}

html.site-shell body.page-shell .mobile-nav-toggle {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  margin: 0;
  padding: 0;
  color: var(--shell-ink);
  background: var(--shell-paper);
  border: 2px solid var(--shell-ink);
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  isolation: auto;
}

html.site-shell body.page-shell .mobile-nav-toggle::before,
html.site-shell body.page-shell .mobile-nav-toggle::after {
  content: none;
}

html.site-shell body.page-shell .mobile-nav-toggle > span {
  display: grid;
  width: 20px;
  gap: 4px;
}

html.site-shell body.page-shell .mobile-nav-toggle i {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

html.site-shell body.page-shell .mobile-nav-toggle[aria-expanded="true"] {
  background: var(--shell-yellow);
}

html.site-shell body.page-shell .mobile-nav-toggle[aria-expanded="true"] i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

html.site-shell body.page-shell .mobile-nav-toggle[aria-expanded="true"] i:nth-child(2) {
  opacity: 0;
}

html.site-shell body.page-shell .mobile-nav-toggle[aria-expanded="true"] i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 940px) {
  html.site-shell.nav-enhanced body.page-shell .mobile-nav-toggle {
    display: grid;
  }

  html.site-shell.nav-enhanced body.page-shell .masthead .site-nav {
    position: absolute;
    z-index: 140;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    max-height: calc(100svh - 70px);
    overflow-y: auto;
    background: color-mix(in srgb, var(--shell-paper) 97%, transparent);
    border-top: 1px solid rgba(32, 29, 24, 0.22);
    border-bottom: 2px solid var(--shell-ink);
    box-shadow: 0 14px 30px rgba(32, 29, 24, 0.14);
    backdrop-filter: blur(14px);
  }

  html.site-shell.nav-enhanced body.page-shell .masthead .site-nav[hidden] {
    display: none !important;
  }

  html.site-shell.nav-enhanced body.page-shell .masthead .site-nav .wrap {
    display: block;
    padding: 10px 16px 16px;
  }

  html.site-shell.nav-enhanced body.page-shell .masthead .site-nav ul {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  html.site-shell.nav-enhanced body.page-shell .masthead .site-nav li {
    width: 100%;
  }

  html.site-shell.nav-enhanced body.page-shell .masthead .site-nav a:not(.mobile-nav-cta) {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(32, 29, 24, 0.2);
  }

  html.site-shell.nav-enhanced body.page-shell .masthead .site-nav a[aria-current="page"]::after {
    right: auto;
    bottom: auto;
    left: 12px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--shell-ink);
    border-radius: 50%;
  }
}

@media (max-width: 899px) {
  html.site-shell body.page-shell .page-head {
    min-height: auto;
    padding-block: 54px 64px;
  }

  html.site-shell body.page-shell .page-head .wrap,
  html.site-shell body.page-shell--how .page-head .wrap,
  html.site-shell body.page-shell--pricing .page-head .wrap,
  html.site-shell body.page-shell--editorial .page-head .wrap {
    min-height: 0;
    padding-left: 20px;
    padding-bottom: clamp(170px, 44vw, 270px);
  }

  html.site-shell body.page-shell .page-head .wrap::before,
  html.site-shell body.page-shell--editorial .page-head .wrap::before {
    top: -32px;
    right: 10px;
    bottom: clamp(190px, 49vw, 330px);
    width: calc(100% - 20px);
  }

  html.site-shell body.page-shell .page-head .wrap::after,
  html.site-shell body.page-shell--editorial .page-head .wrap::after {
    right: 5px;
  }

  html.site-shell body.page-shell .page-head .wrap > *,
  html.site-shell body.page-shell--editorial .page-head .wrap > * {
    width: min(100%, 690px);
  }

  html.site-shell body.page-shell .page-head .wrap > :is(h1, .lead, .page-meta) {
    padding-inline-start: 30px;
  }

  html.site-shell body.page-shell--how .page-head::before {
    top: auto;
    right: 0;
    bottom: -10px;
    width: 100%;
    height: clamp(260px, 68vw, 440px);
    background-image:
      linear-gradient(90deg, var(--shell-paper) 0%, rgba(247, 242, 230, 0) 45%, var(--shell-paper) 100%),
      linear-gradient(0deg, var(--shell-paper) 0%, rgba(247, 242, 230, 0) 42%),
      url("scene/c-state-3-768.webp");
    background-position: center, center, 24% center;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 78%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 20%, #000 78%, transparent);
  }

  html.site-shell body.page-shell--pricing .page-head::before {
    top: auto;
    left: 12%;
    bottom: 8px;
    width: 76%;
    height: clamp(210px, 54vw, 330px);
  }

  html.site-shell body.page-shell--pricing .page-head .wrap > .shell-price-ticket {
    left: 19%;
    top: auto;
    bottom: 14%;
    width: 62%;
  }

  html.site-shell body.page-shell--editorial .page-head::before {
    top: auto;
    bottom: 8px;
    width: 100%;
    height: clamp(210px, 54vw, 340px);
    background-size: min(52vw, 260px);
    background-position: 24% 52%;
  }

  html.site-shell body.page-shell--product:not(.page-shell--how):not(.page-shell--pricing) .page-head .wrap,
  html.site-shell body.page-shell--legal .page-head .wrap {
    padding-left: 20px;
  }

  html.site-shell body.page-shell--product:not(.page-shell--how):not(.page-shell--pricing) .page-head::before,
  html.site-shell body.page-shell--legal .page-head::before {
    top: auto;
    left: 0;
    bottom: 8px;
    width: 100%;
    height: clamp(200px, 51vw, 320px);
  }

  html.site-shell body.page-shell--product:not(.page-shell--how):not(.page-shell--pricing) .page-head::before {
    background-size: min(48vw, 230px);
    background-position: 23% 52%;
  }

  html.site-shell body.page-shell--legal .page-head::before {
    left: 12%;
    width: 76%;
  }

  html.site-shell body.page-shell .page-head::after {
    left: -14%;
    bottom: -42px;
  }
}

@media (max-width: 799px) {
  html.site-shell body.page-shell .masthead {
    position: sticky;
  }

  html.site-shell body.page-shell .masthead-row {
    min-height: 62px;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  html.site-shell body.page-shell .masthead-brand {
    flex: 1 1 auto;
  }

  html.site-shell body.page-shell .masthead-cta {
    flex: 0 1 auto;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  html.site-shell body.page-shell .site-nav .wrap {
    justify-content: flex-start;
  }

  html.site-shell body.page-shell .site-nav ul {
    justify-content: flex-start;
  }

  html.site-shell body.page-shell .page-head h1 {
    font-size: clamp(2.5rem, 11vw, 4rem);
  }

  html.site-shell body.page-shell .article-body {
    padding-inline-start: 49px;
  }

  html.site-shell body.page-shell .article-body::before {
    inset-inline-start: 12px;
  }

  html.site-shell body.page-shell .article-body::after {
    inset-inline-start: 3px;
  }

  html.site-shell body.page-shell .article-body h2::before {
    right: -37px;
    width: 37px;
  }

  html.site-shell body.page-shell .article-body h2::after {
    right: -48px;
  }

  html.site-shell body.page-shell .videofig {
    margin-inline: 12px;
    padding: 9px;
    box-shadow: -8px 9px 0 var(--shell-yellow);
  }

  html.site-shell body.page-shell .endcta {
    padding: 29px 24px 25px 39px;
  }

  html.site-shell body.page-shell .notfound .wrap {
    width: min(calc(100% - 28px), 760px);
    padding: 34px 27px 38px;
  }

  html.site-shell body.page-shell .notfound::before,
  html.site-shell body.page-shell--app::after {
    width: 20%;
  }

  html.site-shell body.page-shell--signup .signup::before {
    width: 22%;
  }

  html.site-shell body.page-shell--app .styles.channels {
    flex-wrap: wrap;
  }

  html.site-shell body.page-shell--app .styles.channels label {
    flex: 1 1 8rem;
  }
}

@media (max-width: 390px) {
  html.site-shell body.page-shell .wrap {
    padding-inline: 15px;
  }

  html.site-shell body.page-shell .masthead-brand {
    font-size: 1.3rem;
  }

  html.site-shell body.page-shell .masthead-mark {
    width: 32px;
    height: 32px;
  }

  html.site-shell body.page-shell .masthead-cta {
    padding-inline: 10px;
    font-size: 0.82rem;
  }

  html.site-shell body.page-shell .page-head {
    padding-top: 54px;
  }

  html.site-shell body.page-shell--pricing .page-head .wrap > .shell-price-ticket {
    left: 13%;
    width: 74%;
    padding-inline: 16px;
  }

  html.site-shell body.page-shell--pricing .page-head .shell-price-ticket strong {
    font-size: clamp(3.25rem, 15vw, 4.8rem);
  }

  html.site-shell body.page-shell .page-head .wrap,
  html.site-shell body.page-shell--how .page-head .wrap,
  html.site-shell body.page-shell--pricing .page-head .wrap,
  html.site-shell body.page-shell--editorial .page-head .wrap {
    padding-right: 15px;
    padding-left: 15px;
  }

  html.site-shell body.page-shell .article-body {
    padding-inline-start: 38px;
  }

  html.site-shell body.page-shell .article-body h2 {
    font-size: 1.62rem;
  }

  html.site-shell body.page-shell .article-body h2::before {
    right: -27px;
    width: 27px;
  }

  html.site-shell body.page-shell .article-body h2::after {
    right: -38px;
  }

  html.site-shell body.page-shell .endcta {
    margin-inline-start: -16px;
  }

  html.site-shell body.page-shell--signup .signup-box {
    padding: 32px 25px;
  }
}

@media (max-width: 360px) {
  html.site-shell.nav-enhanced body.page-shell .masthead-cta {
    display: none;
  }

  html.site-shell.nav-enhanced body.page-shell .masthead .site-nav .mobile-nav-cta {
    display: grid;
    min-height: 48px;
    place-items: center;
    margin: 8px 16px 16px;
    padding: 10px 16px;
    background: var(--shell-yellow);
    border: 2px solid var(--shell-ink);
    font-weight: 800;
    text-decoration: none;
  }
}

@media (max-width: 899px) {
  html.site-shell.a11y-large-text body.page-shell .page-head {
    padding-block: 44px 54px;
  }

  html.site-shell.a11y-large-text body.page-shell .page-head .wrap,
  html.site-shell.a11y-large-text body.page-shell--how .page-head .wrap,
  html.site-shell.a11y-large-text body.page-shell--pricing .page-head .wrap,
  html.site-shell.a11y-large-text body.page-shell--editorial .page-head .wrap {
    padding-bottom: 28px;
  }

  html.site-shell.a11y-large-text body.page-shell .page-head h1 {
    font-size: clamp(1.6rem, 9vw, 2.4rem);
    line-height: 1.06;
  }

  html.site-shell.a11y-large-text body.page-shell .page-head::before,
  html.site-shell.a11y-large-text body.page-shell .page-head::after {
    display: none;
  }

  html.site-shell.a11y-large-text body.page-shell--app .styles,
  html.site-shell.a11y-large-text body.page-shell--app .styles.channels {
    display: grid;
    grid-template-columns: 1fr;
  }

  html.site-shell.a11y-large-text body.page-shell--app h1 {
    font-size: clamp(1.75rem, 9vw, 2.6rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  html.site-shell.a11y-large-text body.page-shell--signup .signup-box,
  html.site-shell.a11y-large-text body.page-shell--signup .signup-box > section {
    min-width: 0;
    max-width: 100%;
  }

  html.site-shell.a11y-large-text body.page-shell--signup .signup-box {
    padding-inline: 18px;
  }

  html.site-shell.a11y-large-text body.page-shell--signup .signup-box h2.xl {
    max-width: 100%;
    font-size: clamp(1.6rem, 9vw, 2.4rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  html.site-shell.a11y-large-text body.page-shell--signup :is(input[type="tel"], input[type="email"]) {
    padding-inline: 10px;
    font-size: max(16px, 0.84rem);
  }

  html.site-shell.a11y-large-text.nav-enhanced body.page-shell .masthead-cta {
    display: none;
  }

  html.site-shell.a11y-large-text.nav-enhanced body.page-shell .masthead .site-nav .mobile-nav-cta {
    display: grid;
    min-height: 48px;
    place-items: center;
    margin: 8px 16px 16px;
    padding: 10px 16px;
    background: var(--shell-yellow);
    border: 2px solid var(--shell-ink);
    font-weight: 800;
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.site-shell body.page-shell *,
  html.site-shell body.page-shell *::before,
  html.site-shell body.page-shell *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
