:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: #111210;
  color: #f4f5ee;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 1.5rem;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 7vw, 3.5rem);
  letter-spacing: -.06em;
  line-height: 1;
}

label {
  display: block;
  margin-bottom: .65rem;
  color: #c4c7bc;
}

.fields {
  display: flex;
  gap: .5rem;
}

input, button {
  font: inherit;
  min-height: 2.75rem;
  padding: .6rem .85rem;
  border-radius: .3rem;
}

input {
  width: 100%;
  min-width: 0;
  max-width: 26rem;
  background: #1d1f1c;
  border: 1px solid #6b7064;
  color: inherit;
}

button {
  border: 1px solid transparent;
  background: #d7ef96;
  color: #151910;
  cursor: pointer;
  white-space: nowrap;
}

:focus-visible { outline: 2px solid #eefdc5; outline-offset: 3px; }
[role='alert'] { color: #ffb5a4; }
.admin main { width: min(100%, 55rem); margin: 8vh auto; }
.admin header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.table { margin-top: 2rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .6rem; border-bottom: 1px solid #494d43; }
tbody th { overflow-wrap: anywhere; min-width: 9rem; }
.phrase-actions { display: flex; align-items: center; gap: .75rem; }
.admin th:last-child { text-align: right; }
.admin td:last-child .phrase-actions { justify-content: flex-end; }
.delete-phrase {
  background: transparent;
  color: #ffb5a4;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: .2em;
}

body.gate {
  color-scheme: light;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #fff;
  color: #414241;
  font-family: 'Inter', sans-serif, Helvetica, Tahoma, Arial, Verdana;
  font-size: .9em;
}

.gate main {
  width: min(100%, 27rem);
  text-align: center;
}

.gate .gate-title {
  margin: 0 0 14px;
  font-size: 4.2em;
  font-weight: 100;
  letter-spacing: normal;
  line-height: normal;
}

.gate .gate-form .fields {
  justify-content: center;
  gap: 14px;
}

.gate input[type='password'] {
  width: min(100%, 15rem);
  background: transparent;
  border: 0;
  border-bottom: 2px solid #888;
  border-radius: 0;
  padding: 0 0 0 2px;
  font-size: 1.5rem;
  text-align: center;
  transition: border-color .3s linear;
}

.gate input[type='password']:focus {
  border-bottom-color: #ff2d3d;
  outline: none;
}

.gate button {
  border: 0;
  border-radius: 18px;
  padding: 10px 18px;
  background: #ff2d3d;
  color: #fff;
  font-size: 1em;
  transition: color linear .3s, background-color linear .3s, transform cubic-bezier(.38, 1.41, .59, .99) .3s, box-shadow linear .3s;
}

.gate button:hover {
  background: #ff5f4f;
  box-shadow: 0 0 15px rgba(255, 45, 61, .5);
}

.gate :focus-visible { outline-color: #414241; }
.gate [role='alert'] { color: #b32531; }

@media (min-width: 760px) {
  .gate .gate-title { font-size: 5.2em; }
}

@media (min-width: 1600px) {
  .gate .gate-title { font-size: 6.2em; }
}

@media (min-width: 2200px) {
  .gate .gate-title { font-size: 7.2em; }
}

@media (prefers-reduced-motion: no-preference) {
  .gate-title.gate-appear { animation: gate-title-appear 1s ease-out .2s both; }
  .gate-form.gate-appear { animation: gate-form-appear 1s ease 1.2s both; }
}

@keyframes gate-title-appear {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gate-form-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}
