:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #101415;
  color: #f4f2ed;
  --muted: #b6bebd;
  --line: #364040;
  --panel: #191f20;
  --amber: #ffb460;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; }
a { color: var(--amber); }
p { color: var(--muted); line-height: 1.55; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.045em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.075rem; }

.bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 1.15rem max(1.2rem, calc((100% - 1110px) / 2));
}
.brand, nav, nav a { display: inline-flex; align-items: center; gap: .65rem; }
.brand { text-decoration: none; letter-spacing: .075em; font-weight: 800; color: #f4f2ed; }
nav { gap: 1.2rem; flex-wrap: wrap; }
nav a, nav button { color: #d7dddb; }
nav a { text-decoration: none; }
nav form { margin: 0; }

main { width: min(1110px, calc(100% - 2.4rem)); margin: 3.2rem auto; }
.entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: min(7vh, 5rem) auto;
  max-width: 885px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: .7rem;
  overflow: hidden;
}
.entry.compact { grid-template-columns: 1fr; max-width: 550px; }
.cover {
  min-height: 25rem;
  border-right: 1px solid var(--line);
  background: linear-gradient(135deg, #10141522, #101415c9), url("/assets/vesper.webp") center / cover;
}
.entry-form { padding: clamp(1.5rem, 4vw, 3.2rem); }
.entry-form h1 { font-size: clamp(1.9rem, 4.75vw, 2.8rem); }
.intro { margin: 0 0 2.1rem; }
.intro p { margin: .55rem 0 0; }
.panel {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  margin: 0 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--panel);
}
.latest { border-top: 2px solid var(--amber); }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.notice { max-width: 620px; margin: 4rem auto; }
.back { display: inline-block; margin-bottom: 1rem; }

form { display: grid; gap: .95rem; margin-top: 1.35rem; }
label { display: grid; gap: .4rem; font-weight: 600; }
input, select, textarea {
  width: 100%;
  border: 1px solid #677473;
  border-radius: .35rem;
  background: #111617;
  color: #f4f2ed;
  padding: .72rem .76rem;
  font: inherit;
}
input[readonly] { color: var(--amber); }
textarea { resize: vertical; }
button, .button {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  align-items: center;
  padding: .65rem .95rem;
  border: 1px solid var(--amber);
  border-radius: .35rem;
  background: var(--amber);
  color: #161617;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { background: #ffd09a; color: #161617; }
.outline, .quiet { background: transparent; color: var(--amber); }
.quiet { border-color: transparent; padding: .25rem 0; }
:focus-visible { outline: 2px solid #ffe1bf; outline-offset: 3px; }
.alert { border-left: 3px solid var(--amber); padding: .6rem .8rem; background: #33281e; color: #ffdfb9; }
.request-link { margin: 1.15rem 0 0; }
.request-actions { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 100%; }
.report-link { margin-bottom: 1.15rem; }
.report-form { max-width: 740px; }
.form-hint { margin: -.6rem 0 0; }
.report-details { white-space: pre-wrap; }

.rows { padding: 0; list-style: none; margin: .75rem 0 0; }
.row { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem 0; }
.row + .row { border-top: 1px solid var(--line); }
.row:last-child { padding-bottom: 0; }
.row .button, .row form { flex-shrink: 0; margin: 0; }
.detail, .filename { color: var(--muted); margin: .35rem 0 0; font-size: .94rem; }

@media (max-width: 700px) {
  main { margin: 1.7rem auto; }
  .entry { grid-template-columns: 1fr; }
  .columns { grid-template-columns: 1fr; gap: 0; }
  .cover { min-height: 8rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .row { align-items: flex-start; flex-direction: column; }
}
