@font-face {
  font-family: "Mona Sans";
  src: url("/font/Mona-Sans-Black.woff2") format("woff2"), url("/font/Mona-Sans-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url("/font/Mona-Sans-ExtraBold.woff2") format("woff2"), url("/font/Mona-Sans-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans";
  src: url("/font/Mona-Sans-Bold.woff2") format("woff2"), url("/font/Mona-Sans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hubot Sans";
  src: url("/font/Hubot-Sans-Medium.woff2") format("woff2"), url("/font/Hubot-Sans-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hubot Sans";
  src: url("/font/Hubot-Sans-Regular.woff2") format("woff2"), url("/font/Hubot-Sans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hubot Sans";
  src: url("/font/Hubot-Sans-Light.woff2") format("woff2"), url("/font/Hubot-Sans-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
/* Tokens. True black, crisp white type, neutral grey for what is secondary. The only colour on
   the page is the dusk caught inside the crystal; everything around it is the display case. */
:root{color-scheme:dark;--paper:#f5f5f6;--muted:#8a8a90;--line:#26262a;--black:#0a0a0a;--yellow:#fedb5c;
  /* One axis, one width: the stone, and "Good to know" beneath it. At this width the letter
     sets the stone close to square, the Gallery icon's own shape. */
  --content:min(100vw - 44px,800px);
  /* The thank-you sits close above the stone, as its caption; the practical part and the footer
     each step well back, so the stone has black around it. */
  --before-crystal:clamp(48px,5.4vw,84px);--before-faq:clamp(104px,10vw,168px);--before-footer:clamp(104px,9vw,152px)}
*{box-sizing:border-box}
html{background:var(--black)}
body{margin:0;background:var(--black);color:var(--paper);font:400 18px/1.52 "Hubot Sans",sans-serif;-webkit-font-smoothing:antialiased}
button,a{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible{outline:2px solid var(--yellow);outline-offset:5px;border-radius:2px}
h1,h2{font-family:"Mona Sans",sans-serif;letter-spacing:-.024em;line-height:1.04;margin:0;text-wrap:balance}
h2{font-weight:800}
p{margin:0}
a{color:inherit}

/* The opening: the thank-you in light type, set like an engraved invitation. It takes a little
   over half of the first screen and lets the stone rise into the rest. */
.opening{position:relative;padding:clamp(104px,17svh,176px) 22px 0;text-align:center}
.languages{position:absolute;top:26px;right:max(22px,4vw);display:flex;gap:4px}
.languages button{font:500 13px/1 "Hubot Sans",sans-serif;letter-spacing:.06em;background:none;color:var(--muted);border:none;cursor:pointer;padding:12px 8px;transition:color .2s}
.languages button span{display:block;padding-bottom:6px;border-bottom:1px solid transparent}
.languages button:hover{color:var(--paper)}
.languages button[aria-pressed=true]{color:var(--paper)}
.languages button[aria-pressed=true] span{border-bottom-color:var(--paper)}
#hero_title,.legal-title{font:300 clamp(34px,5.2vw,76px)/1.06 "Hubot Sans",sans-serif;letter-spacing:-.03em;max-width:12em;margin-inline:auto}
#dates{margin-top:clamp(24px,3.4svh,36px);font:500 15px/1.3 "Hubot Sans",sans-serif;letter-spacing:.02em;font-variant-numeric:lining-nums;color:var(--paper)}
#hero_line,.legal-lead{max-width:30em;margin:10px auto 0;font-size:16px;line-height:1.55;color:var(--muted);text-wrap:balance}

/* The crystal: the one piece on show. The stage is the stone's
   footprint at the shared width; the canvas bleeds 48px past it for the tilted edges, and the
   engraving turns with the stone (js/crystal.js, which also holds the perspective of 2000px).
   The rim (8.5% of the width, 20 to 88px) is the bevel; the text keeps clear of it. */
.crystal{padding-top:var(--before-crystal);overflow-x:clip}
.crystal-stage{position:relative;width:var(--content);margin-inline:auto;perspective:2000px;perspective-origin:50% 50%;--rim:clamp(20px,8.5%,88px)}
.crystal-gl{position:absolute;inset:-48px;width:calc(100% + 96px);height:calc(100% + 96px);display:block;pointer-events:none}
.engraving{position:relative;z-index:1;text-align:center;--echo-x:0px;--echo-y:1px;
  padding:calc(clamp(20px,8.5%,88px) + clamp(36px,6%,72px)) max(calc(clamp(20px,8.5%,88px) + clamp(24px,5%,60px)),calc(50% - 17.5em)) calc(clamp(20px,8.5%,88px) + clamp(44px,8%,92px));
  font-size:19px;line-height:1.62;color:#efecf8;
  /* Laser engraving: the letters are frosted white points that catch a little of the violet light
     around them. The heavier cuts (heading, mark, signature) also show the groove's violet floor. */
  text-shadow:0 0 1px rgba(255,255,255,.4),0 0 7px rgba(146,61,255,.4)}
.engraving h2{text-shadow:0 0 1px rgba(255,255,255,.5),var(--echo-x) var(--echo-y) .5px rgba(146,61,255,.5)}
.emblem{display:block;width:44px;height:44px;margin:0 auto 28px;color:var(--paper);filter:drop-shadow(var(--echo-x) var(--echo-y) 0 rgba(146,61,255,.75))}
.engraving h2{font-size:clamp(28px,1.2vw + 20px,40px);line-height:1.1;letter-spacing:-.022em;color:var(--paper);margin:0 auto 32px;max-width:15em}
.engraving p{text-wrap:pretty}
.engraving p+p{margin-top:20px}
.engraving #letter_thanks{margin-top:40px;color:var(--paper)}
/* The signature is cut like the mark at the top: frosted white with the groove's violet floor,
   which slides with the tilt. It leans up a little, as a hand does when it signs. */
.signature{display:block;height:76px;width:auto;margin:20px auto 0;overflow:visible;fill:var(--paper);transform:rotate(-3deg);
  filter:drop-shadow(0 0 .5px rgba(255,255,255,.5)) drop-shadow(var(--echo-x) var(--echo-y) 0 rgba(146,61,255,.75))}
/* Signed once when it comes into view (js/last-look.js). The pen in #sig-pen retraces the word in
   the order a hand writes it: S, n and i, the f, t and i, the crossbar, the two dots, the underline.
   Once it is written the mask shows everything again, so the finished signature is exactly the wordmark. */
.signature.is-unsigned mask rect,.signature.is-signing mask rect{display:none}
.signature mask path{stroke-dasharray:1;stroke-dashoffset:1;opacity:0}
.signature.is-signing mask path{animation:pen var(--t) var(--d) cubic-bezier(.4,.1,.3,1) forwards}
.signature mask path:nth-child(2){--d:0s;--t:.62s}
.signature mask path:nth-child(3){--d:.6s;--t:.4s}
.signature mask path:nth-child(4){--d:.98s;--t:.4s}
.signature mask path:nth-child(5){--d:1.4s;--t:.34s}
.signature mask path:nth-child(6){--d:1.8s;--t:.16s}
.signature mask path:nth-child(7){--d:2s;--t:.05s}
.signature mask path:nth-child(8){--d:2.1s;--t:.05s}
.signature mask path:nth-child(9){--d:2.22s;--t:.36s}
/* (a stroke stays out of the mask until its turn, or its round cap would show as a dot) */
@keyframes pen{from{opacity:1}to{opacity:1;stroke-dashoffset:0}}
/* Without WebGL: a flat stone. Dark table, the dusk running round its cut rim with the yellow low,
   as in the sky, and fine lines of light where the rim steps down to the table. */
.crystal-stage.is-flat{border-radius:var(--corner,15%);background:#0b0717}
.crystal-stage.is-flat .crystal-gl{display:none}
.crystal-stage.is-flat::after{content:"";position:absolute;inset:var(--rim);border-radius:calc(var(--corner,15%) - var(--rim));pointer-events:none;
  box-shadow:0 0 0 1px rgba(255,255,255,.45),inset 0 0 0 1px #923dff,inset 0 0 14px rgba(146,61,255,.55)}
.crystal-stage.is-flat::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:var(--rim);
  background:conic-gradient(from 0deg,#3c0572,#923dff 14%,#f931ff 26%,#ff9234 38%,#fedb5c 50%,#ff9234 62%,#f931ff 74%,#923dff 86%,#3c0572);
  -webkit-mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}

/* Good to know: a plain register under the stone. Question left, answer right, a hairline
   between the rows; nothing to click open for a sentence or two. */
.faq{width:var(--content);margin:var(--before-faq) auto 0;container-type:inline-size}
.faq>h2{font:300 clamp(26px,1vw + 20px,34px)/1.1 "Hubot Sans",sans-serif;letter-spacing:-.022em;text-align:center;margin-bottom:clamp(32px,4vw,48px)}
.faq-list>*{display:grid;gap:8px 40px;border-top:1px solid var(--line);padding:24px 0}
.faq-list>*:last-child{border-bottom:1px solid var(--line)}
@container (min-width:600px){.faq-list>*{grid-template-columns:minmax(0,5fr) minmax(0,8fr);padding:28px 0}}
.faq h3{margin:0;font:500 16px/1.5 "Hubot Sans",sans-serif;color:var(--paper)}
.faq p{font-size:16px;line-height:1.6;color:var(--muted);text-wrap:pretty}
.faq a{color:var(--paper);text-decoration-color:var(--paper);text-decoration-thickness:1px;text-underline-offset:5px}

/* The colophon closes the page quietly: the house signature, the three links beneath. */
.colophon{display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:var(--before-footer);padding:0 22px calc(clamp(56px,5vw,80px) + env(safe-area-inset-bottom));text-align:center}
.colophon nav{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 20px;font-size:12.5px;line-height:1.4;letter-spacing:.01em}
.colophon nav a{color:var(--muted);text-decoration:none;transition:color .2s}
.colophon nav a:hover{color:var(--paper);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}

@media (max-width:720px){
  .opening{padding-top:clamp(92px,15svh,132px)}
  .languages{top:14px;right:14px}
  #hero_title{font-size:clamp(30px,9.6vw,44px)}
  #hero_line{max-width:22em}
  .back{top:14px;left:22px}
  .legal-title{font-size:clamp(24px,8vw,36px)}
  .crystal-stage{--rim:26px}
  /* 16px between the letter and the table's edge line, as on desktop the text never touches the cut */
  .engraving{font-size:16.5px;line-height:1.56;padding:calc(var(--rim) + 32px) calc(var(--rim) + 16px) calc(var(--rim) + 50px)}
  .emblem{width:36px;height:36px;margin-bottom:22px}
  .engraving h2{margin-bottom:22px}
  .engraving p+p{margin-top:16px}
  .engraving #letter_thanks{margin-top:28px}
  .signature{height:64px;margin-top:16px}
  .colophon nav{gap:6px 18px;padding-inline:20px}
}
@media (prefers-reduced-motion:reduce){.colophon nav a,.languages button{transition:none}.signature.is-signing mask path{animation:none}}

/* Legal pages: quiet sub-pages of the farewell. They are built from its own parts: the light
   headline a size down, the grey line under it, the "Good to know" register for every field and
   section, the same language toggle and colophon. The only part of their own is the contents. */
.legal-page{overflow-wrap:break-word}
.legal-page main{position:relative}
/* (the toggle and the way back sit above the article headers, which follow them in the markup) */
.legal-page .languages,.back{z-index:1}
/* The focus ring is white here: these pages carry no colour at all. */
.legal-page :focus-visible{outline-color:var(--paper)}
.legal-page:lang(en) article[lang="de"],.legal-page:lang(de) article[lang="en"]{display:none}
.legal-page .opening{padding-top:clamp(96px,13svh,136px)}
.back{position:absolute;top:26px;left:max(22px,4vw);padding:12px 0;font:400 14px/13px "Hubot Sans",sans-serif;color:var(--muted);text-decoration:none;transition:color .2s}
.back:hover{color:var(--paper)}
.legal-title{font-size:clamp(30px,3.2vw,46px);line-height:1.08;max-width:16em}
.legal-lead{max-width:36em;margin-top:clamp(18px,2.4svh,26px)}
.legal-page .faq{margin-top:clamp(56px,6vw,88px)}
.faq-list h2,.faq-list dt{margin:0;font:500 16px/1.5 "Hubot Sans",sans-serif;letter-spacing:0;color:var(--paper)}
.faq-list dd{margin:0;font-size:16px;line-height:1.6;color:var(--muted);text-wrap:pretty}
.faq-list p+p{margin-top:12px}
.faq-list .n,.toc .n{display:inline-block;min-width:1.6em;color:var(--muted);font-variant-numeric:tabular-nums}
.faq-list>section,.appendix{scroll-margin-top:12vh}
.updated{width:var(--content);margin:28px auto 0;font-size:14px;line-height:1.5;color:var(--muted);text-align:center;text-wrap:balance}
.legal-page .appendix{margin-top:clamp(80px,8vw,128px)}
.appendix>h2{margin-bottom:0}
.appendix .legal-lead{margin-bottom:clamp(32px,4vw,48px);text-align:center}

/* The contents. Without room beside the text it is one more row of the register, at the top.
   With room (and a pointer) it leaves the column and becomes a rail at the left edge: one tick
   per section, the one being read longer and white (js/legal.js). Hover or focus opens the
   titles beside the ticks. */
.toc{width:var(--content);margin:clamp(56px,6vw,88px) auto 0;display:grid;gap:8px 40px;border-top:1px solid var(--line);padding:24px 0}
.legal-page .toc+.faq{margin-top:0}
.toc h2{font:500 16px/1.5 "Hubot Sans",sans-serif;letter-spacing:0}
.toc ol{list-style:none;margin:0;padding:0}
.toc a{display:block;padding:3px 0;font-size:15px;line-height:1.5;color:var(--muted);text-decoration:none;transition:color .2s}
.toc a:hover{color:var(--paper)}
.toc .tick{display:none}
@media (min-width:644px){.toc{grid-template-columns:minmax(0,5fr) minmax(0,8fr);padding:28px 0}}
@media (min-width:1280px) and (hover:hover){
  html:has(.legal-page){scroll-behavior:smooth}
  .toc{position:fixed;z-index:2;left:28px;top:50%;transform:translateY(-50%);display:block;width:auto;margin:0;padding:0;border:0}
  .legal-page .toc+.faq{margin-top:clamp(56px,6vw,88px)}
  .toc h2,.toc .n{display:none}
  .toc a{position:relative;display:flex;align-items:center;width:40px;height:26px;padding:0}
  .toc .tick{display:block;width:12px;height:2px;border-radius:1px;background:var(--muted);opacity:.55;transition:width .35s cubic-bezier(.2,.7,.2,1),opacity .35s,background-color .35s}
  .toc a:hover .tick{width:18px;opacity:.8}
  .toc a[aria-current] .tick{width:28px;background:var(--paper);opacity:1}
  .toc .t{position:absolute;left:calc(100% + 10px);top:0;height:100%;display:flex;align-items:center;padding-right:12px;white-space:nowrap;font-size:13px;background:var(--black);
    opacity:0;transform:translateX(-6px);pointer-events:none;transition:opacity .25s,transform .25s cubic-bezier(.2,.7,.2,1),color .2s}
  /* (bridges the gap to the tick, so the pointer never leaves the rail on its way to a title) */
  .toc .t::before{content:"";position:absolute;right:100%;top:0;width:10px;height:100%}
  .toc a:focus-visible{outline-offset:3px}
  .toc:hover .t,.toc:focus-within .t{opacity:1;transform:none;pointer-events:auto}
  .toc a[aria-current] .t,.toc a:hover .t{color:var(--paper)}
}
@media (prefers-reduced-motion:reduce){html:has(.legal-page){scroll-behavior:auto}.back,.toc a,.toc .tick,.toc .t{transition:none}}
