:root {
  --shell-canvas: #e3dccf;
  --shell-forest: #1c2f24;
  --shell-paper-ink: #354239;
  --shell-ivory: #f1e7d3;
  --shell-bordeaux: #713241;
  --shell-forum: "Forum", Georgia, serif;
  --shell-script: "Marck Script", cursive;
  --shell-inset: clamp(20px, 5.55vw, 88px);
  --shell-header-top: calc(18px + env(safe-area-inset-top, 0px));
  --shell-header-right: max(var(--shell-inset), env(safe-area-inset-right, 0px));
  --shell-header-width: 66px;
  --shell-canvas-image: var(--cloth);
  --shell-forest-image: url("./assets/story/forest-1440.webp");
}
.shell[data-surface="canvas"] {
  --shell-fg: var(--shell-paper-ink);
  --shell-secondary: #53574a;
  --shell-accent: var(--shell-bordeaux);
  --shell-field: var(--shell-canvas);
  --shell-rule: rgb(53 66 57 / .33);
  --shell-tint: rgb(227 220 207 / .58);
  --shell-image: var(--shell-canvas-image);
  --shell-image-size: 1536px 1536px;
  --shell-image-repeat: repeat;
}
.shell[data-surface="forest"] {
  --shell-fg: var(--shell-ivory);
  --shell-secondary: #d0c5ad;
  --shell-accent: #e2bba9;
  --shell-field: var(--shell-forest);
  --shell-rule: rgb(241 231 211 / .37);
  --shell-tint: rgb(28 47 36 / .78);
  --shell-menu-veil: rgb(28 47 36 / .68);
  --shell-footer-veil: rgb(28 47 36 / .84);
  --shell-image: var(--shell-forest-image);
  --shell-image-size: max(100%, 1100px) auto;
  --shell-image-repeat: no-repeat;
}
.shell, .shell * { box-sizing: border-box; }
.shell {
  color: var(--shell-fg);
  font: 400 20px/1.32 var(--shell-forum);
  text-align: left;
  font-synthesis: none;
}
.shell :where(h2, p, ul) {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}
.shell ul { list-style: none; }
.shell[hidden], .shell [hidden], .shell-menu:not([open]) { display: none; }
.shell a { color: inherit; }
.shell button, .shell summary { cursor: pointer; }
.shell button {
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
.shell ::selection { color: var(--shell-field); background: var(--shell-fg); }
.shell-material {
  background-color: var(--shell-field);
  background-image: var(--shell-image);
  background-size: var(--shell-image-size);
  background-position: center;
  background-repeat: var(--shell-image-repeat);
}
.shell :focus-visible {
  outline: 2px solid var(--shell-accent);
  outline-offset: 3px;
}

.shell-footer:focus-visible,
.shell-footer section:focus-visible {
  outline: 2px solid var(--shell-accent);
  outline-offset: -2px;
}
:root[data-shell-modal] { overflow: hidden; }
:root[data-shell-modal="gutter"] { scrollbar-gutter: stable; }
.shell-header {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.shell-header .shell-toggle { pointer-events: auto; }
.shell .shell-toggle {
  width: 48px;
  height: 48px;
  flex: none;
  display: inline-grid;
  place-items: center;
  position: relative;
  color: var(--shell-fg);
  cursor: pointer;
}
.shell-header--b {
  top: var(--shell-header-top);
  right: var(--shell-header-right);
}
.shell-header--b .shell-toggle,
.shell-menu-bar .shell-toggle {
  width: var(--shell-header-width);
  background-color: var(--shell-tint);
  border-radius: 0 0 0 15px;
}
.shell-header--b .shell-toggle {
  isolation: isolate;
  color: var(--shell-bordeaux);
  background-color: transparent;
}
.shell-header--b .shell-toggle::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 50% auto auto 50%;
  width: 36px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 1px 1px 1px 6px;
  background-color: rgb(241 231 211 / .84);
  pointer-events: none;
}
.shell-menu-bar .shell-toggle:focus-visible {
  background-color: var(--shell-field);
  outline-offset: -4px;
}
.shell-header--b .shell-toggle:focus-visible {
  outline-offset: -4px;
  box-shadow: inset 0 0 0 6px var(--shell-ivory);
}
.shell-header--b .shell-toggle::before,
.shell-menu-bar .shell-toggle::before {
  content: "";
  position: absolute;
  width: 31px;
  height: 25px;
  left: 1px;
  bottom: 0;
  border: solid var(--shell-rule);
  border-width: 0 0 1px 1px;
  border-radius: 0 0 0 15px;
}
.shell-glyph {
  width: 32px;
  height: 26px;
  position: relative;
  display: inline-block;
  --shell-strokes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 26'%3E%3Cpath d='M7 5.1 29 4.8l-.8 1.8L7 6.5ZM1.8 12.4l26.7-.3-.8 1.9-25.9-.2ZM11.6 19.7l16.5-.3-.8 1.8-15.7-.1Z'/%3E%3C/svg%3E");
  --shell-pip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 26'%3E%3Cpath d='m5.8 17.8 2.1 2.5-2.1 2.5-2.1-2.5Z'/%3E%3C/svg%3E");
}
.shell-glyph::before, .shell-glyph::after {
  content: "";
  position: absolute;
  inset: 0;
  mask: var(--shell-strokes) center / contain no-repeat;
  background: currentColor;
}
.shell-glyph::after {
  mask-image: var(--shell-pip);
  background-color: var(--shell-accent);
}
.shell-toggle:hover .shell-glyph {
  color: var(--shell-accent);
  --shell-strokes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 26'%3E%3Cpath d='M4 5.1 29 4.8l-.8 1.8L4 6.5ZM1.8 12.4l26.7-.3-.8 1.9-25.9-.2ZM11.6 19.7l17-.3-.8 1.8-16.2-.1Z'/%3E%3C/svg%3E");
}
.shell-toggle:active .shell-glyph {
  transform: scale(.93);
  color: var(--shell-accent);
  --shell-strokes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 26'%3E%3Cpath d='m6 7 23 3-.8 1.6L5.6 8.3ZM2 12.4l26-.3-.6 1.9-25.5-.2ZM10 18.2l17-3.1.3 1.7-17.3 2.7Z'/%3E%3C/svg%3E");
}
.shell-toggle[data-state="open"] .shell-glyph {
  --shell-strokes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 26'%3E%3Cpath d='m7 3 18.9 18-.6 2L5.8 4Zm17.4.5 1.1 1.3L7.2 22.6l-1-1.1Z'/%3E%3C/svg%3E");
}
.shell-toggle[data-state="open"] .shell-glyph::after { display: none; }

.shell-glyph--animated::before, .shell-glyph--animated::after { content: none; }

.shell-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
}
.shell-menu::backdrop { background: transparent; }
.shell-menu-scroll {
  height: 100%;
  position: relative;
  overflow: auto;
  overscroll-behavior: contain;
}
.shell-menu-composition {
  min-height: 100%;
  position: relative;
  isolation: isolate;
  padding: var(--shell-header-top) var(--shell-header-right) max(34px, env(safe-area-inset-bottom, 0px)) max(var(--shell-inset), env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-rows: auto 1fr;
}
.shell-footer.shell-material {
  background-image: linear-gradient(var(--shell-veil), var(--shell-veil)), var(--shell-image);
  background-size: auto, var(--shell-image-size);
}
.shell-menu-backdrop {
  background-image: url("./assets/web/forest-menu-1440.webp");
  background-size: var(--shell-image-size);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
@media (max-width: 767px) {
  .shell-menu-backdrop { background-image: url("./assets/web/forest-menu-720.webp"); }
}
.shell-footer { --shell-veil: var(--shell-footer-veil); }
.shell-menu-bar {
  min-height: 48px;
  padding-right: var(--shell-header-width);
}
.shell-menu-bar .shell-toggle {
  position: fixed;
  z-index: 2;
  top: var(--shell-header-top);
  right: var(--shell-header-right);
  background-color: var(--shell-tint);
}
.shell-menu-bar h2 {
  width: fit-content;
  margin: clamp(25px, 4.3vh, 54px) 0 0 clamp(8px, 3vw, 55px);
  color: var(--shell-accent);
  font: 400 clamp(43px, 4.25vw, 65px)/1.05 var(--shell-script);
  transform: rotate(-4deg);
}
.shell-menu-body {
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: center;
  width: 100%;
  max-width: 1550px;
  margin-inline: auto;
}
.shell-frontispiece {
  width: min(92%, 470px);
  align-self: end;
  margin: 0 0 clamp(6px, 7vh, 78px) clamp(0px, 1.3vw, 28px);
  color: var(--shell-secondary);
}
.shell-frontispiece svg { width: 100%; display: block; }
.shell-thread { stroke-width: 1.05; opacity: .72; }
.shell-directory { padding: 14px 0 18px; }
.shell-directory ul {
  display: grid;
  gap: clamp(0px, .38vh, 5px);
  font: 400 clamp(44px, min(5.3vw, 8.1vh), 84px)/1.06 var(--shell-forum);
  letter-spacing: -.025em;
}
.shell-directory li { position: relative; }
.shell-directory li > a,
.shell-directory .shell-apply {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.shell-directory li > a:hover {
  color: var(--shell-accent);
}
.shell-directory [aria-current="page"]::before {
  content: "";
  position: absolute;
  top: .52em;
  left: -.42em;
  width: .087em;
  height: .087em;
  background: var(--shell-accent);
  transform: rotate(45deg);
}
.shell .shell-apply, .shell .shell-text-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 44px;
  width: fit-content;
  color: var(--shell-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: color-mix(in srgb, var(--shell-accent) 68%, transparent);
}
.shell .shell-apply { font-size: 25px; line-height: 1.15; }
.shell-directory .shell-apply { margin-top: clamp(17px, 4.5vh, 50px); }
.shell .shell-text-link:hover,
.shell .shell-apply:hover {
  text-decoration-thickness: 2px;
  text-decoration-color: currentColor;
}

/* A quieter horizontal crop of the painted field closes the original canvas. */
.shell-footer {
  border-top: 3px solid #415142;
  padding: clamp(48px, 6vw, 88px) max(var(--shell-inset), env(safe-area-inset-right, 0px)) max(26px, env(safe-area-inset-bottom, 0px)) max(var(--shell-inset), env(safe-area-inset-left, 0px));
  font-size: 20px;
}
.shell-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .69fr) minmax(0, 1.03fr) minmax(0, 1.09fr);
  gap: clamp(20px, 3.2vw, 60px);
}
.shell-footer-main h2 {
  margin-bottom: 20px;
  font: 400 clamp(27px, 2.3vw, 36px)/1.15 var(--shell-forum);
}
.shell-footer ul { display: grid; gap: 9px; }
.shell-footer .shell-text-link { min-height: auto; }
.shell-footer a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.shell-footer h2 a { text-decoration: none; }
.shell-footer a:hover { color: var(--shell-accent); }
.shell-club-name {
  width: fit-content;
  font: 400 clamp(37px, 4.8vw, 82px)/.92 var(--shell-forum);
  letter-spacing: .025em;
}
.shell-club-name a { text-decoration: none; }
.shell-club-descriptor {
  margin: 12px 0 0 .42em;
  color: var(--shell-secondary);
  font: 400 clamp(22px, 2.15vw, 35px)/1.1 var(--shell-script);
  transform: rotate(-3deg);
  transform-origin: 0 50%;
}
.shell-contacts address {
  display: grid;
  justify-items: start;
  gap: 9px;
  font-style: normal;
}
.shell-contacts a {
  overflow-wrap: anywhere;
}
.shell-footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px 40px;
  margin-top: clamp(48px, 5.3vw, 80px);
  border-top: 1px solid var(--shell-rule);
  padding-top: 20px;
  color: var(--shell-secondary);
  font-size: 17px;
}
.shell-operator {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 5px;
}
.shell-age {
  flex: none;
  font-size: 20px;
}

.shell-cookie[data-shell-cookie-notice] {
  --cookie-left: max(12px, env(safe-area-inset-left, 0px));
  --cookie-right: max(12px, env(safe-area-inset-right, 0px));
  position: fixed;
  z-index: 7;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  right: var(--cookie-right);
  width: min(395px, calc(100% - var(--cookie-left) - var(--cookie-right)));
  max-height: calc(100dvh - max(24px, env(safe-area-inset-bottom, 0px)) - max(12px, env(safe-area-inset-top, 0px)));
  overflow: auto;
  box-sizing: border-box;
}
@media (max-width: 620px) {
  body:has([data-shell-cookie-notice]:not([hidden])) .fixed-application { display: none; }
}
.shell-cookie {
  width: min(100%, 395px);
  padding: 18px 23px 13px;
  border: 1px solid var(--shell-bordeaux);
}
.shell-cookie h2 { font: 400 29px/1.12 var(--shell-forum); }
.shell-cookie p { margin-top: 6px; font-size: 19px; }
.shell-cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1px 15px; margin-top: 7px; }
.shell .shell-choice {
  min-height: 44px;
  display: inline-grid;
  align-items: center;
  position: relative;
  padding: 0 10px;
  color: var(--shell-fg);
  font: 400 18px/1 var(--shell-forum);
  cursor: pointer;
}
.shell-choice::before {
  content: "";
  position: absolute;
  inset: 5px 0;
  border: 1px solid var(--shell-rule);
}
.shell-choice:is(:hover, :focus-visible)::before { border-color: var(--shell-fg); }
.shell .shell-choice:active { color: var(--shell-accent); }
.shell-cookie .shell-text-link { font-size: 18px; cursor: pointer; }
.shell-cookie-settings {
  width: min(calc(100% - max(28px, env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px))), 430px);
  max-height: calc(100% - max(28px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)));
  max-height: calc(100dvh - max(28px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)));
  padding: 18px 23px;
  overflow: auto;
  overscroll-behavior: contain;
}
.shell-cookie-settings::backdrop { background-color: rgb(28 47 36 / .58); }
.shell-settings-head { display: flex; align-items: center; justify-content: space-between; }
.shell-settings-head .shell-toggle { width: 44px; height: 44px; }
.shell-settings-head .shell-glyph { transform: scale(.73); }
.shell-cookie .shell-settings-draft {
  margin: 8px 0 17px;
  padding: 0 0 17px;
  border-bottom: 1px solid var(--shell-rule);
  color: var(--shell-secondary);
  font-size: 17px;
}

@media (max-width: 900px) {
  .shell-footer-main { grid-template-columns: 1fr 1fr 1.4fr; }
  .shell-colophon { grid-column: 1 / -1; margin-bottom: 12px; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  :root { --shell-forest-image: url("./assets/adaptive/forest.webp"); }
  .shell-menu-backdrop { background-image: url("./assets/web/forest-menu-720.webp"); }
}
@media (max-width: 767px) {
  :root {
    --shell-forest-image: url("./assets/adaptive/forest-phone.webp");
    --shell-header-top: calc(10px + env(safe-area-inset-top, 0px));
    --shell-header-right: max(23px, env(safe-area-inset-right, 0px));
    --shell-header-width: 54px;
  }
  .shell[data-surface="forest"] { --shell-image-size: max(100%, 460px) auto; }
  .shell-menu-composition {
    padding: var(--shell-header-top) var(--shell-header-right) max(22px, env(safe-area-inset-bottom, 0px)) max(26px, env(safe-area-inset-left, 0px));
  }
  .shell-menu-bar h2 {
    margin: clamp(18px, 4.3vh, 40px) 0 0;
    font-size: clamp(36px, 8.5vw, 47px);
  }
  .shell-menu-body { grid-template-columns: 1fr; }
  .shell-directory { padding: 26px 0 36px; margin-left: clamp(20px, 7.2vw, 58px); }
  .shell-directory ul { gap: clamp(2px, .85vh, 7px); font-size: clamp(40px, min(12.3vw, 7.7vh), 64px); line-height: 1.08; }
  .shell-directory li { min-height: 44px; }
  .shell-directory .shell-apply { margin-top: clamp(13px, 4.7vh, 42px); font-size: 22px; }
  .shell-frontispiece {
    position: absolute;
    z-index: -1;
    bottom: 9px;
    right: max(-16px, env(safe-area-inset-right, 0px));
    margin: 0;
    width: clamp(125px, 37vw, 200px);
  }
  .shell-footer { padding: 39px max(26px, env(safe-area-inset-right, 0px)) max(23px, env(safe-area-inset-bottom, 0px)) max(26px, env(safe-area-inset-left, 0px)); }
  .shell-footer-main { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .shell-colophon { margin: 0 0 2px; }
  .shell-club-name { font-size: 52px; }
  .shell-club-descriptor { margin: 6px 0 0 9px; font-size: 25px; }
  .shell-footer-main h2 { margin-bottom: 12px; font-size: 29px; }
  .shell-footer ul { gap: 8px; }
  .shell-footer nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .shell-footer-base { gap: 18px; margin-top: 36px; padding-top: 16px; }
  .shell-operator { display: grid; }
}
@media (pointer: coarse) {
  .shell-cookie-actions :is(button, a), .shell-footer nav a {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
    touch-action: manipulation;
  }
  .shell-cookie-settings, .shell-menu { overscroll-behavior: contain; }
}
@media (max-width: 400px) {
  .shell-footer { font-size: 19px; padding-inline: max(23px, env(safe-area-inset-left, 0px)) max(23px, env(safe-area-inset-right, 0px)); }
  .shell-footer-main { gap: 28px 16px; }
  .shell-cookie { padding: 13px 15px 9px; }
  .shell-cookie-actions { gap: 1px 10px; }
}
@media (max-width: 767px) and (max-height: 610px) {
  .shell-menu-bar h2 { margin-top: 10px; }
  .shell-directory { padding-block: 13px; }
  .shell-directory ul { gap: 0; font-size: clamp(35px, 6.9vh, 43px); }
  .shell-directory .shell-apply { margin-top: 9px; }
  .shell-frontispiece { width: 110px; }
}
@media (min-width: 768px) and (max-height: 575px) {
  .shell-menu-bar h2 { margin-top: 5px; font-size: 38px; }
  .shell-menu-composition { padding-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  .shell-directory { padding: 4px 0 0; }
  .shell-directory ul { gap: 0; font-size: clamp(30px, 7.6vh, 44px); }
  .shell-directory .shell-apply { margin-top: 8px; }
}

@media (min-width: 530px) and (max-width: 767px) and (max-height: 450px) {
  .shell-directory { margin-left: 25px; }
  .shell-directory ul { grid-template-columns: repeat(2, max-content); grid-auto-flow: column; grid-template-rows: repeat(4,auto); column-gap: clamp(30px,7vw,64px); }
}

@media (forced-colors: active) {
  .shell, .shell-menu-backdrop { color: CanvasText; background-color: Canvas; background-image: none; }
  .shell :focus-visible, .shell-footer:focus-visible, .shell-footer section:focus-visible { outline-color: Highlight; }
  .shell-glyph, .shell-glyph::before, .shell-glyph::after { forced-color-adjust: none; color: ButtonText; }
  .shell-glyph::after { background-color: Highlight; }
  .shell-glyph [data-shell-stroke="pip"] { fill: Highlight; }
  .shell-header .shell-toggle, .shell-menu-bar .shell-toggle { background-color: Canvas; }
  .shell-header--b .shell-toggle:focus-visible { outline-color: Highlight; box-shadow: none; }
}

.shell-home-sign {
  position: fixed;
  top: var(--shell-header-top);
  left: max(var(--shell-inset), env(safe-area-inset-left));
  z-index: 5;
  width: clamp(58px, 6.6vw, 70px);
  height: auto;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #f4ecddd9;
  border-radius: 50%;
}
.shell-home-sign[hidden] { display: none; }
.shell-home-sign img { width: 100%; height: auto; }
.shell-home-sign:focus-visible { outline: 2px solid #713241; outline-offset: 2px; }
