@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --paper: #6b0e16;
  --ink: #f4ead0;
  --muted: rgba(244, 234, 208, .68);
  --line: rgba(244, 234, 208, .24);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main {
  width: min(100% - 48px, 680px);
  margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) 0 max(48px, env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.library-link { display: inline-flex; align-items: center; min-height: 44px; font: 400 25px/1.2 "Cormorant Garamond", Georgia, serif; text-decoration: none; }
h1, h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(37px, 5vw, 48px); line-height: 1.15; margin: 36px 0 12px; }
h2 { font-size: 28px; line-height: 1.3; margin: 0; }
p { margin: 0 0 20px; }
.intro { color: var(--muted); margin-bottom: 30px; }
label { display: block; margin: 0 0 9px; font-size: 13px; }
textarea, input[type="password"] {
  display: block;
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  font: inherit;
  font-size: 16px;
  line-height: 1.65;
  padding: 13px 15px;
}
textarea { resize: vertical; min-height: 210px; }
textarea::placeholder { color: var(--muted); opacity: .7; }
input[type="password"] { max-width: 440px; margin-bottom: 12px; }
button { cursor: pointer; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
.primary {
  min-height: 44px;
  padding: 10px 21px;
  border: 1px solid rgba(244, 234, 208, .6);
  border-radius: 24px;
  background: transparent;
  font-size: 13px;
}
.text-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 0; border: 0; background: transparent; font-size: 12px; text-decoration: underline; text-underline-offset: 5px; }
#setup > .text-action { margin-top: 16px; }
.draft-meta, .section-heading, footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.draft-meta { margin: 2px 0 7px; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.65; }
#byte-count { white-space: nowrap; }
#draft-hint { max-width: 510px; }
.status { min-height: 3em; margin: 24px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.recent { margin-top: 28px; }
.section-heading { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.request { border-bottom: 1px solid var(--line); }
.request summary { cursor: pointer; padding: 17px 0; overflow-wrap: anywhere; font-size: 14px; }
.request pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 14px; line-height: 1.7; margin: 0 0 18px; }
.request-date { display: block; color: var(--muted); font-size: 11px; margin: 7px 0 0 16px; }
.empty { color: var(--muted); padding: 22px 0 0; font-size: 13px; }
footer { justify-content: flex-start; margin-top: 35px; gap: 30px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
textarea:focus-visible, input:focus-visible { outline-offset: 3px; }
button:disabled { opacity: .45; cursor: default; }
button:not(:disabled):active, a:active, summary:active { opacity: .65; }
@media (hover: hover) and (pointer: fine) {
  button:not(:disabled):hover, a:hover, summary:hover { color: var(--ink); opacity: .8; }
}
@media (min-width: 1800px) { main { padding-top: 80px; } }
@media (max-width: 420px) {
  main { width: calc(100% - 40px); padding-top: max(24px, env(safe-area-inset-top)); }
  h1 { margin-top: 26px; }
  .intro { margin-bottom: 24px; }
  textarea { padding: 11px; }
}
