@font-face {
  font-family: Anton;
  src: url("fonts/anton.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --graphite: #545454;
  --ink: #393939;
  --muted: #595959;
  --light: #f1f1f1;
  --orange: #ffa400;
  --line: #d2d2d2;
  --display: Anton, Impact, "Arial Narrow", sans-serif;
  color: var(--ink);
  font: 17px/1.55 "Avenir Next", "Segoe UI", Arial, sans-serif;
  background: var(--graphite);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, p { margin: 0; }
button, input, textarea { font: inherit; }
button {
  min-height: 44px;
  padding: .55rem 1rem;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: .55rem;
  color: var(--ink);
  cursor: pointer;
}
button:hover { background: var(--light); }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
header { color: white; }
.masthead, main { width: min(1120px, calc(100% - 8vw)); margin: auto; }
.masthead {
  display: flex; gap: 1.15rem; align-items: center;
  min-height: 96px; border-bottom: 1px solid #858585;
}
.brand { display: block; flex: none; }
.brand img { display: block; width: clamp(58px, 8vw, 76px); height: auto; }
.brand-sub { padding-left: 1.15rem; border-left: 1px solid #909090; font-weight: 600; }
header button { margin-left: auto; }
#login { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 7vw, 5.5rem); align-items: center; padding: clamp(1.2rem, 4vh, 3rem) 0; }
.cover { min-width: 0; color: #fff; }
.edition, .eyebrow, #day {
  font-size: .79rem; font-weight: 750; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase;
}
.edition { color: var(--orange); margin-bottom: 1.1rem; }
h1, h2, .goal strong {
  font-family: var(--display); font-weight: 400; line-height: 1.08; text-transform: uppercase;
}
.cover h1 { font-size: clamp(2.85rem, min(5.5vw, 8.8vh), 4.8rem); line-height: 1.08; text-transform: none; }
.cover h1 span { display: inline-block; color: var(--orange); }
.cover-copy {
  --block-gap: 1.35rem;
  display: grid; gap: var(--block-gap); max-width: 40ch;
  margin: 1.3rem 0 1.8rem; color: #f0f0f0; font-size: 1.12rem;
}
.method-link { display: grid; gap: var(--block-gap); color: inherit; text-decoration: none; }
.method-label { color: #ffd080; text-decoration: underline; text-underline-offset: .19em; }
.method-link:hover .method-label { color: white; }
.method-link:focus-visible { outline-color: var(--orange); }
.goal {
  display: flex; align-items: center; gap: .8rem; padding: .75rem 1.1rem;
  border-radius: .85rem; background: var(--orange); color: var(--ink); max-width: 26rem;
}
.goal strong { font-size: 2.35rem; }
.goal span { font-weight: 700; }
.goal i { width: 4rem; height: .65rem; margin-left: auto; background: repeating-linear-gradient(to right, #545454 0 calc(33.333% - 2px), transparent calc(33.333% - 2px) 33.333%); }
.intro, #writing, #history { min-width: 0; border-radius: 1.15rem; background: #fff; padding: clamp(1.4rem, 3.7vw, 3rem); }
.intro { border-top: .45rem solid var(--orange); }
.eyebrow, #day { color: var(--muted); }
.intro h2, #history h1 { margin: .65rem 0 1.4rem; font-size: clamp(2.15rem, 3.6vw, 3.3rem); }
#writing h1 { font-size: clamp(1.65rem, 2.65vw, 2.3rem); margin: .45rem 0 .85rem; }
.intro label { display: block; font-weight: 650; margin: .85rem 0 .4rem; }
.intro input { width: 100%; border: 1px solid #9d9d9d; border-radius: .5rem; padding: .7rem .85rem; color: var(--ink); background: #fafafa; }
.primary { display: block; width: 100%; margin: .8rem 0 1.2rem; padding: .75rem; border: 0; color: #292929; background: var(--orange); font-weight: 750; }
.primary:hover, #download:hover { background: #ffb62f; }
small, .device, .foot { font-size: .86rem; }
small { display: block; color: var(--muted); }
#authmsg, #notice, #feedback:not(:empty) { padding: .75rem 1rem; border-radius: .5rem; }
#authmsg { border-left: 4px solid var(--orange); background: var(--light); margin-bottom: 1rem; }
#desk { margin: 0 0 3rem; }
nav { display: flex; align-items: stretch; gap: clamp(.55rem, 2vw, 1.35rem); margin: 1.05rem 0 1.2rem; }
nav :is(button, a) { display: inline-grid; place-items: center; text-align: center; text-decoration: none; min-width: 3rem; padding: .4rem 0; border: 0; border-radius: 0; border-bottom: 3px solid transparent; background: transparent; color: white; }
nav :is(button, a):hover { background: transparent; color: var(--orange); }
nav [aria-current="page"] { border-bottom-color: var(--orange); font-weight: 700; }
nav :is(button, a):focus-visible, header button:focus-visible { outline-color: #fff; }
.dateline, .entry, .actions { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.dateline { flex-wrap: wrap; }
.dateline button { background: var(--light); border: 0; font-size: .85rem; }
#paper { display: block; width: 100%; min-height: calc(38vh + 1.5rem); padding: 1rem .2rem; margin-bottom: 1rem; resize: vertical; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.65; }
#paper:focus-visible { outline: 0; border-top-color: #858585; }
#paper::placeholder { color: #686868; }
.foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  gap: .65rem 1rem; padding: .85rem 1rem; border-radius: .65rem;
  background: #696969; color: white;
}
#count { text-align: right; font-variant-numeric: tabular-nums; }
#progress {
  --fill: #ffd04d; --track: #747474;
  grid-column: 1 / -1; appearance: none; display: block; width: 100%; height: .46rem;
  border: 0; border-radius: .23rem; overflow: hidden; background: var(--track); accent-color: var(--fill);
}
#progress::-webkit-progress-bar { background: var(--track); }
#progress::-webkit-progress-value { background: var(--fill); }
#progress::-moz-progress-bar { background: var(--fill); }
@media (max-width: 480px) {
  .foot { grid-template-columns: 1fr; gap: .35rem; }
  #count { text-align: left; }
}
@media (min-width: 721px) and (max-height: 730px) {
  #login { padding-block: 1rem; }
  .cover-copy { font-size: 1rem; margin-block: 1rem; }
}
#summary { color: var(--muted); margin-bottom: 1rem; }
.entry { border-top: 1px solid var(--line); padding: .65rem 0; }
.entry button:first-child { flex: 1; text-align: left; border: 0; font-weight: 600; }
.actions { justify-content: flex-start; flex-wrap: wrap; margin: 1.5rem 0 .7rem; }
#download { background: var(--orange); border-color: transparent; font-weight: 650; }
.device { padding: .95rem .15rem; color: #f0f0f0; }
#feedback:not(:empty), #notice { color: var(--ink); background: #fff3dc; border-left: 4px solid var(--orange); margin: .8rem 0; }
#feedback:empty, #notice:empty, #authmsg:empty { display: none; }
@media (max-width: 720px) {
  .masthead, main { width: calc(100% - 2rem); }
  .masthead { min-height: 70px; }
  #login { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.65rem 0 2.25rem; }
  .edition { margin-bottom: .65rem; }
  .cover h1 { font-size: clamp(2.6rem, 8.8vw, 3.5rem); }
  .cover-copy { font-size: 1rem; margin: 1rem 0 1.5rem; }
  .goal { padding: .45rem .85rem; max-width: none; }
  .goal strong { font-size: 1.65rem; }
  #history h1 { margin-bottom: 1rem; }
  .dateline { gap: .4rem; }
}

.cover .edition { text-transform: none; }

#method-view > p, #method-view > a { color: white; }

#unlock { max-width: 36rem; margin: 2rem auto; }
#unlock form, #recovery-step { display: grid; gap: .8rem; margin: 1rem 0; }
#unlock input[type=checkbox] { width: auto; min-height: 0; }
#recovery-code { overflow-wrap: anywhere; user-select: all; }
#vault-error { color: #933600; }
#migration, #drafts { background: white; border-radius: .65rem; padding: 1rem; margin: 1rem 0; }
#migration p, #drafts h3 { margin: 0 0 .5rem; }
