/* A photograph of the islands at dusk fills the page; rain falls over it and the type sits on top in off-white. */
:root {
  --sky: #2b3340;
  --deep: #1b222c;
  --metal: #f3efe9;
  --metal-dim: #c3c6cc;
  --alarm: #ffc2b3;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  background: var(--sky);
  color: var(--metal);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  overflow: hidden;
}

/* Public-domain USFWS photo of Aulone Island and Great Arch Rock, shot in daylight and graded here toward dusk. */
.photo {
  position: fixed;
  inset: 0;
  background: url("arch-rock.jpg") 50% 40% / cover no-repeat;
  filter: saturate(.6) brightness(.74) contrast(1.05);
}
/* cool the whole frame toward evening blue */
.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #6f7f9e, #8a93a8 40%, #5f6c80);
  mix-blend-mode: multiply;
}
/* a warm glow low in the sky, where the sun has just gone down */
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 45% at 30% 30%, rgba(240,140,110,.55), rgba(240,140,110,0) 70%);
  mix-blend-mode: screen;
}

/* a light veil so the type reads over the bright parts of the sky */
body::before { content: ""; position: fixed; inset: 0; background: rgba(20,26,36,.12); }
body.login::before { background: rgba(20,26,36,.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

.frame {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 3.2vw, 44px);
  pointer-events: none;
}
.frame > * { pointer-events: auto; }

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.mark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.375rem;
  color: var(--metal);
  text-decoration: none;
}

a.quiet {
  color: var(--metal);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(243,239,233,.45);
  padding-bottom: 2px;
}
a.quiet:hover { border-bottom-color: var(--metal); }

.line {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: .01em;
}

.centre { text-align: center; text-shadow: 0 1px 24px rgba(15,20,28,.55); }
.soon {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  letter-spacing: .02em;
}

:focus-visible {
  outline: 2px solid var(--metal);
  outline-offset: 4px;
}

/* login */
.login main {
  width: min(100%, 22rem);
  margin: auto;
}
.login h1 {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.25rem;
}
.login label {
  display: block;
  margin-top: 1.4rem;
  color: var(--metal-dim);
  font-size: .875rem;
}
.login input {
  display: block;
  width: 100%;
  margin-top: .25rem;
  padding: .5rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(243,239,233,.5);
  border-radius: 0;
  color: var(--metal);
  font: inherit;
  font-size: 1.0625rem;
}
.login input:focus-visible {
  outline: 0;
  border-bottom: 2px solid var(--metal);
  padding-bottom: calc(.5rem - 1px);
}
.login input:-webkit-autofill {
  -webkit-text-fill-color: var(--metal);
  transition: background-color 9999s;
}
.login button {
  margin-top: 2.2rem;
  width: 100%;
  padding: .8rem 1rem;
  background: var(--metal);
  color: var(--deep);
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.login button:disabled { opacity: .6; cursor: default; }
.login .error {
  min-height: 3em;
  margin: 1.2rem 0 0;
  color: var(--alarm);
  font-size: .9375rem;
}
.login .foot {
  margin-top: .4rem;
  color: var(--metal-dim);
  font-size: .875rem;
}

