/* The site's look (DESIGN.md): one Inter weight, hierarchy by size, violet on near-black, underlined links. Every colour,
   duration and curve is a token from tokens.css. The only motion is one entrance on the page body, inside the
   no-preference block at the end. No script is needed for anything on this site. */
@font-face {
  font-family: Inter;
  src: url(/fonts/inter-latin-500-normal.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 16px/1.55 var(--font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-weight: inherit;
}
a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
h1,
h2,
h3,
p,
dl,
dd,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.skip {
  position: absolute;
  left: 24px;
  top: -64px;
  z-index: 10;
  padding: 8px 16px;
  background: var(--raised);
  color: var(--ink);
}
.skip:focus {
  top: 8px;
}

/* header and footer */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  letter-spacing: -1px;
  text-decoration: none;
  color: var(--ink);
}
.mark svg {
  width: 28px;
  height: 28px;
  flex: none;
}
.mark .t {
  fill: var(--fill);
}
.mark .p {
  fill: var(--on-fill);
}
.mark .c {
  stroke: var(--fill);
  stroke-width: 2;
}
.mark b {
  font-weight: inherit;
  color: var(--accent);
}
.top nav,
.fgrid nav {
  display: flex;
  gap: 24px;
}
.fgrid nav {
  flex-wrap: wrap;
}
.top nav a,
.fgrid nav a {
  padding: 8px 0;
}
/* The current page is marked by more than colour: a thicker accent underline (49 row 31). */
.top nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
}
.top.has-acct {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0 24px;
}
.top.has-acct .mark {
  margin-right: auto;
}
.acct {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}
.who {
  min-width: 0;
  max-width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
.signout {
  margin: 0;
  flex: none;
}
.linkbtn {
  padding: 8px 0;
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.foot {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 48px 0 24px;
}
.fgrid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.fgrid p {
  margin-top: 8px;
  max-width: 36em;
  color: var(--muted);
}
.legal {
  margin-top: 32px;
  font-size: 14px;
  color: var(--subtle);
}

/* hero and plain pages */
.hero {
  padding: 64px 0 48px;
}
h1 {
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 18em;
}
.lead {
  margin-top: 24px;
  max-width: 36em;
  font-size: 20px;
  color: var(--muted);
}
.actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 40px;
  font: inherit;
  font-size: 18px;
  color: var(--on-fill);
  background: var(--fill);
  border: 1px solid var(--fill-outline);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--fill-hover);
}
.btn:active {
  background: var(--fill-press);
}
.btn.secondary {
  height: auto;
  min-height: 48px;
  padding: 0 24px;
  font-size: 16px;
  border-color: var(--input-line);
  background: transparent;
  color: var(--ink);
}
.btn.secondary:hover {
  border-color: var(--ink);
  background: var(--raised);
}
.note {
  margin-top: 24px;
  max-width: 44em;
  font-size: 14px;
  color: var(--subtle);
}
.note a,
.lead a {
  color: var(--accent-soft);
}
/* The facts under the hero's buttons read at body size; other notes stay at 14px. */
.hero .note {
  font-size: 16px;
}
/* Said only on a phone, where YouEdit cannot be installed. */
.only-phone {
  display: none;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 16px;
  font-size: 14px;
  color: var(--subtle);
}
.page {
  padding: 48px 0 0;
}
.page h1 {
  font-size: clamp(32px, 4.2vw, 56px);
}
.page .lead {
  margin-bottom: 8px;
}

/* sections of words */
.sec {
  margin-top: 64px;
  max-width: 46em;
}
.sec h2,
.faq h2,
.more h2 {
  position: relative;
  padding-top: 20px;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
}
.sec h2::before,
.faq h2::before,
.more h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 2px;
  background: var(--accent);
}
.sec p,
.sec ul,
.sec ol {
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted);
}
.sec ul:not([class]) li,
.sec ol li {
  margin-top: 12px;
}
.sec ul:not([class]) li {
  padding-left: 20px;
  position: relative;
}
.sec ul:not([class]) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 2px;
  background: var(--accent);
}
.sec a,
.faq a {
  color: var(--accent-soft);
}
.sec h3 {
  margin-top: 24px;
  font-size: 20px;
}
code {
  font: inherit;
  font-size: 14px;
  word-break: break-all;
  color: var(--subtle);
}
.small {
  font-size: 14px;
  color: var(--subtle);
}
/* Steps show their number (49 row 32): a CSS counter, since the list has no marker; role="list" in the HTML keeps the list
   a list for Safari's screen reader. */
.steps {
  counter-reset: step;
}
.steps li {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.steps li strong {
  font-weight: inherit;
  color: var(--ink);
  font-size: 20px;
}
.steps li strong::before {
  content: counter(step) ". ";
  color: var(--accent);
}
.band {
  margin-top: 64px;
  padding: 48px 0;
  background: var(--band);
  border-block: 1px solid var(--band-line);
}
.band .sec:first-child {
  margin-top: 0;
}
.faq {
  margin-top: 64px;
  max-width: 46em;
}
details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
details:last-of-type {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-size: 18px;
}
details p {
  margin-top: 12px;
  color: var(--muted);
}
.more {
  margin-top: 64px;
}
.more ul {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

/* pictures (server/shots.mjs): a 1px frame on the surface colour, no shadow, no device drawn round them, no words over them */
.shot {
  margin: 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.shot figcaption {
  margin-top: 12px;
  max-width: 46rem;
  font-size: 14px;
  color: var(--muted);
}
.hero .shot {
  margin-top: 48px;
}
.shot.tall {
  max-width: 272px;
}
.set {
  display: grid;
  gap: 16px;
  align-items: start;
}
/* The pair: the 16:9 frame and the 9:16 Short, columns in the ratio of their aspects so both stand the same height. */
.pair .set {
  grid-template-columns: minmax(0, 256fr) minmax(0, 81fr);
}
.label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--subtle);
}
.trio .set {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero .trio {
  max-width: 720px;
}
.strip .set {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
.sec.has-shot {
  max-width: none;
}
.sec.has-shot > h2,
.sec.has-shot > p,
.sec.has-shot > ul {
  max-width: 46rem;
}
/* A single picture under a section's words keeps the words' 46rem column (SIZES.column in server/pages.mjs: 736px); the seven
   layouts use the whole column, and a 9:16 picture stays 272px wide (SIZES.tall). */
.sec.has-shot > .shot {
  max-width: 46rem;
}
.sec.has-shot > .shot.strip {
  max-width: none;
}
.sec.has-shot > .shot.tall {
  max-width: 272px;
}
.sec .shot {
  margin-top: 32px;
}

/* a row: the words in 5fr, the picture in 7fr (2k18.cloud's band split), one column on a phone */
.row {
  margin-top: 96px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}
.row > .sec {
  margin-top: 0;
}
.row > .shot {
  margin-top: 8px;
}

/* ruled lists: the package folder, the two columns of what stays on the computer, the price rows */
.ruled,
.tree,
.prices {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.ruled li,
.tree li,
.prices li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.tree li {
  display: grid;
  grid-template-columns: minmax(0, 8em) minmax(0, 1fr);
  gap: 4px 24px;
}
.tree strong,
.prices strong {
  font-weight: inherit;
  color: var(--ink);
}
.sec.wide {
  max-width: none;
}
.sec.wide > h2,
.sec.wide > p {
  max-width: 46rem;
}
.cols {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}
.cols h3 {
  margin-top: 24px;
}
.cols .ruled {
  margin-top: 12px;
}
.sec .cols li,
.sec .prices li {
  margin-top: 0;
}
.prices li {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 2.4fr) minmax(0, 3.6fr);
  gap: 4px 16px;
  align-items: baseline;
}

/* the closing row: one sentence and the quiet download, after everything else */
.close {
  margin-top: 96px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.close p {
  flex: 1 1 18em;
  font-size: 20px;
}
.close a:not(.btn) {
  color: var(--accent-soft);
}

/* plans */
.plans {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.plan {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.plan h2 {
  font-size: 20px;
  color: var(--muted);
}
.plan .price {
  font-size: 32px;
  letter-spacing: -0.02em;
}
.plan .small {
  font-size: 14px;
  color: var(--subtle);
}
.plan .btn {
  margin-top: 8px;
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
}

/* kits */
.kits {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.kits li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.kits a {
  font-size: 20px;
}
.kits p {
  color: var(--muted);
}
.kits .small {
  margin-top: 4px;
}
.facts {
  margin-top: 24px;
  display: grid;
  gap: 8px;
  font-size: 16px;
  color: var(--muted);
}
.facts dt {
  font-size: 14px;
  color: var(--subtle);
}

@media (max-width: 760px) {
  .top {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .top nav {
    gap: 16px;
    flex-wrap: wrap;
  }
  .top.has-acct .acct {
    flex-basis: 100%;
  }
  .hero {
    padding-top: 40px;
  }
  .btn {
    padding: 0 24px;
  }
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .kits li {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot {
    margin-top: 64px;
  }
  .only-phone {
    display: block;
  }
  .row {
    margin-top: 64px;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .row > .shot {
    margin-top: 0;
  }
  .set {
    gap: 8px;
  }
  /* The pair stacks on a phone: the frame across the column, then the Short at 220px (SIZES_PAIR in server/pages.mjs), so its
     caption and hook still read and its label keeps to a line or two. */
  .pair .set {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .pair .set > :last-child {
    max-width: 220px;
  }
  .strip .set {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .tree li {
    grid-template-columns: minmax(0, 1fr);
  }
  .prices li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .prices li > :nth-child(n + 3) {
    grid-column: 1 / -1;
    font-size: 14px;
  }
  .close {
    margin-top: 64px;
  }
  .band {
    padding: 32px 0;
  }
}

/* Phones under 420px: 16px gutters and a tighter nav, so the signed-out header is one row at 375 and 390 (two at 320). */
@media (max-width: 420px) {
  .wrap {
    padding: 0 16px;
  }
  .top {
    padding: 12px 16px;
  }
  .top nav {
    gap: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  main {
    animation: enter var(--d2) var(--ease) 1;
  }
  .btn {
    transition: background var(--d1) var(--ease), border-color var(--d1) var(--ease);
  }
  /* Transform only, no fade: the first picture paints at once. */
  @keyframes enter {
    from {
      transform: translateY(12px);
    }
    to {
      transform: none;
    }
  }
}
