:root {
  color-scheme: light;
  --ink: #07111f;
  --muted: #53657d;
  --blue: #155eef;
  --line: #c9d5e5;
  --paper: #fff;
  --base: #f7f9fc;
}
* {
  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,
select,
textarea {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #155eef;
  outline-offset: 4px;
}
.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  background: white;
  padding: 0.75rem;
  z-index: 2;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem max(1.25rem, calc((100vw - 76rem) / 2));
  background: var(--ink);
  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;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
main {
  max-width: 76rem;
  margin: auto;
  padding: 3rem 1.25rem 4rem;
}
.intro {
  max-width: 48rem;
  margin-bottom: 2.5rem;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 750;
  color: var(--muted);
}
h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  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.25;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.1rem;
  line-height: 1.4;
}
p {
  max-width: 72ch;
}
button,
input,
textarea,
select {
  font: inherit;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
button {
  min-height: 48px;
  padding: 0.6rem 1rem;
  border: 1px solid #8599b3;
  border-radius: 0.4rem;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-weight: 650;
}
button:hover {
  background: #e8efff;
}
button.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
input,
textarea,
select {
  border: 1px solid #8599b3;
  border-radius: 0.3rem;
  padding: 0.65rem;
  background: white;
  color: var(--ink);
  width: 100%;
  min-height: 48px;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
label {
  display: block;
  font-weight: 650;
  margin: 0.8rem 0 0.4rem;
}
label span,
small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}
small {
  display: block;
  margin-top: 0.5rem;
}
input[type='checkbox'] {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  accent-color: var(--blue);
}
.checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.9rem;
  min-height: 44px;
}
.builder {
  display: grid;
  grid-template-columns: 19rem minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.settings {
  padding-right: 2rem;
  border-right: 1px solid var(--line);
}
.settings h2 {
  margin-top: 0;
}
.settings button {
  width: 100%;
  margin-top: 0.75rem;
}
.exports {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 2rem;
}
.exports p,
.privacy,
.caption,
#calendar-help {
  font-size: 0.85rem;
  color: var(--muted);
}
.privacy {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.preview {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 0.3rem;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 8px 24px #07111f08;
}
.preview-heading h2 {
  font-size: 2rem;
  margin: 0.25rem 0 1.25rem;
}
.preview-heading .eyebrow {
  margin: 0;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 1.5rem;
  font-variant-numeric: tabular-nums;
}
.weekday {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.5rem 0;
}
.day {
  padding: 0.3rem;
  aspect-ratio: 1;
  min-height: 44px;
  font-size: 1rem;
  border-color: var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.day[aria-pressed='true'] {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.day .mark {
  font-size: 0.7rem;
  line-height: 1.2;
  min-height: 0.9rem;
}
.progress {
  font-weight: 650;
  font-size: 0.9rem;
}
.error {
  color: #ad1b1b;
  font-size: 0.9rem;
}
.error:empty {
  display: none;
}
.tool-notes {
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
  padding-top: 1rem;
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.notes-grid p {
  color: var(--muted);
  font-size: 0.95rem;
}
footer {
  border-top: 1px solid var(--line);
  max-width: 76rem;
  margin: auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
footer a {
  padding: 0.5rem 0;
}
#print-sheet {
  display: none;
}
.notice {
  padding: 1rem;
  border: 1px solid var(--line);
}
.guide {
  max-width: 51rem;
}
.guide article {
  max-width: 43rem;
}
.guide h2 {
  font-size: 1.8rem;
  margin-top: 2.8rem;
  scroll-margin-top: 1rem;
}
.guide li {
  margin: 0.6rem 0;
}
.guide .contents {
  border-block: 1px solid var(--line);
  padding: 1rem 0;
  margin: 2rem 0;
}
.guide .contents a {
  display: block;
  padding: 0.4rem 0;
}
.example {
  background: white;
  border-left: 4px solid var(--blue);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}
.guide table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.guide th,
.guide td {
  text-align: left;
  padding: 0.75rem;
  border: 1px solid var(--line);
  vertical-align: top;
}
.table-wrap {
  overflow-x: auto;
}
.guide .cta {
  display: inline-block;
  min-height: 48px;
  background: var(--blue);
  color: white;
  padding: 0.65rem 1rem;
  text-decoration: none;
  border-radius: 0.4rem;
}
#status {
  font-size: 0.85rem;
  min-height: 1.5em;
}
select {
  max-width: 100%;
  text-overflow: ellipsis;
}
.print-source {
  font-size: 9pt;
}
@media (max-width: 52rem) {
  .builder {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .settings {
    border-right: 0;
    padding-right: 0;
  }
  .notes-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .site-header nav {
    gap: 1rem;
    font-size: 0.85rem;
  }
  main {
    padding-top: 2rem;
  }
  .day {
    aspect-ratio: auto;
    height: 52px;
  }
  .calendar {
    gap: 4px;
  }
  .preview {
    padding: 1rem;
  }
  .preview-heading h2 {
    font-size: 1.6rem;
  }
}
@page {
  size: landscape;
  margin: 12mm;
}
@media print {
  body {
    background: white;
    color: black;
    font:
      10pt/1.4 system-ui,
      sans-serif;
  }
  .site-header,
  main,
  footer,
  .skip-link {
    display: none !important;
  }
  #print-sheet {
    display: block;
  }
  #print-sheet h2 {
    font-size: 20pt;
    margin: 0;
  }
  #print-sheet table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
  }
  #print-sheet caption {
    text-align: left;
    font-size: 10pt;
    margin: 6pt 0;
  }
  #print-sheet th,
  #print-sheet td {
    border: 1px solid #666;
    text-align: center;
    padding: 2pt 0;
    height: 24pt;
    font-size: 8pt;
    line-height: 1.15;
  }
  #print-sheet th:first-child {
    width: 32%;
    text-align: left;
    padding: 2pt 4pt;
    overflow-wrap: anywhere;
  }
  #print-sheet td {
    color: black;
  }
  #print-sheet tbody th {
    font-weight: 500;
    word-break: break-all;
  }
  #print-sheet tr {
    break-inside: avoid;
  }
  .reflection {
    min-height: 28pt;
    border-bottom: 1px solid #aaa;
  }
  #print-sheet p {
    max-width: none;
    margin: 6pt 0;
  }
}
