@font-face {
  font-family: "PT Sans";
  src: url("PTSans-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  src: url("PTSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Prata";
  src: url("Prata-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #061420;
  --panel: #0b2036;
  --text: #f4f8f7;
  --muted: #b8c9d5;
  --mint: #7ce8d4;
  --line: #2a4354;
  --serif: "Prata", Georgia, serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  font-family: "PT Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--background);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, p { margin: 0; }
a { color: var(--mint); text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid var(--mint); outline-offset: 5px; }
img { display: block; }
.shell { width: min(78rem, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; z-index: 2; top: 1rem; left: 1rem; padding: .75rem 1rem; background: var(--panel); }
.skip:not(:focus) { clip-path: inset(50%); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}
.header-inner { min-height: 5rem; }
.brand, .header-contact, .contact-button, .back-link {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  text-decoration: none;
}
.brand {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: .16em;
  line-height: 1;
}
.header-contact { padding-block: .55rem; }
.header-contact:hover, .back-link:hover { text-decoration: underline; }
.header-contact img, .back-link img, .document-icon img, .document-arrow img, .contact-button img {
  filter: invert(1);
  opacity: .85;
}

.directory { padding-block: clamp(1.5rem, 4vw, 3rem) 3rem; }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(21rem, 34vw, 27rem);
  overflow: hidden;
  padding: clamp(1.6rem, 5vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(115deg, #0e2738, #071425 70%);
}
.hero-art {
  position: absolute;
  inset: 0 0 0 34%;
  z-index: -1;
  background: url("club-sky.webp") 54% 52% / cover no-repeat;
  mask-image: linear-gradient(to right, transparent 2%, #000 39%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent 50%, #06142020);
}
.hero-copy { max-width: 32rem; }
.hero h1, .article-header h1, .missing h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.035em;
}
.hero h1 { font-size: clamp(2.75rem, 6.7vw, 5.65rem); line-height: 1.05; }
.hero h1 span { display: block; color: var(--mint); }
.hero p, .article-header p, .missing p { color: var(--muted); font-size: clamp(1.075rem, 2vw, 1.25rem); line-height: 1.5; }
.hero p { max-width: 31ch; margin-top: 1.4rem; }

.document-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.document-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: .65rem 1rem;
  height: 100%;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  color: var(--text);
  background: linear-gradient(144deg, #102639, #0b1d2d);
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease;
}
.document-link:hover, .document-link:focus-visible { border-color: var(--mint); background: #122c3d; }
.document-link h2 {
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.45vw, 1.9rem);
  font-weight: 400;
  margin-top: .4rem;
  overflow-wrap: anywhere;
}
.document-link p { grid-column: 1 / -1; font-size: 1.075rem; line-height: 1.45; color: var(--muted); }
.document-icon, .document-arrow {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid #7ce8d455;
  border-radius: 50%;
  background: #7ce8d411;
}
.document-arrow { background: transparent; border-color: var(--line); }
.document-arrow img { transition: transform .18s ease; }
.document-link:hover .document-arrow img { transform: translateX(.18rem); }

.contact-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.75rem 0 0;
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.contact-panel h2 { font-size: 1.25rem; }
.contact-panel p { margin-top: .3rem; color: var(--muted); line-height: 1.45; }
.contact-button {
  min-height: 2.8rem;
  padding: .5rem .95rem;
  border: 1px solid #7ce8d455;
  border-radius: 100vw;
  background: #7ce8d414;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.contact-button:hover { border-color: var(--mint); }

.site-footer { margin-top: auto; border-top: 1px solid var(--line); }
.footer-inner { padding-block: 1.5rem; font-size: .95rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .65rem 1.3rem; }
.footer-inner a:not(.brand) { color: var(--muted); text-decoration: none; }
.footer-inner a:hover, .footer-inner [aria-current="page"] { color: var(--mint); text-decoration: underline; }

.article-page { padding-block: 2rem clamp(2rem, 7vw, 5rem); }
.back-link { font-size: 1rem; min-height: 2.65rem; }
.article-header { max-width: 56rem; padding-block: clamp(1.6rem, 4vw, 3.25rem); }
.article-header h1, .missing h1 {
  font-size: clamp(2rem, 6vw, 4.45rem);
  line-height: 1.16;
  overflow-wrap: anywhere;
}
.article-header h1 { margin-block: .9rem .75rem; }
.reading-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
}
.contents {
  position: sticky;
  top: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: #0a1d2c;
}
.contents h2 { padding: 0 .45rem; font-size: 1rem; }
.contents ul { list-style: none; padding: 0; margin: .4rem 0 0; }
.contents a {
  display: block;
  padding: .45rem;
  border-radius: .35rem;
  color: var(--muted);
  line-height: 1.25;
  text-decoration: none;
}
.contents a:hover { color: var(--mint); background: #7ce8d412; }
.article {
  padding: clamp(1rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: #0a1d2c;
  font-size: clamp(1.0625rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  color: var(--muted);
}
.article section { scroll-margin-top: 1.5rem; max-width: 68ch; }
.article section + section { border-top: 1px solid var(--line); margin-top: 1.8rem; padding-top: 1.8rem; }
.article h2 { color: var(--text); font-family: var(--serif); font-size: clamp(1.2rem, 2.5vw, 1.65rem); font-weight: 400; line-height: 1.35; }
.article section:target h2 { color: var(--mint); }
.article p, .article ul, .operator { margin: .75rem 0 0; }
.article ul { padding-inline-start: 1.2em; }
.article li + li { margin-top: .45rem; }
.article li::marker { color: var(--mint); }
.operator { font-style: normal; }
.operator strong { color: var(--text); }
.operator dl { display: grid; grid-template-columns: max-content 1fr; gap: .15rem 1rem; margin-block: .55rem 0; }
.operator dt { color: var(--text); }
.operator dd { margin: 0; }
.missing { padding-block: clamp(3rem, 9vw, 8rem); }
.missing p { margin-block: 1rem 1.5rem; }

@media (max-width: 46rem) {
  .reading-layout { grid-template-columns: 1fr; gap: 1rem; }
  .contents { position: static; }
  .contents ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 39rem) {
  .header-inner { min-height: 4rem; }
  .hero-art {
    inset: 0;
    background-position: 70% 58%;
    mask-image: linear-gradient(90deg, transparent 15%, #0008 80%, #000b);
  }
  .hero { min-height: 19rem; }
  .hero h1 { font-size: clamp(2.65rem, 10vw, 4.85rem); }
  .document-list { grid-template-columns: 1fr; gap: .75rem; }
  .article-page { padding-top: 1rem; }
  .article-header h1 { font-size: clamp(1.58rem, 8.1vw, 2.5rem); }
  .footer-inner nav { flex-basis: 100%; }
  .operator dl { grid-template-columns: 1fr; }
  .operator dd + dt { margin-top: .3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .document-link, .document-arrow img { transition: none; }
}

@media print {
  :root { color-scheme: light; --text: #151a1e; --muted: #252b32; --mint: #151a1e; --line: #b4b4b4; background: white; }
  body { display: block; }
  .site-header, .site-footer, .contents, .back-link, .document-icon, .skip { display: none; }
  .shell, .article, .article-header { width: 100%; max-width: none; padding: 0; }
  .reading-layout { display: block; }
  .article { border: 0; background: none; font-size: 11pt; }
  .article-header h1 { font-size: 24pt; }
  .article h2 { font-size: 14pt; break-after: avoid; }
  .article section + section { margin-top: 1em; padding-top: .8em; }
  .article p, .article li { orphans: 2; widows: 2; }
}
