@font-face {
  font-family: "Antropos Freefont";
  src: url("/assets/antropos-freefont.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: light;
  font-family: "Antropos Freefont", Georgia, serif;
  color: #392739;
  background: #bfa0aa;
  --ink: #392739;
  --muted: #674c5c;
  --berry: #613b52;
  --berry-dark: #49273c;
  --cream: #f7dfce;
  --paper: #f6dbcbef;
  --rule: #80596d66;
  --green: #3a543f;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; isolation: isolate; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background: linear-gradient(180deg, #32274120, #93556a22),
    url("/assets/vinter.webp") center 49% / cover no-repeat;
}
button, input, select, textarea { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--berry-dark); text-underline-offset: .18em; }
button { cursor: pointer; min-height: 40px; border: 1px solid var(--rule); padding: 8px 15px; border-radius: 10px 7px 9px 7px; background: #f3d3bf; }
button:hover { background: #f8e3d4; }
button:disabled { cursor: wait; opacity: .65; }
button.primary { background: var(--berry); border-color: var(--berry); color: #fbe7d8; }
button.primary:hover { background: var(--berry-dark); }
.quiet { border-color: transparent; background: transparent; padding-inline: 8px; text-decoration: underline; text-underline-offset: .2em; }
.danger { color: #85384b; }
:focus-visible { outline: 2px solid #623951; outline-offset: 3px; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-weight: 400; line-height: 1.04; }
h1 { font-size: clamp(2.8rem, 7vw, 5rem); overflow-wrap: anywhere; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.3rem; }
p, li { line-height: 1.55; }
ul, ol { margin: 0; padding-left: 1.4em; }
label { display: grid; gap: 6px; min-width: 0; }
input, textarea, select {
  width: 100%; min-height: 44px; border: 1px solid var(--rule); border-radius: 8px 10px 7px 9px;
  padding: 9px 11px; background: #f8e4d5;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input[type=checkbox] { width: 1rem; min-height: 1rem; accent-color: var(--berry); }
textarea { resize: vertical; }
.skip { position: fixed; top: -100px; left: 12px; z-index: 3; background: var(--cream); padding: 12px; }
.skip:focus { top: 12px; }
.stack { display: grid; gap: 14px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.grid, .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; align-items: start; }
.muted { color: var(--muted); }
.small { font-size: .91rem; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.error { color: #822b3e; }
.error:empty { display: none; }
.login { display: grid; place-items: center; min-height: 100svh; padding: 42px 16px; }
.login .card { width: min(100%, 450px); padding: clamp(22px, 6vw, 38px); }
.login h1 { font-size: clamp(3.1rem, 11vw, 4.7rem); }
.login h1 + p { margin-top: 9px; }
.top { background: #f5d6c4ef; border-bottom: 1px solid var(--rule); }
.top-inner { width: min(1110px, 100% - 32px); margin: auto; padding: 15px 0 10px; display: grid; gap: 10px; }
.brand-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.brand { font-size: 1.7rem; text-decoration: none; }
.nav { display: flex; gap: 4px; overflow-x: auto; padding: 3px 4px 7px; }
.nav a { flex: 0 0 auto; padding: 9px 14px; border: 1px solid transparent; border-radius: 9px 12px 8px 11px; text-decoration: none; }
.nav a:hover, .nav [aria-current=page] { background: #eac2b5; border-color: var(--rule); }
.nav .other { color: var(--muted); }
.nav .other:not([aria-current]) { opacity: .76; }
main.portal { width: min(1060px, 100% - 34px); margin: auto; padding: clamp(32px, 6vw, 72px) 0 90px; }
.hero { width: fit-content; max-width: 100%; padding: 13px 18px 16px; margin-bottom: 24px; background: #f3d5c7ed; border-radius: 18px 28px 23px 12px; }
.hero p { margin-top: 5px; }
.card { min-width: 0; padding: clamp(16px, 3vw, 25px); background: var(--paper); border: 1px solid var(--rule); border-radius: 16px 12px 18px 11px; box-shadow: 0 10px 30px #3c274319; display: grid; gap: 16px; }
.card-head,.article-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.article { border-top: 1px solid var(--rule); padding-top: 13px; display: grid; gap: 8px; overflow-wrap: anywhere; }
.article:first-child { border-top: 0; padding-top: 0; }
details summary { cursor: pointer; color: var(--berry-dark); padding-block: 4px; }
details[open] summary { margin-bottom: 8px; }
.badge { color: var(--berry-dark); background: #edc8bb; border-radius: 10px 8px; display: inline-block; width: fit-content; padding: 3px 9px; font-size: .9rem; }
.slots { display: grid; gap: 8px; }
.slot { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 8px 10px; }
.slot .free { color: var(--green); }
.sheet-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; }
th,td { border: 1px solid var(--rule); padding: 6px; text-align: left; min-width: 145px; }
th { background: #edcab8; font-weight: 400; }
th:first-child,td:first-child { min-width: 56px; }
td input { min-width: 125px; border-color: transparent; background: #fae4d7; }
td input:read-only { background: transparent; }
dialog { width: min(630px, 100% - 26px); max-height: 86svh; padding: 23px; border: 1px solid var(--rule); border-radius: 15px 20px 17px 12px; background: #f7ddcc; color: var(--ink); }
dialog::backdrop { background: #3123358c; }
.dialog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 15px; }
#notice:not(:empty) { position: fixed; z-index: 2; inset: auto 14px 14px; margin-inline: auto; width: fit-content; max-width: calc(100% - 28px); padding: 12px 16px; border-radius: 11px; background: var(--berry-dark); color: var(--cream); }
.snow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.snow i { position: absolute; display: block; width: 5px; height: 5px; top: -10px; left: 9%; border-radius: 50%; background: #fff0df; opacity: 0; animation: drift 7s ease-out both; }
.snow i:nth-child(2) { left: 21%; top: 14%; animation-delay: .5s; }
.snow i:nth-child(3) { left: 33%; top: 4%; animation-delay: 1s; }
.snow i:nth-child(4) { left: 46%; top: 25%; }
.snow i:nth-child(5) { left: 58%; top: 9%; animation-delay: .7s; }
.snow i:nth-child(6) { left: 67%; top: 17%; }
.snow i:nth-child(7) { left: 77%; top: 1%; animation-delay: .3s; }
.snow i:nth-child(8) { left: 88%; top: 35%; animation-delay: .5s; }
.snow i:nth-child(9) { left: 94%; top: 15%; }
@keyframes drift { 20%, 60% { opacity: .88; } to { opacity: 0; transform: translate(30px, 70svh); } }
@media (max-width: 620px) { .grid,.field-grid { grid-template-columns: 1fr; } .slot { align-items: flex-start; flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .snow i { animation: none; } }
