@font-face { font-family: Besley; src: url(/besley.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #18225c;          /* the pen's own colour */
  --lining: #223277;
  --envelope: #dfe8ef;
  --paper: #fff;
  --texture: #fffaef url(/paper.png) 0 0 / 256px; /* letters on screen; printed things stay white */
  --red: #b8182a;
  --fold: #b3c3d1;
  --notch: clamp(3rem, 9vw, 9rem);
  --edge: clamp(1.25rem, 5vw, 4rem);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--envelope); color: var(--ink); font: 400 1.0625rem/1.65 Besley, Rockwell, Georgia, serif; overflow-wrap: break-word; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); font-weight: 560; letter-spacing: -.025em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 560; letter-spacing: -.015em; }
h3 { font-size: 1.1875rem; font-weight: 640; }
p { margin: .75rem 0 0; max-width: 38em; text-wrap: pretty; }
h2 + p { margin-top: 1rem; }
ul, ol { margin: .75rem 0 0; padding-left: 1.1em; }
li { margin-top: .5rem; padding-left: .2em; }
li::marker { color: var(--red); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
section:focus, .done:focus { outline: none; }
small, .small { font-size: .875rem; line-height: 1.55; }

.button { display: inline-block; padding: .7rem 1.25rem .75rem; border: 0; border-radius: 2px; background: var(--red); color: #fff; font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.button:hover { background: #951121; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 9; padding: .6rem 1rem; background: #fff; }
.skip:focus { top: 1rem; }

/* The envelope's lining, printed with roofs */
.lining { overflow: hidden; padding: 0 var(--edge); background: var(--lining) url(/roofs.svg) center top / 174px 156px; color: #fff; }
.lining :focus-visible { outline-color: #fff; }
nav { position: relative; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; align-items: center; max-width: 76rem; margin: 0 auto; padding: 1.5rem 0; }
/* a paper label, so the blue ink shows on the blue lining */
.name { box-sizing: content-box; padding: .35rem .75rem; background: var(--texture); }
nav span { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(38rem, 48vw)); gap: clamp(2rem, 5vw, 5rem); align-items: start; max-width: 76rem; min-height: clamp(36rem, 92vh, 52rem); margin: 0 auto; }
/* the solid lining behind the words keeps them clear of the print */
.pitch { margin: clamp(1rem, 7vh, 5rem) 0 calc(var(--notch) + 2rem); background: var(--lining); box-shadow: 0 0 2.5rem 2.5rem var(--lining); }
.pitch p { font-size: 1.125rem; margin-top: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; }
/* the margin keeps the letter's length out of the hero's height: it runs on into the pocket */
.letter { width: 100%; margin: 1rem 0 -100rem; background: var(--texture); isolation: isolate; box-shadow: 0 1px 3px rgb(10 16 50 / .5), 0 1.25rem 3rem rgb(10 16 50 / .45); }
@media (prefers-reduced-motion: no-preference) {
  .letter { animation: drawn-out 1.1s cubic-bezier(.2, .75, .25, 1) both; }
  @keyframes drawn-out { from { transform: translateY(22rem) rotate(.6deg); } }
}

/* The pocket the letter sits in: its edge dips in the middle */
.pocket { position: relative; margin-top: calc(var(--notch) * -1); }
.edge { filter: drop-shadow(0 -2px 10px rgb(10 16 50 / .4)); }
.edge::before { content: ""; display: block; height: var(--notch); margin-bottom: -1px; background: var(--envelope); clip-path: polygon(0 0, 50% 88%, 100% 0, 100% 100%, 0 100%); }
.inside, footer { position: relative; padding: 0 var(--edge); background: var(--envelope); }
.inside > section { max-width: 76rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.inside > section + section { border-top: 1px solid var(--fold); }

dl { margin: 1.25rem 0 0; }
dt { font-weight: 640; }
dd { margin: 0; }

/* A real town: the notes, and a diary with the real things underlined */
.town, .public { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(38rem, 48vw)); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.town dl > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0 1rem; align-items: baseline; padding: .45rem 0; border-bottom: 1px solid var(--fold); }
figure { margin: 0; }
figcaption { margin-top: 1rem; font-size: .9375rem; }
mark { background: none; color: inherit; text-decoration: underline 3px var(--red); text-decoration-skip-ink: none; text-underline-offset: .18em; }
.person { display: grid; grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr); gap: 0 1.75rem; align-items: start; position: relative; z-index: 1; }
.portrait { grid-area: 1 / 1; display: block; width: 100%; height: auto; border: .5rem solid var(--paper); box-shadow: 0 1px 3px rgb(10 16 50 / .3); transform: rotate(-2deg); }
.signature { grid-area: 1 / 1; align-self: end; justify-self: end; width: 8.5rem; height: auto; margin: 0 -4rem 1.75rem 0; position: relative; filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff); }
.person p { grid-area: 1 / 2; margin: 0; }
.ruled { max-width: none; margin: -1.5rem 0 0; padding: 3.5rem clamp(1.25rem, 3vw, 2.25rem) 1.95rem clamp(3rem, 7vw, 4.5rem); background: linear-gradient(90deg, transparent clamp(2rem, 5vw, 3.25rem), #d99aa2 0 calc(clamp(2rem, 5vw, 3.25rem) + 1px), transparent 0), repeating-linear-gradient(transparent 0 calc(1.95rem - 1px), #c9d6e2 0 1.95rem) 0 1.15rem, var(--paper); box-shadow: 0 1px 2px rgb(10 16 50 / .25); font-size: 1.125rem; line-height: 1.95rem; }
.ruled p { margin: 0; max-width: none; }
.ruled p + p { text-indent: 1.5em; }

/* Three routes through one home */
.routes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem) minmax(0, 1fr); gap: 0 5rem; margin-top: 2.25rem; }
.routes ul { display: contents; list-style: none; }
.routes li { margin: 0; padding: 0; }
.routes > ul > li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.heads { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: subgrid; margin-bottom: 1rem; }
.heads p { margin: 0; font-weight: 640; }
.heads p + p { grid-column: 3; }
.routes > ul > li:nth-child(1) { grid-row: 2; }
.routes > ul > li:nth-child(2) { grid-row: 3; }
.routes > ul > li:nth-child(3) { grid-row: 4; }
.out, .back { position: relative; padding: 1.25rem 0; border-top: 1px solid var(--fold); }
.out { grid-column: 1; display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0 1.25rem; align-content: center; }
.out .glyph { grid-row: 1 / 3; }
.out p { margin-top: .25rem; }
.back { grid-column: 3; display: grid; align-content: center; }
.back p { margin: 0; }
.glyph { display: block; width: 4rem; height: auto; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.home { grid-column: 2; grid-row: 2 / 5; padding: 1.75rem; background: var(--lining); color: #fff; }
.home ol { padding-left: 1.4em; }
.home li { padding-left: .2em; margin-top: .6rem; }
.home li::marker { color: #fff; font-weight: 640; }
/* the dashed line of the route, and its head */
.out::after, .back::before { content: ""; position: absolute; top: 50%; width: 5rem; border-top: 2px dashed var(--red); }
.out::after { left: calc(100% + .75rem); width: 4.25rem; }
.back::before { right: calc(100% + 1rem); width: 4rem; }
.out::before, .back::after { content: ""; position: absolute; top: 50%; width: .6rem; height: .6rem; border: solid var(--red); border-width: 2px 2px 0 0; transform: translateY(calc(-50% + 1px)) rotate(45deg); }
.out::before { right: -4.75rem; }
.back::after { left: -1.65rem; }
.connectors { margin-top: 3rem; }
.connectors dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem clamp(1.5rem, 3vw, 3rem); }

/* The Open Postbox: a note goes in, a postcard comes out */
.note { position: relative; width: min(100%, 26rem); padding: 1.25rem 7rem 1.5rem 1.5rem; background: var(--paper); box-shadow: 0 1px 2px rgb(10 16 50 / .25); min-height: 8rem; }
.note p { margin: 0; }
.note p + p { margin-top: .5rem; font-size: .9375rem; }
.note .stamp { position: absolute; top: 1rem; right: 1.25rem; width: 4rem; transform: rotate(4deg); }
.answer { position: relative; z-index: 1; width: min(100%, 32rem); margin: -1rem 0 0 auto; padding: clamp(1.25rem, 4vw, 2.25rem); background: var(--texture); box-shadow: 0 1px 3px rgb(10 16 50 / .4); }
.answer svg { display: block; width: 100%; height: auto; overflow: visible; }
.replay { position: absolute; right: 1rem; bottom: .75rem; padding: .25rem .5rem; border: 0; background: none; color: inherit; font: inherit; font-size: .875rem; text-decoration: underline; cursor: pointer; }
.public h3 { margin-top: 1.75rem; }

.hands { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(38rem, 48vw)); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.samples { display: grid; padding: .5rem clamp(1rem, 3vw, 2.25rem); background: var(--texture); isolation: isolate; }
/* the pictures are ink on white: multiply lets the texture through */
.letter img, .samples img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.samples img { padding: 1rem 0; }
.samples img + img { border-top: 1px solid #c9d6e2; }

.transcript { grid-column: 1 / -1; max-width: 42rem; }
.transcript details { margin-top: 1rem; }
summary { width: fit-content; cursor: pointer; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
summary::marker { color: var(--red); }
details > div { margin-top: 1rem; padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 2rem; background: var(--paper); }

.stamp { display: block; width: 4.5rem; height: auto; fill: none; stroke: #fff; stroke-width: 1.5; }
.stamp .perforation { fill: #fff; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 6; }
.stamp .print { fill: var(--red); stroke: none; }
.postcard { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); margin-top: 1.75rem; padding: clamp(1.25rem, 3vw, 2.25rem) 0; background: var(--paper); box-shadow: 0 1px 2px rgb(10 16 50 / .25); }
.postcard > div { padding: 0 clamp(1.25rem, 3vw, 2.25rem); }
.message { border-right: 1px solid var(--fold); }
.from { margin: 0; font-weight: 640; }
blockquote { margin: .75rem 0 0; max-width: 28em; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.45; text-wrap: pretty; }
.sleeping { font-size: 1.25rem; line-height: 1.5; }
.when { font-size: .9375rem; }
.address { display: flex; flex-direction: column; align-items: flex-start; min-height: 13rem; }
.address .stamp, .envelope .stamp { align-self: flex-end; }
.postcard .perforation, .envelope .perforation, .note .perforation { fill: var(--envelope); stroke: var(--envelope); }
.address .button { margin-top: auto; }

.play { display: grid; place-content: center; justify-items: center; gap: .6rem; aspect-ratio: 16 / 9; margin-top: 1.75rem; background: var(--lining) url(/roofs.svg) center / 174px 156px; color: #fff; text-decoration: none; text-align: center; }
.play span { padding: .7rem 1.25rem .75rem; border-radius: 2px; background: var(--red); font-weight: 600; line-height: 1.2; }
.play:hover span { background: #951121; }
.play small { padding: .1rem .6rem; background: var(--lining); }
iframe, video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; margin-top: 1.75rem; border: 0; }

.lead { font-size: 1.1875rem; }
.command { display: flex; align-items: stretch; margin-top: 1.5rem; background: var(--ink); color: #fff; }
.command pre { flex: 1; min-width: 0; margin: 0; padding: 1.1rem 1.25rem; white-space: pre-wrap; overflow-wrap: anywhere; font: .9375rem/1.5 ui-monospace, Menlo, Consolas, monospace; }
.command .button { border-radius: 0; }
.soon { width: fit-content; margin-top: 1.5rem; padding: 1rem 1.25rem; border: 2px dashed var(--fold); }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 6vw, 6rem); margin-top: 2.5rem; }
.company .columns { margin-top: 1.75rem; }
.costs { grid-column: 1 / -1; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .5rem 3rem; }
.prices li { margin: 0; }
.models { margin-top: 2.5rem; }
.models details { margin-top: 1.25rem; }
table { width: 100%; max-width: 46rem; border-collapse: collapse; }
caption { margin-bottom: 1rem; text-align: left; }
th, td { padding: .5rem 0 .5rem .75rem; border-bottom: 1px solid var(--fold); text-align: right; vertical-align: baseline; font-weight: 400; font-variant-numeric: tabular-nums; }
th:first-child { padding-left: 0; text-align: left; }
thead th, tbody th { font-weight: 640; line-height: 1.3; }
th small { display: block; font-weight: 400; }
.know { margin: 2.5rem 0 1.5rem; padding: 1.5rem clamp(1.25rem, 3vw, 2.25rem) 1.75rem; background: var(--paper); }

.envelope { position: relative; padding: clamp(1.5rem, 4vw, 3rem); background: var(--paper); box-shadow: 0 1px 2px rgb(10 16 50 / .25); }
.envelope .stamp { float: right; margin: 0 0 1rem 1.5rem; }
form { margin-top: 1.75rem; }
label { font-weight: 640; }
.line { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; max-width: 38rem; margin-top: .25rem; }
input { flex: 1 1 14rem; min-width: 0; padding: .6rem .1rem; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: none; color: inherit; font: inherit; font-size: 1.25rem; }
input[aria-invalid] { border-color: var(--red); }
.error { margin-top: .25rem; color: var(--red); font-weight: 600; }
.done { margin-top: 1.75rem; font-size: 1.375rem; font-weight: 640; }
.trap { position: absolute; left: -100vw; width: 1px; height: 1px; overflow: hidden; }

footer { padding-top: 1.5rem; padding-bottom: 3rem; font-size: .9375rem; }
footer p { max-width: 76rem; margin: .4rem auto 0; }

@media (max-width: 75rem) {
  .letter { align-self: end; margin-bottom: -6rem; }
  .out { grid-template-columns: minmax(0, 1fr); }
  .out .glyph { grid-row: auto; margin-bottom: .5rem; }
  .routes { grid-template-columns: minmax(0, 1fr) minmax(0, 17rem) minmax(0, 1fr); }
}
@media (max-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; min-height: 0; }
  .pitch { margin: 1rem 0 0; }
  .letter { margin: 0 auto max(-40vw, -20rem); max-width: 38rem; }
  .hands, .town, .public { grid-template-columns: minmax(0, 1fr); }
  .routes { display: block; }
  .routes ul { display: block; margin: 0; padding: 0; }
  .heads { display: none; }
  .home { padding: 1.5rem; }
  .routes > ul > li { display: block; padding: 2rem 0 0; }
  .out { grid-template-columns: 4rem minmax(0, 1fr); padding: 0; border: 0; }
  .out .glyph { grid-row: 1 / 3; margin: 0; }
  .back { margin: .5rem 0 0 1.95rem; padding: .25rem 0 .25rem 3.3rem; border: 0; }
  .out::before, .out::after { display: none; }
  .back::before { top: 0; bottom: 0; right: auto; left: 0; width: 0; border: 0; border-left: 2px dashed var(--red); }
  .back::after { top: auto; bottom: 0; left: -.26rem; transform: rotate(135deg); }
}
@media (max-width: 42rem) {
  .letter { width: calc(100% + 2 * var(--edge) - 1.5rem); max-width: none; margin-left: calc(.75rem - var(--edge)); margin-bottom: -44vw; }
  .columns, .postcard { grid-template-columns: minmax(0, 1fr); }
  .message { padding-bottom: 1.5rem !important; border: 0; border-bottom: 1px solid var(--fold); }
  .address { min-height: 11rem; padding-top: 1.5rem !important; }
  .command { flex-direction: column; }
  .person { grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 0 1.25rem; }
  .signature { width: 6.5rem; margin: 0 -.75rem .75rem 0; }
  .connectors dl { display: block; }
  .connectors dl > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0 1rem; padding: .45rem 0; border-bottom: 1px solid var(--fold); }
  .answer { padding-bottom: 3.5rem; }
  .models details > div { padding: 1rem .75rem 1.5rem; }
  table { font-size: .875rem; }
  th, td { padding-left: .5rem; }
  .envelope .stamp { width: 3.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .replay { display: none; }
}
h1.plain { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.015em; line-height: 1.12; }
