/* Survey sheets: plaster paper, graphite walls, vermilion headline accent,
   dimension lines with end ticks and small colour squares. No shadows, no gradients. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque_800ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/Figtree_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/Figtree_500Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/Figtree_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/Figtree_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #e9eff1;
  --white: #ffffff;
  --ink: #1d2930;
  --ink-2: #4c5d66;
  --line: #9fb0b8;
  --hair: #cfd9dd;
  --red: #d43d1c;
  --mint: #a6e0c9;
  --butter: #f6dc83;
  --wall: 3px;
  --wrap: 1320px;
  --pad: clamp(16px, 3.4vw, 44px);
  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Figtree", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

/* ---------- Type ---------- */

.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 0.98;
  text-wrap: balance;
}
.display em {
  display: block;
  font-style: normal;
  color: var(--red);
}
.display--xl {
  font-size: clamp(2.7rem, 8vw, 7rem);
  line-height: 0.93;
}
.display--l {
  font-size: clamp(2.2rem, 5vw, 4rem);
}
.display--m {
  font-size: clamp(1.85rem, 3.1vw, 2.7rem);
  line-height: 1.02;
}

.lead {
  font-size: clamp(1.09rem, 1.45vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 500;
  max-width: 38em;
}

/* Dimension line: a label, then a ruled measure with end ticks. */
.dim {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.2;
}
.dim > span {
  flex: none;
}
.dim::after,
.dim--both::before {
  content: "";
  flex: 1 1 24px;
  min-width: 24px;
  height: 11px;
  border-inline: 1.5px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}
.dim--light {
  color: #b9c7cd;
}

/* Small colour square: one belonging on the plan. */
.sq {
  display: inline-block;
  flex: none;
  width: 0.72em;
  height: 0.72em;
  border-radius: 2px;
  background: var(--ink);
}
.sq--red {
  background: var(--red);
}
.sq--mint {
  background: var(--mint);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.sq--butter {
  background: var(--butter);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: var(--red);
}
.textlink:hover {
  text-decoration-color: currentColor;
}
.textlink--light:focus-visible {
  outline-color: var(--butter);
}

/* ---------- Header: a title block strip ---------- */

.top {
  padding: clamp(12px, 2vw, 24px) var(--pad) 0;
}
.top__bar {
  display: flex;
  align-items: stretch;
  max-width: var(--wrap);
  margin: 0 auto;
  background: var(--white);
  border: var(--wall) solid var(--ink);
}
.top__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px 8px 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-decoration: none;
  margin-right: auto;
}
.top__nav {
  display: flex;
}
.top__nav a {
  display: flex;
  align-items: center;
  padding: 0 clamp(12px, 1.6vw, 22px);
  min-height: 56px;
  border-left: 1.5px solid var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
}
.top__nav a:hover {
  background: var(--paper);
}
.top__nav a[aria-current="page"] {
  box-shadow: inset 0 -5px 0 var(--red);
}
.top__store {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  border-left: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.top__store i {
  width: 10px;
  height: 10px;
  background: var(--butter);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.top__store--live {
  background: var(--red);
  color: var(--white);
}
.top__store--live:hover {
  background: var(--ink);
}

/* ---------- Call to action ---------- */

.cta {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 26px;
  border: var(--wall) solid var(--ink);
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.08rem;
  text-decoration: none;
}
.cta__btn--live {
  background: var(--red);
  color: var(--white);
}
.cta__btn--live:hover {
  background: var(--ink);
}
.cta__btn--pending {
  background: var(--white);
  color: var(--ink);
  border-style: dashed;
  border-width: 2px;
  cursor: default;
}
.cta__btn--pending i {
  width: 12px;
  height: 12px;
  background: var(--butter);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.cta__note {
  font-size: 0.92rem;
  color: var(--ink-2);
  max-width: 30em;
}

/* ---------- Screens: real captures standing on a sheet edge ---------- */

.shot {
  position: relative;
  width: 100%;
}
.shot--marked {
  padding-left: 40px;
}
.shot__frame {
  overflow: hidden;
  border: var(--wall) solid var(--ink);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: var(--paper);
}
.shot__frame img {
  width: 100%;
  height: auto;
}
.shot__mark {
  position: absolute;
  left: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}
.shot__mark::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

/* ---------- Hero ---------- */

.hero,
.set,
.get {
  padding: clamp(16px, 2vw, 24px) var(--pad) 0;
}
.hero__sheet {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(22px, 3.6vw, 52px) clamp(18px, 3.6vw, 52px) 0;
  border: 6px solid var(--ink);
  overflow: hidden;
}
/* Door swing in the corner of the sheet, with one belonging. */
.hero__sheet::before,
.sheet::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: var(--arc, 150px);
  height: var(--arc, 150px);
  border: 2px solid var(--line);
  border-top: 0;
  border-right: 0;
  border-bottom-left-radius: 100%;
  pointer-events: none;
}
.hero__sheet::after,
.sheet::after {
  content: "";
  position: absolute;
  top: calc(var(--arc, 150px) * 0.2);
  right: calc(var(--arc, 150px) * 0.2);
  width: calc(var(--arc, 150px) * 0.17);
  height: calc(var(--arc, 150px) * 0.17);
  border-radius: 3px;
  background: var(--red);
  pointer-events: none;
}
.hero__dim {
  max-width: 560px;
  padding-right: 0;
  margin-bottom: clamp(18px, 2.6vw, 34px);
}
.hero__top {
  position: relative;
}
.hero__say {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(22px, 3vw, 40px);
}

.skyline {
  margin-top: clamp(28px, 4vw, 56px);
}
.skyline__side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding: 14px 0;
  border-block: 1.5px solid var(--ink);
}
.skyline__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  font-weight: 600;
}
.skyline__facts li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.skyline__caption {
  font-size: 0.9rem;
  color: var(--ink-2);
}
.skyline__row {
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 3.4vw, 52px);
  margin-top: clamp(22px, 3vw, 36px);
}
.skyline__lot {
  flex: 1 1 0;
  min-width: 0;
}
.skyline__lot .dim {
  margin-bottom: 14px;
}

/* ---------- The six sheets ---------- */

.set__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  max-width: var(--wrap);
  margin: 0 auto;
}
.sheet {
  --arc: 112px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3vw, 40px);
  padding: clamp(20px, 3vw, 40px) clamp(18px, 3vw, 40px) 0;
  background: var(--white);
  border: var(--wall) solid var(--ink);
  overflow: hidden;
}
.sheet--mint::after {
  background: var(--mint);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.sheet--butter::after {
  background: var(--butter);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.sheet__dim {
  /* Stays clear of the door swing in the corner. */
  margin-right: calc(var(--arc) - 6px);
  margin-bottom: clamp(18px, 2vw, 26px);
}
.sheet__dim > span:first-child {
  color: var(--ink);
}
.sheet__body {
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 1.06rem;
  max-width: 34em;
}
.notes {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1.5px solid var(--ink);
  max-width: 34em;
}
.notes li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 0.98rem;
  line-height: 1.45;
}
.notes__n {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--red);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}
.sheet__aside {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1.5px solid var(--ink);
  border-left-width: 8px;
  background: var(--paper);
  font-size: 0.98rem;
  font-weight: 500;
  max-width: 34em;
}
.sheet__screens {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 36px);
  margin-top: auto;
}
.sheet__screens .shot {
  max-width: 400px;
}

/* Wide sheets: text beside the screens. */
.sheet--lent,
.sheet--stocktake {
  grid-column: 1 / -1;
  display: grid;
  align-items: end;
}
.sheet--lent {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}
.sheet--stocktake {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.sheet--lent .sheet__text,
.sheet--stocktake .sheet__text {
  align-self: start;
  padding-bottom: clamp(20px, 3vw, 40px);
}
.sheet--stocktake .sheet__screens {
  order: -1;
  justify-content: flex-start;
}
.sheet--stocktake .sheet__text {
  /* The text column sits under the door swing here. */
  padding-top: 8px;
}
.sheet--lent .sheet__screens {
  justify-content: flex-end;
  padding-right: clamp(0px, 4vw, 60px);
}
.sheet--lent .shot {
  max-width: 400px;
}
.sheet--stocktake .shot {
  max-width: 350px;
}

/* ---------- Night plan: privacy ---------- */

.night {
  margin-top: clamp(40px, 6vw, 88px);
  padding: clamp(44px, 7vw, 104px) var(--pad);
  background: var(--ink);
  color: var(--white);
}
.night__in {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
}
.night .display em {
  color: #f26a4b;
}
.night .display {
  margin-top: 22px;
}
.night .lead {
  margin-top: 22px;
  color: #c9d5da;
}
.night .textlink {
  margin-top: 14px;
  text-decoration-color: #f26a4b;
}
.night__plan .plan {
  width: 100%;
  max-width: 400px;
  margin-left: auto;
}
.night__points {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1.5px solid #5d6f78;
}
.night__points li {
  padding: 22px 20px 0 0;
}
.night__points li + li {
  padding-left: 20px;
  border-left: 1.5px solid #5d6f78;
}
.night__points h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.night__points p {
  margin-top: 10px;
  color: #c9d5da;
  font-size: 0.96rem;
  line-height: 1.5;
}
.night :focus-visible {
  outline-color: var(--butter);
}

/* ---------- Split sections: heading column, ruled content ---------- */

.plain,
.faq {
  padding: clamp(44px, 7vw, 104px) var(--pad) 0;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 88px);
  align-items: start;
  max-width: var(--wrap);
  margin: 0 auto;
}
.split__head .display {
  margin-top: 22px;
}
.split__head .lead,
.split__head .textlink,
.split__note {
  margin-top: 18px;
}
.split__note {
  color: var(--ink-2);
  font-size: 0.98rem;
}

.ruled {
  border-top: var(--wall) solid var(--ink);
}
.ruled > div {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: 8px 28px;
  padding: 22px 0;
  border-bottom: 1.5px solid var(--line);
}
.ruled dt {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.ruled dd {
  color: var(--ink-2);
}

.qa {
  border-top: var(--wall) solid var(--ink);
}
.qa details {
  border-bottom: 1.5px solid var(--line);
}
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--ink);
  font-family: var(--text);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1;
}
.qa details[open] summary::after {
  content: "\2212";
  background: var(--ink);
  color: var(--white);
}
.qa details p {
  padding: 0 46px 22px 0;
  color: var(--ink-2);
  max-width: 44em;
}

/* ---------- Download sheet ---------- */

.get {
  padding-top: clamp(44px, 7vw, 104px);
}
.get__sheet {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  max-width: var(--wrap);
  margin: 0 auto;
  background: var(--white);
  border: 6px solid var(--ink);
}
.get__say {
  padding: clamp(22px, 4vw, 56px);
}
.get__say .display {
  margin-top: 22px;
}
.get__say .lead {
  margin: 20px 0 28px;
}
.titleblock {
  display: flex;
  flex-direction: column;
  border-left: var(--wall) solid var(--ink);
}
.titleblock img {
  margin: clamp(20px, 3vw, 36px);
  border-radius: 18px;
}
.titleblock dl {
  margin-top: auto;
}
.titleblock dl > div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  border-top: 1.5px solid var(--ink);
}
.titleblock dt,
.titleblock dd {
  padding: 12px 16px;
}
.titleblock dt {
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  align-self: center;
}
.titleblock dd {
  border-left: 1.5px solid var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.foot {
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin: clamp(44px, 7vw, 96px) auto 0;
  padding: 0 var(--pad) 32px;
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 28px 40px;
  padding: 32px 0;
  border-top: var(--wall) solid var(--ink);
}
.foot__name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.foot__brand p {
  margin-top: 12px;
  color: var(--ink-2);
  max-width: 26em;
}
.foot__h {
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.foot__list {
  margin-top: 6px;
}
.foot__list li {
  overflow-wrap: anywhere;
}
.foot__list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 600;
  text-underline-offset: 4px;
}
.foot__list li:not(:has(a)) {
  padding: 8px 0;
  color: var(--ink-2);
}
.foot__base {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding-top: 18px;
  border-top: 1.5px solid var(--line);
  color: var(--ink-2);
  font-size: 0.88rem;
}

/* ---------- Document pages: privacy, support, changelog, 404 ---------- */

.doc {
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) var(--pad) 0;
}
.doc__head .dim {
  max-width: 640px;
}
.doc__head .display {
  margin-top: 24px;
}
.doc__head .lead,
.doc__head .textlink {
  margin-top: 20px;
}
.doc__meta {
  margin-top: 20px;
  color: var(--ink-2);
  font-weight: 500;
}
.doc__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(32px, 5vw, 64px);
}
.doc__toc {
  position: sticky;
  top: 20px;
  padding: 18px 20px;
  background: var(--white);
  border: var(--wall) solid var(--ink);
}
.doc__toch {
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.doc__toc ol {
  counter-reset: toc;
}
.doc__toc li {
  counter-increment: toc;
  border-top: 1.5px solid var(--hair);
}
.doc__toc a {
  display: grid;
  grid-template-columns: 2em 1fr;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}
.doc__toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 700;
}
.doc__toc a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.doc__body {
  max-width: 46em;
}
.doc__short {
  padding: clamp(18px, 2.6vw, 30px);
  background: var(--white);
  border: var(--wall) solid var(--ink);
}
.doc__short h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.doc__short ul {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.doc__short li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  font-weight: 500;
}
.doc__short .sq {
  margin-top: 0.45em;
}
.doc__sec {
  padding-top: clamp(30px, 4vw, 48px);
  scroll-margin-top: 12px;
}
.doc__sec h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: var(--wall) solid var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.doc__no {
  flex: none;
  color: var(--red);
  font-size: 0.62em;
  letter-spacing: 0.04em;
}
.doc__sec p,
.doc__sec .doc__list,
.doc__sec .doc__table {
  margin-top: 16px;
}
.doc__warn {
  padding: 16px 18px;
  border: 2px solid var(--red);
  border-left-width: 8px;
  background: #fbe3dc;
  font-weight: 600;
}
.doc__mail a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--white);
  border: var(--wall) solid var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.doc__mail a:hover {
  background: var(--ink);
  color: var(--white);
}
.doc__list {
  display: grid;
  gap: 10px;
}
.doc__list li {
  position: relative;
  padding-left: 24px;
}
.doc__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  background: var(--ink);
}
.doc__table {
  overflow-x: auto;
  border: var(--wall) solid var(--ink);
  background: var(--white);
}
.doc__table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.96rem;
  line-height: 1.4;
}
.doc__table th,
.doc__table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1.5px solid var(--hair);
}
.doc__table tbody tr:last-child > * {
  border-bottom: 0;
}
.doc__table thead th {
  border-bottom: 1.5px solid var(--ink);
  color: var(--ink-2);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.doc__table tbody th {
  font-weight: 700;
}
.doc__table td:last-child {
  color: var(--ink-2);
}
.doc__cta {
  margin-top: clamp(32px, 5vw, 56px);
}
.doc--lost {
  min-height: 48vh;
}

/* Support: the address as a sheet with a title block. */
.mail {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  margin-top: clamp(32px, 5vw, 64px);
  background: var(--white);
  border: 6px solid var(--ink);
}
.mail > div {
  padding: clamp(20px, 3vw, 36px);
}
.mail > div + div {
  border-left: 1.5px solid var(--ink);
}
.mail__label {
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.mail__addr {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
  overflow-wrap: anywhere;
}
.mail__addr:hover {
  text-decoration-color: currentColor;
}
.mail__care {
  margin-top: 22px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-left-width: 8px;
  background: var(--paper);
  font-size: 0.96rem;
  font-weight: 500;
  max-width: 34em;
}
.mail__col h2 {
  margin-bottom: 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.15;
}
.mail__col .doc__list {
  font-size: 0.98rem;
  color: var(--ink-2);
}
.split--doc {
  margin-top: clamp(44px, 7vw, 96px);
}

/* Changelog */
.log {
  margin-top: clamp(32px, 5vw, 64px);
  border-top: var(--wall) solid var(--ink);
}
.log__entry {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: 16px clamp(24px, 5vw, 80px);
  padding: clamp(22px, 3vw, 36px) 0;
  border-bottom: 1.5px solid var(--line);
}
.log__no {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.log__tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.log__what {
  max-width: 44em;
}
.log__foot {
  margin-top: 18px;
  font-weight: 600;
}
.log__note {
  padding-top: 16px;
  color: var(--ink-2);
  font-size: 0.96rem;
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1100px) {
  .top__store {
    display: none;
  }
  .night__points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }
  .night__points li,
  .night__points li + li {
    padding: 20px 0;
    border-left: 0;
    border-bottom: 1.5px solid #5d6f78;
  }
  .mail {
    grid-template-columns: 1fr 1fr;
  }
  .mail__main {
    grid-column: 1 / -1;
    border-bottom: 1.5px solid var(--ink);
  }
  .mail > .mail__main + div {
    border-left: 0;
  }
}

@media (max-width: 860px) {
  .top__bar {
    flex-wrap: wrap;
  }
  .top__brand {
    width: 100%;
    margin-right: 0;
  }
  .top__nav {
    width: 100%;
    border-top: 1.5px solid var(--ink);
  }
  .top__nav a {
    flex: 1 1 0;
    justify-content: center;
    min-height: 48px;
    padding: 0 4px;
    font-size: 0.9rem;
  }
  .top__nav a:first-child {
    border-left: 0;
  }

  .hero__sheet {
    --arc: 84px;
  }
  .hero__dim {
    margin-right: 70px;
  }
  .hero__say {
    grid-template-columns: minmax(0, 1fr);
  }
  .skyline__row {
    gap: 18px;
    margin-right: calc(-1 * clamp(18px, 3.6vw, 52px));
    padding-right: clamp(18px, 3.6vw, 52px);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .skyline__lot {
    flex: 0 0 min(72%, 300px);
    scroll-snap-align: start;
  }

  .set__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sheet {
    --arc: 64px;
  }
  .sheet--lent,
  .sheet--stocktake {
    display: flex;
  }
  .sheet--lent .sheet__text,
  .sheet--stocktake .sheet__text {
    padding: 0;
  }
  .sheet--stocktake .sheet__screens {
    order: 0;
  }
  .sheet--lent .sheet__screens,
  .sheet--stocktake .sheet__screens {
    justify-content: center;
    padding-right: 0;
  }
  .sheet__screens .shot,
  .sheet--lent .shot {
    max-width: 360px;
  }

  .night__in,
  .split,
  .get__sheet,
  .doc__grid,
  .log__entry {
    grid-template-columns: minmax(0, 1fr);
  }
  .night__plan {
    order: -1;
  }
  .night__plan .plan {
    max-width: 150px;
    margin-left: 0;
  }
  .titleblock {
    border-left: 0;
    border-top: var(--wall) solid var(--ink);
  }
  .titleblock img {
    display: none;
  }
  .titleblock dl > div:first-child {
    border-top: 0;
  }
  .doc__toc {
    position: static;
  }
  .foot__grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1rem;
  }
  .top__brand {
    font-size: 1.02rem;
  }
  .sheet--pair .sheet__screens {
    flex-direction: column;
    align-items: center;
  }
  .sheet--pair .shot:first-child .shot__frame {
    border-bottom: var(--wall) solid var(--ink);
  }
  .sheet--pair .sheet__screens {
    gap: 28px;
  }
  .ruled > div {
    grid-template-columns: 1fr;
  }
  .night__points {
    grid-template-columns: 1fr;
  }
  .mail {
    grid-template-columns: 1fr;
  }
  .mail > div + div {
    border-left: 0;
    border-top: 1.5px solid var(--ink);
  }
  .mail__main {
    border-bottom: 0;
  }
  .qa summary {
    font-size: 1.1rem;
  }
  .qa details p {
    padding-right: 0;
  }
  .cta__btn {
    padding: 0 18px;
    font-size: 1rem;
  }
  .foot__grid {
    grid-template-columns: 1fr;
  }
  .doc__head .dim > span + span {
    display: none;
  }
  /* The data table becomes a list of records: no sideways scrolling on a phone. */
  .doc__table table {
    min-width: 0;
  }
  .doc__table table,
  .doc__table tbody,
  .doc__table tr,
  .doc__table th,
  .doc__table td {
    display: block;
  }
  .doc__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .doc__table tbody tr {
    padding: 12px 14px;
    border-bottom: 1.5px solid var(--hair);
  }
  .doc__table tbody tr:last-child {
    border-bottom: 0;
  }
  .doc__table tbody th,
  .doc__table tbody td {
    padding: 0;
    border: 0;
  }
  .doc__table tbody td {
    margin-top: 4px;
  }
  .doc__table td:last-child {
    font-size: 0.86rem;
    font-weight: 600;
  }
}

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

@media print {
  .top__nav,
  .top__store,
  .doc__toc,
  .cta {
    display: none;
  }
}
