:root {
  color-scheme: light;
  --paper: #f8f8f1; --ink: #20271d; --quiet: #606459; --green: #335637;
  --line: #ced0c1; --serif: "Baskervville", "Iowan Old Style", Georgia, serif;
  font: 100%/1.5 "DM Sans", "Avenir Next", system-ui, sans-serif;
  background: var(--paper); color: var(--ink);
}
* { box-sizing: border-box }
body { margin: 0 }
a { color: inherit }
button, textarea, input { font: inherit; color: inherit }
button, .action {
  min-height: 2.65rem; padding: .5rem 1.1rem; border: 1px solid #a9af9f; border-radius: .45rem;
  background: transparent; color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer;
}
button:hover, .action:hover { background: #e7eadf }
button:disabled { cursor: default; opacity: .55 }
a:focus-visible, button:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid #557440; outline-offset: 3px }
.primary-action { background: var(--green); border-color: var(--green); color: white }
.primary-action:hover:enabled { background: #213d25 }
.masthead { border-bottom: 1px solid var(--line) }
.mast-inner, main { max-width: 51rem; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem) }
.mast-inner { min-height: 5.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem }
.brand { display: inline-flex; align-items: center; gap: .62rem; text-decoration: none; font: bold 1.7rem/1 var(--serif); letter-spacing: -.065em }
.key { position: relative; width: 1.65rem; height: 1.65rem; color: var(--green); transform: rotate(-40deg) }
.key::before { content: ""; position: absolute; left: 0; top: .4rem; width: .61rem; height: .61rem; border: .18rem solid; border-radius: 50% }
.key::after { content: ""; position: absolute; left: .83rem; top: .8rem; width: .8rem; height: .24rem; border-top: .18rem solid; border-right: .18rem solid }
.topnav { display: flex; align-items: center; gap: 1rem }
.text-link, .minor { background: none; border: 0; padding: .25rem 0; min-height: 2.5rem; color: var(--quiet); font-size: .91rem; font-weight: 500; text-underline-offset: .2rem }
.text-link:hover, .minor:hover { background: transparent; color: var(--ink); text-decoration: underline }
main { padding-block: clamp(3.2rem, 8vw, 5rem) 6rem }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.055em; line-height: 1.04 }
h1 { margin: 0 0 2.2rem; font-size: clamp(3.1rem, 8vw, 5.2rem) }
h2 { font-size: 2rem; margin: 2rem 0 1rem }
.feed { border-top: 2px solid var(--ink) }
.empty { padding: 2.9rem 0; margin: 0; border-bottom: 1px solid var(--line); color: var(--quiet); font: italic 1.5rem var(--serif) }
.composer { padding: 1rem 1.15rem; margin: 0 0 2.25rem; border: 1px solid var(--line); border-radius: .6rem; background: #fdfdf8 }
.composer label, .validated-field { display: block; font-weight: 600 }
.composer textarea { display: block; width: 100%; min-height: 5rem; resize: vertical; background: transparent; border: none; margin: .5rem 0; padding: .3rem 0; line-height: 1.5 }
.composer footer { display: flex; justify-content: flex-end; border-top: 1px solid #dfe1d3; padding-top: .7rem }
.post { padding-block: 1.55rem; border-bottom: 1px solid var(--line) }
.post header { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .8rem; color: var(--green) }
.post time { color: var(--quiet); font-size: .84rem }
.post-body { margin: .7rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; font-size: 1.07rem }
.post .minor { margin-left: auto; min-height: 1.75rem }
.confirm { margin: 1rem 0 0; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap }
.older { margin-top: 1.5rem }
.auth { max-width: 40rem }
.auth h1 { font-size: clamp(2.8rem, 8vw, 4.3rem) }
.auth form { display: grid; gap: .9rem }
.auth form button { justify-self: start }
.auth .validated-field input { display: block; border: 1px solid var(--line); background: #fff; border-radius: .35rem; width: 100%; padding: .72rem; margin-top: .4rem }
.auth-links { margin-top: 1rem }
.auth-option .text-link { text-decoration: underline }
.auth-separator { margin: 0 .65rem; color: var(--quiet) }
.auth .field-hint, [role=alert] { color: #923c2f; display: block; font-size: .92rem }
[role=alert]:empty { display: none }
.auth .codes { border: 1px solid var(--line); border-radius: .45rem; background: #fff; padding: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; line-height: 1.6; user-select: all }
.auth button + button { margin: .3rem 0 .3rem .55rem }
.account-name { color: var(--green); font-weight: 600 }
@media(max-width: 35rem) {
  .mast-inner { min-height: 4.5rem }
  .topnav { gap: .65rem }
  .brand { font-size: 1.45rem }
  .action { padding-inline: .75rem }
}
