@font-face { font-family: Instrument; src: url('/instrument-serif.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: Instrument; src: url('/instrument-serif-italic.woff2') format('woff2'); font-style: italic; font-display: swap; }
:root {
  color-scheme: dark;
  --ground: #0c1516;
  --paper: #f9f0dd;
  --muted: #abbdb9;
  --gold: #f1bf86;
  --line: #38504f;
  --inset: clamp(1.35rem, 5vw, 5rem);
  --serif: Instrument, Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--paper);
  background: var(--ground);
  font: 1rem/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
figure, h1, h2, p { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.brand { display: inline-block; color: var(--paper); font: 650 .88rem/1 var(--mono); letter-spacing: .2em; text-decoration: none; }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; min-height: 4.5rem; padding: .7rem var(--inset); border-bottom: 1px solid var(--line); }
.mast nav { display: flex; gap: clamp(1.1rem, 3.3vw, 3rem); }
.mast nav a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.mast nav a:hover { color: var(--paper); text-decoration: underline; }
.board { padding: 0 var(--inset) 3rem; max-width: 105rem; margin-inline: auto; }
.hero { position: relative; min-height: clamp(15rem, 33vw, 28rem); display: grid; align-items: end; margin-bottom: 1.4rem; isolation: isolate; }
.hero-art { position: absolute; inset: 0 0 0 29%; z-index: -1; overflow: hidden; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ground), transparent 47%), linear-gradient(0deg, var(--ground), transparent 39%); }
.hero-art img, .gate-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 67% 49%; }
.hero-art figcaption, .gate-art figcaption { position: absolute; z-index: 1; right: 1rem; bottom: .8rem; font: .75rem/1.4 var(--mono); letter-spacing: .04em; color: var(--paper); }
.intro { position: relative; padding-bottom: clamp(1.6rem, 5.5vw, 5rem); }
.byline { color: var(--muted); font: .87rem/1.55 var(--mono); letter-spacing: .075em; text-transform: uppercase; }
.intro .byline { margin-bottom: .8rem; }
h1, h2 { font: 400 2.65rem/.94 var(--serif); }
h1 { font-size: clamp(4.15rem, 10.5vw, 10rem); letter-spacing: -.035em; }
h1 em { color: var(--gold); }
.rooms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: #142122; }
.rooms section { --accent: #b3d1c4; min-width: 0; display: flex; flex-direction: column; padding: clamp(1.25rem, 2.5vw, 2.2rem); border-inline-end: 1px solid var(--line); }
.rooms section:nth-child(2) { --accent: #a8c9e1; }
.rooms section:nth-child(3) { --accent: #edbf91; }
.rooms section:nth-child(4) { --accent: #d0bbd2; border-inline-end: 0; }
.rooms section::before { content: ''; display: block; width: 2.1rem; height: 2px; margin-bottom: 1.15rem; background: var(--accent); }
.rooms section:target { background: #1c2d2d; }
.rooms h2 { margin-bottom: .85rem; }
.rooms p { color: var(--muted); margin-bottom: 1.3rem; max-width: 24ch; }
.primary-link { display: block; margin-top: auto; padding: .65rem .75rem; color: var(--paper); border: 1px solid var(--line); line-height: 1.35; text-decoration: none; }
.primary-link:hover { color: var(--ground); border-color: var(--accent); background: var(--accent); }
.rooms ul { list-style: none; min-height: 4.65rem; padding: .55rem 0 0; margin: 0; }
.rooms li a { display: inline-block; padding-block: .3rem; color: var(--muted); font-size: .9rem; }
.rooms li a:hover { color: var(--paper); }
.sign-in { min-height: 100svh; display: grid; }
.gate { display: grid; grid-template-columns: minmax(25rem, 2fr) minmax(0, 3fr); }
.gate-content { align-self: center; padding: 3rem var(--inset); }
.gate .brand { margin-bottom: clamp(2rem, 9vh, 6.5rem); }
.gate h1 { font-size: clamp(4.5rem, 7.8vw, 8rem); max-width: 7ch; }
.gate .byline { margin-top: 1.25rem; }
.gate form { max-width: 29rem; margin-top: 2.1rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.gate-art { position: relative; min-height: 100%; }
.gate-art img { position: absolute; }
.gate-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #081418a8, transparent 30%); }
label { display: block; margin-bottom: .5rem; }
.input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; }
button, input { min-height: 2.8rem; font: inherit; padding: .58rem .86rem; border: 1px solid var(--line); border-radius: 0; }
input { min-width: 0; background: #152326; color: var(--paper); }
button { background: var(--gold); border-color: var(--gold); color: #20150c; font-weight: 650; cursor: pointer; }
button:hover { background: #ffe0ae; }
button.quiet { color: var(--paper); background: transparent; border-color: var(--line); font-size: .86rem; }
button.quiet:hover { border-color: var(--gold); color: var(--gold); }
#login-message { color: #ffc5a9; margin-top: .6rem; }
#login-message:empty { display: none; }
@media (max-width: 68rem) {
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rooms section:nth-child(2n) { border-inline-end: 0; }
  .rooms section:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 43rem) {
  .gate { grid-template-columns: 1fr; grid-template-rows: auto minmax(10rem, 1fr); }
  .gate-content { padding-block: 3.25rem; }
  .gate h1 { font-size: clamp(4rem, 12vw, 6rem); max-width: none; }
  .mast nav { display: none; }
  .hero { min-height: 16rem; }
  .hero-art { inset-inline-start: 0; }
  .hero-art::after { background: linear-gradient(0deg, var(--ground), #0c15163b 85%); }
  .hero-art figcaption { bottom: .3rem; }
}
@media (max-width: 30rem) {
  .rooms { grid-template-columns: 1fr; }
  .rooms section { border-inline-end: 0; }
  .rooms section:nth-child(n+2) { border-top: 1px solid var(--line); }
  .rooms ul { min-height: 0; }
}
