:root {
  color-scheme: light;
  --ink: #173836;
  --ink-soft: #4f6863;
  --paper: #f3efe6;
  --paper-deep: #e8e0d2;
  --rust: #aa5537;
  --line: rgba(23, 56, 54, 0.2);
  --serif: Iowan Old Style, Baskerville, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 18%, rgba(211, 167, 83, 0.09), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.05;
  pointer-events: none;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  transform: translateY(-200%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100% - 3rem, 90rem);
  min-height: 100svh;
  margin-inline: auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark-mark {
  width: 1.4rem;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.8;
  text-align: center;
  text-transform: none;
}

.place,
.site-footer,
.eyebrow {
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.place {
  margin: 0;
  color: var(--ink-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(22rem, 0.76fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  padding-block: clamp(3.5rem, 8vh, 7rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 45rem;
  padding-left: clamp(0rem, 4vw, 4rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 clamp(1.5rem, 3vh, 2.5rem);
  color: var(--rust);
}

.eyebrow::before {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
  content: "";
}

h1 {
  max-width: 8ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.75rem, 9.8vw, 10.5rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.79;
}

.intro {
  max-width: 28rem;
  margin: clamp(2rem, 5vh, 3.75rem) 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.75vw, 1.55rem);
  line-height: 1.5;
}

.portal-access {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.portal-access span {
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.access-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: 0.2rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}

.access-button:hover,
.access-button:focus-visible {
  background: transparent;
  color: var(--ink);
}

.logout-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.logout-card {
  width: min(100%, 34rem);
  padding: clamp(2.5rem, 7vw, 5rem);
  border: 1px solid var(--line);
  background: rgba(243, 239, 230, 0.82);
  box-shadow: 0 2rem 5rem rgba(39, 47, 40, 0.1);
}

.logout-mark {
  display: block;
  margin-bottom: 1.5rem;
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
}

.logout-card h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.25rem, 10vw, 5.5rem);
  line-height: 0.9;
}

.logout-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.55;
}

.logout-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
}

.portrait {
  position: relative;
  width: 100%;
  min-height: 30rem;
  overflow: hidden;
  background: var(--ink);
  border-radius: 20rem 20rem 0.35rem 0.35rem;
  box-shadow: 0 2rem 5rem rgba(39, 47, 40, 0.13);
  isolation: isolate;
}

.portrait::after {
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(243, 239, 230, 0.22);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.portrait-art {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.portrait-glow {
  opacity: 0.21;
}

.portrait-sun {
  opacity: 0.92;
}

.land-far {
  fill: #456a60;
}

.land-near {
  fill: #254d48;
}

.arch {
  fill: none;
  stroke: rgba(243, 239, 230, 0.58);
  stroke-width: 2;
}

.arch-middle {
  stroke: rgba(243, 239, 230, 0.34);
}

.arch-inner {
  stroke: rgba(243, 239, 230, 0.22);
}

.path {
  fill: rgba(232, 224, 210, 0.14);
  stroke: rgba(243, 239, 230, 0.23);
  stroke-width: 1.5;
}

.gathering {
  fill: var(--paper-deep);
}

.gathering-one,
.gathering-three {
  opacity: 0.72;
}

.site-footer {
  min-height: 5.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0;
}

.year {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 56rem) {
  .site-shell {
    width: min(100% - 2rem, 44rem);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding-block: 4rem;
  }

  .hero-copy {
    padding-left: 0;
  }

  h1 {
    font-size: clamp(4.6rem, 20vw, 8rem);
  }

  .portrait {
    width: min(100%, 32rem);
    min-height: 36rem;
    margin-inline: auto;
  }
}

@media (max-width: 34rem) {
  .site-header {
    padding-block: 1.4rem;
  }

  .place {
    display: none;
  }

  .hero {
    gap: 3rem;
    padding-block: 3rem;
  }

  h1 {
    font-size: clamp(4.25rem, 22vw, 6.25rem);
  }

  .intro {
    max-width: 20rem;
  }

  .portal-access {
    align-items: flex-start;
    flex-direction: column;
  }

  .portrait {
    min-height: 28rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink-soft: #2f4b47;
    --line: rgba(23, 56, 54, 0.5);
  }
}
