:root {
  --ember: #d9a84b;
  --ember-bright: #f0c36a;
  --wine: #8f2019;
  --moss: #243b63;
  --ink: #17120e;
  --coal: #f5ead2;
  --stone: #fbf4e5;
  --paper: #f5ead2;
  --parchment: #fbf4e5;
  --muted: #756750;
  --line: rgba(23, 18, 14, 0.14);
  --radius: 8px;
  --shadow: 0 22px 60px rgba(15, 17, 24, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(251, 244, 229, 0.95), rgba(251, 244, 229, 0.95)),
    url("images/ws_bg.png") center top / cover fixed;
  font-family: var(--sans);
  line-height: 1.6;
}

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

a {
  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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(13, 11, 16, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(15, 17, 24, 0.18));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--parchment);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.1;
}

.brand small {
  color: var(--ember);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  color: rgba(251, 244, 229, 0.86);
  font-size: 0.92rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ember);
}

.events-widget {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.events-toggle {
  display: grid;
  grid-template-columns: auto minmax(216px, 288px);
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 7px 10px;
  color: var(--parchment);
  border: 1px solid rgba(217, 168, 75, 0.28);
  border-radius: var(--radius);
  background: rgba(251, 244, 229, 0.06);
  cursor: pointer;
}

.events-toggle:hover,
.events-toggle:focus-visible,
.events-widget.is-open .events-toggle {
  border-color: rgba(217, 168, 75, 0.58);
  background: rgba(217, 168, 75, 0.12);
}

.events-label {
  color: var(--ember);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.events-ticker {
  position: relative;
  display: block;
  height: 1.2rem;
  overflow: hidden;
  color: rgba(251, 244, 229, 0.88);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: left;
}

.events-ticker span {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(100%);
  animation: eventTicker var(--ticker-duration, 9s) infinite;
  animation-delay: var(--ticker-delay, 0s);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.events-ticker span:only-child {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

@keyframes eventTicker {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }

  8%,
  30% {
    opacity: 1;
    transform: translateY(0);
  }

  38%,
  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.calendar-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 60;
  display: none;
  width: min(710px, calc(100vw - 36px));
  padding: 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(217, 168, 75, 0.36);
  border-radius: var(--radius);
  background: rgba(15, 17, 24, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.events-widget.is-open .calendar-panel {
  display: block;
}

.calendar-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(217, 168, 75, 0.28);
}

.calendar-panel-header strong {
  color: var(--parchment);
  font-family: var(--serif);
  font-size: 1.08rem;
}

.calendar-panel-header span {
  color: var(--ember);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.event-list-status {
  margin: 0;
  padding: 14px;
  color: rgba(251, 244, 229, 0.78);
  border: 1px solid rgba(217, 168, 75, 0.18);
  border-radius: var(--radius);
  background: rgba(251, 244, 229, 0.06);
}

.event-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  color: var(--parchment);
  border: 1px solid rgba(217, 168, 75, 0.18);
  border-radius: var(--radius);
  background: rgba(251, 244, 229, 0.07);
}

.event-date {
  display: grid;
  align-content: center;
  min-height: 58px;
  text-align: center;
  border: 1px solid rgba(217, 168, 75, 0.34);
  border-radius: var(--radius);
  background: rgba(217, 168, 75, 0.14);
}

.event-date strong,
.event-date span {
  display: block;
}

.event-date strong {
  color: var(--ember);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
}

.event-date span {
  color: rgba(251, 244, 229, 0.74);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-details {
  min-width: 0;
}

.event-details strong,
.event-details span,
.event-details small {
  display: block;
}

.event-details strong {
  color: var(--parchment);
  line-height: 1.22;
}

.event-details span {
  margin-top: 4px;
  color: var(--ember);
  font-size: 0.82rem;
  font-weight: 900;
}

.event-details small {
  margin-top: 4px;
  color: rgba(251, 244, 229, 0.68);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.event-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  background: transparent;
}

.event-action:hover,
.event-action:focus-visible {
  color: var(--ink);
  background: var(--ember);
}

.event-action--google {
  color: var(--parchment);
}

.event-action--outlook {
  color: var(--parchment);
}

.service-icon {
  display: block;
}

.calendar-panel a {
  display: block;
  margin-top: 8px;
  color: var(--ember);
  font-size: 0.84rem;
  font-weight: 900;
  text-align: right;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ember);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(280px, 390px);
  justify-content: space-between;
  gap: clamp(28px, 6vw, 86px);
  min-height: calc(100vh - 76px);
  padding: clamp(72px, 11vw, 136px) clamp(20px, 5vw, 72px) clamp(46px, 8vw, 92px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 17, 24, 0.94), rgba(15, 17, 24, 0.68) 58%, rgba(15, 17, 24, 0.46)),
    url("images/bulletin_background.png") center / cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(217, 168, 75, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 168, 75, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(transparent, rgba(15, 17, 24, 0.62));
  pointer-events: none;
}

.hero-inner,
.character-sheet {
  position: relative;
  z-index: 1;
}

.hero-inner {
  align-self: center;
  justify-self: start;
  grid-column: 1;
  width: 100%;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ember);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 7.4vw, 7.2rem);
  letter-spacing: 0;
  color: var(--parchment);
  text-shadow: none;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.2rem);
}

h3 {
  font-family: var(--serif);
  font-size: 1.34rem;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(251, 244, 229, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--ink);
  background: linear-gradient(180deg, var(--ember-bright), var(--ember));
}

.button.secondary {
  color: var(--parchment);
  border-color: rgba(251, 244, 229, 0.34);
  background: rgba(251, 244, 229, 0.08);
}

.character-sheet {
  align-self: end;
  justify-self: end;
  grid-column: 2;
  padding: 24px;
  color: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(15, 17, 24, 0.82), rgba(15, 17, 24, 0.82)),
    url("images/bulletin_background.png") center / cover;
  box-shadow: var(--shadow);
}

.character-sheet::before {
  content: "SESSION CARD";
  display: block;
  margin: -6px 0 16px;
  color: rgba(217, 168, 75, 0.78);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-align: center;
}

.character-sheet img {
  width: 168px;
  height: 168px;
  object-fit: contain;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 22px rgba(216, 154, 61, 0.22));
}

.character-sheet .label,
.character-sheet strong,
.character-sheet span,
.character-sheet small {
  display: block;
}

.character-sheet .label {
  margin-bottom: 8px;
  color: var(--ember);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.character-sheet strong {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.15;
}

.character-sheet span,
.character-sheet small {
  color: rgba(251, 244, 229, 0.72);
}

.character-sheet small {
  margin-top: 16px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
}

.stat-row span {
  min-height: 64px;
  padding: 10px 8px;
  border: 1px solid rgba(217, 168, 75, 0.28);
  border-radius: var(--radius);
  background: rgba(15, 17, 24, 0.64);
  color: var(--ember);
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1;
  text-align: center;
}

.stat-row b {
  display: block;
  margin-bottom: 8px;
  color: rgba(251, 244, 229, 0.72);
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-section,
.quest-section,
.visit-section,
.officers-section,
.contact-section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.about-section {
  background: var(--parchment);
}

.section-heading {
  max-width: 900px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 64px);
  max-width: 1120px;
  font-size: 1.06rem;
}

.about-grid p,
.quest-grid p,
.visit-section p,
.notice li,
.contact-grid p,
.quest-section {
  background:
    linear-gradient(rgba(245, 234, 210, 0.92), rgba(245, 234, 210, 0.92)),
    url("images/bulletin_background.png") center / cover;
}

.quest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.quest-grid article,
.notice,
.contact-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 244, 229, 0.88);
  box-shadow: 0 14px 36px rgba(23, 18, 14, 0.08);
}

.quest-grid article {
  position: relative;
  min-height: 260px;
  padding: 24px;
  overflow: hidden;
}

.quest-grid article::after,
.quest-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 128px;
  height: 128px;
  border: 2px solid rgba(255, 199, 107, 0.12);
  transform: rotate(45deg);
}

.dice-mark {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: auto;
  min-height: 58px;
  margin-bottom: 22px;
}

.dice-mark img {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 8px 10px rgba(23, 18, 14, 0.14));
}

.dice-mark b {
  display: inline-flex;
  align-items: center;
  min-width: 42px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.quest-type {
  display: block;
  margin: 0 0 10px;
  color: var(--moss);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quest-grid h3 {
  margin-bottom: 12px;
}

.visit-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  background: var(--parchment);
}

.visit-section > div:first-child {
  max-width: 760px;
}

.notice {
  position: relative;
  padding: 24px;
  border-top: 5px solid var(--wine);
  overflow: hidden;
}

.notice ul {
  padding-left: 20px;
  margin: 0;
}

.notice li + li {
  margin-top: 10px;
}

.officers-section {
  background:
    linear-gradient(rgba(15, 17, 24, 0.92), rgba(15, 17, 24, 0.92)),
    url("images/bulletin_background.png") center / cover;
}

.officers-section h2 {
  color: var(--parchment);
}

.officer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.officer-loading {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  color: rgba(251, 244, 229, 0.84);
  background: rgba(15, 17, 24, 0.76);
}

.officer-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 112px;
  margin: 0;
  padding: 14px;
  background: rgba(15, 17, 24, 0.76);
}

.officer-card:focus {
  outline: 2px solid var(--ember);
  outline-offset: -2px;
  z-index: 5;
}

.officer-card--text {
  grid-template-columns: 1fr;
  padding-left: 24px;
}

.officer-card > img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(217, 168, 75, 0.42);
  border-radius: var(--radius);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.officer-card--sheet img {
  cursor: pointer;
}

.officer-grid strong,
.officer-grid span {
  display: block;
}

.officer-grid strong {
  margin-bottom: 8px;
  color: var(--ember);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.officer-grid span {
  color: rgba(251, 244, 229, 0.84);
}

.detail-hint {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 5px 8px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
  border-radius: var(--radius);
  background: var(--ember);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.officer-card--sheet {
  cursor: pointer;
}

.officer-card--sheet:hover .detail-hint,
.officer-card--sheet:focus .detail-hint {
  opacity: 1;
  transform: translateY(0);
}

.character-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 17, 24, 0.72);
}

.character-modal.is-open {
  display: flex;
}

body.modal-open {
  overflow: hidden;
}

.character-popover {
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: flex-start;
  width: min(860px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 18px;
  color: var(--ink);
  border: 1px solid rgba(23, 18, 14, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(251, 244, 229, 0.96), rgba(251, 244, 229, 0.96)),
    url("images/bulletin_background.png") center / cover;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.sheet-portrait {
  flex-shrink: 0;
  width: 190px;
  height: 250px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(217, 168, 75, 0.5);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(23, 18, 14, 0.18);
}

.sheet-body {
  min-width: 0;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--parchment);
  font-weight: 900;
  border: 0;
  border-radius: var(--radius);
  background: var(--wine);
  cursor: pointer;
}

.sheet-header {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(23, 18, 14, 0.16);
}

.sheet-kicker,
.sheet-header h3,
.sheet-header span,
.sheet-section h4,
.signature-ability h4 {
  margin: 0;
}

.sheet-kicker {
  color: var(--wine);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sheet-header h3 {
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.55rem;
}

.sheet-header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.03rem;
}

.attribute-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.attribute-grid p {
  min-height: 72px;
  margin: 0;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid rgba(217, 168, 75, 0.34);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
}

.attribute-grid strong,
.attribute-grid em,
.attribute-grid span {
  display: block;
}

.attribute-grid strong {
  color: var(--moss);
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
}

.attribute-grid em {
  margin-top: 2px;
  color: var(--ember);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
}

.attribute-grid span {
  margin-top: 4px;
  color: var(--wine);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sheet-section {
  margin-top: 14px;
}

.sheet-section h4,
.signature-ability h4 {
  color: var(--moss);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sheet-section dl,
.sheet-section ul,
.signature-ability p {
  margin: 8px 0 0;
}

.sheet-section dt {
  color: var(--ink);
  font-weight: 900;
}

.sheet-section dd {
  margin: 2px 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.sheet-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sheet-section--skills {
  grid-column: 1 / -1;
}

.sheet-section--skills dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 8px;
}

.sheet-section--skills dt,
.sheet-section--skills dd {
  margin: 0;
}

.sheet-section ul {
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.signature-ability {
  margin-top: 16px;
  padding: 12px;
  border-left: 4px solid var(--wine);
  border-radius: var(--radius);
  background: rgba(217, 168, 75, 0.16);
}

.signature-ability p {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.48;
}

.contact-section {
  background:
    linear-gradient(rgba(251, 244, 229, 0.92), rgba(251, 244, 229, 0.92)),
    url("images/ws_bg.png") center / cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-grid article {
  padding: 24px;
}

.contact-grid a {
  color: var(--moss);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(251, 244, 229, 0.78);
  background: #0f1118;
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.site-footer p {
  flex: 1;
  margin: 0;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer a {
  color: var(--ember);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
  }

  .events-widget {
    position: static;
    transform: none;
    order: 3;
    width: 100%;
    margin: 8px 0 0;
  }

  .events-toggle {
    width: 100%;
    grid-template-columns: auto 1fr;
  }

  .calendar-panel {
    right: auto;
    left: 0;
    width: 100%;
    transform: none;
  }

  .event-item {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: rgba(13, 11, 16, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero,
  .visit-section,
  .about-grid,
  .quest-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .character-sheet {
    grid-column: 1;
    justify-self: stretch;
  }

  .officer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sheet-portrait {
    width: 140px;
    height: 190px;
  }

  .attribute-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sheet-columns {
    grid-template-columns: 1fr;
  }

  .sheet-section--skills dl {
    grid-template-columns: 1fr;
  }

  .sheet-section--skills dd {
    margin-bottom: 8px;
  }
}

@media (max-width: 620px) {
  .brand span {
    max-width: 180px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .officer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .character-popover {
    flex-direction: column;
    width: min(100%, calc(100vw - 40px));
    padding: 18px;
  }

  .sheet-portrait {
    width: 100%;
    height: 176px;
  }

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