:root {
  color-scheme: light dark;
  --ink: #07111f;
  --muted: #53657d;
  --blue: #155eef;
  --line: #c9d5e5;
  --paper: #fff;
  --base: #f7f9fc;
  --error: #a51b2b;
  --notice: #eaf1ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font:
    17px/1.65 system-ui,
    sans-serif;
}
a {
  color: var(--blue);
  text-underline-offset: 0.2em;
}
a,
button,
input {
  touch-action: manipulation;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  background: var(--paper);
  padding: 0.75rem;
  z-index: 2;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem max(1.25rem, calc((100vw - 76rem) / 2));
  background: #07111f;
  color: white;
}
.site-header a {
  color: white;
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 0;
}
.brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-right: auto;
}
.brand span {
  color: #84b2ff;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
main {
  max-width: 76rem;
  margin: auto;
  padding: 3rem 1.25rem 4rem;
}
.intro {
  max-width: 49rem;
  margin-bottom: 2.5rem;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.07;
  letter-spacing: -0.045em;
  text-wrap: balance;
  margin: 0.7rem 0 1.25rem;
}
h2 {
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.1rem;
}
p {
  max-width: 72ch;
}
#summary,
#print-title,
#print-summary {
  overflow-wrap: anywhere;
}
.builder {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: start;
}
.settings,
.preview {
  min-width: 0;
}
.settings {
  padding-right: 2rem;
  border-right: 1px solid var(--line);
}
.preview {
  padding: 1.5rem 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}
.preview h2 {
  margin-top: 0;
}
button,
input {
  font: inherit;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
label {
  display: block;
  font-weight: 650;
  margin: 1.2rem 0 0.3rem;
}
label span,
small,
.caption,
#privacy {
  color: var(--muted);
  font-size: 0.88rem;
}
input {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 0.7rem;
  border: 1px solid #8599b3;
  border-radius: 0.4rem;
  background: var(--paper);
  color: var(--ink);
}
input[type='number'] {
  max-width: 8rem;
}
small {
  display: block;
  margin-top: 0.4rem;
}
button {
  min-height: 48px;
  padding: 0.6rem 1rem;
  border: 1px solid #8599b3;
  border-radius: 0.4rem;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 650;
}
button:hover {
  background: var(--notice);
}
button.primary {
  background: #155eef;
  color: white;
  border-color: #155eef;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.error {
  color: var(--error);
  font-weight: 650;
}
.error:empty,
#status:empty {
  display: none;
}
.notice {
  padding: 0.7rem 1rem;
  background: var(--notice);
  border-left: 3px solid var(--blue);
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.timeline li {
  border-left: 3px solid var(--line);
  padding: 0 0 1.5rem 1.2rem;
  margin-left: 0.35rem;
  position: relative;
}
.timeline li::before {
  content: '';
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--blue);
  left: -0.48rem;
  top: 0.45rem;
}
.timeline li:last-child {
  padding-bottom: 0.5rem;
  border-left-color: transparent;
}
.timeline label {
  margin: 0 0 0.3rem;
}
.timeline input {
  max-width: 15rem;
}
.timeline time {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.timeline small {
  margin-top: 0.25rem;
}
.tool-notes {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.5rem;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
footer {
  max-width: 76rem;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--line);
}
#print-sheet {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef9;
    --muted: #aebed4;
    --blue: #91b8ff;
    --line: #435570;
    --paper: #142032;
    --base: #0b1422;
    --error: #ffacb5;
    --notice: #203655;
  }
}
@media (max-width: 750px) {
  .builder,
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .settings {
    border: 0;
    padding-right: 0;
  }
  .preview {
    padding: 1.25rem;
  }
  main {
    padding-top: 2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  @page {
    size: portrait;
    margin: 14mm;
  }
  body {
    background: white;
    color: black;
    font:
      11pt/1.4 system-ui,
      sans-serif;
  }
  .site-header,
  main,
  footer,
  .skip-link {
    display: none;
  }
  #print-sheet {
    display: block;
  }
  #print-warning {
    border: 2px solid black;
    padding: 12pt;
    font-weight: 700;
  }
  #print-sheet h2 {
    font-size: 20pt;
    overflow-wrap: anywhere;
  }
  #print-sheet p {
    max-width: none;
  }
  table {
    width: 100%;
    border-collapse: collapse;
  }
  th,
  td {
    border: 1px solid #777;
    text-align: left;
    padding: 5pt;
    font-size: 10pt;
  }
  tr {
    break-inside: avoid;
  }
  thead {
    display: table-header-group;
  }
}
