/* Room legal pages - stripped-back, premium, aligned with the home screen. */

@font-face {
  font-family: "Panchang";
  src: url("/fonts/Panchang-Variable.ttf") format("truetype");
  font-weight: 680; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Google Sans";
  src: url("/fonts/google-sans-latin-400-normal.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Google Sans";
  src: url("/fonts/google-sans-latin-500-normal.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Google Sans";
  src: url("/fonts/google-sans-latin-600-normal.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cooper Hewitt";
  src: url("/fonts/cooper-hewitt-latin-600-normal.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0E101C;
  --ink: #F6EDEA;
  --ink-70: rgba(246, 237, 234, 0.70);
  --ink-55: rgba(246, 237, 234, 0.55);
  --ink-40: rgba(246, 237, 234, 0.40);
  --rim: rgba(246, 237, 234, 0.09);
  --sans: "Google Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --label: "Cooper Hewitt", var(--sans);
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  min-width: 320px;
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Match articles/events: centered wordmark in a compact top bar. */
.masthead {
  width: min(100% - 40px, 1120px);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--rim);
}
.wordmark {
  font-family: "Panchang", var(--sans);
  font-weight: 680;
  font-size: 18px;
  letter-spacing: 0.6px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.masthead:has(.pagetoggle) {
  min-height: 0;
  padding: 22px 0 18px;
}
.pagetoggle {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
}
.pagetoggle a { color: var(--ink-40); text-decoration: none; transition: color 0.15s ease; }
.pagetoggle a:hover { color: var(--ink-70); }
.pagetoggle a[aria-current="page"] { color: var(--ink); }

main {
  width: min(100% - 40px, 43rem);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem) 0 3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Contact: same chrome width + bottom inset as events/articles (footer flush, then 48px). */
body.page-contact main {
  width: min(100% - 40px, 1120px);
  padding: 0 0 48px;
}
body.page-contact .contact-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.55rem;
}
body.page-contact h1 {
  margin: 0;
}
body.page-contact .contact-email {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-70);
}
body.page-contact .contact-email a {
  color: inherit;
  text-decoration-color: var(--ink-40);
}
body.page-contact .contact-email a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

h1 {
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}
.meta { color: var(--ink-40); font-size: 0.9rem; margin: 0 0 2.2rem; }
.lede { font-size: 1.05rem; color: var(--ink-70); margin: 0 0 1.4rem; }

section { padding-top: 2.1rem; margin-top: 2.1rem; border-top: 1px solid var(--rim); }
section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }

h2 { font-weight: 600; font-size: 1.15rem; letter-spacing: -0.005em; margin: 0 0 0.7rem; }
h3 { font-weight: 600; font-size: 1rem; margin: 1.3rem 0 0.35rem; color: rgba(246, 237, 234, 0.94); }

p, li { color: rgba(246, 237, 234, 0.85); }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin: 0 0 0.5rem; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--ink-40); }
a:hover { text-decoration-color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 0 0 1.2rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.65rem 0.8rem 0.65rem 0; border-bottom: 1px solid var(--rim); vertical-align: top; }
thead th {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  color: var(--ink-55);
  font-weight: 600;
}
tbody td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; padding-right: 1.4rem; }

/* Mandatory legal blocks - restrained, not boxed. */
.legalese { font-size: 0.9rem; line-height: 1.6; color: var(--ink-70); }
.legalese.upper { text-transform: uppercase; letter-spacing: 0.03em; }

footer {
  margin-top: auto;
  padding-top: 42px;
  padding-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  justify-content: space-between;
  font-family: var(--label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ink-40);
}
footer a { color: var(--ink-55); text-decoration: none; }
footer a:hover { color: var(--ink); }
.footer-wordmark {
  font-family: "Panchang", var(--sans);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.5px;
  line-height: 1;
  color: var(--ink-55);
}
.footer-wordmark:hover { color: var(--ink); }
.footer-links {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px 2px;
  margin-left: auto;
  max-width: 100%;
}
.footer-links a {
  display: inline-block;
  padding: 4px 7px;
  white-space: nowrap;
}
/* When the link row can't sit beside the wordmark, drop it under — still one line. */
@media (max-width: 420px) {
  .footer-links {
    flex: 1 0 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

