* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --ink: #302532;
  --muted: #655866;
  --plum: #582e51;
  --rule: #ded6dd;
  --paper: #fffdfc;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--plum); text-underline-offset: .25em; }
a:hover { color: #952d66; }
a:focus-visible { outline: 3px solid #943068; outline-offset: 3px; border-radius: 3px; }
header, footer { border-block-end: 1px solid var(--rule); }
.bar { width: min(70rem, 91%); margin: auto; min-height: 4.8rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding-block: .65rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: Georgia, "Batang", serif; font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.seal { position: relative; width: 1.9rem; height: 1.9rem; border-radius: 50% 50% 47% 47%; background: var(--plum); }
.seal::before, .seal::after { content: ""; position: absolute; width: .49rem; height: .78rem; border: 1px solid #fff5e5; border-radius: 60%; top: .49rem; left: .50rem; transform: rotate(-35deg); }
.seal::after { left: .83rem; transform: rotate(35deg); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; }
nav a, .doclinks a, footer a { display: inline-block; padding: .65rem 0; }
header nav a { color: var(--muted); font-weight: 600; text-decoration: none; }
.directory { width: min(70rem, 91%); margin: clamp(2rem, 6vw, 5.5rem) auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: stretch; }
.intro { border-radius: 1.4rem; padding: clamp(1.5rem, 3.5vw, 3.3rem); background: linear-gradient(148deg,#45233f 0%,#663951 58%,#814956); color: #fff9f2; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
h1, h2, p { margin: 0; }
h1 { letter-spacing: -.045em; line-height: 1.2; overflow-wrap: anywhere; }
.intro h1 { font-family: Georgia,"Batang",serif; font-size: clamp(2.5rem, 4.6vw, 4.25rem); }
.intro p { color: #fff0eb; max-width: 24rem; margin-top: 1rem; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
.ribbon { position: relative; width: min(100%, 14rem); aspect-ratio: 1.8; margin: 1rem 0 auto; }
.ribbon i, .ribbon b { position: absolute; display: block; width: 49%; height: 83%; top: 5%; left: 10%; border: 2px solid #e5b8ba; border-radius: 80% 52% 75% 48%; transform: rotate(-57deg); box-shadow: inset 4px 0 0 #a97586; }
.ribbon b { left: 42%; transform: rotate(52deg); border-color: #ebceac; box-shadow: inset -4px 0 0 #ba8b7b; }
.languages { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--plum); }
.languages li { padding: 1rem .2rem .7rem; border-bottom: 1px solid var(--rule); }
.languages h2 { font-size: 1.3rem; letter-spacing: -.025em; }
.doclinks, .related { display: flex; flex-wrap: wrap; gap: 0 1.35rem; }
.doclinks a, footer, header nav, .related, .switch { font-size: .94rem; }
.paper { width: min(46rem, 90%); margin: clamp(2.6rem, 6vw, 5rem) auto; line-height: 1.85; overflow-wrap: anywhere; }
.mast { padding-bottom: 1.6rem; border-bottom: 2px solid var(--plum); }
.mast h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--plum); }
.mast p { margin-top: .8rem; color: var(--muted); }
section { padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
section h2 { font-size: 1.23rem; margin-bottom: .45rem; line-height: 1.45; }
section p + p { margin-top: .4rem; }
.related, .switch { margin-top: .8rem; }
.switch [aria-current] { font-weight: bold; }
dl { margin: .5rem 0; }
dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; border-bottom: 1px solid var(--rule); padding: 1rem 0; }
dt { font-weight: 700; }
dd { margin: 0; }
footer { border-top: 1px solid var(--rule); border-bottom: 0; color: var(--muted); }
footer .bar { min-height: 4rem; }
@media (max-width: 46rem) {
  .directory { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-block: 1.5rem 2.5rem; }
  .intro { position: relative; min-height: 12rem; padding-right: 26%; }
  .ribbon { position: absolute; width: 31%; right: -5%; top: 0; opacity: .85; }
  .bar { min-height: 4rem; }
}
@media (max-width: 30rem) {
  .bar, header nav { column-gap: .8rem; }
  dl div { grid-template-columns: 1fr; gap: .15rem; }
}
@media print {
  header, footer, nav { display: none; }
  .paper { width: 100%; margin: 0; }
  section { break-inside: avoid; }
}
