@font-face {
  font-family: "Direction Serif";
  src: url("/assets/direction-serif.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #372b1c;
  background: #f6efe0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(ellipse at 50% 30%, #f9f4e9 0%, #efe3cc 100%);
}

.welcome {
  min-height: 100svh;
  width: min(100%, 94rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 3.8vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.login-panel {
  min-width: 0;
  text-align: center;
}

.emblem {
  display: block;
  width: clamp(3.75rem, 7vw, 5.125rem);
  height: auto;
  margin: 0 auto clamp(0.65rem, 1.5vh, 1.1rem);
}

h1 {
  margin: 0 auto;
  max-width: 11ch;
  font: 600 clamp(2.7rem, 5vw, 5.5rem)/0.94 "Direction Serif", Georgia, serif;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.subtitle {
  margin: 0.9rem 0 1.4rem;
  color: #645240;
  font-size: 1rem;
}

.sign-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  max-width: 100%;
  padding: 0.7rem 1.35rem;
  border: 1px solid #674b2b;
  border-radius: 0.35rem;
  background: #392b1e;
  color: #fffaf0;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.sign-in:hover { background: #563d23; }
.sign-in:focus-visible { outline: 3px solid #996a2c; outline-offset: 4px; }

.error { margin: 0.75rem auto; max-width: 30rem; color: #862e25; }

.office {
  width: 100%;
  margin: 0;
}

.office img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76svh;
  object-fit: contain;
}

@media (max-width: 740px) {
  .welcome {
    width: min(100%, 33rem);
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-content: center;
    gap: clamp(0.75rem, 3svh, 1.5rem);
    padding: 1rem;
  }

  .office { width: min(100%, 25rem); }
  .office img { max-height: 42svh; }
  .emblem { width: 3.6rem; }
  h1 { font-size: clamp(2.35rem, 10vw, 3.65rem); }
  .subtitle { margin: 0.7rem 0 1rem; }
}

@media (max-height: 460px) and (min-width: 741px) {
  .welcome { padding-block: 0.75rem; }
  .emblem { width: 3.25rem; }
  h1 { font-size: clamp(2.35rem, 7svh, 3.35rem); }
  .subtitle { margin: 0.6rem 0 0.85rem; }
}
