@font-face {
  font-family: "TRJN DaVinci";
  src: url("/assets/trjndavinci-display.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Inter CA";
  src: url("/assets/inter-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --cream: #f5efe4;
  --green: #002405;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--green) url("desktop.jpg") center / cover no-repeat;
  color: var(--cream);
  font-family: "Inter CA", Arial, sans-serif;
}

.entry {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 48px 24px min(200px, 20vh);
  text-align: center;
}

h1 {
  max-width: 360px;
  margin: 0 0 clamp(42px, 9vh, 87px);
  font: 400 30px/1.2 "TRJN DaVinci", Georgia, serif;
}

.entry-lock { margin-bottom: 20px; }

.entry-description, .entry-contact {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 24px;
}

.entry-description { max-width: 308px; margin: 0 0 21px; }
.entry-contact { margin: 20px 0 0; }
.entry-contact a { color: inherit; text-underline-offset: 5px; }
.entry-contact a:hover { opacity: .8; }

form { width: min(100%, 309px); }

.entry-field {
  display: flex;
  height: 45px;
  border: 1.5px solid var(--cream);
  border-radius: 6px;
}

.entry-field input {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 4px 0 0 4px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.entry-field input:focus { background: #ffffff14; }

.entry-field button {
  display: grid;
  width: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: var(--cream);
  color: var(--green);
  cursor: pointer;
}

.entry-field button:hover { background: var(--green); color: var(--cream); }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }
.entry-message { margin: 12px 0 0; font-size: 14px; line-height: 1.5; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 600px) {
  body { background-image: url("mobile.jpg"); }
  .entry { justify-content: center; padding-bottom: min(100px, 12vh); }
  h1 { max-width: 240px; margin-bottom: 62px; }
}
