:root {
  --index-ivory: #f7f2e9;
  --index-paper: #fbf7ef;
  --index-ink: #30342f;
  --index-muted: #77766f;
  --index-olive: #6f745d;
  --index-gold: #b49a63;
  --index-line: rgba(151,129,88,.28);
  --index-serif: Baskerville, "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
}

body.index-page {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,.55), transparent 38%),
    var(--index-ivory);
  color: var(--index-ink);
  font-family: var(--index-serif);
}

body.index-page::before,
body.index-page::after {
  display: none;
}

.index-page .screen {
  position: relative;
  min-height: 0;
  height: 100%;
  padding: clamp(20px, 4vh, 48px) 24px clamp(16px, 3vh, 34px);
  overflow: hidden;
}

.index-page .screen::before,
.index-page .screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background-image: url('/images/Home_leaves.png');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: .58;
  mix-blend-mode: multiply;
}

.index-page .screen::before {
  width: 205px;
  height: 360px;
  top: -6px;
  left: -28px;
}

.index-page .screen::after {
  width: 255px;
  height: 300px;
  right: -60px;
  bottom: -120px;
  transform: rotate(190deg) scaleX(-1);
}

.index-page .login-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 660px);
  max-height: 100%;
}

.index-page .login-card {
  padding: clamp(34px, 6vh, 58px) 64px clamp(30px, 5vh, 50px);
  background: rgba(251,247,239,.88);
  border: 1px solid var(--index-line);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(75, 65, 51, .08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.index-page .login-card::before {
  display: none;
}

.index-page .eyebrow {
  margin-bottom: clamp(12px, 2.2vh, 22px);
  font-family: var(--index-serif);
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .28em;
  color: var(--index-ink);
}

.index-page .login-card h1 {
  display: block;
  margin: 0;
  font-family: var(--index-serif);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.045em;
}

.index-page .login-card h1 span {
  display: inline;
  white-space: normal;
}

.index-page .login-card .ampersand {
  margin: 0 .05em;
  font-size: .78em;
  color: var(--index-ink);
}

.index-page .intro {
  margin: clamp(16px, 3vh, 28px) auto clamp(18px, 3vh, 30px);
  max-width: 440px;
  font-size: 1.08rem;
  line-height: 1.55;
  color: #60625d;
}

.index-page form {
  width: min(100%, 430px);
  margin: 0 auto;
}

.index-page label {
  margin-bottom: 9px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .17em;
  color: #66685f;
}

.index-page input {
  padding: 14px 16px;
  border: 1px solid rgba(111,116,93,.28);
  border-radius: 7px;
  background: rgba(255,255,255,.6);
  color: var(--index-ink);
}

.index-page input:focus {
  border-color: var(--index-olive);
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 0 3px rgba(111,116,93,.09);
}

.index-page #login-button,
.index-page #logout-button {
  margin-top: 12px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--index-olive);
  background: transparent;
  color: var(--index-ink);
  font-family: var(--index-serif);
  font-size: .93rem;
  font-weight: 400;
  letter-spacing: .04em;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.index-page #login-button:hover:not(:disabled),
.index-page #logout-button:hover:not(:disabled) {
  background: var(--index-olive);
  color: #fff;
  transform: translateY(-1px);
}

.index-page #login-button span {
  font-size: 1rem;
}

.index-page .ornament {
  width: min(75%, 360px);
  color: var(--index-gold);
}

.index-page .ornament span {
  background: linear-gradient(to right, transparent, rgba(180,154,99,.62));
}

.index-page .ornament span:last-child {
  background: linear-gradient(to left, transparent, rgba(180,154,99,.62));
}

.index-page .ornament i {
  color: var(--index-gold);
}

.index-page .ornament-top {
  margin-bottom: clamp(12px, 2.5vh, 24px);
}

.index-page .ornament-bottom {
  margin-top: clamp(12px, 2.5vh, 24px);
}

.index-page .footer-note {
  margin-top: clamp(8px, 1.8vh, 16px);
  color: #77766f;
  font-size: .9rem;
}

.index-page .loading-mark {
  font-family: var(--index-serif);
  font-size: 2.4rem;
}

.index-page .loading-mark span {
  color: var(--index-gold);
}

.index-page .site-footer {
  min-height: 64px;
  padding: 20px clamp(24px, 6vw, 70px);
  text-align: right;
  border-top: 1px solid rgba(122,108,83,.1);
  background: #eee7db;
  font-family: var(--index-serif);
  font-size: .86rem;
}

.index-page .site-footer::before {
  display: none;
}

.index-page .site-footer a,
.index-page .site-footer .footer-logout {
  color: #4c4e48;
  opacity: 1;
}

@media (max-height: 760px) {
  .index-page .screen {
    padding-top: 16px;
    padding-bottom: 12px;
  }

  .index-page .login-card {
    padding-top: 32px;
    padding-bottom: 28px;
  }

  .index-page .login-card h1 {
    font-size: clamp(3.2rem, 7vw, 5rem);
  }

  .index-page .intro {
    margin-top: 15px;
    margin-bottom: 18px;
    line-height: 1.45;
  }

  .index-page .ornament-top {
    margin-bottom: 11px;
  }

  .index-page .ornament-bottom {
    margin-top: 11px;
  }

  .index-page .footer-note {
    margin-top: 8px;
  }

  .index-page .site-footer {
    min-height: 54px;
    padding-top: 15px;
    padding-bottom: 15px;
  }
}

@media (max-width: 600px) {
  .index-page .screen {
    padding: 12px 16px 10px;
  }

  .index-page .screen::before {
    width: 120px;
    height: 225px;
    opacity: .42;
  }

  .index-page .screen::after {
    width: 150px;
    height: 190px;
    right: -52px;
    bottom: -72px;
    opacity: .42;
  }

  .index-page .login-card {
    padding: 26px 20px 24px;
  }

  .index-page .eyebrow {
    margin-bottom: 11px;
    font-size: .68rem;
    letter-spacing: .2em;
  }

  .index-page .login-card h1 {
    white-space: nowrap;
    font-size: clamp(2.65rem, 12vw, 3.45rem);
  }

  .index-page .login-card h1 span {
    white-space: nowrap;
  }

  .index-page .intro {
    margin: 13px auto 15px;
    font-size: .95rem;
    line-height: 1.4;
  }

  .index-page label {
    margin-bottom: 6px;
  }

  .index-page input {
    padding: 12px 14px;
  }

  .index-page #login-button,
  .index-page #logout-button {
    min-height: 44px;
    margin-top: 9px;
  }

  .index-page .error {
    min-height: 18px;
    margin-top: 7px;
    margin-bottom: -5px;
  }

  .index-page .ornament-top {
    margin-bottom: 10px;
  }

  .index-page .ornament-bottom {
    margin-top: 10px;
  }

  .index-page .footer-note {
    margin-top: 7px;
    font-size: .82rem;
  }

  .index-page .site-footer {
    min-height: 48px;
    padding: 14px 16px;
    text-align: center;
    font-size: .8rem;
  }
}

@media (max-height: 520px) {
  .index-page .screen {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .index-page .login-card {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .index-page .eyebrow {
    margin-bottom: 6px;
    font-size: .62rem;
  }

  .index-page .login-card h1 {
    font-size: clamp(2.35rem, 9vh, 3.2rem);
  }

  .index-page .intro {
    margin-top: 7px;
    margin-bottom: 8px;
    font-size: .88rem;
    line-height: 1.25;
  }

  .index-page label {
    margin-bottom: 4px;
  }

  .index-page input {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .index-page #login-button,
  .index-page #logout-button {
    min-height: 38px;
    margin-top: 7px;
  }

  .index-page .error {
    min-height: 14px;
    margin-top: 4px;
    margin-bottom: -3px;
    font-size: .72rem;
  }

  .index-page .ornament-top {
    margin-bottom: 6px;
  }

  .index-page .ornament-bottom,
  .index-page .footer-note {
    display: none;
  }

  .index-page .site-footer {
    min-height: 40px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
