:root {
  color-scheme: light;
  --ink: #201e19;
  --paper: #fffefb;
  --soft: #5e5b53;
  --line: #b4aea3;
  --serif: "Instrument Serif", "Baskerville", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid #1e5d52; outline-offset: 4px; }
.masthead { border-bottom: 1px solid var(--ink); }
.masthead-inner { width: min(calc(100% - 3rem), 72rem); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.brand { font: 600 1.55rem/1 var(--serif); letter-spacing: -.055em; text-decoration: none; }
.nav-signin { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .94rem; }
main { width: min(calc(100% - 3rem), 43rem); margin: clamp(3rem, 8vh, 7rem) auto 4rem; }
h1, h2, p { margin: 0; }
h1 { font: 400 clamp(3rem, 7vw, 5.15rem)/.99 var(--serif); letter-spacing: -.055em; }
h1 em { font-weight: 400; }
.intro { color: var(--soft); line-height: 1.55; max-width: 44ch; margin: 1.4rem 0 1.65rem; }
.reader-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
form { border: 1px solid var(--ink); padding: 1.05rem; background: #fff; }
textarea { width: 100%; min-height: 5.4rem; resize: vertical; display: block; border: 0; padding: .25rem; font: 400 1.22rem/1.45 var(--serif); background: transparent; color: var(--ink); }
textarea::placeholder { color: #736e65; opacity: 1; }
.form-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; margin-top: .65rem; }
.form-actions span, .account-note { font-size: .875rem; line-height: 1.5; color: var(--soft); }
button, .unlock-link { border: 1px solid var(--ink); padding: .65rem 1rem; font: 600 .94rem/1.4 var(--sans); background: var(--ink); color: white; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; cursor: pointer; border-radius: 0; }
button:hover, .unlock-link:hover { background: #49453e; }
button:disabled { opacity: .65; cursor: default; }
#status { font-size: .94rem; line-height: 1.5; margin-top: .65rem; }
#status:empty { display: none; }
#preview { margin-top: 2.3rem; overflow-wrap: anywhere; }
.section-rule { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; font-size: .875rem; font-weight: 600; }
.section-rule::after { content: ""; height: 1px; background: var(--line); flex: 1; }
h2 { font: 400 clamp(1.7rem,4vw,2.25rem)/1.15 var(--serif); letter-spacing: -.035em; }
#preview-text { font: 400 1.18rem/1.55 var(--serif); margin-top: .6rem; }
#preview-source { font-size: .94rem; margin-top: .85rem; line-height: 1.55; }
#preview-source span { color: var(--soft); margin-right: .45rem; }
.unlock { border-top: 1px solid var(--line); padding-top: 1.15rem; margin-top: 1.4rem; }
.account-note { margin-top: .8rem; }
@media(max-width: 480px) {
  .masthead-inner, main { width: calc(100% - 2rem); }
  .masthead-inner { min-height: 3.8rem; }
  main { margin-top: 2.8rem; }
  form { padding: .8rem; }
  .form-actions { align-items: stretch; flex-direction: column; }
}
