:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #24261f;
  --muted: #5e6259;
  --rule: #d4d6ce;
  --blue: #18459f;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.55; }
a { color: inherit; }
.shell { width: min(64rem, 88%); margin-inline: auto; }
header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.bar { display: flex; justify-content: space-between; align-items: center; min-height: 4.25rem; }
.home { display: inline-flex; align-items: center; width: 48px; min-height: 48px; }
.home img { display: block; }
nav { display: flex; gap: clamp(16px, 3vw, 34px); }
nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: .95rem; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; text-underline-offset: .35em; }
a:focus-visible, summary:focus-visible, textarea:focus-visible, input:focus-visible + span {
  outline: 2px solid var(--blue); outline-offset: 4px;
}
.skip { position: absolute; left: 1rem; top: -5rem; background: white; padding: .5rem 1rem; }
.skip:focus { top: .5rem; }
[hidden] { display: none !important; }
main { padding-block: clamp(2rem, 6vw, 5rem); }
#show-all { display: inline-block; margin-bottom: 1.1rem; color: var(--blue); font-size: .93rem; text-underline-offset: .2em; }
#about { max-width: 49rem; }
#about h1 { margin: 0 0 1.15rem; font: 500 clamp(2.45rem, 6vw, 4.4rem)/1.07 Georgia, serif; letter-spacing: -.045em; }
.about-lead { max-width: 37ch; margin: 0 0 1rem; font: 400 clamp(1.4rem, 3vw, 1.9rem)/1.4 Georgia, serif; }
.about-copy, .about-example p { max-width: 63ch; margin: 0; line-height: 1.65; }
.about-example { margin-top: clamp(1.75rem, 4vw, 2.8rem); padding-block: 1.4rem; border-block: 1px solid var(--rule); }
.about-example h2 { font: 500 clamp(1.35rem, 2.6vw, 1.7rem)/1.25 Georgia, serif; margin: 0 0 .55rem; }
.about-links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 1rem 0 0; }
.about-links div { min-width: 0; }.about-links dt { color: var(--muted); font-size: .875rem; }.about-links dd { margin: 0; overflow-wrap: anywhere; }
#about a { color: var(--blue); text-underline-offset: .22em; }
.about-contact { margin: 1.25rem 0 0; }
.entry[id] { scroll-margin-top: 1rem; }
#feed { border-bottom: 1px solid var(--rule); }
.entry { min-width: 0; border-top: 1px solid var(--rule); }
summary { display: grid; grid-template-columns: 8rem 1fr auto; align-items: baseline; gap: clamp(.8rem, 3vw, 2.5rem); padding: 1.4rem .2rem 1.4rem 0; cursor: pointer; list-style: none; }
time { font-size: .875rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.repeat-date { opacity: 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; align-self: center; width: 14px; height: 14px; background: linear-gradient(var(--muted), var(--muted)) center / 100% 1px no-repeat, linear-gradient(var(--muted), var(--muted)) center / 1px 100% no-repeat; }
details[open] > summary::after { background-size: 100% 1px, 0 0; }
summary:hover strong { color: var(--blue); }
.row strong { display: block; font-size: clamp(1.25rem, 2.1vw, 1.6rem); font-weight: 550; line-height: 1.16; letter-spacing: -.04em; }
.subtitle { display: block; color: var(--muted); margin-top: .25rem; }
.panel { margin-left: calc(8rem + clamp(.8rem, 3vw, 2.5rem)); padding: 0 1.5rem 1.5rem 0; }
fieldset { padding: 0; margin: 0; border: 0; }
legend, .inputs label, .result b { font-size: .9rem; font-weight: 600; }
fieldset label { display: inline-flex; position: relative; margin: .4rem .3rem 0 0; cursor: pointer; }
fieldset label span { border: 1px solid var(--rule); padding: .35rem .75rem; }
fieldset input { position: absolute; opacity: 0; }
fieldset input:checked + span { background: var(--blue); color: white; border-color: var(--blue); }
#matches { margin: .9rem 0 0; padding-left: 1.25rem; }
#matches li + li { margin-top: .3rem; }
.inputs { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
textarea { display: block; width: 100%; margin-top: .25rem; padding: .6rem .7rem; background: white; color: var(--ink); border: 1px solid var(--rule); border-radius: 0; font: 400 1rem/1.5 Arial, sans-serif; resize: vertical; }
.result { margin: .9rem 0 0; overflow-wrap: anywhere; }
.result b { margin-right: .55rem; }
.article { max-width: 62ch; font: 400 1.1rem/1.6 Georgia, serif; }
.article p { margin: 0 0 .75rem; }
.article p:last-child { margin-bottom: 0; }
@media (max-width: 600px) {
  .shell { width: 89%; }
  .bar { min-height: 3.6rem; }
  summary { grid-template-columns: 1fr auto; gap: .4rem .8rem; padding-block: 1.1rem; }
  time { grid-column: 1 / -1; }
  time.repeat-date { display: none; }
  .panel { margin-left: 0; padding-right: 0; }
  .inputs { grid-template-columns: 1fr; }
}
.article img { max-width: 100%; height: auto; }
.article pre { overflow-x: auto; padding: 1rem; background: #f4f4f2; }
.article { overflow-wrap: anywhere; }
.article blockquote { border-left: 2px solid var(--rule); padding-left: 1rem; margin-left: 0; }

body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.site-footer { margin-top: auto; border-top: 1px solid var(--rule); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; padding-block: .5rem; font-size: .875rem; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .2em; }
.footer-inner a:hover { color: var(--ink); }
.copyright-notice { max-width: 62ch; }
.copyright-notice h1 { margin: 0 0 1.25rem; font: 500 2.25rem/1.2 Georgia, serif; }
.copyright-notice p { margin: 0 0 1rem; font-size: 1.0625rem; line-height: 1.65; }

.correspondence { max-width: 40rem; }
.correspondence h1 { font: 500 2.25rem/1.2 Georgia, serif; margin: 0 0 1rem; }
.correspondence > p { max-width: 56ch; }
.correspondence form { margin-top: 2rem; }
.correspondence label { display: block; font-weight: 600; margin: 1.25rem 0 .35rem; }
.correspondence input, .correspondence select, .correspondence textarea { display: block; width: 100%; padding: .65rem; border: 1px solid var(--rule); border-radius: 0; background: #fff; color: var(--ink); font: inherit; }
.correspondence button { padding: .6rem 1rem; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: inherit; cursor: pointer; }
.correspondence button:disabled { opacity: .65; }
.form-note, .message-meta { color: var(--muted); font-size: .9rem; }
.correspondence article { border-top: 1px solid var(--rule); padding-block: 1.25rem; overflow-wrap: anywhere; }
.correspondence article h2 { margin: 0; font: 500 1.35rem Georgia,serif; }
.message-text { white-space: pre-wrap; }
.correspondence :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media(max-width:420px) { .bar nav { gap: .7rem; } .bar nav a { font-size: .875rem; } }

.panel figure { margin: 1.25rem 0; }
.panel figure img, .panel video { display: block; max-width: 100%; height: auto; max-height: 75vh; }
.panel figcaption { margin-top: .35rem; color: var(--muted); font-size: .9rem; }
.article-content { margin-top:1.25rem; overflow-wrap:anywhere; }
.article-content img,.article-content video { max-width:100%; height:auto; }
