:root {
  color-scheme: light;
  --paper: #f5edda;
  --ink: #302216;
  --muted: #604e37;
  --gold: #825323;
  --rule: #ae9268;
  --espresso: #211b16;
  --night: #100e0c;
  --brass: #dfbd85;
  --light-ink: #eadfc9;
  --dark-rule: #786449;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(ellipse at 23% 45%, #fffaeb, transparent 65%),
    radial-gradient(ellipse at 95% 100%, #e9d5ae, transparent 65%);
}

p, h1 {
  margin: 0;
}

.announcement {
  display: flex;
  flex-direction: column;
  width: min(100% - clamp(2rem, 10vw, 10rem), 80rem);
  min-height: 100vh;
  min-height: 100svh;
  margin: auto;
  padding-block: clamp(1.25rem, 4vw, 3rem);
}

.masthead, .footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .65rem 1rem;
  padding-block: 1rem;
}

.masthead, .edition {
  font: 600 .875rem/1.5 system-ui, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.masthead {
  border-bottom: 1px solid var(--rule);
}

.masthead p:last-child, .edition {
  color: var(--gold);
}

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding-block: clamp(3rem, 9vw, 8rem);
}

.solar-seal {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  width: min(100%, 24rem);
  aspect-ratio: 1;
  margin-inline: auto;
  border: 1px solid var(--rule);
  border-radius: 50%;
}

.solar-seal::before, .solar-seal::after {
  position: absolute;
  inset: 3%;
  border: 1px dotted var(--gold);
  border-radius: 50%;
  content: "";
}

.solar-seal::after {
  inset: 7%;
  border-style: solid;
  border-color: var(--rule);
}

.sun-rays {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: repeating-conic-gradient(from -5deg, #9c682c 0deg, #b78141 5deg, transparent 10deg 20deg);
  mask-image: radial-gradient(circle, transparent 37%, #000 39% 60%, transparent 71%);
}

.sun-disc {
  position: absolute;
  inset: 30%;
  border: 1px solid #895525;
  border-radius: 50%;
  background: repeating-linear-gradient(165deg, transparent 0 4px, #6d431621 4px 5px),
    radial-gradient(circle at 40% 26%, #e7bc6d, #ba7c38 68%, #995b27);
  box-shadow: 0 0 0 .35rem var(--paper), 0 0 0 .42rem #a7773e;
}

h1 {
  margin-block: .9rem 1.4rem;
  font-size: clamp(3rem, 7.7vw, 7.25rem);
  font-weight: 400;
  line-height: .97;
  letter-spacing: -.06em;
}

h1 em {
  color: var(--gold);
}

.intro {
  max-width: 34ch;
  font-size: clamp(1.125rem, 2.15vw, 1.5rem);
  line-height: 1.55;
}

.footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}

.footer p:last-child {
  font-style: italic;
}

@media (max-width: 46rem) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-block: 2.75rem 3.25rem;
    text-align: center;
  }

  .solar-seal {
    width: min(52vw, 14rem);
  }

  h1 {
    font-size: clamp(2.75rem, 10.5vw, 5.5rem);
  }

  .intro {
    margin-inline: auto;
  }
}

.masthead {
  align-items: center;
}

a {
  color: inherit;
  text-underline-offset: .2em;
}

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.masthead a {
  text-decoration: none;
}

.masthead a:hover, .site-nav summary:hover {
  text-decoration: underline;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem clamp(1rem, 3vw, 2.5rem);
  color: var(--gold);
}

.site-nav details {
  position: relative;
}

.site-nav summary {
  cursor: pointer;
}

.site-nav ul {
  position: absolute;
  z-index: 2;
  inset: 100% auto auto 0;
  min-width: max-content;
  margin: .6rem 0 0;
  padding: .75rem 1rem;
  list-style: none;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.site-nav li + li {
  margin-top: .65rem;
}

.button-link {
  display: inline-block;
  width: fit-content;
  padding: .7rem 1rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font: 600 .95rem/1.4 system-ui, sans-serif;
  text-decoration: none;
}

.button-link:hover {
  background: var(--gold);
  color: var(--paper);
}

.inner-page {
  flex: 1;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.inner-page h1 {
  max-width: 16ch;
}

.page-note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  max-width: 50ch;
}

:is(.home-site, .hr-site, .retreat-site) {
  background: linear-gradient(var(--espresso), var(--night) 34rem);
  color: var(--light-ink);
}

:is(.home-site, .hr-site, .retreat-site) .announcement {
  width: min(100% - 2rem, 72rem);
  padding-top: .75rem;
}

:is(.home-site, .hr-site, .retreat-site) :is(.masthead, .footer) {
  border-color: var(--dark-rule);
}

:is(.home-site, .hr-site, .retreat-site) .masthead > a {
  font: 1.3rem Georgia, serif;
  text-transform: none;
  letter-spacing: 0;
}

:is(.home-site, .hr-site, .retreat-site) :is(.site-nav, .footer) {
  color: var(--brass);
}

:is(.home-site, .hr-site, .retreat-site) .site-nav ul {
  inset-inline: auto 0;
  border-color: var(--dark-rule);
  background: var(--espresso);
  color: var(--light-ink);
}

.hr-portal {
  --hr-gold: #dfbd85;
  --hr-ink: #30271f;
  --hr-border: #b9a487;
  width: min(100%, 53rem);
  margin: clamp(1.6rem, 6vw, 5rem) auto;
  border: 1px solid var(--hr-border);
  background: #f8f3e9;
  color: var(--hr-ink);
  font-family: Georgia, serif;
}

.hr-banner {
  padding: clamp(2.1rem, 5vw, 3.55rem) .85rem;
  text-align: center;
  background: #211b16;
  color: var(--hr-gold);
}

.hr-inscription {
  font-size: .875rem;
  line-height: 1.5;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hr-banner h1 {
  margin: 1.15rem 0 .8rem;
  font-size: clamp(2rem, 5.7vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.hr-seal {
  width: 3.65rem;
  aspect-ratio: 1;
  margin: .8rem auto 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hr-gold) 0 32%, transparent 33%),
    repeating-conic-gradient(from -2deg, var(--hr-gold) 0 4deg, transparent 4deg 45deg);
  mask-image: radial-gradient(circle, #000 0 32%, transparent 33% 42%, #000 43% 69%, transparent 70%);
}

.hr-tagline {
  margin-top: .9rem;
  color: #ead6b5;
  font-size: 1.15rem;
  font-style: italic;
}

.hr-dispatch {
  padding: .85rem 1rem;
  background: #eae0ce;
  color: #493c2d;
  text-align: center;
  font-size: .95rem;
}

.hr-paper {
  padding: clamp(1.15rem, 4.5vw, 2.85rem);
  line-height: 1.6;
}

.hr-intro {
  margin-top: .85rem;
  font-size: 1.125rem;
}

.hr-notice {
  margin-block: 1.5rem 2.5rem;
  padding: 1rem clamp(1rem, 3vw, 1.65rem);
  border-inline-start: 3px solid #a67740;
  background: #efe4cf;
}

.hr-notice strong {
  display: block;
  margin-bottom: .25rem;
}

.hr-paper h2 {
  margin: 0;
  font-size: 1.6875rem;
  font-weight: 400;
  line-height: 1.3;
}

.hr-field input, .hr-form select, .hr-form textarea {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: .75rem .9rem;
  border: 1px solid var(--hr-border);
  border-radius: .28rem;
  background-color: #fffdf7;
  color: inherit;
  font: inherit;
}

.hr-form select {
  padding-inline-end: 2.25rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #634a32 50%),
    linear-gradient(135deg, #634a32 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.hr-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.hr-form :is(input, select, textarea, button):focus-visible,
.hr-portal button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.hr-form input[type="checkbox"] {
  flex: none;
  accent-color: #81562e;
}

.hr-portal button.button-link {
  min-height: 3rem;
  font: 400 1.125rem/1.4 Georgia, serif;
  border-radius: .28rem;
  background: #33251a;
  color: #f9e9ce;
  cursor: pointer;
}

.hr-portal button.button-link:hover {
  background: #523927;
}

.hr-portal button.button-link:disabled {
  opacity: .7;
  cursor: wait;
}

#hr-error, #hr-receipt {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--hr-border);
  background: #efe4cf;
}

#hr-case-id {
  overflow-wrap: anywhere;
}

#hr-receipt button {
  margin-top: 1rem;
}

.hr-faq {
  margin-top: 3rem;
  border-top: 1px solid var(--hr-border);
  padding-top: 1.5rem;
}

.hr-faq details {
  border-bottom: 1px solid #d9cbb5;
  padding: .8rem 0;
}

.hr-faq h2 {
  margin-bottom: .6rem;
}

.hr-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.hr-faq details p {
  margin: .5rem 0 .2rem 1rem;
}

.hr-signoff {
  padding: 1.25rem 1rem;
  border-top: 1px solid #a88757;
  background: #211b16;
  color: #ead6b5;
  text-align: center;
  font-style: italic;
}

.hr-field {
  margin-top: 1.25rem;
}

.hr-field label {
  display: block;
  margin-bottom: .4rem;
  font-weight: 700;
}

.hr-help, .hr-smallprint {
  margin-block: .45rem .75rem;
  color: var(--muted);
  font-size: .8125rem;
}

.hr-help {
  font-style: italic;
}

.hr-divider {
  margin-block: 2rem;
  border: 0;
  border-top: 1px solid var(--hr-border);
}

.hr-checkbox {
  display: flex;
  align-items: baseline;
  font-size: .875rem;
  gap: .6rem;
  margin-block: .8rem;
}

.hr-form button {
  margin-top: .75rem;
}

.hr-confirmation {
  text-align: center;
}

.hr-stamp, .hr-case-number {
  margin-block: .75rem;
  color: var(--gold);
  font-weight: bold;
}

.site-nav summary {
  list-style: none;
}

.site-nav summary::-webkit-details-marker {
  display: none;
}

.site-nav summary::after {
  display: inline-block;
  width: .38em;
  height: .38em;
  margin: 0 0 .18em .55em;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  content: "";
}

.site-nav details[open] summary::after {
  transform: rotate(225deg);
}

.retreat-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(26rem, 68svh, 43rem);
  margin-top: clamp(1rem, 3vw, 2.5rem);
  border: 1px solid var(--dark-rule);
  padding: 3rem 1rem 5rem;
  place-items: center;
  overflow: hidden;
  background: var(--espresso);
}

.retreat-sky {
  position: absolute;
  z-index: -2;
  inset: -15%;
  background:
    radial-gradient(ellipse at 68% 70%, #ecb770 0, #825744 25%, transparent 52%),
    radial-gradient(ellipse at 30% 30%, #82664b, #3d4336 38%, transparent 66%),
    #332f41;
  animation: retreat-drift 18s ease-in-out infinite alternate;
}

.retreat-sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.retreat-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #151b18b8, #271c20a0 60%, #2a2114b0);
  content: "";
}

@keyframes retreat-drift {
  from { transform: translate(-3%, -2%) scale(1); }
  to { transform: translate(4%, 3%) scale(1.13); }
}

.retreat-hero-copy {
  max-width: 45rem;
  text-align: center;
}

.retreat-hero .edition, .retreat-hero h1 em {
  color: #ffdc9c;
}

.retreat-hero h1 {
  font-size: clamp(3.5rem, 9vw, 7rem);
}

.retreat-hero h1 em {
  display: block;
}

.retreat-hero-copy > p:last-child {
  max-width: 34ch;
  margin: auto;
  font-size: clamp(1.15rem, 2.7vw, 1.45rem);
  line-height: 1.5;
}

.retreat-motion {
  position: absolute;
  inset: auto 1rem 1rem auto;
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .65rem;
  background: #1c211c;
  border: 1px solid #f4daa17a;
  font: .875rem/1.5 system-ui, sans-serif;
  cursor: pointer;
}

.retreat-hero:has(.retreat-motion input:checked) .retreat-sky {
  animation-play-state: paused;
}

.retreat-welcome, .retreat-album {
  width: min(100% - 2rem, 68rem);
  margin: auto;
  padding-block: clamp(2.75rem, 6vw, 5rem);
}

.retreat-welcome h2, .retreat-album h2 {
  margin: 0 0 .75rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: normal;
}

.retreat-welcome p {
  max-width: 55ch;
  line-height: 1.55;
}

.retreat-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}

.retreat-gallery figure {
  margin: 0;
}

.retreat-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.retreat-gallery figcaption {
  padding-block: .5rem;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .retreat-sky {
    animation: none;
  }

  .retreat-motion {
    display: none;
  }
}

.home-hero {
  margin-block: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 4vw, 3.5rem);
  border: 1px solid var(--dark-rule);
  background: radial-gradient(ellipse at 73% 78%, #64473366, transparent 65%),
    linear-gradient(135deg, #20221e, #352920);
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr);
  gap: clamp(2rem, 5vw, 5.25rem);
}

.home-hero h1 {
  font-size: clamp(2.65rem, 5.8vw, 6.3rem);
}

.home-film {
  width: 100%;
  margin: 0;
}

.home-film-frame {
  padding: clamp(.35rem, .8vw, .7rem);
  border: 1px solid #98794d;
  background: #27211a;
  box-shadow: 0 18px 40px #51371629;
}

.home-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #27211a;
}

.home-film figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem 1rem;
  padding-block: .7rem 0;
  border-top: 1px solid var(--rule);
  margin-top: .7rem;
  color: var(--light-ink);
  font: 600 .875rem/1.5 system-ui, sans-serif;
  letter-spacing: .04em;
}

.home-film figcaption span:first-child {
  font: italic 1.05rem/1.4 Georgia, serif;
}

@media (max-width: 50rem) {
  .home-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .home-hero h1 {
    font-size: clamp(2.75rem, 10.5vw, 5.5rem);
  }

  .home-hero .intro {
    margin-inline: auto;
  }

  .home-film {
    max-width: 38rem;
  }
}

.home-hero :is(.edition, h1 em) {
  color: var(--brass);
}

.home-site .button-link {
  border-color: var(--brass);
  color: var(--brass);
}

.home-site .button-link:hover {
  background: var(--brass);
  color: var(--espresso);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.5rem;
}

.home-actions .button-link:first-child {
  background: var(--brass);
  color: var(--espresso);
}

.home-actions .button-link:first-child:hover {
  background: #f2d5a2;
}

@media (max-width: 50rem) {
  .home-actions {
    justify-content: center;
  }
}

:is(.home-site, .hr-site, .retreat-site) .masthead :focus-visible,
.home-site .home-hero :focus-visible {
  outline-color: var(--brass);
}
