@font-face {
  font-family: "Site Lock Serif";
  src: url("fonts/instrument-serif-regular.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Site Lock Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-display: swap;
  font-style: italic;
  font-weight: 400;
}

@font-face {
  font-family: "Site Lock Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
}

html.site-lock-active {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
  background: #eee4d8;
}

body.site-locked {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none;
  background: #eee4d8 !important;
}

body.is-loading {
  overflow: hidden !important;
}

body.site-locked > :not(.site-lock-overlay):not(#loading-screen) {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 2147484000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 72px);
  color: #2f241b;
  background: #fffaf1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity .72s cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear .72s;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#loading-screen.dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  width: min(620px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: loaderFadeIn .6s cubic-bezier(.22, 1, .36, 1) both;
}

.loader-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: clamp(34px, 6vw, 58px);
  filter: brightness(0) saturate(100%);
  opacity: 1;
}

.loader-quote {
  width: 100%;
  min-height: clamp(170px, 23vw, 230px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.loader-quote-text,
.loader-quote-author {
  margin: 0;
  transition:
    opacity .55s cubic-bezier(.22, 1, .36, 1),
    transform .55s cubic-bezier(.22, 1, .36, 1);
}

.loader-quote-text {
  max-width: min(620px, 100%);
  color: #2f241b;
  font-family: "Site Lock Serif", Georgia, serif;
  font-size: clamp(30px, 5.1vw, 58px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.loader-quote-author {
  color: #76614d;
  font-family: "Site Lock Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.loader-quote.is-changing .loader-quote-text,
.loader-quote.is-changing .loader-quote-author {
  opacity: 0;
  transform: translateY(10px);
}

.loader-quote:not(.is-entered) .loader-quote-text,
.loader-quote:not(.is-entered) .loader-quote-author {
  opacity: 0;
  transform: translateY(14px);
}

.loader-progress {
  width: min(190px, 46vw);
  height: 1px;
  margin-top: clamp(32px, 5vw, 56px);
  overflow: hidden;
  background: rgba(47, 36, 27, .16);
}

.loader-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: #8a5a2b;
  transform-origin: left center;
  transition: width .7s cubic-bezier(.22, 1, .36, 1);
}

.loader-meta {
  margin: 18px 0 0;
  color: #76614d;
  font-family: "Site Lock Sans", system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .72;
}

@keyframes loaderFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .loader-quote {
    min-height: 220px;
    gap: 18px;
  }

  .loader-quote-text {
    max-width: 320px;
    font-size: clamp(30px, 10vw, 44px);
  }

  .loader-quote-author {
    max-width: 250px;
    font-size: 10px;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  #loading-screen,
  .loader-content,
  .loader-quote-text,
  .loader-quote-author,
  .loader-progress-fill {
    animation: none;
    transition-duration: .01ms !important;
  }
}

.site-lock-overlay {
  --lock-paper: #f5ede3;
  --lock-paper-soft: #ebe0d4;
  --lock-paper-light: #fbf6ef;
  --lock-ink: #30251f;
  --lock-muted: #78695d;
  --lock-wine: #7f263b;
  --lock-line: rgba(48, 37, 31, .13);
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding:
    max(22px, env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    max(22px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
  overflow: hidden !important;
  overscroll-behavior: none;
  color: var(--lock-ink);
  background: linear-gradient(145deg, #e8dccf 0%, #f4ede4 52%, #e9ddd1 100%);
  font-family: "Site Lock Sans", "Instrument Sans", Arial, sans-serif;
  isolation: isolate;
  scrollbar-width: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  box-sizing: border-box;
}

.site-lock-overlay *,
.site-lock-overlay *::before,
.site-lock-overlay *::after {
  box-sizing: border-box;
}

.site-lock-overlay::-webkit-scrollbar {
  display: none;
}

.site-lock-overlay[hidden],
.site-lock-overlay.is-dismissed {
  display: none !important;
}

.site-lock-stack {
  width: min(1100px, 100%);
  max-width: 100%;
  min-height: min(680px, calc(100svh - 44px));
}

.site-lock-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .72fr);
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  max-width: 100%;
  min-height: inherit;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 32px;
  background: rgba(248, 241, 232, .74);
  -webkit-backdrop-filter: blur(24px) saturate(112%);
  backdrop-filter: blur(24px) saturate(112%);
  box-shadow:
    0 32px 90px rgba(65, 47, 36, .12),
    inset 0 1px 0 rgba(255, 255, 255, .72);
  animation: site-lock-card-in 600ms cubic-bezier(.22, 1, .36, 1) both;
}

.site-lock-card > div:first-child {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(42px, 6vw, 76px) clamp(38px, 6vw, 78px) 24px;
}

.site-lock-wordmark {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  color: var(--lock-ink);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.site-lock-wordmark::before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  background: url("optimized/logo-dark.png") center / 23px auto no-repeat;
  filter: brightness(0) saturate(100%);
  opacity: .92;
}

.site-lock-rule {
  width: 100%;
  height: 1px;
  margin-top: clamp(28px, 4vw, 48px);
  background: var(--lock-line);
}

.site-lock-rule::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  background: var(--lock-wine);
}

.site-lock-copy {
  width: min(620px, 100%);
  margin: auto 0;
  padding: clamp(46px, 7vw, 84px) 0 clamp(34px, 5vw, 64px);
}

.site-lock-eyebrow {
  margin: 0;
  color: var(--lock-wine);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .21em;
  text-transform: uppercase;
}

.site-lock-title {
  margin: clamp(22px, 3vw, 34px) 0 clamp(26px, 3vw, 38px);
  color: var(--lock-ink);
  font-family: "Site Lock Serif", "Instrument Serif", Georgia, serif;
  font-size: clamp(90px, 9.4vw, 148px);
  font-weight: 400;
  letter-spacing: -.068em;
  line-height: .74;
}

.site-lock-title span {
  color: var(--lock-wine);
}

.site-lock-message {
  max-width: 430px;
  margin: 0;
  color: var(--lock-muted);
  font-family: "Site Lock Serif", "Instrument Serif", Georgia, serif;
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.42;
  text-wrap: pretty;
}

.site-lock-footer {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  padding: 0 clamp(38px, 6vw, 78px) clamp(34px, 4.5vw, 54px);
  color: rgba(48, 37, 31, .48);
  font-size: 9px;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.site-lock-footer .site-lock-dot {
  color: var(--lock-wine);
  font-family: "Site Lock Serif", "Instrument Serif", Georgia, serif;
  font-size: 17px;
  line-height: 0;
}

.site-lock-access {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: stretch;
  width: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  margin: 14px;
  padding: clamp(30px, 4vw, 50px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 24px;
  color: var(--lock-ink);
  background: rgba(255, 251, 246, .57);
  -webkit-backdrop-filter: blur(18px) saturate(108%);
  backdrop-filter: blur(18px) saturate(108%);
  box-shadow:
    0 18px 44px rgba(78, 57, 43, .07),
    inset 0 1px 0 rgba(255, 255, 255, .76);
  text-align: left;
}

.site-lock-access-message {
  max-width: 280px;
  margin: 0 0 6px;
  color: var(--lock-muted);
  font-family: "Site Lock Serif", "Instrument Serif", Georgia, serif;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.14;
}

.site-lock-access-message strong {
  display: block;
  margin-top: 5px;
  color: var(--lock-ink);
  font-style: italic;
  font-weight: 400;
}

.site-lock-access-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.site-lock-access .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-lock-code,
.site-lock-submit {
  min-height: 54px;
  border-radius: 999px;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.site-lock-code {
  width: 100%;
  min-width: 0;
  padding: 0 18px;
  border: 1px solid var(--lock-line);
  outline: 0;
  color: var(--lock-ink);
  background: rgba(245, 237, 227, .76);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .18em;
  caret-color: var(--lock-wine);
  transition:
    border-color .2s ease,
    background-color .2s ease,
    box-shadow .2s ease;
}

.site-lock-code::placeholder {
  color: rgba(48, 37, 31, .42);
  font-size: 12px;
  letter-spacing: .015em;
}

.site-lock-code:focus {
  border-color: rgba(127, 38, 59, .48);
  background: rgba(255, 252, 247, .94);
  box-shadow: 0 0 0 3px rgba(127, 38, 59, .07);
}

.site-lock-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 108px;
  padding: 0 19px;
  border: 1px solid var(--lock-wine);
  color: #fffaf4;
  background: var(--lock-wine);
  cursor: pointer;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.site-lock-submit::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translate(-1px, 1px);
  transition: transform .2s ease;
}

.site-lock-submit:hover {
  border-color: var(--lock-ink);
  background: var(--lock-ink);
  transform: translateY(-1px);
}

.site-lock-submit:hover::after {
  transform: translate(1px, -1px);
}

.site-lock-submit:active {
  transform: scale(.985);
}

.site-lock-submit:focus-visible,
.site-lock-code:focus-visible {
  outline: 2px solid rgba(127, 38, 59, .46);
  outline-offset: 3px;
}

.site-lock-submit:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}

.site-lock-error {
  min-height: 18px;
  margin: 0;
  color: var(--lock-wine);
  font-size: 11px;
  line-height: 1.4;
}

.site-lock-access.is-error .site-lock-code {
  border-color: rgba(127, 38, 59, .72);
  background: rgba(255, 246, 245, .9);
  animation: site-lock-shake .36s ease both;
}

.site-lock-access.is-valid .site-lock-code,
.site-lock-access.is-valid .site-lock-submit {
  border-color: #66725f;
}

.site-lock-overlay.is-unlocking {
  pointer-events: none;
  animation: site-lock-veil-out 520ms ease both;
}

.site-lock-overlay.is-unlocking .site-lock-card {
  animation: site-lock-card-out 480ms ease both;
}

@keyframes site-lock-card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes site-lock-card-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes site-lock-veil-out {
  0%, 52% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes site-lock-shake {
  20% { transform: translateX(-5px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
  100% { transform: none; }
}

@media (max-width: 820px) {
  html.site-lock-active,
  body.site-locked {
    width: 100% !important;
    max-width: 100% !important;
  }

  html.site-lock-active {
    height: 100% !important;
  }

  body.site-locked {
    height: 100dvh !important;
  }

  .site-lock-overlay {
    place-items: stretch;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    padding: 0;
    overflow: hidden !important;
    background: #efe5d9;
  }

  .site-lock-stack {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
  }

  .site-lock-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    border: 0;
    border-radius: 0;
    background: rgba(247, 239, 229, .9);
    box-shadow: none;
  }

  .site-lock-card > div:first-child {
    grid-column: 1;
    grid-row: 1;
    padding:
      max(20px, env(safe-area-inset-top))
      24px
      0;
  }

  .site-lock-wordmark::before {
    width: 30px;
    height: 30px;
    background-size: 21px auto;
  }

  .site-lock-rule {
    margin-top: 17px;
  }

  .site-lock-copy {
    margin: 0;
    padding: clamp(22px, 4.4dvh, 34px) 0 clamp(17px, 3dvh, 24px);
  }

  .site-lock-title {
    margin: 13px 0 17px;
    font-size: clamp(62px, 17.5vw, 88px);
    line-height: .74;
  }

  .site-lock-message {
    max-width: 390px;
    font-size: 15px;
    line-height: 1.34;
  }

  .site-lock-access {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    margin: 0 16px 14px;
    padding: 18px 17px 14px;
    border-radius: 20px;
    background: rgba(255, 251, 246, .62);
    box-shadow: 0 12px 32px rgba(78, 57, 43, .06);
  }

  .site-lock-access-message {
    max-width: 100%;
    margin-bottom: 0;
    font-size: 18px;
  }

  .site-lock-access-message strong {
    display: inline;
    margin: 0;
  }

  .site-lock-footer {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    padding:
      2px
      24px
      max(16px, env(safe-area-inset-bottom));
    font-size: 8px;
  }
}

@media (max-width: 410px) {
  .site-lock-card > div:first-child {
    padding-inline: 20px;
  }

  .site-lock-copy {
    padding-top: 21px;
    padding-bottom: 17px;
  }

  .site-lock-title {
    font-size: clamp(58px, 17vw, 76px);
  }

  .site-lock-access {
    margin-inline: 12px;
    padding-inline: 16px;
  }

  .site-lock-access-controls {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .site-lock-code,
  .site-lock-submit {
    min-height: 48px;
  }

  .site-lock-code {
    padding-inline: 14px;
    font-size: 16px;
  }

  .site-lock-submit {
    min-width: 0;
    padding-inline: 13px;
  }
}

@media (max-height: 690px) and (max-width: 820px) {
  .site-lock-card > div:first-child {
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .site-lock-copy {
    padding-top: 16px;
    padding-bottom: 13px;
  }

  .site-lock-title {
    margin-block: 10px 13px;
    font-size: clamp(54px, 15.5vw, 70px);
  }

  .site-lock-message {
    font-size: 14px;
  }

  .site-lock-access {
    gap: 9px;
    margin-bottom: 10px;
    padding-block: 14px 11px;
  }

  .site-lock-access-message {
    font-size: 17px;
  }

  .site-lock-code,
  .site-lock-submit {
    min-height: 44px;
  }

  .site-lock-footer {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-lock-overlay,
  .site-lock-card,
  .site-lock-code {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-lock-card {
    background: #f3eadf;
  }

  .site-lock-access {
    background: #fbf6ef;
  }
}
