:root {
  --paper: #f2f2ef;
  --ink: #111111;
  --muted: #6c6c68;
  --yellow: #ffd900;
  --font-sans: "Space Grotesk", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
}

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

html {
  width: 100%;
  height: 100%;
}

body.home-page {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.splash {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
}

.splash::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(10px, 1.25vw, 20px);
  height: 100%;
  background: var(--yellow);
}

.splash-logo {
  position: absolute;
  top: 46%;
  left: 50%;
  width: min(52vw, 700px);
  height: min(58vh, 590px);
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.corner {
  position: absolute;
  bottom: clamp(28px, 4vw, 62px);
  z-index: 2;
}

.corner-left {
  left: clamp(24px, 4vw, 64px);
}

.corner-right {
  right: clamp(34px, 5vw, 84px);
  display: grid;
  grid-template-columns: auto clamp(70px, 7vw, 108px);
  gap: 16px 28px;
  align-items: end;
}

.micro,
.activity-line,
.meta-links {
  font-family: var(--font-mono);
  font-size: clamp(0.61rem, 0.75vw, 0.72rem);
  text-transform: uppercase;
}

.micro {
  margin-bottom: 9px;
  color: var(--muted);
}

.place {
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  font-weight: 600;
  line-height: 1.08;
}

.member-stat {
  display: inline-flex;
  align-items: flex-end;
  gap: 13px;
  margin-top: 18px;
  padding: 10px 14px 11px;
  background: var(--yellow);
}

.member-stat strong {
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 0.78;
}

.member-stat span {
  font-family: var(--font-mono);
  font-size: clamp(0.58rem, 0.7vw, 0.68rem);
  line-height: 1.25;
  text-transform: uppercase;
}

.main-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  grid-column: 1;
}

.main-links a,
.main-links button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: clamp(1.35rem, 2.3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.08;
}

.main-links span {
  color: var(--muted);
  font-weight: 400;
}

.main-links a:hover,
.main-links button:hover,
.meta-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.qr-link {
  grid-column: 2;
  grid-row: 1;
}

.qr-link img {
  display: block;
  width: 100%;
  height: auto;
  padding: 4px;
  background: #fff;
}

.meta-links {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
}

.activity-line {
  position: absolute;
  top: clamp(24px, 3vw, 48px);
  left: clamp(24px, 4vw, 64px);
  color: var(--muted);
}

.contact-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  overflow: auto;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(24px, 4vw, 54px);
}

.contact-dialog::backdrop {
  background: rgba(17, 17, 17, 0.72);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 42px;
}

.dialog-head h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.dialog-close {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

form,
label {
  display: flex;
  flex-direction: column;
}

form {
  gap: 24px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

label span {
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 0;
  border-bottom-width: 3px;
}

.submit-button {
  min-height: 52px;
  margin-top: 8px;
  border: 1px solid var(--ink);
  background: var(--yellow);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.submit-button:hover,
.dialog-close:hover {
  background: var(--ink);
  color: #fff;
}

.honey {
  display: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ff6b00;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .splash {
    min-height: 600px;
  }

  .splash-logo {
    top: 35%;
    width: min(76vw, 480px);
    height: 42vh;
  }

  .corner {
    bottom: 24px;
  }

  .corner-left {
    left: 20px;
  }

  .corner-right {
    right: 30px;
    grid-template-columns: auto 62px;
    gap: 12px 16px;
  }

  .member-stat {
    gap: 8px;
    padding: 8px 10px 9px;
  }

  .member-stat strong {
    font-size: 2.6rem;
  }

  .main-links a,
  .main-links button {
    font-size: clamp(1.15rem, 5vw, 1.55rem);
  }

  .meta-links {
    max-width: 210px;
    margin-left: auto;
    gap: 6px 12px;
    font-size: 0.55rem;
  }

  .activity-line {
    top: 22px;
    left: 20px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .splash-logo {
    top: 29%;
    width: 78vw;
    height: 36vh;
  }

  .corner-left,
  .corner-right {
    bottom: 20px;
  }

  .corner-right {
    grid-template-columns: auto;
  }

  .qr-link {
    display: none;
  }

  .main-links {
    grid-column: 1;
  }

  .meta-links {
    grid-column: 1;
  }

  .place {
    font-size: 0.88rem;
  }

  .member-stat span {
    display: none;
  }
}

/* Legal pages */
.legal-minimal {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.legal-bar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--ink);
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.05;
}

.legal-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.back-link,
.legal-footer {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.back-link:hover,
.legal-copy a:hover,
.legal-footer a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  min-height: calc(100svh - 174px);
  border-bottom: 1px solid var(--ink);
}

.legal-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(44px, 6vw, 92px);
  border-right: 1px solid var(--ink);
  background: var(--yellow);
}

.legal-side h1 {
  font-size: clamp(3.4rem, 7.5vw, 8rem);
  font-weight: 600;
  line-height: 0.85;
  overflow-wrap: anywhere;
}

.legal-copy {
  width: 100%;
  max-width: 900px;
  padding: clamp(52px, 8vw, 120px);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.72;
}

.legal-copy p + p,
.legal-copy p + h2,
.legal-copy h2 + p {
  margin-top: 32px;
}

.legal-copy h2 {
  max-width: 650px;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.legal-copy a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.legal-footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(20px, 4vw, 64px);
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

@media (max-width: 760px) {
  .legal-bar {
    min-height: 74px;
  }

  .legal-brand img {
    width: 38px;
    height: 38px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-side {
    min-height: 250px;
    padding: 34px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .legal-copy {
    padding: 52px 24px 72px;
  }

  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
