@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/courier-prime-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/courier-prime-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Grenze Gotisch";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/grenze-gotisch-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Grenze Gotisch";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/grenze-gotisch-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Vollkorn";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/vollkorn-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vollkorn";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/vollkorn-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Vollkorn";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/vollkorn-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vollkorn";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/vollkorn-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --plum: #3a1442;
  --plum-deep: #260b2c;
  --plum-soft: #4f2058;
  --gilt: #d9b54a;
  --gilt-deep: #a8862a;
  --board: #f8f9fb;
  --red: #b81d36;
  --ink: #241628;
  --ink-soft: #5a4560;
  --rule: #c7c2d4;
  --display: "Grenze Gotisch", "Vollkorn", Georgia, serif;
  --text: "Vollkorn", Georgia, "Times New Roman", serif;
  --satin: url("assets/plates/satin-band.webp");
  --flowers: url("assets/plates/flower-field.webp");
  --rail-w: 18.5rem;
  --mast-h: 14.5rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  scrollbar-color: var(--plum) #ece5ee;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--board);
  color: var(--ink);
  font: 400 1.125rem/1.62 var(--text);
  font-variant-numeric: lining-nums;
  caret-color: var(--plum);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--plum); color: var(--board); }

a { color: var(--plum); text-decoration-color: color-mix(in srgb, var(--plum) 45%, transparent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--plum); }
a, button, summary, label[for] { cursor: pointer; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--plum);
  color: var(--board);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; outline-color: var(--gilt); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The flower board masthead */
.mast {
  position: relative;
  height: var(--mast-h);
  overflow: hidden;
  background: var(--plum-deep) var(--flowers) center / 35rem auto repeat;
  box-shadow: 0 10px 18px -12px rgba(38, 11, 44, .55);
}

.board {
  position: absolute;
  inset: 2.8rem 3.2rem 1.8rem;
  background: var(--board);
  box-shadow: 0 0 0 2px var(--plum-deep), 0 4px 10px rgba(38, 11, 44, .35);
}

.wreath {
  position: absolute;
  left: 2.4rem;
  top: 50%;
  width: 8.6rem;
  height: auto;
  z-index: 3;
  transform: translateY(-50%);
  filter: drop-shadow(0 6px 8px rgba(38, 11, 44, .35));
}

.stamp {
  position: absolute;
  right: 3rem;
  bottom: .9rem;
  margin: 0;
  z-index: 3;
  padding: .45rem .8rem .4rem;
  border: 3px double var(--plum);
  border-radius: 3px;
  color: var(--plum);
  font: 700 .8rem/1 var(--text);
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

/* The sash: the satin band is taller than the lettering painted on it */
.sash {
  position: absolute;
  left: -5%;
  right: -5%;
  top: 3.7rem;
  height: 6.9rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  padding-left: 6rem;
  background: var(--satin) center / 100% 100% no-repeat;
  transform: rotate(-4deg);
  /* box-shadow, not filter: Chrome drops part of the text inside a filtered, rotated layer */
  box-shadow: 0 12px 16px -6px rgba(38, 11, 44, .45);
}

.sash-name,
.foot-name {
  font: 700 4.1rem/1 var(--display);
  color: var(--gilt);
  text-shadow: 0 0 1px rgba(38, 11, 44, .4);
  padding-bottom: .3rem;
}

.sash-line {
  font: italic 400 1.2rem/1.2 var(--text);
  color: var(--gilt);
}

/* Contents rail and page */
.layout {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
}

.rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  padding: 1.4rem 0 1.4rem;
  background:
    linear-gradient(98deg, rgba(20, 4, 24, .45), rgba(255, 255, 255, .06) 42%, rgba(20, 4, 24, .3) 78%, rgba(20, 4, 24, .45)),
    var(--plum);
  box-shadow: inset -5px 0 0 var(--plum), inset -6px 0 0 var(--gilt-deep), inset 0 14px 16px -12px rgba(0, 0, 0, .55);
  scrollbar-color: var(--gilt-deep) var(--plum);
}

.rail-title {
  margin: 0 0 .5rem;
  padding-left: 2.2rem;
  font: 600 1.65rem/1 var(--display);
  color: var(--gilt);
}

.rail ol { list-style: none; margin: 0; padding: 0; }

.rail a {
  position: relative;
  display: flex;
  gap: .85rem;
  align-items: baseline;
  padding: .36rem 1.5rem .36rem 2.2rem;
  color: rgba(248, 249, 251, .88);
  font-size: .94rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

.rail a b {
  flex: none;
  width: 1.6rem;
  font: 600 1.15rem/1 var(--display);
  color: var(--gilt);
}

.rail a::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: .7rem;
  height: 1.4rem;
  background: var(--board);
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
  transform: translateY(-50%) scaleX(0);
  transform-origin: right center;
  transition: transform .35s var(--ease);
}

.rail a:hover { background: rgba(217, 181, 74, .12); color: #fff; }
.rail a[aria-current="true"] { background: rgba(217, 181, 74, .2); color: #fff; }
.rail a[aria-current="true"]::after { transform: translateY(-50%) scaleX(1); }
.rail :focus-visible { outline-color: var(--gilt); outline-offset: -3px; }

.page {
  padding: 1.9rem clamp(1.5rem, 5vw, 6rem) 5rem;
  min-width: 0;
}

.intro, .sec {
  display: grid;
  grid-template-columns: minmax(0, 38rem) 14.5rem;
  column-gap: 3.5rem;
}

.intro > * { grid-column: 1; }

h1 {
  margin: 0;
  font: 600 clamp(2.6rem, 4.6vw, 3.9rem)/1.02 var(--display);
  color: var(--plum);
  text-wrap: balance;
}

.edition {
  margin: .4rem 0 1.1rem;
  font-style: italic;
  color: var(--ink-soft);
}

.lead { margin: 0 0 1rem; font-size: 1.22rem; line-height: 1.58; }

.sec { margin-top: 4.2rem; }
.sec.first { margin-top: 1.1rem; }

/* Major openers carry a strip of the flower board */
.sec.mourn::before {
  content: "";
  grid-column: 1 / -1;
  height: 1.5rem;
  margin: 0 0 1.6rem -4.4rem;
  background: var(--plum-deep) var(--flowers) 0 22% / 30rem auto repeat;
  box-shadow: 0 0 0 2px var(--plum-deep);
}

.sec h2 {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0 0 1.1rem;
  font: 600 clamp(1.8rem, 2.6vw, 2.15rem)/1.08 var(--display);
  color: var(--plum);
  text-wrap: balance;
}

.caps { font-family: var(--text); font-weight: 700; font-size: .78em; letter-spacing: .01em; }

.tab {
  flex: none;
  width: 3.3rem;
  height: 2.15rem;
  margin-left: -4.4rem;
  display: grid;
  place-items: center;
  padding-right: .55rem;
  background: var(--plum) var(--satin) center / 900% 100% no-repeat;
  color: var(--gilt);
  font-size: 1.2rem;
  clip-path: polygon(0 0, 100% 0, 82% 50%, 100% 100%, 0 100%);
}

.body { grid-column: 1; min-width: 0; }
.body > :first-child { margin-top: 0; }
.body p { margin: 0 0 1rem; }

.note {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin: .3rem 0 0;
  padding-top: .7rem;
  border-top: 1px solid var(--plum);
  color: #3d2a43;
  font-size: .9rem;
  line-height: 1.5;
}
.note b {
  font-weight: 600;
  color: var(--plum);
}

ul.rules, ol.steps { margin: 0 0 1.1rem; padding-left: 1.3rem; }
ul.rules li, ol.steps li { margin-bottom: .5rem; padding-left: .3rem; }
ul.rules li::marker { color: var(--plum); content: "\2766\00a0"; font-size: .9em; }
ol.steps li::marker { color: var(--plum); font-family: var(--display); font-weight: 600; }

figure { margin: 1.6rem 0 1.4rem; }
.first figure.example { margin-top: 0; }
caption { margin-bottom: .35rem; text-align: left; font-style: italic; font-size: .95rem; color: var(--ink-soft); }
.eg { margin-left: .3rem; font-style: italic; font-size: .85rem; color: var(--ink-soft); }
.example th, .example td { padding-top: .34rem; padding-bottom: .34rem; }
figcaption { margin-bottom: .35rem; font-style: italic; font-size: .95rem; color: var(--ink-soft); }

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: lining-nums tabular-nums;
}
th, td {
  padding: .45rem .8rem .45rem 0;
  border-bottom: 1px dotted var(--rule);
  text-align: left;
  font-weight: 400;
  vertical-align: top;
}
thead th { font-weight: 600; color: var(--plum); border-bottom: 2px solid var(--plum); }
tbody th { color: #4b3651; }
.example td { text-align: right; padding-right: 0; white-space: nowrap; }
.example .total th, .example .total td { border: 0; border-top: 2px solid var(--plum); padding-top: .7rem; vertical-align: baseline; }
.example .total th { font-weight: 600; color: var(--ink); }
.example .total strong { color: var(--red); font-size: 1.9rem; line-height: 1; font-weight: 700; }
td.num { width: 5rem; font-weight: 600; color: var(--plum); }

.scroll { overflow-x: auto; }
.scroll:focus-visible { outline-offset: 2px; }
.fees { min-width: 34rem; }
.fees th[scope="row"] { width: 32%; }

/* The weekly clock, set like an order of service */
.clock { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.clock li {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px dotted var(--rule);
}
.clock .when { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--plum); }
.clock .what b { font-weight: 600; }

/* Roadmap stamps: status is a printed mark, never a colour */
.stage { margin: 1.6rem 0 0; }
.stage h3 { margin: 0 0 .8rem; font-size: 1rem; }
.mark {
  display: inline-block;
  padding: .35rem .75rem .3rem;
  color: var(--plum);
  font: 700 .82rem/1 var(--text);
  letter-spacing: .16em;
  text-transform: uppercase;
  transform: rotate(-2.5deg);
}
.mark-promised { border: 3px double var(--plum); }
.mark-next { border: 2px solid var(--plum); }
.mark-exploring { border: 2px dashed var(--plum); }

.risks { margin: 0 0 1.2rem; }
.risks dt { margin-top: 1rem; font-weight: 600; color: var(--plum); }
.risks dd { margin: .15rem 0 0; }
.warn { margin-top: 1.4rem; font-style: italic; }

.faq h3 { margin: 1.5rem 0 .35rem; font-size: 1.1rem; font-weight: 600; color: var(--plum); line-height: 1.35; }
.faq h3:first-child { margin-top: 0; }

.contracts { list-style: none; margin: 0 0 .5rem; padding: 0; }
.contracts li {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto;
  gap: .4rem 1rem;
  align-items: baseline;
  padding: .7rem 0;
  border-bottom: 1px dotted var(--rule);
}
.c-name { font-weight: 600; color: var(--ink); }
.c-name small { display: block; font-weight: 400; font-style: italic; font-size: .85rem; color: var(--ink-soft); }
.c-pending { grid-column: 2 / -1; font-style: italic; color: var(--ink-soft); }
.contracts code {
  font: 400 .92rem/1.4 "Courier Prime", "Courier New", monospace;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.copy {
  min-height: 2.75rem;
  min-width: 4.5rem;
  padding: .45rem .9rem;
  border: 2px solid var(--plum);
  border-radius: 3px;
  background: var(--board);
  color: var(--plum);
  font: 600 .9rem/1 var(--text);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.copy:hover { background: var(--plum); color: var(--gilt); }
.copy:active { transform: translateY(1px); }
.copy:disabled { cursor: not-allowed; opacity: .55; }
.copied { min-height: 1.6rem; margin: .2rem 0 1rem; font-style: italic; color: var(--plum); }

/* Footer: the page closes on the end of the sash, laid on the board under a strip of flowers */
.foot {
  position: relative;
  padding: 3.6rem 2rem 2.6rem;
  text-align: center;
  color: var(--ink);
  background: var(--board);
  border-top: 2px solid var(--plum-deep);
}
.foot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1.5rem;
  background: var(--plum-deep) var(--flowers) 0 22% / 30rem auto repeat;
  box-shadow: 0 2px 0 var(--plum-deep);
}
.foot p { margin: 0 0 .6rem; }
.foot-sash {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.2rem;
}
.foot-wreath {
  position: relative;
  z-index: 1;
  width: 5.6rem;
  height: auto;
  margin-right: -1.4rem;
  filter: drop-shadow(0 5px 7px rgba(38, 11, 44, .35));
}
.foot .foot-name {
  margin: 0;
  padding: .9rem 2.4rem 1.1rem 2.6rem;
  font-size: 2.6rem;
  background: var(--satin) center / 100% 100% no-repeat;
  box-shadow: 0 8px 12px -4px rgba(38, 11, 44, .35);
}
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.6rem; }
.foot a { display: inline-block; padding: .5rem 0; }

@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: press .6s var(--ease) .25s both; }
  @keyframes press {
    from { transform: rotate(-6deg) scale(1.18); opacity: .3; }
    to { transform: rotate(-6deg) scale(1); opacity: 1; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Margin notes fold into the column */
@media (max-width: 75rem) {
  .intro, .sec { grid-template-columns: minmax(0, 38rem); }
  .note { grid-column: 1; grid-row: auto; margin: .4rem 0 0; max-width: 38rem; }
}

/* Phones and narrow tablets: the rail becomes a ribbon of links */
@media (max-width: 52rem) {
  :root { --mast-h: 10.5rem; }
  body { font-size: 1.0625rem; }
  .layout { display: block; }
  .rail {
    position: sticky;
    top: 0;
    z-index: 5;
    height: auto;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 3px 0 var(--gilt-deep), 0 6px 12px -6px rgba(38, 11, 44, .5);
  }
  .rail-title { display: none; }
  .rail ol { display: flex; width: max-content; padding: 0 .5rem; }
  .rail a { padding: .8rem .85rem; min-height: 2.75rem; font-size: .92rem; white-space: nowrap; gap: .45rem; }
  .rail a b { width: auto; font-size: 1rem; }
  .rail a::after { display: none; }
  .rail a[aria-current="true"] { box-shadow: inset 0 -3px 0 var(--gilt); }
  html { scroll-padding-top: 4rem; }
  .board { inset: 1.6rem 1rem 1.2rem; }
  .wreath { left: .6rem; width: 5rem; }
  .sash { top: 2.7rem; height: 4.5rem; padding-left: 4.4rem; gap: 1rem; transform: rotate(-3.5deg); }
  .sash-name { font-size: 2.55rem; }
  .sec.mourn::before { margin-left: 0; }
  .foot .foot-name { font-size: 2.1rem; padding: .75rem 1.8rem .9rem 2rem; }
  .foot-wreath { width: 4.6rem; }
  .sash-line { display: none; }
  .stamp { right: 1rem; bottom: .5rem; font-size: .72rem; padding: .35rem .6rem .3rem; }
  .page { padding: 2rem 1.25rem 4rem; }
  .sec { margin-top: 3.2rem; }
  .tab { margin-left: 0; width: 2.7rem; height: 1.85rem; font-size: 1.05rem; }
  .sec h2 { gap: .75rem; }
  .clock li { grid-template-columns: 1fr; gap: .1rem; }
  .contracts li { grid-template-columns: minmax(0, 1fr) auto; }
  .contracts code { grid-column: 1; }
  .c-pending { grid-column: 1 / -1; }
}
