/* The Rosedale Cup VII. Members' Pavilion, 2027 */
/* A private circular. Not a product page. */

:root {
  --green: #004225;
  --green-deep: #06150E;
  --green-mid: #0E2A1C;
  --gold: #C4A747;
  --brass: #B8952A;
  --cream: #F3EEE3;
  --ivory: #FAF7F0;
  --charcoal: #1A1A16;
  --gold-soft: rgba(196, 167, 71, 0.42);
  --measure: 820px;
  --pad: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  background: var(--ivory);
  color: var(--charcoal);
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "EB Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.7;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1, "lnum" 0;
  text-rendering: optimizeLegibility;
  background-color: var(--ivory);
  background-image: url("assets/grain.png");
  background-repeat: repeat;
  background-size: 240px 240px;
  background-blend-mode: multiply;
}

img {
  max-width: 100%;
  display: block;
}

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

::selection {
  background: var(--gold);
  color: var(--green-deep);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--green-deep);
  color: var(--cream);
  padding: 0.5rem 0.8rem;
  z-index: 20;
  font-family: "Cinzel", serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.skip:focus {
  top: 1rem;
}

/* Grain veil: printed stock, not a UI overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  background-image: url("assets/grain.png");
  background-repeat: repeat;
  background-size: 220px 220px;
  opacity: 0.13;
  mix-blend-mode: overlay;
}

.wrap {
  width: min(var(--measure), calc(100% - 2.75rem));
  margin-inline: auto;
  min-width: 0;
  max-width: 100%;
}

.label {
  font-family: "Cinzel", serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1.4;
}

h1, h2, h3 {
  font-family: "Cinzel", serif;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--green-deep);
  line-height: 1.18;
  font-synthesis: none;
}

h1 {
  font-size: clamp(2.35rem, 6.2vw, 4.4rem);
  letter-spacing: 0.155em;
  font-weight: 400;
  color: var(--cream);
}

h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: 0.22em;
  text-align: center;
}

h3 {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: 0.18em;
  text-align: center;
}

.rule {
  display: block;
  width: 72px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 1.6rem auto;
}

.rule-wide {
  width: 100%;
  height: 1px;
  background: var(--gold);
  border: 0;
  opacity: 0.85;
}

.rule-double {
  width: 88px;
  height: 5px;
  margin: 1.35rem auto 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.ornament {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  margin: 2.75rem auto;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  background-color: var(--green-deep);
  background-image:
    linear-gradient(
      180deg,
      rgba(6, 21, 14, 0.58) 0%,
      rgba(6, 21, 14, 0.40) 42%,
      rgba(6, 21, 14, 0.68) 78%,
      rgba(6, 21, 14, 0.88) 100%
    ),
    url("assets/hero.jpg");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.hero-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
  z-index: 2;
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: max(1.35rem, env(safe-area-inset-top, 0px)) max(2.4rem, env(safe-area-inset-right, 0px)) 1.2rem max(2.4rem, env(safe-area-inset-left, 0px));
  font-family: "Cinzel", serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

.topbar span + span {
  color: var(--gold);
}

.hero-inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem 4.5rem;
  -webkit-font-smoothing: antialiased;
}

.crest-hero {
  width: 92px;
  height: 92px;
  margin-bottom: 1.75rem;
}

.hero .label {
  color: var(--gold);
}

.hero h1 {
  margin: 0.15rem 0;
}

.hero-dates {
  margin-top: 1.15rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--cream);
  letter-spacing: 0.04em;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}

.hero-nav {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.6rem;
  padding: 0 1.5rem 2.4rem;
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}

.hero-nav a {
  color: rgba(243, 238, 227, 0.72);
  border-bottom: 1px solid transparent;
  padding: 0.45rem 0.15rem 0.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero-nav a:hover,
.hero-nav a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
  outline: none;
}

/* ---------- Sections ---------- */

section {
  padding: 6.75rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 3.25rem;
}

.section-head p.kicker {
  margin-bottom: 0.85rem;
}

/* ---------- Letter ---------- */

.letter {
  padding-top: 6.5rem;
  padding-bottom: 5.5rem;
}

.letter-date {
  text-align: right;
  margin-bottom: 2.75rem;
  color: var(--green);
  font-style: italic;
  font-size: 1.05rem;
}

.salutation {
  font-style: italic;
  font-size: 1.35rem;
  color: var(--green-deep);
  margin-bottom: 1.35rem;
}

.letter-body {
  max-width: 38em;
  margin: 0 auto;
}

.letter-body p {
  margin-bottom: 1.35rem;
  font-size: 1.2rem;
  line-height: 1.78;
}

.signoff {
  margin-top: 2.75rem;
  text-align: center;
}

.signoff .label {
  display: block;
  margin-top: 0.85rem;
  color: var(--green);
}

/* ---------- Plates (photographs) ---------- */

.plate {
  margin: 0;
  background: var(--green-deep);
}

.plate img {
  width: 100%;
  height: 52vh;
  min-height: 280px;
  max-height: 620px;
  object-fit: cover;
  object-position: center;
}

.plate figcaption {
  text-align: center;
  padding: 1.15rem 1.5rem 1.35rem;
  background: var(--ivory);
  background-image: url("assets/grain.png");
  background-repeat: repeat;
  background-size: 240px 240px;
  background-blend-mode: multiply;
}

/* ---------- Programme ---------- */

.programme-list {
  list-style: none;
  max-width: 34em;
  margin: 0 auto;
  text-align: center;
}

.programme-list li {
  padding: 2.1rem 0;
}

.programme-list li + li {
  border-top: 1px solid var(--gold-soft);
}

.programme-list .day {
  display: block;
  margin-bottom: 0.45rem;
}

.programme-list .date {
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 0.55rem;
}

.programme-list .act {
  font-size: 1.45rem;
  font-style: italic;
  color: var(--green-deep);
  margin-bottom: 0.55rem;
  font-feature-settings: "kern" 1, "liga" 1, "onum" 1;
}

.programme-list .note {
  color: var(--charcoal);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ---------- Proposals ---------- */

.proposal {
  padding: 3.25rem 0 2.5rem;
}

.proposal + .proposal {
  border-top: 1px solid var(--gold);
  margin-top: 1.25rem;
}

.proposal header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.proposal header .label {
  margin-bottom: 0.9rem;
}

.proposal .place {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--green);
  margin-top: 0.45rem;
  margin-bottom: 0.85rem;
}

.proposal .epithet {
  max-width: 28em;
  margin: 0.4rem auto 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 1rem;
  padding: 1.4rem 0 1.5rem;
  margin: 0 0 2.1rem;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  text-align: center;
}

.facts dt {
  margin-bottom: 0.4rem;
}

.facts dd {
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--green-deep);
  font-feature-settings: "kern" 1, "liga" 1, "lnum" 1, "onum" 0;
  line-height: 1.45;
}

.play {
  margin: 0 auto;
  max-width: 38em;
}

.play-row {
  display: grid;
  grid-template-columns: 8.2rem 1fr auto;
  gap: 0.75rem 1.15rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--gold-soft);
  font-feature-settings: "kern" 1, "liga" 1, "lnum" 1, "onum" 0;
  min-width: 0;
}

.play-row:last-child {
  border-bottom: 0;
}

.play-row .course {
  color: var(--green-deep);
  overflow-wrap: anywhere;
  min-width: 0;
}

.play-row .fee {
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--green);
  white-space: nowrap;
}

.play-aside {
  font-style: italic;
  font-size: 0.98rem;
  color: var(--charcoal);
  padding: 0.2rem 0 0.95rem 9.35rem;
  margin: 0;
}

.play-row.play-cont {
  padding-top: 0.15rem;
}

.proposal-foot {
  max-width: 38em;
  margin: 1.75rem auto 0;
  font-size: 1.02rem;
  font-style: italic;
  text-align: center;
  line-height: 1.65;
}

/* ---------- Declined ---------- */

.declined {
  padding-top: 2.5rem;
  padding-bottom: 6rem;
}

.declined-list {
  max-width: 38em;
  margin: 0 auto;
}

.declined-item {
  padding: 1.6rem 0;
}

.declined-item + .declined-item {
  border-top: 1px solid var(--gold-soft);
}

.declined-item h3 {
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-align: left;
  margin: 0.35rem 0 0.7rem;
}

.declined-item p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Ledger ---------- */

.ledger-intro {
  text-align: center;
  font-style: italic;
  max-width: 34em;
  margin: -1.4rem auto 2.6rem;
  font-size: 1.05rem;
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-feature-settings: "kern" 1, "liga" 1, "lnum" 1, "onum" 0;
}

.ledger th,
.ledger td {
  text-align: left;
  padding: 1.05rem 0.6rem;
  vertical-align: baseline;
}

.ledger th {
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

.ledger td {
  border-bottom: 1px solid var(--gold-soft);
  color: var(--green-deep);
}

.ledger td:not(:first-child),
.ledger th:not(:first-child) {
  text-align: right;
}

.ledger th:first-child,
.ledger td:first-child {
  padding-left: 0;
}

.ledger th:last-child,
.ledger td:last-child {
  padding-right: 0;
}

.ledger .seat {
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ledger-notes {
  margin-top: 2.5rem;
  max-width: 38em;
  margin-left: auto;
  margin-right: auto;
}

.ledger-notes p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.est {
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-left: 0.35rem;
}

/* ---------- Notes ---------- */

.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem 2.5rem;
  max-width: 38em;
  margin: 0 auto;
}

.note-block h3 {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-align: left;
  color: var(--green);
  margin-bottom: 0.7rem;
}

.note-block p {
  font-size: 1.08rem;
  line-height: 1.7;
}

.closing-note {
  max-width: 34em;
  margin: 3.5rem auto 0;
  text-align: center;
  font-style: italic;
  font-size: 1.15rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-deep);
  color: var(--cream);
  text-align: center;
  padding: 4.75rem 1.5rem 3.5rem;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--gold);
}

.crest-foot {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.6rem;
}

.closing-script {
  font-family: "Tangerine", cursive;
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.5rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.site-footer .colophon {
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  margin-top: 0.35rem;
}

.site-footer .year {
  display: block;
  margin-top: 0.85rem;
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: var(--gold);
}


/* ---------- Two papers, side by side ---------- */

.proposals-pair {
  display: grid;
  grid-template-columns: 1fr;
}

.ledger.origin {
  margin-top: 2.75rem;
}

.credits {
  max-width: 34rem;
  margin: 2.4rem auto 0;
  font-size: 0.72rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: rgba(243, 238, 227, 0.52);
  font-family: "EB Garamond", serif;
  text-transform: none;
}

.credits a {
  color: rgba(196, 167, 71, 0.85);
  border-bottom: 1px solid transparent;
}

.credits a:hover,
.credits a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
  outline: none;
}

@media (min-width: 860px) {
  #proposals .wrap {
    width: min(820px, calc(100% - 2.75rem));
  }

  .proposals-pair {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
  }

  .proposal {
    padding: 2.75rem 0 1.5rem;
  }

  .proposal + .proposal {
    border-top: 1px solid var(--gold);
    margin-top: 0.5rem;
    border-left: 0;
  }

  .proposal:first-child {
    padding-left: 0;
    padding-right: 0;
  }

  .proposal:last-child {
    padding-right: 0;
    padding-left: 0;
  }

  .proposal .facts {
    grid-template-columns: 1fr 1fr;
  }

  .play-row {
    grid-template-columns: 5.6rem 1fr auto;
    gap: 0.45rem 0.7rem;
  }

  .play-aside {
    padding-left: 0;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 720px) {
  body {
    font-size: 1.075rem;
  }

  .wrap {
    width: min(var(--measure), calc(100% - 1.5rem));
  }

  .topbar {
    padding: max(0.85rem, env(safe-area-inset-top, 0px)) max(0.85rem, env(safe-area-inset-right, 0px)) 0.85rem max(0.85rem, env(safe-area-inset-left, 0px));
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  html.in-club .topbar-playing {
    display: none;
  }

  .hero-frame {
    inset: 8px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-inner {
    padding: 1.15rem 1rem 2.25rem;
  }

  .crest-hero {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
  }

  h1 {
    letter-spacing: 0.08em;
    font-size: clamp(1.85rem, 11vw, 2.55rem);
  }

  h2 {
    letter-spacing: 0.12em;
  }

  h3 {
    letter-spacing: 0.1em;
    overflow-wrap: anywhere;
  }

  section {
    padding: 3.75rem 0;
  }

  .letter {
    padding-top: 3.5rem;
  }

  .letter-body p {
    font-size: 1.08rem;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 0.65rem;
  }

  .facts dd {
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
  }

  .proposals-pair,
  .proposal,
  .play {
    min-width: 0;
  }

  .play-row {
    grid-template-columns: 1fr auto;
    gap: 0.2rem 0.65rem;
  }

  .play-row .label {
    grid-column: 1 / -1;
    margin-bottom: 0.15rem;
  }

  .play-row .fee {
    font-size: 0.7rem;
  }

  .play-aside {
    padding-left: 0;
  }

  .play-row .label:empty {
    display: none;
  }

  .programme-list li {
    padding: 1.45rem 0;
  }

  .programme-list .act {
    font-size: 1.25rem;
  }

  .notes-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ledger th,
  .ledger td {
    padding: 0.85rem 0.35rem;
    font-size: 0.95rem;
  }

  .ledger .seat {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .hero-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.1rem 0.2rem;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    padding: 0 0.65rem 1.35rem;
    max-width: 100%;
  }

  .hero-nav a {
    min-height: 44px;
    padding: 0.35rem 0.45rem 0.3rem;
  }

  .plate img {
    height: 38vh;
    min-height: 220px;
  }

  .ballot-choice {
    min-height: 44px;
    gap: 0.7rem 0.75rem;
    padding: 0.95rem 0;
  }

  .ballot-place {
    letter-spacing: 0.08em;
    font-size: 1.05rem;
  }

  .tally-name {
    letter-spacing: 0.1em;
    font-size: 0.64rem;
  }

  .gate-enter {
    min-height: 44px;
    padding: 0.85rem 1.4rem;
    letter-spacing: 0.18em;
  }
}

@media (max-width: 420px) {
  .topbar {
    letter-spacing: 0.1em;
    font-size: 0.52rem;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem 0.5rem;
  }

  .ledger th:nth-child(2),
  .ledger td:nth-child(2) {
    display: none;
  }
}

@media (min-width: 900px) {
  .hero-frame {
    inset: 22px;
  }
}

/* ---------- Print ---------- */

@media print {
  body::after {
    display: none;
  }

  .hero {
    min-height: 90vh;
    break-after: page;
  }

  .hero-nav,
  .skip {
    display: none;
  }

  .plate img {
    height: 220px;
  }

  section {
    padding: 2.5rem 0;
  }

  .site-footer {
    padding: 2.5rem 1rem;
  }

  a {
    color: inherit;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Gate and pavilion ---------- */

html.at-gate,
html.at-gate body {
  overflow: hidden;
  height: 100%;
  height: 100svh;
  height: 100dvh;
}

html.at-gate #pavilion,
html.at-gate .pavilion,
html.at-gate .skip {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

html.in-club .entrance,
html.in-club #entrance {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.pavilion {
  overflow-x: hidden;
  max-width: 100%;
}

.entrance {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding:
    max(1.25rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    max(1.5rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
}

html.at-gate .entrance {
  display: flex;
}

.entrance-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: var(--green-deep);
  background-image: url("/assets/course-sketch.jpg?v=8");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 30%;
}

.entrance-sketch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
  pointer-events: none;
}

.entrance-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(6, 21, 14, 0.18) 0%,
      rgba(6, 21, 14, 0.08) 42%,
      rgba(6, 21, 14, 0.22) 100%
    );
  pointer-events: none;
}

.member-card {
  position: relative;
  z-index: 1;
  width: min(26.5rem, 100%);
  max-width: 100%;
  background: var(--cream);
  color: var(--charcoal);
  padding: 2.35rem 2.15rem 2rem;
  border: 1px solid var(--gold);
  box-shadow:
    0 0 0 7px var(--cream),
    0 0 0 8px rgba(196, 167, 71, 0.55),
    0 22px 48px rgba(6, 21, 14, 0.32);
  text-align: center;
}

.crest-gate {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
}

.member-card h2 {
  margin-top: 0.45rem;
  letter-spacing: 0.18em;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
}

.gate-playing {
  margin-top: 0.55rem;
  font-style: italic;
  color: var(--green);
  font-size: 1.08rem;
}

.member-card .rule {
  margin: 1.25rem auto 1.5rem;
}

.gate-field {
  display: block;
  text-align: left;
  margin-bottom: 1.15rem;
}

.gate-field .label {
  display: block;
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.gate-field input[type="text"],
.gate-field input[type="password"] {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gold);
  padding: 0.25rem 0 0.2rem;
  font-family: "EB Garamond", serif;
  font-size: max(16px, 1.15rem);
  line-height: 1.25;
  min-height: 2.5rem;
  color: var(--green-deep);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.gate-field input:focus {
  border-bottom-color: var(--green);
}

.gate-remember {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  margin: 0.4rem 0 1.15rem;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--green-deep);
  cursor: pointer;
  min-height: 44px;
}

.gate-remember input {
  accent-color: var(--green);
}

.gate-error {
  font-style: italic;
  font-size: 1.02rem;
  color: var(--green);
  margin: 0 0 1rem;
}

.gate-enter {
  display: inline-block;
  background: var(--green-deep);
  color: var(--cream);
  border: 1px solid var(--gold);
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  min-height: 44px;
  cursor: pointer;
}

.gate-enter:hover,
.gate-enter:focus-visible {
  background: var(--green);
  outline: none;
}

.gate-enter:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* ---------- Sign the book ---------- */

.book-sign {
  display: none;
  position: fixed;
  top: max(1rem, env(safe-area-inset-top, 0px));
  right: max(1.15rem, env(safe-area-inset-right, 0px));
  z-index: 50;
  align-items: flex-end;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.9rem 0.75rem;
  background: rgba(6, 21, 14, 0.78);
  border: 1px solid var(--gold-soft);
  color: var(--cream);
  text-align: right;
  font-family: "EB Garamond", serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
}

html.in-club .book-sign {
  display: flex;
}

.book-sign .label {
  color: var(--gold);
}

.book-name {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cream);
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-leave {
  margin-top: 0.25rem;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0;
  font-family: "Cinzel", serif;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 238, 227, 0.72);
  cursor: pointer;
  min-height: 44px;
}

.book-leave:hover,
.book-leave:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
  outline: none;
}

/* ---------- The Ballot ---------- */

.ballot-form {
  max-width: 34em;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.ballot-form fieldset {
  border: 0;
  margin: 0 0 1.75rem;
}

.ballot-form legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ballot-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1.1rem;
  align-items: start;
  text-align: left;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--gold-soft);
  cursor: pointer;
}

.ballot-choice:first-of-type {
  border-top: 1px solid var(--gold);
}

.ballot-choice:last-of-type {
  border-bottom: 1px solid var(--gold);
}

.ballot-choice input {
  margin-top: 0.55rem;
  accent-color: var(--green);
}

.ballot-place {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin: 0.2rem 0 0.35rem;
}

.ballot-aside {
  display: block;
  font-style: italic;
  font-size: 1.02rem;
}

.ballot-note {
  margin-top: 1.1rem;
  font-style: italic;
  color: var(--green);
}

.ballot-note.is-error {
  color: var(--green-deep);
}

.tally {
  max-width: 34em;
  margin: 0 auto;
}

.tally-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
}

.tally-name {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.tally-count {
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--green);
}

.tally-track {
  grid-column: 1 / -1;
  height: 4px;
  background: rgba(196, 167, 71, 0.18);
}

.tally-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.55s ease;
}

.tally-status {
  margin-top: 1.4rem;
  text-align: center;
  font-style: italic;
  font-size: 1.05rem;
}

@media (min-width: 900px) {
  .entrance {
    align-items: center;
    justify-content: flex-end;
    padding:
      max(6vh, env(safe-area-inset-top, 0px))
      max(9vw, env(safe-area-inset-right, 0px))
      max(16vh, env(safe-area-inset-bottom, 0px))
      max(4vw, env(safe-area-inset-left, 0px));
  }

  .entrance-bg {
    background-position: left 78%;
  }

  .entrance-sketch {
    object-position: left 78%;
  }
}

@media (max-width: 720px) {
  .entrance {
    align-items: flex-start;
    justify-content: center;
    padding:
      calc(env(safe-area-inset-top, 0px) + 1.5rem)
      calc(env(safe-area-inset-right, 0px) + 1.25rem)
      calc(env(safe-area-inset-bottom, 0px) + 1.5rem)
      calc(env(safe-area-inset-left, 0px) + 1.25rem);
  }

  .entrance-bg {
    background-position: center 30%;
  }

  .entrance-sketch {
    object-position: center 30%;
  }

  .member-card {
    width: min(26.5rem, 100%);
    margin-top: 6vh;
    padding: 1.35rem 1.2rem 1.25rem;
    box-shadow:
      0 0 0 3px var(--cream),
      0 0 0 4px rgba(196, 167, 71, 0.55),
      0 14px 32px rgba(6, 21, 14, 0.32);
  }

  .crest-gate {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.55rem;
  }

  .member-card h2 {
    letter-spacing: 0.06em;
    font-size: 1.02rem;
    margin-top: 0.2rem;
  }

  .gate-playing {
    font-size: 0.98rem;
    margin-top: 0.3rem;
  }

  .member-card .rule {
    margin: 0.75rem auto 0.9rem;
  }

  .gate-field {
    margin-bottom: 0.5rem;
  }

  .gate-field .label {
    margin-bottom: 0.08rem;
  }

  .gate-field input[type="text"],
  .gate-field input[type="password"] {
    font-size: 16px;
    min-height: 2.25rem;
    padding: 0.15rem 0 0.12rem;
    line-height: 1.2;
  }

  .book-sign {
    position: static;
    top: auto;
    right: auto;
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    background: transparent;
    border: 0;
    text-align: right;
  }

  .book-sign .label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .book-name {
    max-width: 28vw;
    font-size: 0.95rem;
  }

  .book-leave {
    margin-top: 0;
    min-width: 44px;
    padding: 0 0.1rem;
  }
}

@media print {
  .entrance,
  .book-sign {
    display: none !important;
  }

  html.at-gate .pavilion {
    visibility: visible;
  }
}

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

/* ---------- Screen layout (club rooms) ---------- */
/* Added for the pavilion rooms. Do not undo overflow / dvh / safe-area / 16px input work. */

[data-screen] {
  display: none;
}

[data-screen].is-active {
  display: block;
}

[data-screen][hidden] {
  display: none !important;
}

.hero-nav a.is-current,
.hero-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

html.in-club[data-room]:not([data-room="home"]) .hero {
  min-height: 0;
}

html.in-club[data-room]:not([data-room="home"]) .hero-inner {
  flex: 0 0 auto;
  padding: 0.9rem 1.5rem 0.35rem;
}

html.in-club[data-room]:not([data-room="home"]) .crest-hero {
  width: 52px;
  height: 52px;
  margin-bottom: 0.65rem;
}

html.in-club[data-room]:not([data-room="home"]) .hero h1 {
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  letter-spacing: 0.14em;
}

html.in-club[data-room]:not([data-room="home"]) .hero-inner .rule,
html.in-club[data-room]:not([data-room="home"]) .hero-inner .label,
html.in-club[data-room]:not([data-room="home"]) .hero-dates {
  display: none;
}

html.in-club[data-room]:not([data-room="home"]) .hero-nav {
  padding-bottom: 1.15rem;
}

.field-rooms {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  margin: -1.5rem auto 2.5rem;
  max-width: 100%;
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.field-rooms a {
  color: var(--green);
  border-bottom: 1px solid transparent;
  padding: 0.45rem 0.1rem 0.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.field-rooms a.is-current,
.field-rooms a:hover,
.field-rooms a:focus-visible {
  color: var(--green-deep);
  border-bottom-color: var(--gold);
  outline: none;
}

.proposal.is-focus {
  outline: 1px solid var(--gold-soft);
  outline-offset: 12px;
}

@media (max-width: 720px) {
  html.in-club[data-room]:not([data-room="home"]) .hero-inner {
    padding: 0.55rem 1rem 0.2rem;
  }

  html.in-club[data-room]:not([data-room="home"]) .crest-hero {
    width: 40px;
    height: 40px;
    margin-bottom: 0.4rem;
  }

  html.in-club[data-room]:not([data-room="home"]) .hero h1 {
    font-size: clamp(1.05rem, 6vw, 1.35rem);
    letter-spacing: 0.08em;
  }

  html.in-club[data-room]:not([data-room="home"]) .hero-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.1rem 0.2rem;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    padding: 0 0.65rem 0.95rem;
  }

  .field-rooms {
    gap: 0.1rem 0.65rem;
    font-size: 0.56rem;
    letter-spacing: 0.1em;
    margin-top: -0.85rem;
    margin-bottom: 1.75rem;
  }

  .proposal.is-focus {
    outline-offset: 6px;
  }
}


/* ---------- Sticky club nav (always on screen after login) ---------- */

.club-nav {
  display: none;
  position: sticky;
  top: 0;
  z-index: 60;
  pointer-events: auto;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  padding: 0.15rem 0.5rem calc(0.2rem + env(safe-area-inset-bottom, 0px) * 0);
  padding-top: max(0.15rem, env(safe-area-inset-top, 0px));
  background: var(--green-deep);
  border-bottom: 1px solid var(--gold-soft);
  font-family: "Cinzel", serif;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}

html.in-club .club-nav {
  display: flex;
}

.club-nav a {
  color: rgba(243, 238, 227, 0.78);
  border-bottom: 1px solid transparent;
  padding: 0.45rem 0.5rem;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 61;
  -webkit-tap-highlight-color: rgba(196, 167, 71, 0.28);
  touch-action: manipulation;
}

.club-nav a:hover,
.club-nav a:focus-visible,
.club-nav a.is-current,
.club-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
  outline: none;
}

.club-nav a.nav-quiet {
  color: rgba(243, 238, 227, 0.42);
  letter-spacing: 0.12em;
  font-size: 0.55rem;
}

.club-nav a.nav-quiet:hover,
.club-nav a.nav-quiet:focus-visible,
.club-nav a.nav-quiet.is-current,
.club-nav a.nav-quiet[aria-current="page"] {
  color: rgba(196, 167, 71, 0.82);
}

html.in-club .book-sign {
  top: calc(env(safe-area-inset-top, 0px) + 3.4rem);
}

.hero-frame {
  pointer-events: none;
}

@media (max-width: 720px) {
  .club-nav {
    font-size: 0.54rem;
    letter-spacing: 0.08em;
    gap: 0;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .club-nav a {
    padding: 0.4rem 0.38rem;
    min-height: 44px;
  }
}


/* ---------- Guests: a typed house notice, not the pavilion ---------- */

html.at-guests,
html.at-guests body {
  background: #f6f6f4 !important;
  background-image: none !important;
  color: #222;
  font-family: Georgia, "Times New Roman", Times, serif;
}

html.at-guests body::after {
  display: none !important;
}

.guests {
  background: #f6f6f4;
  color: #222;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  padding: 2.25rem 1.25rem 3rem;
  max-width: 100%;
}

html.in-club .guests {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.guests-sheet {
  max-width: 34rem;
  margin: 0 auto;
  min-width: 0;
}

.guests .guests-kicker {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #444;
  margin: 0 0 0.25rem;
  text-align: left;
  line-height: 1.4;
}

.guests h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: #111;
  line-height: 1.3;
  margin: 0 0 1rem;
}

.guests-lede {
  text-align: left;
  font-style: normal;
  font-size: 1rem;
  max-width: none;
  margin: 0 0 1.25rem;
  line-height: 1.55;
  color: #222;
}

.guests-rules {
  max-width: none;
  margin: 0;
  text-align: left;
}

.guests-rules > div {
  padding: 0;
  margin: 0 0 0.95rem;
  border: 0;
}

.guests-rules > div:first-child,
.guests-rules > div:last-child {
  border: 0;
}

.guests-rules dt {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #111;
  margin: 0 0 0.12rem;
}

.guests-rules dd {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: #222;
}

.guests-door {
  display: none;
  margin-top: 1.75rem;
  text-align: left;
}

html.at-guests .guests-door {
  display: block;
}

.guests-door a {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #333;
  border-bottom: 0;
  text-decoration: underline;
  padding: 0;
  min-height: 0;
  display: inline;
}

.guests-door a:hover,
.guests-door a:focus-visible {
  color: #111;
  border-bottom-color: transparent;
  outline: none;
}

@media (max-width: 720px) {
  .guests {
    padding: 1.5rem 1.1rem 2.5rem;
  }

  .guests h2 {
    font-size: 1.12rem;
  }

  .guests-lede,
  .guests-rules dd,
  .guests-rules dt {
    font-size: 1rem;
  }
}


.gate-guest {
  margin-top: 1.05rem;
  font-style: italic;
  font-size: 0.98rem;
  color: var(--green-deep);
}

.gate-guest a {
  color: var(--green);
  border-bottom: 1px solid transparent;
  padding: 0.35rem 0.15rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gate-guest a:hover,
.gate-guest a:focus-visible {
  color: var(--green-deep);
  border-bottom-color: var(--gold);
  outline: none;
}

.hero-nav a.nav-quiet {
  color: rgba(243, 238, 227, 0.42);
  letter-spacing: 0.16em;
  font-size: 0.56rem;
}

.hero-nav a.nav-quiet:hover,
.hero-nav a.nav-quiet:focus-visible,
.hero-nav a.nav-quiet.is-current,
.hero-nav a.nav-quiet[aria-current="page"] {
  color: rgba(196, 167, 71, 0.82);
}

@media (max-width: 720px) {
  .hero-nav a.nav-quiet {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
  }

  .gate-guest {
    margin-top: 0.75rem;
    font-size: 0.95rem;
  }
}

/* ---------- Chambers: each room is its own pavilion ---------- */
/* Do not undo overflow / dvh / safe-area / 16px input / lazy-load / font work. */

html.in-club .hero {
  display: none !important;
}

.chamber-plate {
  margin: 0;
  background: var(--green-deep);
}

.chamber-plate img {
  width: 100%;
  height: 38vh;
  min-height: 220px;
  max-height: 460px;
  object-fit: cover;
  object-position: center 42%;
}

html.in-club[data-room="home"] .chamber-plate img {
  height: 46vh;
  max-height: 560px;
  object-position: center 38%;
}

html.in-club[data-room="shop"] .chamber-plate img {
  height: 48vh;
  max-height: 520px;
  object-position: center 55%;
  background: var(--cream);
}

.chamber-plate figcaption {
  text-align: center;
  padding: 2.4rem 1.5rem 2.1rem;
  background: var(--ivory);
  background-image: url("assets/grain.png");
  background-repeat: repeat;
  background-size: 240px 240px;
  background-blend-mode: multiply;
}

.chamber-plate figcaption h2 {
  margin-top: 0.5rem;
}

.chamber-aside {
  margin-top: 0.7rem;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--green);
}

.chamber-green {
  background: var(--green-deep);
  color: var(--cream);
  text-align: center;
  padding: 4.75rem 1.5rem 3.6rem;
  -webkit-font-smoothing: antialiased;
}

.chamber-green .crest-chamber {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.35rem;
}

.chamber-green .label {
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.chamber-green h2 {
  color: var(--cream);
}

.chamber-green .chamber-aside {
  color: rgba(243, 238, 227, 0.82);
}

.chamber-green .rule-double {
  margin-top: 1.5rem;
  border-top-color: var(--gold);
  border-bottom-color: var(--gold);
}

.chamber-body {
  padding-top: 3.75rem;
  padding-bottom: 5.75rem;
}

html.in-club [data-screen="home"] .letter {
  padding-top: 3.25rem;
  padding-bottom: 6rem;
}

html.in-club [data-screen="fields"] #proposals.chamber-body {
  padding-top: 3.25rem;
}

html.in-club [data-screen="fields"] .ledger-intro,
html.in-club [data-screen="ballot"] .ledger-intro,
html.in-club [data-screen="ledger"] .ledger-intro {
  margin-top: 0;
}

.club-nav {
  justify-content: space-between;
  align-items: center;
  gap: 0.15rem 0.5rem;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.club-nav-rooms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  flex: 1 1 auto;
  gap: 0.15rem 0.2rem;
}

.club-nav .book-sign {
  position: static;
  top: auto;
  right: auto;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.35rem 0 0.7rem;
  background: transparent;
  border: 0;
  flex: 0 0 auto;
}

html.in-club .book-sign {
  display: flex;
  top: auto;
}

.club-nav .book-sign .label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.club-nav .book-name {
  font-size: 1rem;
  max-width: 9rem;
}

.club-nav .book-leave {
  margin-top: 0;
  min-height: 44px;
  min-width: 44px;
}

html.in-club[data-room="guests"] .pavilion {
  background: #f6f6f4;
  background-image: none;
}

html.in-club[data-room="guests"] body::after {
  display: none;
}

html.in-club[data-room="guests"] .site-footer {
  display: none !important;
}

.shop-lead {
  text-align: center;
  max-width: 32em;
  margin: 0 auto 3.25rem;
  padding: 0 0 2.6rem;
  border-bottom: 1px solid var(--gold);
}

.shop-lead h3 {
  margin: 0.45rem 0 0.85rem;
}

.shop-blurb {
  font-size: 1.12rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 0.85rem;
}

.shop-hold {
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin: 0 auto 3rem;
  max-width: 52rem;
}

.shop-card {
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--gold-soft);
  padding: 0 0 1.6rem;
  min-width: 0;
}

.shop-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--ivory);
}

.shop-card .label {
  margin-top: 1.15rem;
}

.shop-card h3 {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  margin: 0.4rem 0 0.65rem;
}

.shop-card p {
  padding: 0 1.2rem;
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.55;
}

.shop-request {
  margin-top: 1.15rem;
}

.shop-request.is-held {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--gold);
}

.shop-quiet {
  text-align: center;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--green);
  max-width: 28em;
  margin: 0 auto;
  line-height: 1.65;
}

@media (min-width: 760px) {
  .shop-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .shop-card img {
    height: 240px;
  }
}

@media (max-width: 720px) {
  .chamber-plate img,
  html.in-club[data-room="home"] .chamber-plate img,
  html.in-club[data-room="shop"] .chamber-plate img {
    height: 32vh;
    min-height: 180px;
    max-height: 280px;
  }

  .chamber-plate figcaption {
    padding: 1.6rem 1.1rem 1.45rem;
  }

  .chamber-green {
    padding: 2.75rem 1.1rem 2.25rem;
  }

  .chamber-green .crest-chamber {
    width: 52px;
    height: 52px;
    margin-bottom: 0.85rem;
  }

  .chamber-body {
    padding-top: 2.5rem;
    padding-bottom: 3.75rem;
  }

  html.in-club [data-screen="home"] .letter {
    padding-top: 2.15rem;
    padding-bottom: 4rem;
  }

  .club-nav {
    flex-direction: column;
    align-items: stretch;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .club-nav-rooms {
    justify-content: center;
  }

  .club-nav .book-sign {
    justify-content: center;
    width: 100%;
    border-top: 1px solid var(--gold-soft);
    padding: 0.1rem 0.5rem 0.15rem;
  }

  .club-nav .book-name {
    max-width: 40vw;
  }

  .shop-lead {
    margin-bottom: 2.25rem;
    padding-bottom: 1.85rem;
  }

  .shop-card img {
    height: 200px;
  }

  .shop-request {
    min-height: 44px;
  }
}

/* ---------- The Members and The History ---------- */

.roll {
  max-width: 38em;
  margin: 0 auto;
}

.roll-item {
  padding: 1.55rem 0;
}

.roll-item + .roll-item {
  border-top: 1px solid var(--gold-soft);
}

.roll-item .label {
  margin-bottom: 0.25rem;
}

.roll-item h3 {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-align: left;
  margin: 0.2rem 0 0.55rem;
}

.roll-item p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.history-year {
  max-width: 38em;
  margin: 0 auto;
  padding: 2rem 0;
}

.history-year + .history-year {
  border-top: 1px solid var(--gold-soft);
}

.history-year h3 {
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  text-align: left;
  margin: 0.25rem 0 0.85rem;
}

.history-year p {
  font-size: 1.08rem;
  line-height: 1.72;
  margin-bottom: 0.85rem;
}

.history-year p:last-child {
  margin-bottom: 0;
}

.history-aside {
  font-style: italic;
  font-size: 1.02rem;
  color: var(--green);
}

.history-still {
  margin: 1.75rem auto;
  max-width: 38em;
  background: var(--green-deep);
}

.history-still img {
  width: 100%;
  height: 34vh;
  min-height: 200px;
  max-height: 360px;
  object-fit: cover;
  object-position: center 45%;
}

.history-still figcaption {
  text-align: center;
  padding: 0.85rem 1rem 0.95rem;
  background: var(--ivory);
  background-image: url("assets/grain.png");
  background-repeat: repeat;
  background-size: 240px 240px;
  background-blend-mode: multiply;
}

html.in-club[data-room="members"] .chamber-plate img,
html.in-club[data-room="history"] .chamber-plate img {
  object-position: center 40%;
}

@media (max-width: 720px) {
  .history-still img {
    height: 28vh;
    min-height: 160px;
    max-height: 240px;
  }

  .roll-item h3,
  .history-year h3 {
    letter-spacing: 0.1em;
  }
}


.shop-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin: 0 auto 3.25rem;
  max-width: 52rem;
}

.shop-visor img {
  height: 260px;
}

.shop-deep-head {
  text-align: center;
  margin: 3.25rem 0 1.1rem;
}

.shop-deep-head h2 {
  margin-top: 0.45rem;
}

.shop-deep-intro {
  text-align: center;
  font-style: italic;
  max-width: 32em;
  margin: 0 auto 2rem;
  color: var(--green);
  line-height: 1.65;
}


.shop-feature {
  max-width: 52rem;
  margin: 0 auto 3rem;
}

.shop-feature img {
  height: 280px;
}

@media (min-width: 760px) {
  .shop-feature img {
    height: 320px;
  }
}

@media (max-width: 720px) {
  .shop-feature img {
    height: 210px;
  }
}
.shop-card-quiet {
  padding: 1.7rem 1.15rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shop-card-quiet .label {
  margin-top: 0;
}

@media (min-width: 760px) {
  .shop-pair {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .shop-visor img {
    height: 280px;
  }
}

@media (max-width: 720px) {
  .shop-visor img {
    height: 210px;
  }
}


/* ---------- The Problem (Erdős #348) ---------- */

.paper-erdos {
  max-width: 38em;
}

.paper-erdos .paper-status {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1.85rem;
}

.paper-erdos h3 {
  font-family: "EB Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  margin: 1.65rem 0 0.5rem;
  color: var(--charcoal);
}

.paper-erdos p {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.75;
}

.paper-erdos var {
  font-style: italic;
  font-feature-settings: "kern" 1, "liga" 0, "onum" 0, "lnum" 1;
}

.paper-erdos .paper-cite {
  margin-top: 2.1rem;
  font-size: 0.98rem;
  font-style: italic;
}

.paper-erdos .paper-cite a {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.paper-erdos .paper-cite a:hover,
.paper-erdos .paper-cite a:focus-visible {
  color: var(--green);
}
