@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --paper: #fdfdfb;
  --carbon: #282722;
  --cypress: #496655;
  --limestone: #d8d3c9;
  --rose: #a7645c;
}

* { box-sizing: border-box; }

html,
body { min-height: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--carbon);
  font-family: "EB Garamond", Georgia, serif;
  text-rendering: optimizeLegibility;
}

button,
input { font: inherit; }

.access-page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

.access-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(77, 61, 40, 0.035) 0.55px, transparent 0.7px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

.access-art {
  position: absolute;
  z-index: -2;
  right: 0;
  bottom: -100px;
  left: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.access-art img {
  display: block;
  width: 100vw;
  height: auto;
  max-width: none;
}

.access-copy {
  width: min(430px, calc(100% - 48px));
  margin: 0 0 0 clamp(56px, 9vw, 172px);
  padding: clamp(34px, 5vh, 66px) 0 40px;
  text-align: left;
}

.access-mark {
  width: 42px;
  height: auto;
  margin: 0 0 17px;
}

.access-eyebrow,
.access-form label,
.password-toggle,
.access-submit,
.access-date {
  font-family: "Source Sans 3", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.17em;
}

.access-eyebrow {
  margin: 0 0 13px;
  color: var(--cypress);
  font-size: 0.68rem;
  font-weight: 620;
}

h1 {
  margin: 0;
  font-size: clamp(2.65rem, 4.5vw, 4.3rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.access-intro {
  max-width: 385px;
  margin: 20px 0 23px;
  font-size: 1.04rem;
  line-height: 1.42;
}

.access-form { text-align: left; }

.access-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.62rem;
  font-weight: 650;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(40, 39, 34, 0.55);
  background: rgba(253, 253, 251, 0.5);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.password-field:focus-within {
  border-color: var(--cypress);
  background: rgba(253, 253, 251, 0.86);
}

.password-field input {
  min-width: 0;
  flex: 1;
  height: 48px;
  padding: 0 72px 0 2px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--carbon);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.password-toggle {
  position: absolute;
  right: 0;
  min-width: 58px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cypress);
  font-size: 0.58rem;
  font-weight: 650;
  cursor: pointer;
}

.access-error {
  min-height: 1.3em;
  margin: 8px 0 0;
  color: #8f4f48;
  font-size: 0.91rem;
  line-height: 1.3;
}

.access-error[hidden] { visibility: hidden; display: block; }

.access-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 13px;
  border: 1px solid var(--cypress);
  background: var(--cypress);
  color: var(--paper);
  font-size: 0.65rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.access-submit:hover { background: #3d5748; }
.access-submit:active { transform: translateY(1px); }
.access-submit:disabled { cursor: wait; opacity: 0.72; }

.password-toggle:focus-visible,
.access-submit:focus-visible,
.password-field input:focus-visible {
  outline: 2px solid var(--cypress);
  outline-offset: 4px;
}

.access-date {
  margin: 17px 0 0;
  color: rgba(40, 39, 34, 0.65);
  font-size: 0.58rem;
  font-weight: 550;
}

@media (max-width: 900px) and (orientation: portrait) {
  .access-copy {
    width: min(390px, calc(100% - 42px));
    margin: 0 auto;
    padding-top: clamp(26px, 4.2vh, 44px);
    text-align: center;
  }

  .access-mark { width: 36px; margin: 0 auto 12px; }
  h1 { font-size: clamp(2.45rem, 12vw, 3.35rem); }
  .access-intro { margin: 15px auto 18px; font-size: 0.98rem; }

  .access-art {
    bottom: -40px;
  }

  .access-art img { width: 100vw; }
}

@media (max-height: 600px) and (orientation: landscape) {
  .access-copy {
    width: min(440px, calc(100% - 40px));
    margin-left: clamp(28px, 7vw, 100px);
    padding-top: 20px;
    text-align: left;
  }

  .access-mark { width: 31px; margin: 0 0 9px; }
  .access-eyebrow { margin-bottom: 8px; }
  h1 { font-size: clamp(2.1rem, 6vw, 3rem); }
  .access-intro { max-width: 360px; margin: 10px 0 11px; font-size: 0.91rem; }
  .password-field input { height: 42px; }
  .access-submit { min-height: 42px; margin-top: 8px; }
  .access-date { margin-top: 10px; }

  .access-art {
    right: 0;
    bottom: -170px;
    left: 0;
    width: auto;
  }

  .access-art img { width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
