@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/Manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: Playfair;
  src: url("/assets/fonts/Playfair.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #381322;
  --paper: #f9f5ee;
  --white: #fffdf9;
  --line: #dfd2c1;
  --soft: #6f5c5e;
  --gold: #986831;
  --serif: Playfair, Georgia, serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    16px/1.55 Manrope,
    system-ui,
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
[hidden] {
  display: none !important;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #916529;
  outline-offset: 3px;
}
.frame {
  width: min(1080px, calc(100% - 64px));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 10px;
  top: -90px;
  background: white;
  padding: 12px;
  z-index: 4;
}
.skip:focus {
  top: 8px;
}
.top {
  background: #381322;
  color: #fff8ed;
  border-bottom: 1px solid #593343;
}
.top-row {
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font: 29px/1 var(--serif);
  letter-spacing: -1.3px;
}
.brand img,
.dialog-top img {
  border-radius: 8px;
}
.top nav {
  display: flex;
  align-self: stretch;
  gap: 24px;
  margin-left: auto;
}
.top nav a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 2px solid transparent;
  color: #e2ced2;
}
.top nav a[aria-current] {
  color: #fffaf0;
  border-color: #e5ba73;
}
.account {
  border: 1px solid #b28e67;
  border-radius: 999px;
  background: transparent;
  color: #ffdfa4;
  padding: 7px 18px;
  min-height: 40px;
}
main {
  min-height: 70vh;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 52px 0 34px;
}
.intro h1 {
  font: 500 clamp(40px, 5.2vw, 70px) / 1.1 var(--serif);
  margin: 0;
  letter-spacing: -0.055em;
}
.intro h1 em {
  color: var(--gold);
  font-family: Georgia, serif;
  font-weight: 400;
}
.intro p,
.list-head p {
  color: var(--soft);
  margin: 13px 0 0;
  max-width: 610px;
}
.intro-art {
  width: min(20vw, 185px);
  height: 138px;
  object-fit: contain;
}
.filters,
.empty {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 14px 40px #450d1910;
}
.filters fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.filters legend,
.inputs label,
#auth-form label {
  font-weight: 700;
}
.levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 22px;
}
.levels label {
  position: relative;
  cursor: pointer;
}
.levels input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  top: 50%;
}
.levels span,
.secondary,
.save,
.empty button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
}
.levels span,
.secondary,
.save {
  border: 1px solid #d4c7b9;
  background: transparent;
  padding: 7px 15px;
}
.levels input:checked + span {
  color: #fff9ed;
  border-color: var(--ink);
  background: var(--ink);
}
.levels input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}
.inputs label,
#auth-form label {
  display: block;
  font-size: 14px;
}
.optional {
  font-weight: 400;
  color: var(--soft);
  margin-left: 4px;
}
.inputs input,
.inputs select,
#auth-form input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #cdbfb0;
  background: white;
  margin-top: 6px;
  font-weight: 400;
  font-size: 16px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: white;
  padding: 11px 20px;
  font-weight: 650;
  min-height: 44px;
}
.filters .primary {
  margin-top: 22px;
}
.primary:hover,
.account:hover {
  filter: brightness(1.2);
}
.status {
  color: var(--soft);
  margin: 12px 0 0;
}
.status:empty {
  margin: 0;
}
.list-head {
  margin: 36px 0 17px;
}
.list-head h2,
.empty h2 {
  font: 500 35px/1.2 var(--serif);
  margin: 0;
  letter-spacing: -0.035em;
}
.cards {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow-wrap: anywhere;
}
.card .provider {
  font-size: 14px;
  color: var(--soft);
  margin: 0 0 7px;
}
.card h3 {
  margin: 0;
  font: 550 clamp(21px, 2vw, 27px) / 1.23 var(--serif);
  letter-spacing: -0.035em;
}
.card .amount {
  font-weight: 700;
  margin: 14px 0 4px;
}
.card .deadline,
.card .fit {
  color: #65565a;
  margin: 3px 0;
  font-size: 15px;
}
.card details {
  margin: 12px 0 15px;
  width: 100%;
}
.card summary {
  cursor: pointer;
  font-weight: 650;
}
.card details p {
  white-space: pre-line;
  color: var(--soft);
}
.card .actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 13px;
  width: 100%;
  border-top: 1px solid var(--line);
}
.actions a {
  font-weight: 650;
}
.save {
  font-weight: 650;
  font-size: 14px;
}
.save[aria-pressed="true"] {
  background: #eee3d1;
}
.secondary {
  margin: 20px 0 0;
  background: var(--white);
}
.empty {
  margin-top: 16px;
}
.empty p {
  color: var(--soft);
}
footer.frame {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 54px;
  padding: 24px 0 35px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 14px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(440px, calc(100% - 28px));
  padding: 28px;
  color: var(--ink);
  background: var(--white);
  max-height: 92dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #260d1bb5;
}
.dialog-top,
.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dialog-top button,
.auth-links button {
  border: 0;
  background: none;
  padding: 6px;
  color: var(--ink);
}
.dialog-top button {
  font-size: 26px;
  line-height: 1.1;
}
.auth-links button {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.auth-links {
  margin-top: 15px;
  flex-wrap: wrap;
}
dialog h2 {
  font: 500 36px/1.2 var(--serif);
  margin: 20px 0 5px;
  letter-spacing: -0.04em;
}
dialog p {
  color: var(--soft);
}
#auth-form label {
  margin: 12px 0;
}
#auth-submit {
  width: 100%;
  margin-top: 7px;
}
.toast:not(:empty) {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 12px 20px;
  background: var(--ink);
  color: white;
  box-shadow: 0 5px 20px #0002;
  border-radius: 10px;
  width: max-content;
  max-width: 90vw;
}
@media (max-width: 720px) {
  .frame {
    width: calc(100% - 32px);
  }
  .top-row {
    gap: 14px;
    min-height: 62px;
  }
  .brand {
    font-size: 24px;
  }
  .brand img {
    width: 27px;
    height: 27px;
  }
  .top nav {
    gap: 13px;
  }
  .top nav a {
    font-size: 14px;
  }
  .account {
    padding: 6px 12px;
    font-size: 14px;
  }
  .intro {
    padding: 36px 0 24px;
  }
  .intro-art {
    display: none;
  }
  .filters,
  .card,
  .empty {
    padding: 19px;
  }
  .inputs {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .levels {
    gap: 6px;
    margin-bottom: 16px;
  }
  .levels span {
    font-size: 14px;
    padding: 6px 12px;
  }
  .filters .primary {
    width: 100%;
  }
  .list-head {
    margin-top: 28px;
  }
}
@media (max-width: 380px) {
  .top-row {
    gap: 9px;
  }
  .brand {
    font-size: 20px;
    gap: 4px;
  }
  .brand img {
    width: 23px;
    height: 23px;
  }
  .top nav {
    gap: 10px;
  }
  .account {
    padding-inline: 8px;
  }
}
