:root {
  color-scheme: light dark;
  --paper: #f4f1e9;
  --ink: #233c32;
  --muted: #626b60;
  --line: #c9cec0;
  --accent: #174b3b;
  --surface: #fffdf7;
  --button: #fffdf7;
  font-family: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 700px;
  margin: auto;
  padding: calc(26px + env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    calc(32px + env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 42px;
}
.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-size: 20px;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.wordmark span {
  font-weight: 400;
}
.private,
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.13em;
}
.private {
  max-width: 110px;
  text-align: right;
  line-height: 1.6;
}
.eyebrow {
  margin-bottom: 15px;
  color: var(--muted);
  font-weight: 700;
}
h1 {
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: clamp(46px, 9vw, 66px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.intro {
  font-size: 17px;
  line-height: 1.6;
  max-width: 450px;
  margin-bottom: 28px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 18px 0 10px;
}
textarea,
input {
  width: 100%;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 16px;
}
textarea {
  resize: vertical;
  min-height: 250px;
  line-height: 1.65;
}
textarea:focus,
input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.editor-foot,
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.editor-foot {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
button {
  font: inherit;
  cursor: pointer;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 17px 20px;
  background: var(--accent);
  color: var(--button);
  border-color: var(--accent);
  font-weight: 600;
  font-size: 18px;
}
.quiet {
  background: transparent;
  border-color: transparent;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.status {
  font-size: 15px;
  line-height: 1.55;
  min-height: 46px;
}
.storage-note,
details p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.account {
  padding: 20px 0;
  border-block: 1px solid var(--line);
  margin-top: 28px;
}
.account p {
  font-size: 14px;
  margin: 0 0 12px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.receipts {
  margin: 28px 0;
}
h2 {
  font-size: 21px;
  font-family: Palatino, Georgia, serif;
  font-weight: 400;
}
ul {
  list-style: none;
  padding: 0;
}
li {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
li p {
  margin: 0 0 6px;
  font-size: 15px;
}
small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
details {
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
summary {
  padding: 14px 0;
  cursor: pointer;
  font-size: 14px;
}
details button {
  margin-top: 12px;
}
pre,
output {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
footer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 30px;
  line-height: 1.6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17221d;
    --ink: #e8e8db;
    --muted: #acb6a7;
    --line: #3e5145;
    --accent: #b9d8b7;
    --surface: #202e26;
    --button: #17221d;
  }
}
@media (max-width: 380px) {
  main {
    padding-inline: 18px;
  }
  .section-heading {
    align-items: baseline;
  }
  h1 {
    font-size: 46px;
  }
}
