@font-face {
  font-family: "Exo 2";
  src: url("/assets/exo-2.ttf") format("truetype");
  font-display: swap;
  font-weight: 100 900;
}
:root {
  color: #141210;
  background: #fbf0d9;
  font: 16px/1.5 "Exo 2", system-ui, sans-serif;
  --accent: #ffba00;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
h1 { margin: 0 0 .45em; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.08; }
h2 { font-size: 1.45rem; }
p { margin: .75em 0; }
button, .button {
  background: var(--accent);
  border: 0;
  color: #141210;
  border-radius: 9px;
  padding: .65em 1.05em;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: #ffd05a; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 2px solid #6d4810; outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
main.wrap { min-height: 69vh; padding-block: clamp(28px, 6vw, 78px); }
.login { width: min(430px, calc(100% - 36px)); margin: min(12vh, 105px) auto; }
.brand { display: inline-block; font-weight: 700; margin-bottom: 25px; }
.panel { padding: clamp(16px, 4vw, 32px); margin-block: 22px; background: #fffaee; border-radius: 12px; }
.panel h2 { margin-top: 0; }
.alias-form { grid-template-columns: minmax(0, 20ch) auto; align-items: end; justify-content: start; }
.danger-link { color: #842e20; }
.danger-button { background: #842e20; color: white; }
.danger-button:hover { background: #692519; }
.albums small { margin-inline-start: .45rem; }
#photo-list .danger-link { margin-inline-start: .5rem; }
form { display: grid; align-items: start; gap: .8rem; }
form:not(.logout) button { justify-self: start; }
label { display: grid; gap: .35rem; font-weight: 650; }
input, textarea { font: inherit; width: 100%; padding: .65em .8em; background: #fffaf0; border: 1px solid #a68e64; border-radius: 7px; color: inherit; }
textarea { resize: vertical; }
.remember { display: flex; align-items: flex-start; gap: .55rem; }
.remember input { width: auto; margin: .35rem 0 0; accent-color: #b27800; }
.remember small { display: block; font-weight: 400; }
form p:empty { display: none; }
header, footer .wrap, .intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
footer { background: #e9dcc0; padding-block: 21px; }
.intro { margin-block: 10px 24px; }
.intro p { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 64ch; margin: 0; }
.gallery { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.photo { display: block; flex: 0 0 auto; max-width: 100%; overflow: hidden; border-radius: 4px; cursor: zoom-in; }
.photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
dialog { background: #111; color: white; border: 0; margin: auto; padding: 0; max-width: 96vw; max-height: 95dvh; }
dialog::backdrop { background: rgb(0 0 0 / .88); }
dialog img { display: block; max-width: 96vw; max-height: 95dvh; object-fit: contain; }
dialog img:not([src]) { visibility: hidden; }
dialog form { position: absolute; inset: .5rem .5rem auto auto; }
dialog button { font-size: 1.2rem; padding: .2em .65em; }
#progress { padding: 0; list-style: none; }
#progress li { margin-block: .6em; }
#progress progress { display: block; width: 100%; accent-color: #b27800; }
#progress progress[hidden] { display: none; }
#progress [data-result="error"] { color: #9c201a; }
