@font-face {
  font-family: "InterVariable";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #faf8f4;
  --ink: #34382f;
  --muted: #67675f;
  --accent: #555f49;
  --accent-hover: #434d38;
  --line: #d1cec5;
  --focus: #345e57;
  font-family: "InterVariable", "Inter", system-ui, sans-serif;
  font-feature-settings: "cv08" 1;
  color: var(--ink);
  background: #e8e1d6;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; isolation: isolate; }
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background: #e8e1d6 url("homepage-background.png") center / cover no-repeat;
  pointer-events: none;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { touch-action: manipulation; }
button:disabled { cursor: default; opacity: .6; }
svg { width: 1.25rem; height: 1.25rem; flex: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 4px; }
::selection { background: #dce4d3; color: #263021; }
.page-width { width: min(100% - 5rem, 87rem); margin-inline: auto; }

.skip-link { position: absolute; z-index: 3; left: 1rem; top: 1rem; padding: .75rem 1rem; background: var(--paper); border-radius: .4rem; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-size: 1rem; font-weight: 600; letter-spacing: -.035em; }
.wordmark svg { width: 1.65rem; height: 1.65rem; stroke: none; }
.domain { font-weight: 400; color: var(--muted); }
.header-link, .footer-link { padding: .5rem 0; border: 0; background: none; font-size: .875rem; color: #52564b; }
.header-link { display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; }
.header-link span { font-size: 1.2rem; }
.header-link:hover, .footer-link:hover { color: #303b28; text-decoration: underline; text-underline-offset: .2em; }

.homepage { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding-block: 1.5rem 2.5rem; }
.signin-card { width: 100%; max-width: 32rem; padding: 2.65rem 2.75rem 1.6rem; border-radius: .9rem; background: var(--paper); box-shadow: 0 1.25rem 3rem -.75rem rgb(66 51 31 / .2), 0 1px 0 rgb(255 255 255 / .65) inset; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .signin-card { background: rgb(250 248 244 / .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
}
.signin-card:focus { outline: none; }
.signin-card:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 4px; }
.card-heading { margin-bottom: 1.8rem; }
.card-heading h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.75rem, 4vw, 3.5rem); font-weight: 400; letter-spacing: -.055em; line-height: 1.12; }
.card-heading p { color: #63645c; font-size: 1rem; margin-top: .5rem; line-height: 1.55; }
.form-heading { font-size: .875rem; font-weight: 500; color: var(--muted); margin-bottom: 1.15rem; }
.step-intro { font-size: .875rem; color: var(--muted); margin: -.5rem 0 1.4rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .9375rem; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
input { min-width: 0; width: 100%; min-height: 3.25rem; border: 1px solid #aaa99d; border-radius: .65rem; padding: .8rem 1rem; background: transparent; box-shadow: 0 1px 2px rgb(44 39 30 / .015) inset; font-size: 1rem; }
input::placeholder { color: #787a71; opacity: 1; }
input:focus-visible { border-color: var(--focus); outline-offset: 2px; }
input[readonly] { background: #efede5; color: #5a5f50; }
.extra-field { margin-top: 1.1rem; }
#email-code { letter-spacing: .3em; font-variant-numeric: tabular-nums; font-size: 1.25rem; }
.field-hint { font-size: .8125rem; color: var(--muted); line-height: 1.6; }
.identity-summary { padding: .8rem 1rem; margin-bottom: 1.1rem; border: 1px solid var(--line); border-radius: .65rem; color: var(--muted); font-size: .8125rem; }
.notification-choice { display: flex; align-items: flex-start; gap: .65rem; margin-block: 1.1rem; font-size: .875rem; }
.notification-choice input { flex: none; width: 1.15rem; height: 1.15rem; min-height: 0; margin: .15rem 0 0; padding: 0; accent-color: var(--accent); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; width: 100%; min-height: 3.25rem; border: 1px solid transparent; border-radius: .65rem; padding: .7rem .8rem; font-size: .9375rem; font-weight: 450; line-height: 1.4; text-align: center; transition: background-color .15s, border-color .15s; }
.button-primary { background: var(--accent); color: #fffefa; }
.button-primary:hover { background: var(--accent-hover); }
.continue-button { margin-top: .85rem; font-size: 1rem; }
.continue-button svg { width: 1.15rem; height: 1.15rem; }
.button-provider { background: transparent; border-color: var(--line); }
.button-provider:hover { background: #eeeee5; border-color: #a8ad9c; }
.button-provider svg { color: #56664d; }
.identity-buttons { display: grid; gap: .7rem; }
.signin-help { margin-top: 1.5rem; font-size: .8125rem; color: var(--muted); line-height: 1.75; }
.text-link { border: 0; padding: .15rem 0; background: transparent; color: #526246; text-decoration: underline; text-underline-offset: .18em; text-decoration-color: #929c85; }
.text-link:hover { color: #303b28; text-decoration-color: currentColor; }
.code-actions { margin-top: 1.1rem; font-size: .875rem; }
.demo-entry { display: grid; gap: .4rem; margin-top: 1.2rem; font-size: .875rem; }
.demo-entry a { justify-self: start; }
.back-button { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; min-height: 2.75rem; padding: .5rem 0; border: 0; background: none; font-size: .8125rem; color: var(--muted); }
.back-button:hover { color: var(--ink); }
.registration-info { margin-top: 1.3rem; border-top: 1px solid #e2dfd5; padding-top: .55rem; font-size: .8125rem; }
.registration-info summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem 0; color: #5e6554; cursor: pointer; list-style: none; }
.registration-info summary::-webkit-details-marker { display: none; }
.registration-info summary svg { width: 1rem; height: 1rem; }
.registration-info[open] summary svg { transform: rotate(180deg); }
.registration-info p { margin: .2rem 0 .5rem; color: var(--muted); line-height: 1.7; }

.page-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; column-gap: 1rem; row-gap: .25rem; padding-bottom: 1.2rem; color: #575c50; font-size: .8125rem; }
.page-footer p { display: flex; flex-wrap: wrap; column-gap: .65rem; }
.page-footer nav { display: flex; gap: 1.5rem; }
.footer-link { font-size: .8125rem; min-height: 2.75rem; }

.notice-dialog { width: min(100% - 2rem, 29rem); max-height: calc(100svh - 3rem); padding: 2rem; border: 1px solid #d6d4c7; border-radius: .9rem; color: var(--ink); background: var(--paper); box-shadow: 0 1.5rem 5rem rgb(38 39 30 / .25); }
.notice-dialog::backdrop { background: rgb(37 39 30 / .4); }
.dialog-eyebrow { color: var(--muted); font-size: .8125rem; margin-bottom: .75rem; }
.notice-dialog h2 { font-size: 1.375rem; font-weight: 550; line-height: 1.4; margin-bottom: 1rem; }
#notice-body { font-size: .9375rem; line-height: 1.7; }
.dialog-caption { color: var(--muted); font-size: .8125rem; margin-top: 1rem; }
.notice-dialog form { margin-top: 1.5rem; }
.notice-actions { display: grid; gap: .65rem; }

@media (min-width: 105rem) {
  .signin-card { padding: 3rem 2.85rem 1.8rem; }
}
@media (max-width: 70rem) {
  .page-width { width: calc(100% - 3rem); }
  .signin-card { max-width: 30rem; padding-inline: 2rem; }
  body::before { background-position: 42% center; }
}
@media (max-width: 51rem) {
  body::before { background-position: left top; background-size: auto 62rem; }
  .signin-card { max-width: 31rem; }
  .page-header { padding-block: 1rem; }
}
@media (max-width: 32rem) {
  .page-width { width: calc(100% - 2rem); }
  .page-header { align-items: center; gap: .5rem; }
  .wordmark { font-size: .875rem; gap: .4rem; }
  .wordmark svg { width: 1.4rem; height: 1.4rem; }
  .domain { display: none; }
  .header-link { font-size: .75rem; gap: .3rem; }
  .header-link span { font-size: 1rem; }
  .homepage { padding-block: .5rem 1.5rem; }
  .signin-card { border-radius: .8rem; padding: 2rem 1.5rem 1.2rem; }
  .card-heading { margin-bottom: 1.5rem; }
  .card-heading h1 { font-size: 2.9rem; }
  .card-heading p { font-size: .9375rem; max-width: 16rem; }
  .page-footer { justify-content: center; text-align: center; padding-bottom: .8rem; }
  .page-footer p { justify-content: center; }
  .page-footer nav { gap: 1.5rem; }
  .notice-dialog { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .signin-card { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #45483e; --line: #727768; }
  .text-link, .registration-info summary { color: #33432a; }
  .signin-card { border: 1px solid #727768; }
}
@media (forced-colors: active) {
  body::before { display: none; }
  .signin-card, .button, .notice-dialog { border: 1px solid CanvasText; }
  .text-link { color: LinkText; }
}
