:root {
  --green: #12302a;
  --green-soft: #1f4a40;
  --brass: #b8893a;
  --paper: #e8ebe5;
  --panel: #fbfbf8;
  --ink: #1c2623;
  --line: #cdd3ca;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
}
.site-header {
  background: var(--green);
  color: #f3efe4;
  padding: 2.5rem 1.25rem 2rem;
  text-align: left;
  border-bottom: 4px solid var(--brass);
}
.site-header a {
    color: #f3efe4;
}
.hidden {
    display: none;
}
.admin-link {
    float: right;
    padding-left: 1em;
}
.bgimg-1, .bgimg-2, .bgimg-3 {
  position: relative;
  opacity: 0.85;
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;

}
.bgimg-1 {
  background-image: url("/img/front1.jpeg");
  /*background-image: url("/img/dancefloor_diagonal.jpeg");*/
  height: 100%;
}

.site-header > * { max-width: 1100px; margin-inline: auto; }
.site-header h1 {
  font: 700 clamp(2rem, 6vw, 3.5rem)/1.05 var(--serif);
  margin-bottom: .35rem;
  margin-top: 0;
  letter-spacing: .01em;
}
.site-header p { margin: 0; color: #cfd8cf; font-size: 1.1rem; }

.site-main { max-width: 1100px; margin: 1.5rem auto; padding: 0 1rem; }
#calendar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
  --fc-border-color: var(--line);
  --fc-page-bg-color: var(--panel);
  --fc-today-bg-color: rgba(184, 137, 58, .13);
  --fc-now-indicator-color: #a3392b;
  --fc-event-bg-color: var(--green-soft);
  --fc-event-border-color: var(--green-soft);
  --fc-event-text-color: #fff;
  --fc-button-bg-color: var(--green);
  --fc-button-border-color: var(--green);
  --fc-button-hover-bg-color: var(--green-soft);
  --fc-button-hover-border-color: var(--green-soft);
  --fc-button-active-bg-color: var(--brass);
  --fc-button-active-border-color: var(--brass);
  --fc-list-event-hover-bg-color: rgba(184, 137, 58, .13);
}
#calendar .fc-toolbar-title { font: 700 1.5rem var(--serif); }
#calendar .fc-button-active { color: var(--green); }
#calendar .fc-event { cursor: pointer; }
#calendar a:focus-visible, #calendar button:focus-visible, .fc-event:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}
@media (max-width: 640px) {
  #calendar { padding: .5rem; }
  #calendar .fc-toolbar { flex-direction: column; gap: .6rem; }
  #calendar .fc-toolbar-title { font-size: 1.2rem; }
}

.notice {
  background: #f6e3df; border: 1px solid #d9a39a; color: #6b2018;
  padding: .75rem 1rem; border-radius: 6px;
}

dialog {
  width: min(40rem, calc(100% - 2rem));
  border: 0; border-radius: 8px; padding: 1.5rem;
  background: var(--panel); color: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
dialog::backdrop { background: rgba(18, 48, 42, .6); }
dialog h2 { font: 700 1.6rem/1.2 var(--serif); margin: 0 0 .5rem; }
dialog .when { font-weight: 600; margin: 0; }
dialog .repeat { margin: .1rem 0 0; color: #5b6761; }
dialog .description { white-space: pre-line; margin: 1rem 0 1.25rem; }
dialog button {
  font: inherit; cursor: pointer; border: 0; border-radius: 4px;
  background: var(--green); color: #fff; padding: .5rem 1.1rem;
}
dialog button:hover { background: var(--green-soft); }
dialog button:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.site-footer { text-align: center; color: #5b6761; padding: 1.5rem 1rem 2.5rem; font-size: .9rem; }

.unavailable-day {
  background-color: #eee;
  cursor: not-allowed;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' preserveAspectRatio='none' viewBox='0 0 100 100'><path d='M100 0 L0 100 ' stroke='black' stroke-width='1'/><path d='M0 0 L100 100 ' stroke='black' stroke-width='1'/></svg>");
  background-repeat:no-repeat;
  background-position:center center;
  background-size: 100% 100%, auto;
}
.loading {
    width:80%;
    margin:10%;
}
