* { box-sizing: border-box; }
body { margin: 0; font: 1rem/1.55 system-ui, sans-serif; background: #f5f4ed; color: #18362e; }
h1, h2 { overflow-wrap: anywhere; }
a { color: #20553e; }
select, textarea { font: inherit; padding: 7px 9px; color: inherit; background: #fffef8; border: 1px solid #677e70; border-radius: 5px; max-width: 100%; }
textarea, #title { width: min(100%, 650px); }
summary, label, a { text-underline-offset: .2em; }
summary { cursor: pointer; width: fit-content; }
#site-work { margin-top: 24px; }
#pages { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
#page-work { border-top: 1px solid #acbdb4; margin-top: 20px; }
#publication { margin-top: 22px; }
#status { min-height: 1.5em; color: #852e20; }
.workspace-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.workspace-tools label { flex-basis: auto; }
.draft-preview { padding: 14px; background: #fffef8; border: 1px solid #acbdb4; margin-top: 20px; }
.plain-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.public-content { padding: 3rem 1.2rem; max-width: 67ch; margin: auto; }
.public-intro { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; gap: 10px; padding: 3rem max(1.5rem, 12vw); background: #16372f; color: #fff5e1; }
.public-intro h1 { margin: 0; font: clamp(3rem, 8vw, 7rem)/1.02 Georgia, serif; }
.public-intro a { color: inherit; width: fit-content; }
.public-intro.parallax { background-image: radial-gradient(ellipse at 22% 24%, #33594a, #16372f 68%); }
@media (min-width: 48rem) and (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .public-intro.parallax { background-attachment: fixed; }
}
#preview-layout.public-intro { min-height: 20rem; }
#preview-layout.public-intro h2 { margin: 0; font: clamp(2rem, 5vw, 4rem)/1.02 Georgia, serif; }
:focus-visible { outline: 3px solid #a94632; outline-offset: 3px; }
.public-intro :focus-visible { outline-color: #ffd4ac; }
.public-nav { padding: .75rem max(1rem, 6vw); background: #fffef8; border-bottom: 1px solid #acbdb4; }
.public-nav ul { padding-left: 1.2rem; }
.public-nav > ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; }
.public-nav details { margin: .2rem 0; }
.public-nav [aria-current=page] { font-weight: bold; }
#menu-work { border-top: 1px solid #acbdb4; margin-top: 24px; }
#menu-items ul { padding-left: 1.7rem; }
#menu-items button { margin: .2rem .35rem .25rem 0; padding: .25rem .55rem; }
.menu-actions { margin-top: 1rem; }
