@font-face {
  font-family: Inter;
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url('/fonts/newsreader.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0d0f10;
  --text: #ecebe7;
  --muted: #a5a8a6;
  --line: #2c3030;
  --accent: #94b8a3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    1.0625rem/1.65 Inter,
    Arial,
    sans-serif;
}
header {
  padding: 24px max(24px, calc((100vw - 1100px) / 2));
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
header > a:first-child {
  font:
    1.75rem Newsreader,
    Georgia,
    serif;
  color: var(--text);
  text-decoration: none;
}
a {
  color: var(--accent);
  text-underline-offset: 5px;
}
.back {
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
main {
  max-width: 840px;
  margin: 70px auto;
  padding: 0 24px;
}
h1 {
  font:
    500 clamp(2.5rem, 6vw, 3.875rem)/1.1 Newsreader,
    Georgia,
    serif;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
.intro {
  font-size: 1.1875rem;
  max-width: 680px;
}
.notice {
  font-size: 1rem;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 30px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.actions button {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 17px;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.actions button:hover {
  border-color: var(--accent);
}
.actions button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.worksheet-status {
  color: var(--accent);
  font-size: 1rem;
  min-height: 24px;
  margin: 18px 0;
}
.field {
  margin-bottom: 30px;
}
.field label {
  font:
    500 1.625rem Newsreader,
    Georgia,
    serif;
}
.field p {
  font-size: 1rem;
  color: var(--muted);
  margin: 5px 0 10px;
}
textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #131617;
  color: var(--text);
  font: inherit;
  line-height: 1.6;
}
.bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.further {
  margin-top: 36px;
  font-size: 1rem;
}
#print-document {
  display: none;
}
@media (max-width: 500px) {
  header {
    align-items: flex-start;
  }
  header > a:first-child {
    font-size: 1.5rem;
  }
  .back {
    font-size: 1rem;
  }
  main {
    margin-top: 48px;
  }
  .actions button {
    flex: 1;
    text-align: center;
  }
}
@media print {
  :root {
    color-scheme: light;
  }
  body {
    background: white;
    color: #111;
    font-size: 11pt;
  }
  header {
    padding: 0 0 12px;
    border-color: #bbb;
  }
  header > a:first-child {
    color: #111;
  }
  main {
    max-width: none;
    margin: 20px 0;
    padding: 0;
  }
  h1 {
    font-size: 30pt;
  }
  .intro {
    font-size: 12pt;
  }
  .notice,
  .actions,
  .worksheet-status,
  #worksheet,
  .back,
  .further,
  noscript {
    display: none;
  }
  #print-document {
    display: block;
  }
  #print-document h2 {
    font:
      600 16pt Newsreader,
      Georgia,
      serif;
    margin: 22px 0 7px;
    break-after: avoid;
  }
  #print-document p {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 0;
  }
  #print-document section {
    break-inside: avoid;
  }
  a {
    color: #111;
    text-decoration: none;
  }
}
