:root {
  color-scheme: light dark;
  --bg: #EFE2D0;
  --text: #2f2a25;
  --muted: #665f57;
  --border: #d8cbb8;
  --link-underline: color-mix(in oklab, var(--text), transparent 45%);
  --card-bg: rgba(255, 255, 255, 0.52);
  --note-bg: rgba(255, 255, 255, 0.45);
  --card-shadow: 0 8px 20px rgba(71, 56, 38, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
  font-family: "Libre Baskerville", Georgia, serif;
}

a {
  color: inherit;
  position: relative;
  z-index: 0;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
  text-decoration-color: var(--link-underline);
}

a::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0.02em;
  height: 1.05em;
  background: url("./highlights/light-yellow.svg") center / 100% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}


main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: min(760px, 92vw);
  margin: 0 auto;
  padding: 6rem 0 3rem;
}

main > h1 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.15;
}

.meta {
  color: var(--muted);
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.content-block {
  margin-top: 3rem;
  line-height: 1.9;
  font-size: 1.07rem;
}

main > h1 + .content-block {
  margin-top: 4.5rem;
}

.content-block p {
  margin: 0.2rem 0 0.75rem;
}

.content-block .poetry-line {
  --poetry-cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--poetry-cols), minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.2rem 0 0.75rem;
  align-items: baseline;
}

.content-block .poetry-segment {
  min-width: 0;
}

.content-block .poetry-left {
  justify-self: start;
  text-align: left;
}

.content-block .poetry-center {
  justify-self: center;
  text-align: center;
}

.content-block .poetry-right {
  justify-self: end;
  text-align: right;
}

.content-block h1,
.content-block h2,
.content-block h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin: 1.1rem 0 0.6rem;
  line-height: 1.2;
}

.content-block h1 { font-size: 2.1rem; }
.content-block h2 { font-size: 1.75rem; }
.content-block h3 { font-size: 1.45rem; }

.empty {
  color: var(--muted);
  margin: 1rem 0 0;
}

main > .empty:only-child {
  margin: auto;
  text-align: center;
}


.about-kicker {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-intro {
  margin: 0.9rem 0 0;
  max-width: 64ch;
  line-height: 1.8;
  color: var(--muted);
}

.about-intro,
.about-card p,
.about-notes p {
  line-height: 1.8;
}

.about-grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
  padding: 1rem 1rem 1.05rem;
  box-shadow: var(--card-shadow);
}

.about-card h2 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.3;
}

.about-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.about-notes {
  margin-top: 1.3rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.05rem 1rem 1.1rem;
  background: var(--note-bg);
}

.about-notes h2 {
  margin: 0;
  font-size: 1.08rem;
}

.about-notes p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.archive-list {
  margin: 0;
}

.archive-tree {
  margin-top: 0;
}

.archive-tree details {
  margin: 0;
}

.archive-year + .archive-year {
  margin-top: 0.45rem;
}

.archive-tree summary {
  list-style: none;
  cursor: pointer;
}

.archive-tree summary::-webkit-details-marker {
  display: none;
}

.archive-year > summary {
  font-size: 1.5rem;
  line-height: 1.25;
  padding: 0.2rem 0;
}

.archive-year > summary::before {
  content: "+";
  display: inline-block;
  width: 1em;
  color: var(--muted);
}

.archive-year[open] > summary::before {
  content: "-";
}

.archive-months {
  margin-top: 0.2rem;
  margin-left: 1.1rem;
  padding-left: 0.7rem;
  border-left: 1px solid var(--border);
}

.archive-month + .archive-month {
  margin-top: 0.3rem;
}

.archive-month > summary {
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.35;
  padding: 0.2rem 0;
}

.archive-month > summary::before {
  content: "+";
  display: inline-block;
  width: 1em;
  color: var(--muted);
}

.archive-month[open] > summary::before {
  content: "-";
}

.archive-poems {
  list-style: none;
  margin: 0.25rem 0 0.35rem 1.05rem;
  padding: 0;
  display: grid;
  gap: 0.24rem;
}

.archive-poems li {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--muted);
}

.archive-poems .archive-day {
  min-width: 1.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.archive-poems a {
  color: var(--text);
}

.site-footer {
  margin-top: auto;
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem 2.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hand-highlight {
  margin: -2px -6px;
  padding: 2px 6px;
  border-radius: 0;
  background: transparent center / 100% 100% no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hand-highlight.hl-light-yellow { background-image: url("./highlights/light-yellow.svg"); }
.hand-highlight.hl-mimosa { background-image: url("./highlights/mimosa.svg"); }
.hand-highlight.hl-rose-gold { background-image: url("./highlights/rose-gold.svg"); }
.hand-highlight.hl-violet { background-image: url("./highlights/violet.svg"); }
.hand-highlight.hl-strawberry { background-image: url("./highlights/strawberry.svg"); }
.hand-highlight.hl-red-brown { background-image: url("./highlights/red-brown.svg"); }
.hand-highlight.hl-ecru { background-image: url("./highlights/ecru.svg"); }
.hand-highlight.hl-gray { background-image: url("./highlights/gray.svg"); }
.hand-highlight.hl-green { background-image: url("./highlights/green.svg"); }
.hand-highlight.hl-mint-green { background-image: url("./highlights/mint-green.svg"); }
.hand-highlight.hl-pink { background-image: url("./highlights/pink.svg"); }
.hand-highlight.hl-blue { background-image: url("./highlights/blue.svg"); }
.hand-highlight.hl-yellow { background-image: url("./highlights/mimosa.svg"); }

@media (max-width: 720px) {
  main > h1 {
    font-size: 2.3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .archive-months {
    margin-left: 0.7rem;
    padding-left: 0.55rem;
  }

  .archive-poems {
    margin-left: 0.8rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1711;
    --text: #ebe0d2;
    --muted: #c0b39f;
    --border: #584836;
    --link-underline: color-mix(in oklab, var(--text), transparent 35%);
    --card-bg: rgba(50, 40, 31, 0.72);
    --note-bg: rgba(42, 34, 26, 0.72);
    --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}
