:root {
  color-scheme: light;
  --backdrop: #dadbd2;
  --divider: #dedfd6;
  --muted: #50574b;
  --ink: #252b2d;
  --slate: #283739;
  --link: #234f6a;
  --rule: #a8ada7;
  --paper: #fffef9;
  --panel: #efefe6;
  --trim: #9c5034;
}
* { box-sizing: border-box; }
:root[data-palette="clay"] {
  --backdrop: #e1d3c6;
  --ink: #352820;
  --slate: #56382c;
  --link: #783c28;
  --rule: #a79486;
  --divider: #e4d5c9;
  --paper: #fff8ee;
  --panel: #f0e1d3;
  --trim: #9a492e;
  --muted: #674e40;
}
:root[data-palette="blue"] {
  --backdrop: #ced9e3;
  --ink: #202d3c;
  --slate: #21384f;
  --link: #26567d;
  --rule: #8b9ead;
  --divider: #d2dde6;
  --paper: #f6faff;
  --panel: #e4edf4;
  --trim: #415f89;
  --muted: #495b6d;
}
:root[data-palette="charcoal"] {
  color-scheme: dark;
  --backdrop: #191919;
  --ink: #f0eee7;
  --slate: #353331;
  --link: #e6c393;
  --rule: #77736b;
  --divider: #4d4a44;
  --paper: #242321;
  --panel: #2d2b28;
  --trim: #f0b488;
  --muted: #cac3b6;
}
body {
  margin: 0;
  background: var(--backdrop);
  color: var(--ink);
  font: 1rem/1.5 Arial, Helvetica, sans-serif;
}
a, summary { color: var(--link); text-underline-offset: .16em; }
a:hover, summary:hover { color: var(--trim); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--trim); outline-offset: 3px; }
.shell {
  width: min(68rem, calc(100% - 2rem));
  margin: 1rem auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  animation: establish 1.7s ease both;
}
@keyframes establish {
  from { opacity: .05; filter: contrast(.82) brightness(1.08) saturate(.82); }
  to { opacity: 1; filter: none; }
}
@media (prefers-reduced-motion: reduce) { .shell { animation: none; } }
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  padding: .7rem 1.2rem;
  background: var(--slate);
  color: #fffef9;
  border-bottom: 4px solid var(--trim);
}
.masthead a { color: inherit; font: bold clamp(1.8rem, 5vw, 2.75rem)/1.1 Georgia, serif; text-decoration: none; }
.label, .nav-heading, .meta {
  font-size: .875rem;
  line-height: 1.3;
  font-weight: bold;
}
.layout { display: grid; grid-template-columns: 12rem minmax(0, 1fr); }
aside { background: var(--panel); border-right: 1px solid var(--rule); padding: 1rem .7rem; }
nav { border: 1px solid var(--rule); background: var(--paper); }
nav + nav { margin-top: 1rem; }
.nav-heading { display: block; padding: .35rem .55rem; background: var(--slate); color: white; }
nav ul { margin: 0; padding: 0; list-style: none; }
nav li + li { border-top: 1px solid var(--divider); }
nav a { display: block; padding: .38rem .55rem; font-size: .875rem; }
.palette-picker { margin-top: 1rem; }
.palette-picker label { display: block; margin-bottom: .25rem; font-size: .875rem; font-weight: bold; }
.palette-picker select {
  min-height: 2.75rem;
  width: 100%;
  padding: .35rem .55rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.palette-picker select:focus-visible { outline: 2px solid var(--trim); outline-offset: 3px; }
main { padding: .95rem 1.1rem 1.5rem; min-width: 0; }
h1, h2 { margin: 0; line-height: 1.15; }
h1 { font-family: Georgia, serif; font-size: 2rem; }
.intro { margin: .3rem 0 1rem; }
.feed { display: grid; gap: .95rem; }
article, .archive, .about { border: 1px solid var(--rule); scroll-margin-top: .75rem; }
article:target, .archive:target, .about:target { border-color: var(--trim); }
.posthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .2rem .8rem;
  padding: .4rem .65rem;
  border-bottom: 1px solid var(--rule);
  background: var(--panel);
}
h2 { font-size: 1.19rem; }
.meta { color: var(--muted); }
.postbody { display: grid; grid-template-columns: minmax(10rem, 36%) minmax(0, 1fr); gap: .85rem; padding: .65rem; }
figure { margin: 0; }
.photo {
  aspect-ratio: 2 / 1;
  background: var(--slate) url(material-studies.png) no-repeat;
  background-size: 100% 300%;
  border: 1px solid var(--rule);
}
.plaster { background-position: center 50%; }
.archive-room { background-position: center 100%; }
figcaption { padding-top: .22rem; font-size: .8125rem; color: var(--muted); }
.postcopy p { margin: 0 0 .45rem; }
summary { width: fit-content; cursor: pointer; text-decoration: underline; font-size: .875rem; }
details p { margin-top: .5rem !important; }
.archive h2, .about h2 { padding: .4rem .65rem; border-bottom: 1px solid var(--rule); background: var(--panel); }
.archive ul, .about p { margin: .6rem .7rem; }
.archive ul { padding-left: 1.2rem; }
footer { display: flex; justify-content: space-between; padding: .5rem .75rem; background: var(--panel); border-top: 1px solid var(--rule); font-size: .875rem; }
@media (max-width: 630px) {
  .shell { width: calc(100% - 1rem); margin: .5rem auto; }
  .layout { display: block; }
  aside { border-right: 0; border-bottom: 1px solid var(--rule); padding: .55rem; }
  aside nav + nav, .nav-heading { display: none; }
  nav ul { display: flex; flex-wrap: wrap; }
  nav li + li { border-top: 0; }
  .palette-picker { margin-top: .55rem; }
  .palette-picker select { width: auto; }
  main { padding: .75rem; }
}
@media (max-width: 430px) { .postbody { grid-template-columns: 1fr; gap: .55rem; } }

.post-date {
  display: block;
  padding: 0 .65rem .5rem;
  text-align: right;
  font-size: .875rem;
  color: #50574b;
}

.post-preview { position: relative; }
.post-title { color: inherit; }
.post-title::after { content: ""; position: absolute; inset: 0; }
.post-title:focus-visible::after { outline: 2px solid var(--link); outline-offset: 2px; }
.post-tags a { position: relative; z-index: 1; }
.post-tags a + a, .tag-index a + a { margin-left: .7rem; }
.read-entry { color: var(--link); text-decoration: underline; font-size: .875rem; }
.breadcrumb { border: 0; background: none; padding: 0 0 .6rem; font-size: .875rem; }
.entry { border: 0; padding: 0; }
.entry h1 { border-bottom: 1px solid var(--rule); padding-bottom: .4rem; }
.entry p { margin: .9rem 0; max-width: 70ch; }
.entry figure { max-width: 46rem; margin: 1rem 0; }
.inline-image { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); }
.entry-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 1px solid var(--rule); padding-top: .6rem; font-size: .875rem; }
.entry-meta .post-date { margin-left: auto; padding-right: 0; }
.postbody.no-cover { grid-template-columns: 1fr; }
