/* Shared typography and warm, restrained surfaces. */
:root {
  --paper: #fafaf7;
  --ink: #26392f;
  --muted: #606d63;
  --green: #3e5947;
  --line: #dce2d9;
}
body { -webkit-font-smoothing: auto; }
h1,h2,h3,.entry-title,.brand,.date-column strong,.moment-date,.account-link {
  font-family: var(--sans);
  font-weight: 600;
}
h1 { letter-spacing: -.015em; }
.entry-title { letter-spacing: 0; }
.entry-excerpt { color: #526156; }
input:not([type=checkbox]),textarea,select {
  background: #fff;
  border-color: #cbd4ca;
  border-radius: 8px;
}
input::placeholder,textarea::placeholder { color: #6c776e; opacity: 1; }
.primary,.secondary { border-radius: 8px; font-weight: 500; }
.primary { background: var(--green); }
.primary:hover { background: #2e4537; }

/* Authentication: one composition for login, first use and account setup. */
.auth-page.login-page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  background: #293b30 url('login-poster-14679068.webp') center / cover no-repeat fixed;
}
.auth-page .login-background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: -1;
}
.auth-page .login-brand {
  z-index: 1;
  top: 36px;
  left: clamp(28px, 4.5vw, 80px);
  color: #fffdf8;
  font: 600 25px/1.4 var(--sans);
  letter-spacing: .08em;
  text-shadow: 0 1px 2px #19221966;
}
.auth-page.login-page .login-stage {
  min-height: 100svh;
  padding: 128px 28px 96px;
  align-items: center;
  justify-content: center;
}
.site-legal { padding: 20px; color: #68756a; text-align: center; font-size: 12px; }
.site-legal a { text-decoration: none; }
.site-legal a:hover { text-decoration: underline; }
.auth-page .site-legal { position: absolute; inset-inline: 0; bottom: 0; color: #fffdf8; text-shadow: 0 1px 3px #182219b3; }
.auth-page .login-panel {
  width: 424px;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.auth-page .auth-heading {
  padding: 0 0 30px;
  text-align: center;
  color: #fffdf8;
  text-shadow: 0 1px 3px #18221980;
}
.auth-page .auth-heading h1 {
  margin: 0;
  font: 500 38px/1.4 var(--sans);
  letter-spacing: -.015em;
  white-space: normal;
  text-wrap: balance;
  text-align: center;
  color: inherit;
}
.auth-page .auth-heading .login-subtitle {
  max-width: none;
  margin: 13px 0 0;
  color: #fffdf8;
  font: 400 14px/1.8 var(--sans);
  letter-spacing: .04em;
  text-align: center;
}
.auth-page .auth-card {
  padding: 32px;
  background: #fcfaf6;
  border: 1px solid #ffffff99;
  border-radius: 16px;
  box-shadow: 0 2px 5px #1724180d, 0 20px 60px #17241829;
}
.auth-page .auth-field + .auth-field { margin-top: 20px; }
.auth-page .auth-card label:not(.sr-only) {
  margin: 0 0 9px;
  color: #334335;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.auth-page .auth-card input:not([type=checkbox]) {
  width: 100%;
  height: 52px;
  min-width: 0;
  padding: 12px 14px;
  margin: 0;
  border: 1px solid #d3d9ce;
  border-radius: 8px;
  background: #fff;
  color: #25392d;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.auth-page .auth-card input:focus-visible {
  border-color: #52725b;
  outline: 2px solid #52725b;
  outline-offset: 2px;
}
.auth-page .auth-card input[aria-invalid=true] { border-color: #a15b47; }
.auth-page .password-toggle {
  top: 4px;
  right: 4px;
  min-width: 48px;
  min-height: 44px;
  padding: 8px;
  border-radius: 5px;
  color: #4f6554;
  font-size: 12px;
}
.auth-page .password-toggle:hover { background: #edf1e9; }
.auth-page .otp-input {
  margin: 17px 0 0;
  font-size: 12px;
  color: #5c6c5e;
}
.auth-page .otp-input summary { width: fit-content; padding: 4px 0; color: inherit; }
.auth-page .otp-input input { margin-top: 10px; }
.auth-page .login-button {
  width: 100%;
  min-height: 52px;
  margin: 24px 0 0;
  padding: 12px 18px;
  border-radius: 8px;
  background: #3b5342;
  font: 500 15px/1.6 var(--sans);
  letter-spacing: .06em;
  box-shadow: 0 1px 2px #1d34251a;
  transition: background .16s ease;
}
.auth-page .login-button:hover { background: #2c4232; }
.auth-page .auth-note {
  margin: 24px 0 0;
  color: #667264;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}
.auth-page .first-use { padding: 0; text-align: left; color: #5d6b60; }
.auth-page .first-use .auth-card-label {
  margin: 0 0 10px;
  color: #667764;
  font-size: 12px;
  letter-spacing: .04em;
}
.auth-page .first-use h2 {
  margin: 0 0 14px;
  color: #26392f;
  font: 600 23px/1.5 var(--sans);
  letter-spacing: 0;
}
.auth-page .first-use p { font-size: 14px; line-height: 1.9; }
.auth-page .setup-guide { margin-top: 26px; }
.auth-page .setup-guide summary {
  padding: 12px 15px;
  border: 1px solid #ccd5c8;
  border-radius: 8px;
  color: #354d3b;
  font-size: 13px;
  font-weight: 500;
}
.auth-page .setup-guide summary:hover { background: #eff2e9; }
.auth-page .setup-guide p { margin: 14px 2px 0; font-size: 13px; overflow-wrap: anywhere; }
.auth-page .setup-panel { width: 480px; }
.auth-page .setup-form > p { margin: 0 0 22px; }
.auth-page .setup-form .helptext { margin-top: 10px; font-size: 12px; line-height: 1.8; }
.auth-page .setup-form ul { padding-left: 19px; }
.auth-page .setup-form .login-button { margin-top: 6px; }
.auth-page .errorlist { font-size: 13px; line-height: 1.7; margin: 12px 0; }
.auth-page .auth-form > .errorlist:first-of-type { margin-top: 0; margin-bottom: 20px; }

@media (max-width: 720px) {
  .auth-page .login-brand { top: 26px; left: 24px; font-size: 23px; }
  .auth-page.login-page .login-stage {
    padding: 112px 24px max(74px, env(safe-area-inset-bottom));
    align-items: flex-end;
  }
  .auth-page .login-panel { width: 380px; max-width: 100%; padding: 0; }
  .auth-page .auth-heading { padding-bottom: 26px; }
  .auth-page .auth-heading h1 { font-size: 30px; line-height: 1.5; }
  .auth-page .auth-heading .login-subtitle { font-size: 13px; margin-top: 9px; }
  .auth-page .auth-card { padding: 26px 24px; border-radius: 14px; }
  .auth-page .auth-note { margin-top: 22px; }
  .auth-page .first-use h2 { font-size: 22px; }
  .auth-setup-page.login-page .login-stage { align-items: flex-start; }
}
@media (max-width: 360px) {
  .auth-page.login-page .login-stage { padding-inline: 18px; }
  .auth-page .auth-heading h1 { font-size: 27px; }
  .auth-page .auth-card { padding-inline: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page input,.auth-page button { transition: none; }
}
