@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500&family=Crimson+Pro:wght@400;600&display=swap');

:root {
  color-scheme: dark;
  --parchment: #eee0bd;
  --gold: #c5a969;
  --ink: #29261d;
  --display: 'Cinzel', 'Palatino Linotype', Palatino, serif;
  --body: 'Crimson Pro', Georgia, serif;
}

* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  background: #242820;
  color: var(--parchment);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.45;
  isolation: isolate;
}

/* A fixed image layer also keeps the map fixed on mobile browsers. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #424234 url('./assets/map.jpg') 47% center / cover no-repeat;
  filter: saturate(.55) sepia(.32);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  /* The translucent centre leaves coastlines and lettering in view. */
  background: radial-gradient(ellipse at 50% 30%, #181c155e 0%, #151a149e 64%, #11160fe0 100%);
  pointer-events: none;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid #f8d68a; outline-offset: 6px; }
::selection { background: #6b3439; color: #fff0d0; }
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 5;
  padding: .75rem 1.25rem;
  background: var(--parchment);
  color: var(--ink);
}
.skip-link:focus { top: 1rem; }
.page-width { width: min(1304px, calc(100% - 96px)); margin-inline: auto; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.45rem 1.2rem;
  border-bottom: 1px solid #c5a96955;
  font-family: var(--display);
  font-size: .75rem;
  letter-spacing: .19em;
  color: #f0e1be;
  text-shadow: 0 2px 8px #14190f;
}
.masthead p { margin: 0; }
.masthead .star { color: var(--gold); font-size: 1.25rem; }
.hero { text-align: center; padding: 2.1rem 0 2.65rem; text-shadow: 0 2px 16px #13160f; }
.royal-device { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.royal-device::before, .royal-device::after {
  content: ''; width: 66px; height: 1px;
  background: linear-gradient(90deg, transparent, #cfb372);
}
.royal-device::after { transform: rotate(180deg); }
.royal-device svg { width: 63px; height: 74px; filter: drop-shadow(0 3px 5px #12150e); }
.eyebrow { font-family: var(--display); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; }
.hero .eyebrow { margin: 1.25rem 0 .15rem; color: #e7d5aa; }
h1 {
  margin: 0;
  padding-left: .075em;
  font-family: var(--display);
  font-size: clamp(3.1rem, 8.5vw, 7.4rem);
  line-height: 1.17;
  font-weight: 500;
  letter-spacing: .075em;
  color: #f1dfb1;
}
.hero .intro { margin: .7rem auto 0; max-width: 40rem; font-size: 1.375rem; color: #f4e7c9; }
.hero .invitation { margin: .35rem 0 0; color: #d0c6a9; font-size: 1.125rem; }
.collection { padding-bottom: 1.5rem; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.1rem; }
.section-heading h2 { margin: 0; font: 500 .8125rem var(--display); text-transform: uppercase; letter-spacing: .18em; color: #f1e1ba; }
.section-heading p { margin: 0; color: #eadbb7; font-size: 1rem; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
.card { min-width: 0; display: flex; }
.card-link {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.6rem 1.35rem 1.2rem;
  min-height: 360px;
  background: linear-gradient(120deg, #fff7db66, transparent 45%, #9d743e1c), #e9d9b4;
  border: 1px solid #d5bb84;
  box-shadow: 0 5px 20px #0c100c50, inset 0 0 35px #9c79372b;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.card-link::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid #8f744d4f;
  pointer-events: none;
}
.card-link:hover, .card-link:focus-visible {
  transform: translateY(-4px);
  background-color: #f5e6c6;
  box-shadow: 0 9px 27px #0c100c70, inset 0 0 35px #9c79371a;
}
.card-link:focus-visible { outline-offset: 4px; }
.charge { width: 82px; height: 94px; margin-bottom: .85rem; filter: drop-shadow(0 3px 2px #59472926); }
.card-type { margin: 0 0 .45rem; font-family: var(--display); font-size: .75rem; letter-spacing: .15em; color: #695331; }
.card h3 { margin: 0 0 .65rem; font-family: var(--display); font-size: 1.125rem; font-weight: 500; line-height: 1.4; }
.card h3 span { display: block; }
.card .description { margin: 0 0 1.3rem; color: #4c4434; font-size: 1.125rem; line-height: 1.35; }
.card-action {
  margin-top: auto;
  padding-top: .65rem;
  border-top: 1px solid #8c74464d;
  width: 100%;
  color: #314638;
  font-family: var(--display);
  font-size: .75rem;
  letter-spacing: .09em;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: #31463860;
  text-underline-offset: 4px;
}
.card-link:hover .card-action { text-decoration-color: currentColor; }
.old-halls .card-link { background-color: #e0cba3; }
.old-halls .card-action { color: #6a303a; }
.closing { text-align: center; margin: 2.1rem 0 1.4rem; color: #f1e0b7; font-size: 1.25rem; }
.closing span { display: inline-block; margin: 0 .8rem; color: var(--gold); font-size: .8rem; vertical-align: middle; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0 1.5rem; border-top: 1px solid #c5a96955; color: #ded0ad; font-size: 1rem; }
footer p { margin: 0; }
footer .realm { font-family: var(--display); font-size: .75rem; letter-spacing: .13em; }

@media (min-width: 1600px) {
  .hero { padding-top: 2.75rem; padding-bottom: 3.5rem; }
  .card-link { min-height: 380px; }
}
@media (max-width: 1120px) {
  .page-width { width: min(900px, calc(100% - 64px)); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .card-link { padding-inline: 2rem; min-height: 355px; }
  .card .description { max-width: 30ch; }
}
@media (max-width: 600px) {
  .page-width { width: calc(100% - 36px); }
  .masthead { padding-block: 1rem; font-size: .625rem; letter-spacing: .12em; gap: .5rem; }
  .masthead .star { font-size: 1rem; }
  .masthead p:last-child { max-width: 9rem; text-align: right; }
  .hero { padding: 1.8rem 0 2rem; }
  .royal-device svg { width: 55px; height: 65px; }
  .hero .eyebrow { font-size: .625rem; letter-spacing: .17em; margin-top: 1.1rem; }
  h1 { font-size: clamp(2.4rem, 10vw, 3.75rem); letter-spacing: .035em; padding-left: .035em; margin-top: .4rem; }
  .hero .intro { font-size: 1.25rem; max-width: 26ch; margin-top: .8rem; }
  .hero .invitation { font-size: 1.0625rem; margin-top: .65rem; }
  .section-heading { align-items: center; margin-bottom: .9rem; }
  .section-heading h2 { font-size: .6875rem; letter-spacing: .12em; }
  .section-heading p { font-size: .9375rem; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .card-link { min-height: 345px; padding: 1.4rem 1.65rem 1.2rem; }
  .charge { width: 82px; height: 94px; }
  .card h3 { font-size: 1.25rem; }
  .card-type { font-size: .75rem; }
  .card-action { font-size: .75rem; }
  .closing { font-size: 1.125rem; margin: 1.6rem 0 1rem; }
  .closing span { margin-inline: .2rem; }
  footer { padding-block: 1rem 1.4rem; font-size: .9375rem; }
  footer .realm { font-size: .625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .card-link { transition: none; }
  .card-link:hover, .card-link:focus-visible { transform: none; }
}
