/* Plank & Pencil: the plans' Style B on the web. White paper, warm light wood, ink, teal. */
@font-face { font-family: "Noto Sans Display"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/NotoSansDisplay-Bold.b42f5492d2.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/NotoSans-Regular.3b18adb2e4.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/NotoSans-Bold.ee1f6e6fba.woff2") format("woff2"); }

:root {
  --paper: #FFFFFF;
  --wood: #E3D3B8;
  --wood-bed: #F5F0E6;
  --ink: #2B2D30;
  --grey: #6B6F75;
  --teal: #1F8A86;
  --teal-ink: #17716E;
  --teal-pale: #E3F2F2;
  --gutter: 20px;
  --display: "Noto Sans Display", "Noto Sans", system-ui, sans-serif;
  --text: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--text); overflow-x: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: var(--teal-ink); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--ink); margin: 0; letter-spacing: -0.012em; }
h1 { font-size: clamp(31px, 8.4vw, 62px); line-height: 1.04; }
h2 { font-size: clamp(26px, 6.6vw, 42px); line-height: 1.08; }
h3 { font-size: 19px; line-height: 1.25; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Buttons: one kind, ink-teal, thumb height. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  padding: 0 24px; border: 0; border-radius: 8px; background: var(--teal-ink); color: #fff; font: 700 17px/1 var(--text);
  text-decoration: none; cursor: pointer; transition: background-color .15s ease, transform .15s ease; }
.button:hover { background: #125C59; }
.button:active { transform: translateY(1px); }
.button--wide { width: 100%; }

/* Header: brand and two links; not fixed. */
.top { border-bottom: 1px solid var(--wood); }
.top__in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none;
  font: 700 19px/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.brand em, .foot__brand em { font-style: normal; color: var(--teal); }
.mark { width: 28px; height: 28px; }
.top__nav { display: flex; gap: 18px; }
.top__nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; padding: 14px 0; }
.top__nav a:hover { color: var(--teal-ink); }

/* Hero: the headline, the film, the price and the way in. */
.hero { padding: 12px 0 28px; }
.hero__in { display: grid; gap: 12px; }
.hero__text { display: contents; }
.hero h1 { order: 1; max-width: 13em; }
.hl { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.5 C 40 4.5, 90 3.5, 198 6' fill='none' stroke='%231F8A86' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") left 100% / 100% .28em no-repeat; padding-bottom: .06em; }
.hero__film { order: 2; margin: 0 calc(-1 * var(--gutter)); }
.hero__buy { order: 3; display: grid; gap: 10px; }
.hero__sub { order: 4; color: var(--grey); font-size: 17px; }
.hero__price { font-size: 17px; }
.hero__price strong { font-family: var(--display); font-size: 21px; }

.film { position: relative; background: var(--wood-bed); aspect-ratio: 4 / 5; overflow: hidden; }
.film__video, .film__still { width: 100%; height: 100%; object-fit: cover; }
.film--still { display: grid; place-items: center; }
.film--still .film__still { object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.film__sound, .film__play { position: absolute; display: inline-flex; align-items: center; gap: 8px; border: 0;
  border-radius: 8px; background: var(--ink); color: #fff; font: 700 16px/1 var(--text); padding: 13px 16px; cursor: pointer; }
.film__sound { right: 12px; top: 12px; animation: nudge 2.4s ease-in-out 1.2s 3; }
.film__play { left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 16px 22px; font-size: 18px; }
.film__sound[hidden], .film__play[hidden] { display: none; }
@keyframes nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .film__sound { animation: none; } }

/* The interactive model. */
.spin { padding: 36px 0 40px; background: var(--wood-bed); border-top: 1px solid var(--wood); border-bottom: 1px solid var(--wood); }
.spin__in { display: grid; gap: 16px; }
.spin__text { display: grid; gap: 8px; }
.spin__text p { color: var(--grey); }
.spin__link a { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.preview { position: relative; aspect-ratio: 1 / 1; background: var(--paper); border: 1px solid var(--wood); border-radius: 10px;
  overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.preview:active { cursor: grabbing; }
.preview__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10%; transition: opacity .4s ease; }
.preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.preview.is-live .preview__poster { opacity: 0; pointer-events: none; }
.preview__hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 8px; pointer-events: none; transition: opacity .3s ease; white-space: nowrap; }
.preview.is-touched .preview__hint { opacity: 0; }
.preview__tools { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.preview__tools[hidden] { display: none; }
.preview__tools button { min-width: 44px; height: 44px; border: 1px solid var(--wood); border-radius: 8px; background: var(--paper);
  font-weight: 700; font-size: 18px; cursor: pointer; padding: 0 10px; }
.preview__tools button[data-reset] { font-size: 14px; }

/* Catalog. */
.plans { padding: 44px 0 40px; scroll-margin-top: 8px; }
.plans h2 { margin-bottom: 18px; }
/* The filters wrap rather than scroll: on a phone every category stays in sight. */
.tabs { display: flex; flex-wrap: wrap; gap: 2px 20px; margin: 0 0 20px; padding-bottom: 6px;
  border-bottom: 1px solid var(--wood); }
.tabs button { flex: none; border: 0; background: none; padding: 10px 0 7px; min-height: 44px; font-weight: 700;
  font-size: 15px; color: var(--grey); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--teal); }
.grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
.card[hidden] { display: none; }
.card__link { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.bed { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--wood-bed); border-radius: 8px; overflow: hidden; margin-bottom: 6px; }
.bed__img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; transition: transform .3s ease; }
.card__link:hover .bed__img { transform: scale(1.04); }
.card__name { font: 700 17px/1.2 var(--display); }
.card__meta { color: var(--grey); font-size: 14px; line-height: 1.35; }
.card__price { font-weight: 700; font-size: 16px; }

/* What you get. */
.get { padding: 44px 0 48px; border-top: 1px solid var(--wood); }
.get__in { display: grid; gap: 28px; }
.fan { list-style: none; position: relative; height: 0; padding-bottom: 96%; }
.fan__page { position: absolute; width: 50%; top: 0; box-shadow: 0 1px 2px rgba(43,45,48,.10), 0 6px 18px rgba(43,45,48,.10);
  background: var(--paper); border: 1px solid #EDE6DA; }
.fan__page--1 { left: 0; top: 9%; transform: rotate(-5deg); z-index: 1; }
.fan__page--2 { left: 13%; top: 0; width: 74%; z-index: 3; }
.fan__page--3 { left: 50%; top: 9%; transform: rotate(5deg); z-index: 2; }
.fan__img { width: 100%; height: auto; }
.get__text h2 { margin-bottom: 18px; }
.points { margin: 0; display: grid; gap: 16px; }
.points div { border-top: 1px solid var(--wood); padding-top: 12px; }
.points dt { font: 700 18px/1.3 var(--display); }
.points dd { margin: 2px 0 0; color: var(--grey); }

/* Membership and the address form. */
.member { padding: 44px 0 52px; background: var(--teal-pale); }
.member__in { display: grid; gap: 22px; }
.member__text { display: grid; gap: 10px; }
.notify { display: grid; gap: 12px; }
.notify__lead { font-size: 17px; }
.notify__row { display: grid; gap: 10px; }
.notify__email { width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid #B9AF9F; border-radius: 8px;
  font: 17px/1.2 var(--text); color: var(--ink); background: var(--paper); }
.notify__email:focus { border-color: var(--teal); outline: 3px solid rgba(31,138,134,.25); outline-offset: 0; }
.notify__fine { color: var(--grey); font-size: 13.5px; line-height: 1.45; }
.notify__error { color: #A23B1E; font-weight: 700; font-size: 15px; }
.notify__done { background: var(--paper); border-left: 4px solid var(--teal); padding: 14px 16px; font-size: 17px; }
.notify__done strong { display: block; font: 700 19px/1.3 var(--display); margin-bottom: 2px; }
.notify__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notify.is-done .notify__row, .notify.is-done .notify__fine, .notify.is-done .notify__lead { display: none; }

/* Plan page. */
.plan__top { padding-top: 14px; }
.crumb { display: none; font-size: 14px; color: var(--grey); margin-bottom: 12px; }
.crumb a { color: var(--grey); }
.plan__grid { display: grid; gap: 18px; }
.gallery { margin: 0 calc(-1 * var(--gutter)); min-width: 0; }
.gallery__strip { list-style: none; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  background: var(--wood-bed); }
.gallery__strip::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 3; }
.slide__open { display: grid; place-items: center; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; }
.slide__img { width: 100%; height: 100%; object-fit: contain; padding: 5%; mix-blend-mode: multiply; }
.slide--page .slide__img { padding: 5% 0; mix-blend-mode: normal; filter: drop-shadow(0 4px 10px rgba(43,45,48,.14)); }
.gallery__thumbs { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--gutter) 2px; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.thumb { width: 64px; height: 48px; border: 2px solid transparent; border-radius: 6px; padding: 2px; background: var(--wood-bed); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumb[aria-current="true"] { border-color: var(--teal); }
.plan__info { display: grid; gap: 14px; align-content: start; }
.plan__pitch { font-size: 19px; color: var(--grey); }
.buy { display: grid; gap: 12px; padding: 16px 0 18px; border-top: 1px solid var(--wood); border-bottom: 1px solid var(--wood); scroll-margin-top: 12px; }
.buy__price strong { font: 700 34px/1 var(--display); margin-right: 8px; }
.buy__price span { color: var(--grey); font-size: 15px; white-space: nowrap; }
.buy__soon { font-weight: 700; color: var(--teal-ink); font-size: 15px; margin-top: -4px; }
.inplan { padding: 2px 0 6px; }
.inplan__h { font-size: 21px; margin-bottom: 10px; }
.js .buy .notify:not(.is-open) { display: none; }
.facts { margin: 0; display: grid; }
.facts div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--wood); }
.facts div:first-child { border-top: 1px solid var(--wood); }
.facts dt { font-weight: 700; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; color: var(--grey); }
.facts dd { margin: 0; font-size: 16px; }
.facts__fine { display: block; color: var(--grey); font-size: 14px; margin-top: 4px; }
.plain { list-style: none; }
.plain--rules li { padding: 8px 0; border-bottom: 1px solid var(--wood); font-size: 16px; }
.plan .spin { margin-top: 36px; }
.inside { padding: 40px 0 8px; }
.inside__in { display: grid; gap: 28px; }
.inside h2 { font-size: 22px; margin-bottom: 8px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-size: 17px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .34em; width: 14px; height: 8px; border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }
.again { padding: 28px 0 44px; }
.again__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-block: 18px;
  border-top: 1px solid var(--wood); border-bottom: 1px solid var(--wood); }
.again__in p { font: 700 20px/1.3 var(--display); }
.again__in p span { color: var(--grey); margin-left: 8px; }
.plans--more { border-top: 1px solid var(--wood); }

/* Lightbox. */
.lb { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: var(--paper); }
.lb::backdrop { background: rgba(43,45,48,.6); }
.lb__strip { list-style: none; display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.lb__slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; padding: 64px 12px 24px; }
.lb__slide img { max-width: 100%; max-height: calc(100dvh - 96px); width: auto; height: auto; object-fit: contain; }
.lb__close { position: fixed; right: 12px; top: 12px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 8px;
  background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }

/* Legal and 404. */
.legal { max-width: 760px; padding-top: 28px; padding-bottom: 56px; }
.legal__stamp { font-size: 13px; font-weight: 700; color: var(--grey); letter-spacing: .04em; margin-bottom: 8px; }
.legal h1 { font-size: clamp(30px, 7vw, 44px); margin-bottom: 18px; }
.legal h2 { font-size: 22px; margin: 28px 0 10px; }
.legal p, .legal li { font-size: 16px; margin: 0 0 12px; overflow-wrap: anywhere; }
.legal ul { padding-left: 22px; }
.lost { padding-top: 56px; padding-bottom: 80px; display: grid; gap: 16px; justify-items: start; }

/* Footer. */
.foot { border-top: 1px solid var(--wood); padding: 26px 0 34px; font-size: 15px; color: var(--grey); }
.foot__in { display: grid; gap: 10px; }
.foot__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: 700 17px/1 var(--display); }
.foot__brand .mark { width: 22px; height: 22px; }
.foot__links { display: flex; gap: 18px; }
.foot a { color: var(--ink); }

/* Wider phones and tablets. */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .notify__row { grid-template-columns: 1fr auto; }
  .crumb { display: block; }
  .facts div { grid-template-columns: 8em 1fr; gap: 12px; }
  .facts dt { font-size: 14px; padding-top: 2px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
  .fan { padding-bottom: 70%; max-width: 640px; }
  .fan__page { width: 42%; }
  .fan__page--2 { left: 23%; width: 54%; }
  .fan__page--3 { left: 58%; }
  .gallery { margin: 0; }
  .gallery__thumbs { padding-left: 0; padding-right: 0; }
  .gallery__strip { border-radius: 10px; }
}

/* Desktop: text beside the film, gallery beside the facts. */
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  body { font-size: 18px; }
  .hero { padding: 48px 0 64px; }
  .hero__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
  .hero__text { display: grid; gap: 22px; align-content: center; }
  .hero h1 { order: 0; }
  .hero__sub { order: 0; font-size: 20px; }
  .hero__buy { order: 0; gap: 16px; }
  .hero__film { order: 0; margin: 0; }
  .button--wide { width: auto; }
  .film { aspect-ratio: 16 / 9; border-radius: 12px; }
  .spin { padding: 64px 0; }
  .spin__in { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: center; }
  .preview { aspect-ratio: 16 / 10; }
  .preview__hint { bottom: 20px; }
  .plans { padding: 72px 0 64px; }
  .plans h2 { margin-bottom: 24px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
  .get { padding: 72px 0; }
  .get__in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
  .member { padding: 72px 0; }
  .member__in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
  .plan__top { padding-top: 22px; }
  .plan__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
  .plan__info { position: sticky; top: 16px; }
  .plan__info h1 { font-size: 46px; }
  .slide { aspect-ratio: 4 / 3; }
  .plan .spin { margin-top: 64px; }
  .inside { padding-top: 64px; }
  .inside__in { grid-template-columns: 1fr 1fr; gap: 56px; }
  .foot__in { grid-template-columns: 1fr auto auto; align-items: center; gap: 32px; }
}
.preview.is-static .preview__hint { display: none; }
