@font-face {
  font-family: "Favorit Mono";
  src: url("fonts/FavoritMono-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F0EFE6;
  --green: #0B3B29;
  --green-dark: #102E1E;

  --plate: min(69.26svh, 38.96vw);
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--green);
  font-family: "Favorit Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 400;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.home {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr var(--plate) 1fr;
  align-items: center;
  overflow: hidden;
}

.brand {
  position: relative;
  justify-self: end;
  width: calc(var(--plate) * 0.4366);
  aspect-ratio: 326.63 / 159.35;
  margin: 0;
  color: var(--green-dark);
  font-size: calc(var(--plate) * 0.01203);
  font-weight: 400;
  container-type: inline-size;
}
.brand__logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 326.63 / 159.35;
  fill: currentColor;
}
.brand__tagline {
  position: absolute;
  left: 80.05%;
  top: 49.6%;
  font-size: max(2.755cqw, 6px);
  line-height: 1.42;
  white-space: nowrap;
}

.plate {
  position: relative;
  width: var(--plate);
  aspect-ratio: 1;
  container-type: inline-size;
  pointer-events: none;
}
.plate__img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.956;
  user-select: none;
  -webkit-user-drag: none;
}
.plate__logo {
  position: absolute;
  left: 39.97%;
  top: 11.94%;
  width: 20%;
  aspect-ratio: 326.63 / 159.35;
  fill: var(--green);
}
.plate__disc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 23.98%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green);
  transform: translate(-50%, -50%);
}
.plate__disc::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 7.83%;
  height: 7.83%;
  border-radius: 50%;
  background: var(--bg);
}
.plate__label {
  position: absolute;
  left: 0;
  right: 0;
  top: 80.5%;
  text-align: center;
  font-size: max(1.738cqw, 6px);
  line-height: 1.2;
}

.menu {
  position: relative;
  z-index: 1;
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: calc(var(--plate) * 0.0174);
  font-size: clamp(13px, calc(var(--plate) * 0.02406), 22px);
  line-height: 2;
}
.menu a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.menu a:hover { opacity: 0.55; }
.menu a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.date {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10.6svh;
  margin: 0;
  text-align: center;
  font-size: clamp(13px, calc(var(--plate) * 0.02406), 22px);
  line-height: 1;
}

@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  :root {

    --plate: min(132.6vw, 61.2svh);
  }

  .home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: max(2.46svh, env(safe-area-inset-top));
    padding-bottom: max(5.6svh, env(safe-area-inset-bottom));
  }

  .brand {
    width: calc(var(--plate) * 0.4798);
    flex: none;
  }

  .menu {
    order: 2;
    align-items: center;
    margin: 4.6svh 0 0;
    font-size: 18px;
    line-height: 32px;
  }

  .plate {
    order: 3;
    flex: none;
    margin-top: calc(var(--plate) * -0.021);
    margin-bottom: calc(var(--plate) * -0.0365);
  }

  .date {
    order: 4;
    position: static;
    font-size: 18px;
  }
}

.club {
  width: 100vw;
  max-width: 100vw;
  height: 100svh;
  max-height: 100svh;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--green);
}
.club[open] {
  display: grid;
  place-items: center;
  overflow-y: auto;
}
.club::backdrop { background: var(--bg); }

.club__bar {
  position: absolute;
  top: max(32px, env(safe-area-inset-top));
  right: max(32px, env(safe-area-inset-right));
  margin: 0;
}
.club__close,
.club__submit {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 18px;
  line-height: 2;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.club__close:hover,
.club__submit:hover { opacity: 0.55; }
.club__close:focus-visible,
.club__submit:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}
.club__submit:disabled {
  opacity: 0.55;
  cursor: default;
}

.club__body {
  width: min(540px, calc(100vw - 48px));
  padding: 88px 0 40px;
  font-size: 18px;
  line-height: 1.6;
}
.club__title {
  margin: 0 0 48px;
}
.club__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.club__form[hidden] { display: none; }
.club__label {
  font-size: 13px;
  line-height: 1.2;
}
.club__input {
  width: 100%;
  margin: 6px 0 0;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--green);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 18px;
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
}
.club__input::placeholder {
  color: var(--green);
  opacity: 0.35;
}
.club__input:focus { outline: none; border-bottom-width: 2px; padding-bottom: 7px; }
.club__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.club__msg {
  min-height: 1.6em;
  margin: 10px 0 14px;
  font-size: 13px;
  line-height: 1.6;
}
.club__done { margin: 0; }
.club__legal {
  margin: 28px 0 0;
  font-size: 11px;
  line-height: 1.5;
  text-transform: none;
  opacity: 0.6;
}
.club__legal + .club__legal { margin-top: 10px; }
.club__legal a { color: inherit; }
.grecaptcha-badge { visibility: hidden; }

@media (max-width: 480px) {
  .club__bar {
    top: max(20px, env(safe-area-inset-top));
    right: 24px;
  }
  .club__title { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .menu a { transition: none; }
}
