:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #121212;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
h1, h2, legend, p { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: .25em; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only, .trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, legend {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-wrap: balance;
}

.entrance {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
}
.entrance-content { display: grid; justify-items: center; width: 100%; }
.entrance h1 { width: min(92vw, 35.5rem); }
.entrance-logo { width: 100%; }
.entrance-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1.875rem, 5vw, 3.5rem);
  margin-top: .9rem;
}
.entrance-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.8rem;
  padding: .45rem .2rem;
  font-size: .875rem;
  line-height: 1.5;
  letter-spacing: .115em;
  text-indent: .115em;
  text-decoration: none;
}
.entrance-links a:hover, .entrance-links a:focus-visible { text-decoration: underline; }

.masthead { display: flex; justify-content: center; padding: clamp(2rem, 4.5vw, 4.5rem) 1.25rem 0; }
.logo-link { display: inline-block; }
.interior-logo { width: 13.25rem; }
.paper { max-width: 48rem; margin: 0 auto; padding: clamp(2.75rem, 6vw, 5rem) 1.5rem 6rem; }
.paper h1 { font-size: clamp(2.45rem, 6vw, 4.25rem); letter-spacing: -.055em; line-height: 1.06; }
.introduction { margin-top: 1.125rem; color: #525252; line-height: 1.55; }
form fieldset { padding: 0; border: 0; margin: 3.5rem 0 0; min-width: 0; }
legend { display: block; width: 100%; padding: 0 0 .75rem; border-bottom: 1px solid #333; font-size: 1.5rem; letter-spacing: -.025em; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.25rem; margin-top: 1.6rem; }
.field { display: grid; align-content: start; gap: .5rem; min-width: 0; }
.field label { font-size: .9375rem; line-height: 1.5; }
.field label span, .note { color: #585858; font-weight: 400; }
.field input, .field textarea {
  appearance: none;
  background: #fff;
  border: 1px solid #838383;
  border-radius: 0;
  font-size: 1rem;
  line-height: 1.45;
  width: 100%;
  min-width: 0;
  min-height: 2.875rem;
  padding: .66rem .75rem;
}
.field textarea { min-height: 7rem; resize: vertical; }
.wide { grid-column: 1 / -1; }
.note { font-size: .875rem; line-height: 1.5; }
.field input[type=file] { padding: .3rem; border-color: #a2a2a2; cursor: pointer; }
.field input[type=file]::file-selector-button {
  color: inherit;
  background: #fff;
  border: 0;
  border-right: 1px solid #c8c8c8;
  border-radius: 0;
  font: inherit;
  padding: .42rem .75rem;
  margin-right: .75rem;
  cursor: pointer;
}
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: 1rem; line-height: 1.5; cursor: pointer; }
.check input { width: 1.125rem; height: 1.125rem; margin: .16rem 0 0; accent-color: #171717; flex-shrink: 0; }
.check.age { align-self: end; align-items: center; min-height: 2.875rem; }
.check.age input { margin: 0; }
.consent { border-top: 1px solid #ccc; margin: 2.25rem 0 1.5rem; padding-top: 1.5rem; }
.notice-link { display: inline-block; margin: .45rem 0 0 1.875rem; font-size: .9375rem; line-height: 1.6; }
.primary { border: 1px solid #161616; border-radius: 0; background: #161616; color: #fff; padding: .9rem 1.6rem; min-height: 3rem; line-height: 1.25; }
.primary:hover { background: #383838; }
.primary:focus-visible { outline-color: #161616; }
.status { margin-top: 1rem; line-height: 1.55; }
.status:empty { display: none; }
#application-success p { margin: 1.1rem 0; line-height: 1.6; }
.quiet-link { display: inline-flex; align-items: center; border: 0; background: transparent; padding: .6rem 0; min-height: 2.75rem; line-height: 1.5; font: inherit; text-decoration: underline; text-underline-offset: .25em; }

.small-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 26rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.small-page h1 { font-size: clamp(2.25rem, 6vw, 3rem); letter-spacing: -.045em; line-height: 1.1; margin: 2rem 0; text-align: center; overflow-wrap: anywhere; }
.small-page .contact { display: inline-block; padding: .75rem 0; }
.login-form { display: grid; width: 100%; gap: 1.125rem; }
.login-form p { line-height: 1.55; }
.login-form .status { margin: 0; }
.login-form .quiet-link { justify-self: center; }
.policy { max-width: 43rem; }
.policy h2 { margin: 2.4rem 0 .6rem; font-size: 1.55rem; letter-spacing: -.025em; }
.policy p { line-height: 1.7; }
.policy .quiet-link { margin-top: 2rem; }
.policy a { overflow-wrap: anywhere; }

@media (max-width: 34rem) {
  .entrance h1 { width: min(100%, 25rem); }
  .entrance-links { margin-top: .85rem; }
  .paper { padding-inline: 1.25rem; }
  .fields { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .check.age { min-height: 2.25rem; }
  form fieldset { margin-top: 2.5rem; }
  #application-submit { width: 100%; }
}
