:root {
  --bg: #0f1115;
  --panel: #171a21;
  --line: #303641;
  --fg: #e8eaed;
  --muted: #a4aab3;
  --accent: #4c8dff;
  --err: #ff8989;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #83b1ff;
}

a:hover {
  text-decoration: underline;
}

header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.wrap {
  width: 100%;
  max-width: 1200px;
  padding: 0 22px;
  margin: 0 auto;
}

header .wrap {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.15rem;
  color: var(--fg);
  font-weight: 750;
  letter-spacing: -.035em;
  text-decoration: none;
}

.brand {
  font-size: .94rem;
  color: var(--muted);
  text-decoration: none;
}

main.wrap {
  padding-top: 32px;
  padding-bottom: 54px;
  flex: 1;
}

footer.wrap {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  padding-bottom: 22px;
  color: var(--muted);
  font-size: .85rem;
}

h1,h2,h3,p,figure {
  margin: 0;
}

h1,h2,h3 {
  overflow-wrap: anywhere;
  line-height: 1.2;
}

h1 {
  font-size: 2.1rem;
  letter-spacing: -.035em;
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1rem;
}

.card,.example {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
}

.card {
  padding: 20px;
}

.home {
  display: grid;
  grid-template-columns: minmax(0,.87fr) minmax(0,1.13fr);
  align-items: center;
  gap: clamp(35px,6vw,85px);
}

main.home {
  padding-top: clamp(36px,7vh,80px);
  padding-bottom: clamp(40px,8vh,80px);
}

.intro h1 {
  font-size: clamp(2.7rem,4.9vw,4.7rem);
  line-height: 1.03;
  letter-spacing: -.055em;
}

.lead {
  font-size: 1.1rem;
  color: #bdc2cb;
  margin: 22px 0 28px;
  max-width: 44ch;
}

.start {
  max-width: 400px;
}

.start button {
  margin: 12px 12px 0 0;
}

.start small {
  display: inline-block;
}

.start button span {
  margin-left: 9px;
}

.example {
  margin: 0;
  overflow: hidden;
}

.demo-image {
  position: relative;
}

.demo-image img {
  width: 100%;
  height: auto;
  display: block;
}

.demo-image span {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #111820e6;
  border: 1px solid #ffffff4a;
  color: white;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
}

.demo-image span+span {
  left: calc(50% + 12px);
}

.example figcaption {
  padding: 14px 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

label {
  display: block;
  font-weight: 600;
  font-size: .94rem;
}

input:not([type=file]):not([type=checkbox]):not([type=hidden]),textarea {
  width: 100%;
  padding: 9px 11px;
  color: var(--fg);
  background: #10131a;
  border: 1px solid #434b59;
  border-radius: 6px;
  font: inherit;
}

label input,label textarea,.start>input {
  margin-top: 5px;
}

textarea {
  resize: vertical;
}

input[type=file] {
  display: block;
  max-width: 100%;
  font: inherit;
  font-size: .85rem;
  color: var(--muted);
}

input::file-selector-button {
  background: #10131a;
  color: var(--fg);
  border: 1px solid #434b59;
  border-radius: 6px;
  padding: 7px 10px;
  margin-right: 7px;
  cursor: pointer;
}

button,.btn {
  display: inline-block;
  background: var(--accent);
  color: #081526;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 9px 16px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

button:hover,.btn:hover {
  filter: brightness(1.1);
  text-decoration: none;
}

.ghost,.danger {
  background: transparent;
  border-color: #434b59;
  color: var(--fg);
}

.danger {
  color: var(--err);
}

:focus-visible {
  outline: 2px solid #9ac1ff;
  outline-offset: 3px;
}

small {
  font-size: .85rem;
  color: var(--muted);
}

.report {
  max-width: 960px;
}

.report>*+* {
  margin-top: 16px;
}

.heading,.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.heading {
  justify-content: space-between;
  gap: 15px;
}

.heading h1 {
  margin-top: 4px;
}

.heading>div {
  min-width: 0;
}

.stack {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.stack button {
  justify-self: start;
}

.card>*,details>form,.settings>details {
  margin-top: 12px;
}

.card>:first-child {
  margin-top: 0;
}

.card p,details p,.note {
  color: #c3c8d1;
}

.note,figcaption {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

summary {
  color: #acc9ff;
  cursor: pointer;
}

details[open]>summary {
  margin-bottom: 10px;
}

.pair {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.group {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.group:only-child {
  grid-column: 1/-1;
}

.group>*+* {
  margin-top: 12px;
}

.shot {
  margin: 12px 0;
}

.shot img {
  width: 100%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
  background: #10131a;
  display: block;
  border-radius: 6px;
}

.shot figcaption {
  margin-top: 5px;
}

.shot details {
  font-size: .88rem;
  margin-top: 7px;
}

.shot form+form {
  margin-top: 8px;
}

.section>small {
  display: block;
}

.settings {
  padding: 8px 0;
}

.settings>.stack {
  margin-bottom: 16px;
}

#status:empty {
  display: none;
}

@media(max-width:760px) {
  .home {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .intro h1 {
    font-size: 2.9rem;
  }
  .intro h1 br {
    display: none;
  }
  .example,.start {
    max-width: 560px;
  }
  .lead {
    margin: 15px 0 20px;
  }
  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media(max-width:640px) {
  .pair {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 16px;
  }
  .heading {
    align-items: flex-start;
  }
  .heading h1 {
    font-size: 1.65rem;
  }
  main.wrap {
    padding-top: 24px;
  }
  .example figcaption {
    gap: 4px 12px;
  }
}
