/* Avant Vous — a letter of introduction, set on laid ivory paper. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("fonts/NotoNaskhArabic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("fonts/NotoSansArabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* The letter: laid ivory paper, engraved ink, bronze. */
  --sheet: #f7f2e8;
  --envelope: #ece2d0;
  --paper: #fffdf8;
  --ink: #1c1b19;
  --ink-soft: #5e584f;
  --bronze: #8c6a43;
  --bronze-text: #7a5b38;
  --hairline: #e1d6c3;

  --latin-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --display: var(--latin-display);
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arrive: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(20px, 6vw, 96px);
  --mcol: 0px;
  color-scheme: light;
}
:lang(ar) {
  /* The Arabic faces have no Latin letters: names such as "Avant Vous" or
     "iPhone" inside Arabic text fall to the brand's own Latin faces. */
  --display: "Noto Naskh Arabic", "Cormorant Garamond", "Geeza Pro", serif;
  --body: "Noto Sans Arabic", "Inter", "Geeza Pro", system-ui, sans-serif;
}
@media (min-width: 900px) {
  :root { --mcol: 10.5rem; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--bronze) var(--sheet);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  /* The page is the letter: laid ivory paper, its fine laid lines and
     wider chain lines pressed in, not printed. */
  background-color: var(--sheet);
  background-image:
    repeating-linear-gradient(0deg, rgba(122, 94, 58, 0.028) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(122, 94, 58, 0.05) 0 1px, transparent 1px 92px);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(140, 106, 67, 0.28); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 3px;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
/* No word left alone on a last line. */
p, li, dd { text-wrap: pretty; }

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -48px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--sheet);
  color: var(--ink);
  border-radius: 4px;
}
.skip:focus { top: 16px; }

/* The letter ---------------------------------------------------------- */

.sheet {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(20px, 4.5vw, 72px) var(--gutter) clamp(56px, 8vw, 120px);
}

/* Letterhead */

.letterhead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-bottom: clamp(14px, 1.8vw, 22px);
  border-bottom: 1px solid var(--bronze);
  box-shadow: 0 3px 0 -2px var(--sheet), 0 4px 0 -2px var(--bronze);
}
.lh-nav, .lh-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lh-lang { justify-content: flex-end; gap: 4px 14px; }
:lang(ar) .lh-nav, :lang(ar) .lh-lang { letter-spacing: 0; font-size: 0.875rem; }
.lh-nav a, .lh-lang a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.lh-nav a:hover, .lh-lang a:hover { color: var(--ink); border-bottom-color: var(--bronze); }
.lh-lang a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.lh-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}
.lh-name {
  font-family: var(--latin-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-inline-end: -0.34em;
}

/* The A·V mark, drawn like the app's own. */
.mark, .seal, .reply-mark { width: 52px; height: 52px; overflow: visible; }
.mark-ring { fill: none; stroke: var(--bronze); stroke-width: 1.56; }
.mark-inner { fill: none; stroke: var(--bronze); stroke-opacity: 0.45; stroke-width: 0.62; }
.mark-letters {
  font-family: var(--latin-display);
  font-weight: 500;
  font-size: 36px;
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: central;
  letter-spacing: 1px;
}
.mark-dot { fill: var(--bronze); }

.dateline {
  margin-top: clamp(16px, 2.2vw, 28px);
  text-align: end;
  font-family: var(--display);
  font-size: 1.125rem;
  color: var(--ink-soft);
  min-height: 1.6em;
}

/* Opening: the letter on the start side, the enclosure on the end side. */

.opening {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: 0;
}
.salutation {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem);
  line-height: 1.25;
  color: var(--ink-soft);
  margin-bottom: clamp(12px, 1.6vw, 18px);
}
h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.75rem, 1.3rem + 4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: clamp(20px, 2.6vw, 32px);
}
:lang(ar) h1 { line-height: 1.32; letter-spacing: 0; font-weight: 600; }
:lang(ar) .salutation { line-height: 1.7; }
.lede {
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  line-height: 1.62;
  max-width: 34em;
}

.reply-line {
  margin-top: clamp(28px, 3.5vw, 44px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* A quarter of the badge height clears every side, as both stores ask. */
  gap: 12px;
}
.badges a, .badges img { display: block; }
.badges a { border-radius: 9px; }
.badge-apple { height: 48px; width: auto; }
.badge-google { width: auto; }
.soon {
  flex-basis: 100%;
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-top: -6px;
}
.price { display: flex; align-items: center; gap: 16px; }
.price-terms { font-size: 0.875rem; color: var(--ink-soft); max-width: 15em; }

/* The price seal: engraved like the A·V ring, in the same bronze. */
.price-seal { display: block; flex: none; overflow: visible; }
.seal-opening { width: 96px; height: 96px; transform: rotate(-6deg); }
.seal-reply { width: 132px; height: 132px; margin-block: 6px 4px; }
.seal-ring { fill: none; stroke: var(--bronze); stroke-width: 1.4; }
.seal-reeds line { stroke: var(--bronze); stroke-opacity: 0.55; stroke-width: 0.7; }
.seal-inner { fill: none; stroke: var(--bronze); stroke-opacity: 0.5; stroke-width: 0.6; }
.seal-rule { stroke: var(--bronze); stroke-width: 0.6; }
.seal-amount, .seal-term { font-family: var(--display); text-anchor: middle; }
.seal-amount { font-weight: 600; fill: var(--ink); font-variant-numeric: lining-nums; }
.seal-term { fill: var(--bronze-text); }

/* The enclosure rising from its envelope. */
.opening-enclosure {
  position: relative;
  aspect-ratio: 5 / 6.4;
  margin-top: clamp(0px, 2vw, 24px);
  isolation: isolate;
}
.envelope {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  width: 100%;
  height: 52%;
  overflow: visible;
}
.envelope-back { z-index: 1; }
.envelope-front { z-index: 3; }
.env-flap { fill: var(--envelope); stroke: rgba(122, 94, 58, 0.3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.env-edge { stroke: rgba(122, 94, 58, 0.22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.env-side { fill: #e9dfcc; stroke: rgba(122, 94, 58, 0.26); stroke-width: 1; vector-effect: non-scaling-stroke; }
.env-side-b { fill: #e6dbc7; }
.env-bottom { fill: #efe6d6; stroke: rgba(122, 94, 58, 0.3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.opening-brief {
  position: absolute;
  z-index: 2;
  width: 82%;
  inset-inline-start: 9%;
  top: 0;
  background: var(--paper);
  border-radius: 2px;
  transform: rotate(-2.2deg);
  box-shadow: 0 1px 2px rgba(40, 28, 12, 0.2), 0 18px 36px -12px rgba(40, 28, 12, 0.35);
}
.opening-enclosure .opening-device {
  /* Resting on the envelope, below the brief's allergy panel. */
  position: absolute;
  z-index: 4;
  width: 27%;
  inset-inline-start: -7%;
  bottom: -11%;
  transform: rotate(-4deg);
}
:dir(rtl) .opening-enclosure .opening-device { transform: rotate(4deg); }

/* The phone ---------------------------------------------------------- */

.device {
  position: relative;
  padding: 3.2%;
  border-radius: 13% / 6%;
  background: linear-gradient(145deg, #3a3631, #121110 38%, #262320);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 2px 3px rgba(0, 0, 0, 0.3),
    0 24px 44px -14px rgba(30, 20, 8, 0.5);
}
.device-screen {
  position: relative;
  overflow: hidden;
  border-radius: 10.4% / 4.8%;
  background: var(--sheet);
}
.device-screen::before {
  /* The camera island. */
  content: "";
  position: absolute;
  top: 1.25%;
  left: 50%;
  width: 30%;
  height: 2.4%;
  translate: -50% 0;
  border-radius: 99px;
  background: #0c0b0a;
  z-index: 1;
}

/* The screenshot fills the screen, under the camera island. */
.device-screen img { width: 100%; height: auto; }

/* The letter's body -------------------------------------------------- */

.letter-body {
  margin-top: clamp(56px, 8vw, 112px);
  max-width: 38em;
  margin-inline-start: var(--mcol);
  display: grid;
  gap: 20px;
}
.letter-body p:last-child {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.25rem + 0.7vw, 1.9rem);
  line-height: 1.3;
}

/* Enclosures */

.enclosure {
  margin-top: clamp(88px, 12vw, 168px);
  scroll-margin-top: 24px;
}
.enclosure h2, .ps h2, .questions h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 1.35rem + 2.6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
:lang(ar) .enclosure h2, :lang(ar) .ps h2, :lang(ar) .questions h2 {
  line-height: 1.4;
  letter-spacing: 0;
  font-weight: 600;
}
.enc-head {
  display: grid;
  grid-template-columns: var(--mcol) minmax(0, 1fr);
  align-items: baseline;
}
.enc-mark {
  /* The enclosure's number, written in the margin beside its title. */
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--bronze-text);
}
:lang(ar) .enc-mark { font-size: 1.15rem; }
.enc-head h2 { max-width: 17em; }
@media (max-width: 899px) {
  .enc-head { display: block; }
  /* No label stuck to the heading on a phone: the title speaks alone. */
  .enc-mark { display: none; }
}
.enc-text {
  margin-top: clamp(18px, 2vw, 28px);
  margin-inline-start: var(--mcol);
  max-width: 36em;
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
}

/* Enclosure i: the brief and its addressee */

.addressed {
  margin-top: clamp(36px, 4vw, 52px);
  margin-inline-start: var(--mcol);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-text);
}
:lang(ar) .addressed { letter-spacing: 0; font-size: 0.875rem; }
.addressees {
  margin-top: 12px;
  margin-inline-start: var(--mcol);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
}
.addressees button {
  appearance: none;
  display: grid;
  gap: 2px;
  text-align: start;
  padding: 14px 16px 14px 0;
  padding-inline-end: 16px;
  padding-inline-start: 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: none;
  color: var(--ink-soft);
  font: inherit;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.addressees button:hover { color: var(--ink); }
.addressees button[aria-selected="true"] {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 13px;
}
.tab-team { font-weight: 600; font-size: 0.98rem; }
.tab-place { font-family: var(--display); font-size: 1.08rem; color: var(--ink-soft); }

.brief-stage {
  margin-top: clamp(36px, 4.5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "paper notes" "paper card";
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.paper img {
  background: var(--paper);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(40, 28, 12, 0.18), 0 22px 44px -16px rgba(40, 28, 12, 0.38);
}
.paper-brief { grid-area: paper; transform: rotate(-1deg); }
.margin-notes {
  grid-area: notes;
  list-style: none;
  padding: 0;
  counter-reset: note;
  display: grid;
  gap: 0;
  margin-top: 8%;
}
.margin-notes li {
  counter-increment: note;
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  font-size: 1rem;
  line-height: 1.5;
}
.margin-notes li::before {
  content: counter(note, lower-roman) ".";
}
:lang(ar) .margin-notes li::before { content: counter(note, arabic-indic); }
.margin-notes li::before {
  font-family: var(--latin-display);
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--bronze-text);
}
.paper-card {
  grid-area: card;
  width: 62%;
  justify-self: end;
  transform: rotate(2.2deg);
}
:dir(rtl) .paper-card { justify-self: start; transform: rotate(-2.2deg); }
:dir(rtl) .paper-card figcaption { transform: rotate(2.2deg); }
.paper-card figcaption {
  margin-top: 14px;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink-soft);
  transform: rotate(-2.2deg);
}

/* Enclosure ii: the family */

.family-stage {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3.5vw, 56px);
  align-items: start;
  padding-inline: clamp(0px, 3vw, 40px);
}
.family-stage .tilt-a { transform: rotate(-2.5deg) translateY(36px); }
.family-stage .lift { transform: translateY(-8px); z-index: 1; }
.family-stage .tilt-b { transform: rotate(2.5deg) translateY(52px); }
.index {
  margin-top: clamp(80px, 9vw, 120px);
  margin-inline-start: var(--mcol);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}
.index h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-text);
  margin-bottom: 10px;
}
:lang(ar) .index h3 { letter-spacing: 0; font-size: 0.875rem; }
.index ul {
  list-style: none;
  padding: 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.55rem);
  line-height: 1.5;
}
.index .index-pets { grid-column: 1 / -1; }
.index li { display: inline; white-space: nowrap; }
/* A section's name never breaks, and its dot stays with it: lines break
   only between entries. */
.index li:not(:last-child)::after { content: "\00a0·"; color: var(--bronze); }

/* Enclosure iii: two taps */

.steps {
  list-style: none;
  padding: 0;
  margin-top: clamp(24px, 3vw, 36px);
  margin-inline-start: var(--mcol);
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 44em;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  font-size: 1.0625rem;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--bronze);
  font-family: var(--latin-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--bronze-text);
}
.taps-stage {
  margin-top: clamp(40px, 5vw, 64px);
  margin-inline-start: var(--mcol);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 300px));
  gap: clamp(24px, 5vw, 80px);
}
.taps-stage .device:last-child { transform: translateY(48px); }

/* Enclosures iv and v */

.side-by-side {
  margin-inline-start: var(--mcol);
  margin-top: clamp(28px, 3.5vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.side-by-side.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
/* The same brief, in two other languages, laid one over the other. */
.fan { position: relative; padding-bottom: 18%; }
.fan .paper-fan { width: 78%; }
.fan .paper-fan:first-child { transform: rotate(-3deg); }
.fan .paper-fan:last-child {
  position: absolute;
  top: 16%;
  inset-inline-end: 0;
  transform: rotate(2.5deg);
}
.side-by-side .enc-text { margin-inline-start: 0; margin-top: 0; }
.side-by-side .device { transform: rotate(2deg); }
.side-by-side.flip .device { transform: rotate(-2deg); }
.lang-list {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-family: var(--latin-display);
  font-size: 1.45rem;
}
.lang-list a { text-decoration: none; color: var(--ink-soft); border-bottom: 1px solid var(--hairline); }
.lang-list a:hover { color: var(--ink); border-bottom-color: var(--bronze); }
.lang-list a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.lang-list a:lang(ar) { font-family: "Noto Naskh Arabic", serif; }

/* P.S. */

.ps {
  margin-top: clamp(104px, 13vw, 184px);
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--bronze);
  box-shadow: 0 -3px 0 -2px var(--sheet), 0 -4px 0 -2px var(--bronze);
  scroll-margin-top: 24px;
}
.ps h2 { max-width: 19em; }
.ps-mark { color: var(--bronze-text); font-weight: 600; }
.assurances {
  margin-top: clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 48px);
}
.assurance { border-top: 1px solid var(--hairline); padding-top: 18px; }
.assurance dt { font-weight: 600; font-size: 1.0625rem; margin-bottom: 6px; }
.assurance dd { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }

/* The full privacy policy, from the P.S. and every footer */

.ps-more { margin-top: 28px; }
.ps-more a { color: var(--bronze-text); font-family: var(--display); font-size: 1.25rem; }

.policy {
  margin-top: clamp(40px, 6vw, 80px);
  margin-inline-start: var(--mcol);
  max-width: 40em;
}
.policy h1 { margin-bottom: 10px; }
.policy-updated { color: var(--ink-soft); font-family: var(--display); font-size: 1.125rem; }
.policy .lede { margin-top: clamp(24px, 3vw, 36px); }
.policy h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.1rem);
  line-height: 1.15;
  margin: clamp(48px, 6vw, 72px) 0 14px;
  text-wrap: balance;
}
:lang(ar) .policy h2 { font-weight: 600; line-height: 1.5; }
.policy section p { margin-top: 12px; line-height: 1.7; }
.policy .assurances { grid-template-columns: 1fr; gap: 0; margin-top: 8px; }
.policy .assurance { padding-block: 16px; }
.policy a { color: var(--ink); }
.policy h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.15rem + 0.4vw, 1.55rem);
  line-height: 1.25;
  margin: 32px 0 6px;
}
:lang(ar) .policy h3 { font-weight: 600; line-height: 1.5; }
/* Support: a private line to the maker, then the answers. */
.support-eyebrow,
.desk h2,
.answers-index h2,
.desk-note h3 {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-text);
  line-height: 1.4;
}
:lang(ar) :is(.support-eyebrow, .desk h2, .answers-index h2, .desk-note h3) {
  letter-spacing: 0;
  font-size: 0.875rem;
}
.support-eyebrow { margin-bottom: 14px; }
.support h1 { margin-bottom: 0; }
.desk {
  margin-top: clamp(44px, 5.5vw, 68px);
  padding-top: clamp(24px, 2.6vw, 32px);
  border-top: 1px solid var(--bronze);
  box-shadow: 0 -3px 0 -2px var(--sheet), 0 -4px 0 -2px var(--bronze);
}
.desk h2 { margin: 0; }
.desk-mail {
  margin-top: 14px;
  font-family: var(--latin-display);
  font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.5rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.desk-mail a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.desk-mail a:hover { text-decoration-color: var(--bronze); }
.desk-notes {
  margin-top: clamp(28px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 48px);
}
.desk-note { border-top: 1px solid var(--hairline); padding-top: 16px; }
.desk-note h3 { margin: 0 0 10px; }
.desk-note ul { list-style: none; margin: 0; padding: 0; }
.desk-note li { padding-block: 5px; line-height: 1.5; }
.desk-never li { padding-inline-start: 1.1em; text-indent: -1.1em; }
.desk-never li::before { content: "—\00a0"; color: var(--bronze-text); }
.desk-never p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.answers-index { margin-top: clamp(56px, 7vw, 88px); }
.answers-index h2 { margin: 0; }
.answers-index ol {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
}
.answers-index a {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.1rem + 0.35vw, 1.4rem);
  color: var(--ink);
  text-decoration-color: var(--hairline);
  text-underline-offset: 0.2em;
}
.answers-index a:hover { text-decoration-color: var(--bronze); }
.answers { scroll-margin-top: 24px; }
.policy .answers h2 {
  margin-top: clamp(44px, 5.5vw, 64px);
  padding-top: clamp(22px, 2.4vw, 28px);
  border-top: 1px solid var(--hairline);
}
.answers a { color: var(--bronze-text); }
.support-privacy { margin-top: clamp(48px, 6vw, 72px); }
.support-privacy a { color: var(--bronze-text); }
/* The page for an address that doesn't exist. */
.not-found .nf-line { margin-top: 10px; font-family: var(--display); font-size: 1.25rem; color: var(--ink-soft); }
.not-found .nf-line:lang(ar) { font-family: "Noto Naskh Arabic", "Cormorant Garamond", serif; }
.nf-homes { list-style: none; padding: 0; margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.nf-homes a { color: var(--bronze-text); font-family: var(--latin-display); font-size: 1.2rem; }
.nf-homes li:lang(ar) a { font-family: "Noto Naskh Arabic", serif; }

/* Questions */

.questions { margin-top: clamp(88px, 11vw, 144px); }
.questions dl {
  margin-top: clamp(24px, 3vw, 40px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px clamp(32px, 5vw, 80px);
}
.qa { padding: 20px 0; border-top: 1px solid var(--hairline); }
.qa dt {
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.15rem + 0.4vw, 1.55rem);
  line-height: 1.25;
  margin-bottom: 8px;
}
.qa dd { color: var(--ink-soft); }

/* Sign-off */

.signoff {
  margin-top: clamp(88px, 11vw, 144px);
  margin-inline-start: auto;
  width: fit-content;
  min-width: min(100%, 22rem);
  display: grid;
  justify-items: start;
}
.closing { font-family: var(--display); font-size: 1.4rem; color: var(--ink-soft); }
.signature {
  font-family: var(--latin-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 2rem + 1.4vw, 3.4rem);
  line-height: 1.2;
  margin-top: 6px;
}
.seal { width: 84px; height: 84px; margin-top: 20px; transform: rotate(-8deg); }

/* The reply card, enclosed with the letter -------------------------- */

.reply-card {
  position: relative;
  max-width: 580px;
  margin: clamp(48px, 7vw, 96px) auto 0;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 5vw, 56px);
  /* Card stock, a shade brighter than the letter it rests on. */
  background: var(--paper);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 10px var(--paper),
    inset 0 0 0 11px var(--bronze),
    0 1px 2px rgba(40, 28, 12, 0.16),
    0 22px 44px -16px rgba(40, 28, 12, 0.34);
  transform: rotate(-1deg);
  scroll-margin-top: 32px;
}
.reply-mark { width: 64px; height: 64px; }
.reply-card .badges { transform: rotate(1deg); }
.reply-card h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.35rem + 0.7vw, 2rem);
  line-height: 1.2;
  margin-top: 10px;
  text-wrap: balance;
}
:lang(ar) .reply-card h2 { font-weight: 600; line-height: 1.5; }
.reply-card .badges { justify-content: center; }
.reply-card .soon { margin-top: 2px; }
.reply-terms { font-size: 0.875rem; color: var(--ink-soft); }

/* The foot of the page ---------------------------------------------- */

.page-foot {
  /* The rule spans the text column, like every other rule on the page. */
  width: min(calc(1240px - 2 * var(--gutter)), calc(100% - 2 * var(--gutter)));
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding: 28px 0 48px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.7;
  display: grid;
  gap: 10px;
}
.page-foot a { color: var(--ink); }
/* The privacy promise leads the foot, in ink, a step larger. */
.foot-privacy { color: var(--ink); font-size: 0.875rem; }
.foot-lang { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 12px; font-size: 0.875rem; }
.foot-lang a { text-decoration: none; color: var(--ink-soft); }
.foot-lang a[aria-current="true"], .foot-lang a:hover { color: var(--ink); }
.legal { font-size: 0.75rem; opacity: 0.85; }

/* Small screens ------------------------------------------------------ */

@media (max-width: 899px) {
  .letterhead { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .lh-nav { display: none; }
  /* The privacy page keeps its one link home. */
  .policy-sheet .lh-nav { display: flex; justify-content: center; }
  .lh-lang { justify-content: center; }
  .opening { grid-template-columns: 1fr; }
  .opening-text { text-align: start; }
  .opening-enclosure {
    width: min(100%, 460px);
    margin: clamp(32px, 8vw, 48px) auto clamp(24px, 6vw, 40px);
  }
  /* On a phone the phone rests inside the sheet, at the envelope's foot. */
  .opening-enclosure .opening-device { inset-inline-start: 0; bottom: 4%; width: 34%; }
  .addressees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brief-stage { grid-template-columns: 1fr; grid-template-areas: "paper" "notes" "card"; }
  .margin-notes { margin-top: 0; }
  /* Every phone in view: laid one under the other, alternating sides. */
  .family-stage { grid-template-columns: 1fr; gap: 36px; padding-inline: 0; }
  .family-stage .device { width: min(72%, 300px); }
  .family-stage .tilt-a { justify-self: start; transform: rotate(-2deg); }
  .family-stage .lift { justify-self: end; transform: rotate(1.5deg); }
  .family-stage .tilt-b { justify-self: start; transform: rotate(-1.5deg); }
  .index { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .taps-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .taps-stage .device:last-child { transform: translateY(32px); }
  .side-by-side { grid-template-columns: 1fr; justify-items: center; }
  .side-by-side .device { width: min(72%, 300px); }
  .side-by-side.flip { grid-template-columns: 1fr; }
  .fan { width: min(100%, 420px); }
  .side-by-side > :first-child { justify-self: stretch; }
  .assurances { grid-template-columns: 1fr; }
  .questions dl { grid-template-columns: 1fr; }
  .desk-notes { grid-template-columns: 1fr; }
  .signoff { margin-inline-start: 0; }
}
@media (max-width: 520px) {
  .reply-line { gap: 16px; }
  .addressees button { padding-inline-end: 10px; }
  .tab-place { font-size: 1rem; }
}

/* Motion: once, quiet, and only for those who want it ---------------- */

@media (prefers-reduced-motion: no-preference) {
  /* The brief lifts a little out of its envelope: a short rise that never
     brings the paper's foot below the envelope's. */
  .is-arriving .opening-brief { animation: rise 900ms var(--arrive) 200ms both; }
  .is-arriving .opening-device { animation: settle 900ms var(--arrive) 450ms both; }
  @keyframes rise {
    from { transform: translateY(5%) rotate(-1.4deg); }
    to { transform: translateY(0) rotate(-2.2deg); }
  }
  @keyframes settle {
    from { transform: translateY(4%) rotate(-5.5deg); }
    to { transform: translateY(0) rotate(-4deg); }
  }
  :dir(rtl) .is-arriving .opening-device { animation-name: settle-rtl; }
  @keyframes settle-rtl {
    from { transform: translateY(4%) rotate(5.5deg); }
    to { transform: translateY(0) rotate(4deg); }
  }
}
