/* Layout and pieces. One centered column, no decoration for its own sake. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.skip {
  position: absolute;
  left: 0.4rem;
  top: 0.4rem;
  padding: 0.15rem 0.4rem;
  background: #fff;
  border: 1px solid #1a1714;
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1.35rem 2.5rem;
}

.mast {
  text-align: center;
  margin-bottom: 0.4rem;
}

.sitename {
  font-family: "Times New Roman", Times, serif;
  font-size: 1.85rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0;
  color: #1a1714;
  border: 0;
  font-variant: normal;
}

.sitename a,
.sitename a:visited,
.sitename a:hover,
.sitename a:focus {
  color: inherit;
  background: transparent;
  text-decoration: none;
}

.sitename img {
  display: block;
  width: min(100%, 26rem);
  height: auto;
  margin: 0.1rem auto 0.15rem;
}

.tagline {
  margin: 0.15rem 0 0.35rem;
  font-style: italic;
  color: #3a342c;
  text-align: center;
}

.ornament {
  margin: 0.15rem 0 0.45rem;
  text-align: center;
  color: #5c564c;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}

.nav {
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.75;
  margin: 0.15rem 0 0.2rem;
}

.sep {
  color: #8a8174;
  padding: 0 0.2rem;
}

.nav a[aria-current="page"] {
  font-weight: bold;
  color: #1a1714;
}

.nav a[aria-current="page"]:visited {
  color: #1a1714;
}

hr {
  border: 0;
  border-top: 1px solid #c9bfae;
  margin: 1rem 0;
}

.intro {
  margin-top: 0.8rem;
}

.now {
  font-size: 0.86rem;
  color: #3a342c;
  line-height: 1.65;
}

.about-home {
  border: 1px dotted #6f675c;
  padding: 0.15rem 1rem 0.45rem;
  margin: 0.85rem 0 0.9rem;
}

.about-home h2 {
  margin-top: 0.45rem;
}

.unwritten {
  font-style: italic;
  color: #4e4943;
}

.meta, .crumbs, .sample-flag, .kind {
  font-size: 0.78rem;
  color: #4e4943;
}

.crumbs {
  margin: 0.7rem 0 0.35rem;
}

.sample-flag {
  margin: 0.45rem 0 0.15rem;
  font-style: italic;
}

.tags {
  font-size: 0.84rem;
  margin: 0.3rem 0;
}

.tags a {
  margin-right: 0.45rem;
  white-space: nowrap;
}

.status {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #1a1714;
  border-bottom: 1px dotted #6f675c;
}

.abstract {
  font-style: italic;
  color: #2c2824;
}

.poem {
  margin: 0.85rem 0;
  line-height: 1.45;
}

.poem p {
  margin: 0 0 0.75rem;
}

.index, .log, .manage, .names {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.names {
  margin: 0.35rem 0 0.9rem;
}

.names li {
  margin: 0;
  line-height: 1.55;
}

.index > li, .log > li, .manage > li {
  margin: 0 0 0.45rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px dotted #c9bfae;
}

.index time, .log time, .manage time {
  display: inline-block;
  min-width: 7.6rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
  color: #4e4943;
}

.desc {
  margin: 0.15rem 0;
}

.toc {
  border: 1px dotted #6f675c;
  padding: 0.35rem 0.85rem 0.55rem;
  margin: 0.8rem 0 1rem;
}

.toc p {
  margin: 0.2rem 0 0.15rem;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-family: "Times New Roman", Times, serif;
}

.toc ol {
  margin: 0.2rem 0 0.3rem;
}

.footnotes {
  margin-top: 1.2rem;
}

.footnotes ol {
  padding-left: 1.3rem;
}

.entry + .entry {
  margin-top: 1.15rem;
}

/* Year headings and the related list on a writing or note. */
main:has(> .index) > h2,
main:has(.poem) h2,
main:has(.abstract) h2 {
  border-bottom: 1px solid #c9bfae;
  padding-bottom: 0.12rem;
}

.shelf-nav {
  margin: 0.3rem 0 0.7rem;
  line-height: 1.7;
}

.limitation {
  border: 1px solid #6f675c;
  background: #fffdf8;
  padding: 0.55rem 0.75rem;
  margin: 0.8rem 0 1rem;
}

.limitation p {
  margin: 0.35rem 0;
}

.admin-nav {
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

.admin-nav .sep {
  display: none;
}

.admin-nav a {
  display: inline-block;
  margin: 0 0.75rem 0.1rem 0;
}

form {
  margin: 0.4rem 0 0.6rem;
}

fieldset {
  border: 1px dotted #8a8174;
  margin: 0.7rem 0 1rem;
  padding: 0.35rem 0.85rem 0.85rem;
}

legend {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  padding: 0 0.3rem;
}

label {
  display: block;
  margin: 0.7rem 0 0.15rem;
}

input, textarea, select, button {
  font-family: "Times New Roman", Times, serif;
  font-size: 1rem;
  color: #1a1714;
  background: #fff;
}

input, textarea, select {
  display: block;
  width: 100%;
  max-width: 36rem;
  border: 1px solid #7a756c;
  padding: 0.18rem 0.35rem;
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
}

button {
  margin-top: 0.8rem;
  border: 1px solid #666;
  background: #efeae1;
  padding: 0.18rem 0.65rem;
}

button:disabled {
  color: #5c564e;
  background: #e6e0d6;
  border-color: #9a9388;
  cursor: not-allowed;
}

.field-hint {
  margin: 0.15rem 0 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  color: #4e4943;
}

.colophon {
  margin-top: 1.6rem;
  padding-top: 0.2rem;
  text-align: center;
  color: #3a342c;
  font-size: 0.95rem;
}

.colophon .ornament {
  margin-bottom: 0.2rem;
}

.footer-nav {
  line-height: 1.7;
}

.handmade {
  font-style: italic;
  font-size: 0.92rem;
  margin-bottom: 0;
}

.empty {
  font-style: italic;
  color: #4e4943;
}

h2:target,
h3:target,
.entry:target,
li:target,
.about-home:target,
.limitation:target {
  background: #fff6d8;
}
