/*
 * getcopyshop.com
 *
 * Built from caelan.works so it reads as part of the same family:
 * Archivo (its width axis on the name and headings), a warm near-black that
 * flips to paper in light mode, thin rules between sections, and the faint
 * grain over everything, which suits a grain app more than most.
 *
 * The photos carry the colour. The one accent is the amber of the app icon's
 * streak, used on the main button and nowhere else on the page.
 */

:root,
[data-theme="dark"] {
  --bg: #0e0e0d;
  --surface: #181816;
  --text: #ecebe5;
  --muted: #8e8d86;
  --line: rgba(236, 235, 229, 0.1);
  --line-strong: rgba(236, 235, 229, 0.22);
  --accent: #e3b469;
  --on-accent: #17130c;
  --grain: 0.05;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f3f2ee;
  --surface: #e7e6e1;
  --text: #171715;
  --muted: #64635d;
  --line: rgba(23, 23, 21, 0.12);
  --line-strong: rgba(23, 23, 21, 0.28);
  --accent: #e0a94f;
  --on-accent: #17130c;
  --grain: 0.035;
  color-scheme: light;
}

:root {
  --font: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --wrap: 82rem;
  --gutter: 1.5rem;
  --radius: 6px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, p, dl, dd, dt, figure {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 500;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 150ms ease, color 150ms ease;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

.skip-link {
  position: absolute;
  z-index: 10;
  left: var(--gutter);
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--text);
  color: var(--bg);
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* ── Header ── */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  text-decoration: none;
}

.brand img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 23%;
}

.header nav {
  display: flex;
  gap: 1.5rem;
}

.header nav a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.75rem;
}

.header nav a:hover {
  color: var(--text);
}

/* ── Buttons ── */

/* Square-ish, like the app's own controls. Only the browser link is filled,
   since it's free and the one most people should press first. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.button:hover {
  border-color: var(--text);
}

.button--main {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.button--main:hover {
  border-color: var(--text);
}

/* ── Intro ── */

.intro {
  padding-block: 5rem 3.5rem;
}

.intro__name {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-stretch: 112%;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.intro__name img {
  width: 0.8em;
  height: 0.8em;
  border-radius: 23%;
  box-shadow: 0 0 0 1px var(--line);
}

.intro__line {
  max-width: 34rem;
  margin-top: 1.75rem;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.intro__more {
  max-width: 34rem;
  margin-top: 1rem;
  color: var(--muted);
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
}

.intro__actions .quiet {
  color: var(--muted);
  padding-block: 0.75rem;
}

.intro__actions .quiet:hover {
  color: var(--text);
}

/* ── Sections ── */

.section {
  margin-top: 6rem;
}

.section__title {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.section__head .section__title {
  margin: 0;
  padding: 0;
  border: 0;
}

/* ── Photos ── */

/* Two even rows of five: the edits are mostly 3:4, and the one landscape
   photo takes two columns, so both rows end flush and nothing is left over. */
.strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.strip li {
  min-width: 0;
}

.strip .wide {
  grid-column: span 2;
}

.strip .wide .photo {
  height: 100%;
}

.strip .wide .photo img:first-child {
  position: absolute;
  inset: 0;
  height: 100%;
}

/* Holding a photo shows the photo it was made from: the most direct way to
   show what the app does without writing about it. */
.photo {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: box-shadow 200ms ease;
}

.photo:hover {
  box-shadow: 0 0 0 1px var(--muted);
}

.photo img {
  width: 100%;
  aspect-ratio: var(--r);
  object-fit: cover;
  pointer-events: none;
}

.photo .original {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
  opacity: 0;
  transition: opacity 120ms ease;
}

.photo__label {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(14, 14, 13, 0.72);
  color: #ecebe5;
  font-size: 0.8125rem;
  opacity: 0;
  transition: opacity 120ms ease;
}

.photo.is-showing .original,
.photo.is-showing .photo__label {
  opacity: 1;
}

/* ── What's in it ── */

.contents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
}

.contents div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--line);
}

.contents dt {
  font-stretch: 105%;
}

.contents dd {
  color: var(--muted);
}

.contents-note {
  margin-top: 1.25rem;
  color: var(--muted);
}

/* Read out, not shown. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── What it does ── */

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}

.features li {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.features svg {
  margin-bottom: 0.35rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.features h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  font-size: 1.125rem;
  font-weight: 500;
  font-stretch: 105%;
}

.features__tag {
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
  font-stretch: 100%;
}

.features p {
  max-width: 24rem;
  color: var(--muted);
}

/* The end of the home page: one more way in, after the table. */
.closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: 3.5rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.closing p {
  max-width: 30rem;
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.closing .intro__actions {
  margin-top: 0;
}

/* The name, cut through at the bottom of every page: only its top shows. */
.footer__mark {
  --mark: calc((min(100vw, var(--wrap)) - 2 * var(--gutter)) / 4.75);
  flex-basis: 100%;
  /* A box a whole word tall that ends at the page's end, reaching up behind
     the links: the word rests in its lower half, cut by the page's edge, and
     has room above to rise. Only the word itself takes the pointer. */
  position: relative;
  height: var(--mark);
  margin-top: calc(1.75rem - var(--mark) * 0.5);
  overflow: hidden;
  pointer-events: none;
  color: var(--text);
  font-size: var(--mark);
  font-weight: 500;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.045em;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.footer__mark span {
  display: block;
  margin-top: calc(var(--mark) * 0.5 - 0.06em);
  -webkit-touch-callout: none;
  transition: transform 520ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* What lifts it: a strip low in the half word that stays put while the word
   moves, so leaving it upward lets the word sink again. */
.footer__lift {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--mark) * 0.28);
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.footer__lift input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* With a mouse or trackpad: while pointed at. On a touch screen: a tap
   lifts it, another lets it down. */
@media (hover: hover) {
  .footer__mark:has(.footer__lift:hover) span {
    transform: translateY(-0.5em);
  }
}

@media (hover: none) {
  .footer__mark:has(input:checked) span {
    transform: translateY(-0.5em);
  }
}

/* The links step aside while the name is up. */
.footer > ul,
.footer__end {
  transition: opacity 300ms ease;
}

@media (hover: hover) {
  .footer:has(.footer__lift:hover) > ul,
  .footer:has(.footer__lift:hover) .footer__end {
    opacity: 0;
  }
}

@media (hover: none) {
  .footer:has(.footer__mark input:checked) > ul,
  .footer:has(.footer__mark input:checked) .footer__end {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer__mark span,
  .footer > ul,
  .footer__end {
    transition: none;
  }
}






@media (max-width: 64rem) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }


  .closing {
    padding: 1.5rem;
  }
}

/* ── Download page ── */

.page-head {
  padding-block: 4rem 2.5rem;
}

.page-title {
  font-size: clamp(3rem, 9vw, 7rem);
  font-stretch: 112%;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.page-head .intro__line {
  margin-top: 1.5rem;
}

/* One row per system; this computer's first, with the main button. */
.downloads {
  border-top: 1px solid var(--line);
}

.downloads li {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.downloads h2 {
  font-size: 1.25rem;
  font-weight: 500;
  font-stretch: 105%;
}

.downloads p {
  color: var(--muted);
}

.downloads__files {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
}

/* The Buy page: the price and button, then the two ways back in for people who have bought. */
.buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.buy__price {
  font-size: 2rem;
  font-weight: 500;
  font-stretch: 105%;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.buy__price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
}

/* Clearly links: underlined, with an arrow that moves a little on hover. */
.buy__links {
  display: grid;
  justify-items: start;
  gap: 0.35rem;
  margin-top: 2rem;
}

.buy__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.4rem;
  color: var(--text);
  text-decoration: none;
}

.buy__links span {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 160ms ease;
}

.buy__links span::after {
  content: "→";
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--muted);
  transition: transform 160ms ease, color 160ms ease;
}

.buy__links a:hover span {
  text-decoration-color: currentColor;
}

.buy__links a:hover span::after {
  color: var(--text);
  transform: translateX(3px);
}

.buy__links svg {
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .buy__links span::after {
    transition: none;
  }
}

/* The Desktop app page's top: the icon, the price, and three edits fanned out. */
.buy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  padding-block: 4rem 2rem;
}

.buy-hero__icon {
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1.75rem;
  border-radius: 23%;
  box-shadow: 0 0 0 1px var(--line), 0 18px 50px rgba(227, 180, 105, 0.18);
}

.buy-hero .page-title {
  font-size: clamp(2.75rem, 6vw, 5.25rem);
}

.buy-hero .intro__line {
  margin-top: 1rem;
}

@media (max-width: 48rem) {
  .buy-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding-top: 2.5rem;
  }

  .buy-hero__fan {
    order: -1;
    justify-self: center;
    max-width: 20rem;
    aspect-ratio: 4 / 3;
  }
}

.buy-hero__fan {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 34rem;
  width: 100%;
  justify-self: end;
}

.buy-hero__fan img {
  position: absolute;
  top: 8%;
  left: 27%;
  width: 46%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.45);
  transform-origin: 50% 100%;
  transition: transform 300ms ease;
}

.buy-hero__fan img:nth-child(1) {
  transform: translateX(-40%) rotate(-9deg);
}

.buy-hero__fan img:nth-child(2) {
  z-index: 1;
  transform: translateY(-3%);
}

.buy-hero__fan img:nth-child(3) {
  transform: translateX(40%) rotate(9deg);
}

.buy-hero__fan:hover img:nth-child(1) {
  transform: translateX(-48%) rotate(-12deg);
}

.buy-hero__fan:hover img:nth-child(3) {
  transform: translateX(48%) rotate(12deg);
}

@media (prefers-reduced-motion: reduce) {
  .buy-hero__fan img {
    transition: none;
  }
}

/* Sections land a little below the top of the window when linked to. */
section[id] {
  scroll-margin-top: 2rem;
}

.terms {
  display: grid;
  gap: 0.5rem;
  max-width: 44rem;
  color: var(--muted);
}

.terms li {
  padding-left: 1.1rem;
  text-indent: -1.1rem;
}

.terms li::before {
  content: "–";
  display: inline-block;
  width: 1.1rem;
  text-indent: 0;
  color: var(--accent);
}

@media (max-width: 48rem) {
  .downloads li {
    grid-template-columns: minmax(0, 1fr);
  }

  .downloads__files {
    justify-content: flex-start;
  }

}

/* ── Browser or desktop ── */

/* A plain table, like a spec sheet: what each version does, row by row. */
.compare-wrap {
  overflow-x: auto;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.compare th,
.compare td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.compare thead th {
  padding-bottom: 1rem;
  border-bottom-color: var(--line-strong);
  font-size: 1.125rem;
  font-weight: 500;
  font-stretch: 105%;
}

.compare thead th:not(:first-child) {
  width: 14rem;
}

.compare thead .price {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  font-stretch: 100%;
}

.compare tbody th {
  padding-right: 2rem;
}

.compare .group th {
  padding-top: 1.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.compare tr > :not(:first-child) {
  padding-left: 1rem;
}

.compare .yes {
  color: var(--accent);
}

.compare .no,
.compare .say {
  color: var(--muted);
}

.compare tfoot td {
  padding-top: 1.25rem;
  border-bottom: 0;
}

.compare-notes {
  display: grid;
  gap: 0.5rem;
  max-width: 44rem;
  margin-top: 1.5rem;
  color: var(--muted);
}

.ways-after {
  margin-top: 1.25rem;
  color: var(--muted);
}

/* ── The name, showing each effect (hero.js) ── */

/* The first screen: the canvas sits behind the header and this section, so a
   recipe colours all of it. */
body {
  position: relative;
}

.show__canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100svh;
  pointer-events: none;
}

.header,
main {
  position: relative;
}

/* Their colours can follow the recipe on the name (hero.js sets them here). */
.header,
.show {
  color: var(--text);
}

.show {
  /* As big as fits the page width: the name is about 4.65 times its size wide. */
  --name: min(24vw, calc((min(100vw, var(--wrap)) - 2 * var(--gutter)) / 4.75));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100svh - 4.5rem);
  padding-bottom: clamp(3.5rem, 9vh, 5.5rem);
}

.show > .wrap {
  width: 100%;
}

/* Three characters, not eight: as big as the screen's height allows. */
.show--404 {
  --name: min(38vw, 40svh, 24rem);
}

.show .intro__name {
  font-size: var(--name);
  line-height: 1;
}

/* Drawn into the canvas; the h1 stays for reading and selecting. */
.show.is-live .intro__name {
  color: transparent;
}

.show .show__intro {
  padding-block: clamp(1.25rem, 3vh, 2rem) 0;
}

.show__intro.is-live [data-fx] {
  color: var(--muted);
  cursor: pointer;
  border-radius: 2px;
  text-decoration: underline dotted;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.2em;
  transition: color 120ms ease;
}

/* The effect showing: full colour and a solid accent underline; the rest dimmed. */
.show__intro.is-live [data-fx].is-on {
  color: var(--text);
  text-decoration-style: solid;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* All of them on together (the end of the show): lit, without singling one out. */
.show__intro.is-live.all-on [data-fx].is-on {
  text-decoration-style: dotted;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: auto;
}

.show__intro.is-live [data-fx]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Note ── */

.note {
  display: grid;
  grid-template-columns: 22rem minmax(0, 40rem);
  gap: 1.5rem;
}

.note p + p {
  margin-top: 1rem;
}

/* ── Footer ── */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 7rem;
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.footer a {
  display: inline-block;
  padding-block: 0.6rem;
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

.footer__end {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-toggle {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--text);
}

/* ── Placeholders ──
   Same convention as the Reader site: anything still to write shows as an
   amber dashed box when the page is opened locally, and not on the real site. */

.draft [data-todo] {
  outline: 1.5px dashed #d9a441;
  outline-offset: 4px;
  position: relative;
  margin-top: 2rem;
}

.draft [data-todo]::before {
  content: attr(data-todo);
  position: absolute;
  top: -1.6rem;
  left: 0;
  padding: 0 0.35rem;
  background: #d9a441;
  color: #17130c;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Online, a section still waiting for its words isn't shown at all. */
html:not(.draft) .section:has([data-todo]) {
  display: none;
}

/* ── Narrow screens ── */

@media (max-width: 64rem) {
  .note {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 48rem) {
  :root {
    --gutter: 1rem;
  }

  .header nav {
    gap: 1rem;
  }

  .intro {
    padding-block: 3rem 2.5rem;
  }

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

  .contents div {
    grid-template-columns: 1fr;
    gap: 0.125rem;
  }

  /* Fixed columns, so the two versions keep their width and the feature wraps. */
  .compare {
    table-layout: fixed;
  }

  .compare thead th:not(:first-child) {
    width: 6rem;
    font-size: 1rem;
  }

  .compare thead .price {
    font-size: 0.875rem;
  }

  .compare tbody th {
    padding-right: 1rem;
  }

  .compare tfoot tr {
    display: grid;
    gap: 0.5rem;
  }

  .compare tfoot td {
    padding: 0;
  }

  .compare tfoot td:first-child {
    display: none;
  }

  .compare tfoot td:nth-child(2) {
    padding-top: 1.25rem;
  }

  .compare tfoot .button {
    width: 100%;
  }

  .strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Alone on its row here, so it takes its own shape instead of the row's. */
  .strip .wide .photo {
    height: auto;
  }

  .strip .wide .photo img:first-child {
    position: static;
  }
}

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

  * {
    transition: none !important;
  }
}

/* The page ends through the middle of the name; the links sit lower, nearer it. */
.footer:has(.footer__mark) {
  padding-top: 4rem;
  padding-bottom: 0;
}

/* ── On a phone: send the link to a computer ── */

/* The app is made for a computer. On a phone (a touch screen, narrow, or short
   when turned sideways), "Open in your browser" gives way to the form that
   sends the link there (components/SendLink.astro). */
.for-phone {
  display: none;
}

@media (pointer: coarse) and (max-width: 47.99rem), (pointer: coarse) and (max-height: 29.99rem) {
  .for-phone {
    display: block;
  }

  .for-computer {
    display: none;
  }
}

.send-link {
  max-width: 34rem;
  margin-top: 2rem;
}

.send-link__lead {
  margin-bottom: 1rem;
}

.send-link__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.send-link__row input {
  flex: 1 1 12rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  /* 16px or more, so iOS doesn't zoom in on focus. */
  font-size: max(1rem, 16px);
}

.send-link__row input::placeholder {
  color: var(--muted);
}

.send-link__row input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}

.send-link__row .button {
  flex: 1 0 auto;
}

.send-link__row .button:disabled {
  opacity: 0.6;
}

.send-link__check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  margin-top: 0.25rem;
  color: var(--muted);
}

.send-link__check input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--accent);
}

.send-link__status:empty {
  display: none;
}

.send-link__status {
  margin-top: 0.5rem;
}

.send-link__status.is-bad {
  color: #e2846a;
}

[data-theme="light"] .send-link__status.is-bad {
  color: #b14a2e;
}
