:root {
  --ink: #101010;
  --muted: #5e5c59;
  --line: #d6d4d1;
  --paper: #faf9f7;
  --wash: #eeece8;
  --verse: 1.125rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { opacity: .72; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }
.progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 2px;
  width: 0;
  background: #111;
  z-index: 30;
  pointer-events: none;
}
.wrap { position: relative; z-index: 1; max-width: 1120px; margin: auto; padding: 0 clamp(16px, 4vw, 40px); }
.atmosphere {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  min-height: 68px;
  padding: 8px 0;
  background: rgba(250, 249, 247, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
header.site.is-stuck { border-bottom-color: var(--line); }
.logo { font-size: 1.7rem; font-weight: 700; letter-spacing: -1px; text-decoration: none; }
.reading {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
nav { display: flex; gap: 4px 16px; align-items: center; flex-wrap: nowrap; justify-content: flex-end; }
nav a, .eyebrow, .btn, .micro, .tool, .textlink {
  font-family: Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}
nav a { letter-spacing: .08em; font-size: 10px; min-height: 44px; display: inline-flex; align-items: center; }
nav a[aria-current="true"] { border-bottom: 2px solid; padding-bottom: 4px; }
.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #999;
  background: transparent;
  font: 600 11px Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.hero {
  display: grid;
  grid-template-columns: minmax(200px, 38%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(16px, 3vw, 36px) 0 clamp(8px, 2vw, 20px);
}
.book-stage {
  position: relative;
  perspective: 1400px;
  min-height: 0;
  padding: clamp(48px, 8vw, 84px) clamp(18px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.live-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.book {
  width: min(70%, 250px);
  position: relative;
  z-index: 1;
  background: #fff;
  transform: rotateY(-26deg) rotateX(7deg);
  transform-style: preserve-3d;
  filter: drop-shadow(-22px 26px 16px rgba(0, 0, 0, .22));
  animation: settle .8s ease both;
  transition: transform .5s ease, filter .5s ease;
}
.book:hover, .book:focus-within {
  animation: none;
  transform: rotateY(-12deg) rotateX(3deg) translateY(-8px);
  filter: drop-shadow(-12px 30px 18px rgba(0, 0, 0, .26));
}
.book:after {
  content: "";
  position: absolute;
  top: 3%;
  bottom: 3%;
  left: calc(100% - 2px);
  width: 14px;
  background:
    repeating-linear-gradient(90deg, #f7f5f2 0 2px, #e4e0da 2px 3px),
    linear-gradient(90deg, #8f8a82, #f7f5f2 18%, #cfc9c0);
  pointer-events: none;
}
.cover-frame { display: block; position: relative; overflow: hidden; }
.book img { width: 100%; display: block; box-shadow: 3px 1px 3px #ddd; cursor: zoom-in; }
.book-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, .55) 48%, transparent 64%);
  transform: translateX(-130%);
  pointer-events: none;
}
.book:hover .book-shine, .book:focus-within .book-shine { animation: bookShine .9s ease; }
.book:before {
  content: "A Carpenter’s Songs";
  position: absolute;
  right: 100%;
  top: 0;
  height: 100%;
  width: 16px;
  background: linear-gradient(90deg, #d7d5d1, #f6f5f3);
  transform-origin: right;
  transform: rotateY(-85deg);
  writing-mode: vertical-rl;
  text-align: center;
  font-size: 10px;
  letter-spacing: 1px;
  padding-top: 12px;
}
.spine, .book:before { display: none; }
.search-label { border: 0; padding: 0; }
.eyebrow { letter-spacing: .18em; color: var(--muted); }
.hero-copy { min-width: 0; }
h1 {
  overflow-wrap: anywhere;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  font-weight: 700;
}
.hero-sub { font-size: clamp(22px, 2.4vw, 32px); font-style: italic; margin: 0 0 16px; }
.rule { width: 46px; height: 1px; background: #888; margin: 0 0 22px; }
.crossout {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.7;
  color: #666;
  max-width: 40rem;
  margin: 0 0 14px;
}
.crossout s { white-space: nowrap; }
.crossout s { text-decoration-thickness: 1.4px; text-decoration-color: #555; }
.lead { font-size: 17px; line-height: 1.55; max-width: 38rem; margin: 0 0 24px; }
.buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #999;
  background: transparent;
  cursor: pointer;
}
.btn.black { background: #0d0d0d; color: #fff; border-color: #0d0d0d; }
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 16px 20px;
  margin: clamp(24px, 4vw, 40px) 0 clamp(16px, 3vw, 28px);
}
.pillar { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 4px 0; }
.symbol { flex: 0 0 auto; font-size: 26px; line-height: 1; }
.micro { min-width: 0; line-height: 1.45; letter-spacing: .08em; font-size: 11px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 28px 20px;
  align-items: start;
}
.gallery figure { display: flex; flex-direction: column; gap: 10px; margin: 0; min-width: 0; background: transparent; }
.gallery img, .poem img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: grayscale(1);
  cursor: zoom-in;
}
.gallery figcaption { display: grid; gap: 2px; font-size: 14px; line-height: 1.4; color: #333; }
.gallery.masonry { display: block; columns: 280px; column-gap: 28px; }
.gallery.masonry figure { display: inline-block; width: 100%; break-inside: avoid; margin: 0 0 28px; }
.gallery figcaption strong { font-size: 17px; color: #111; font-weight: 600; }
.gallery.portraits { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.gallery.portraits img { object-fit: contain; }
.gallery-link { text-align: right; padding: 8px 0 4px; }
.textlink { border-bottom: 1px solid; padding-bottom: 6px; }
.feature, .section { border-top: 1px solid var(--line); }
.feature {
  padding: clamp(36px, 6vw, 72px) 0;
  display: block;
}
.feature h2, .section h2 {
  overflow-wrap: anywhere;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 8px 0 16px;
}
.feature p, .section .intro { font-size: clamp(17px, 2vw, 20px); line-height: 1.6; max-width: 42rem; }
.feature .right { border: 0; padding: 8px 0 0; }
.section { padding: clamp(36px, 6vw, 72px) 0; }
.photo-note { color: #555; font-size: 15px; }
.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 8px 0 28px;
}
.tools input {
  flex: 1 1 180px;
  min-height: 44px;
  border: 1px solid #bbb;
  background: #fff;
  padding: 0 12px;
  font: 16px Georgia, serif;
}
.tool {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid #999;
  background: transparent;
  cursor: pointer;
  padding: 0 12px;
}
.archive { display: grid; gap: 0; }
.piece { border-top: 1px solid var(--line); }
.piece summary {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}
.piece summary::-webkit-details-marker { display: none; }
.piece summary h3 { flex: 1 1 auto; min-width: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 0; }
.piece-body { padding-bottom: 28px; max-width: 42rem; }
.piece .dek { font-style: italic; }
.piece .byline { color: #555; font-size: 15px; }
.piece .prose p { font-size: 18px; line-height: 1.65; }
.contact-form { display: grid; gap: 14px; max-width: 36rem; margin-top: 8px; }
.contact-form label { display: grid; gap: 6px; font: 600 11px Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid #bbb;
  background: #fff;
  padding: 10px 12px;
  font: 16px Georgia, serif;
}
.contact-form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
details:not([open]) > :not(summary) { display: none !important; }
.poems { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 8px 48px; align-items: start; }
.poem, .piece { min-width: 0; }
.poem { border-top: 1px solid var(--line); }
.poem summary {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}
.poem summary::-webkit-details-marker { display: none; }
.poem summary:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .6s cubic-bezier(.19, 1, .22, 1);
}
.poem.is-reading summary:after { transform: scaleX(1); }
.poem summary h3 { flex: 1 1 auto; min-width: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 0; transition: transform .45s cubic-bezier(.19, 1, .22, 1); }
.poem.is-reading summary h3 { transform: translateX(6px); }
.read-toggle {
  flex: 0 0 auto;
  margin-top: 6px;
  font: 600 11px Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: letter-spacing .4s ease;
}
.poem.is-reading .read-toggle { letter-spacing: .22em; }
.poem-body { padding: 0; margin: 0; }
.poem.is-reading .poem-body { margin-bottom: 28px; }
.verse { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--verse); line-height: 1.6; }
.verse .line { display: block; }
.poem.is-reading .verse .line {
  animation: lineIn .7s cubic-bezier(.19, 1, .22, 1) both;
  animation-delay: calc(var(--i) * 46ms);
}
.poem.is-reading .poem-body > img {
  animation: lineIn .8s cubic-bezier(.19, 1, .22, 1) both;
}
.poem img { width: min(100%, 420px); height: auto; max-height: 320px; object-fit: contain; margin: 8px 0 16px; cursor: zoom-in; }
.empty { display: none; color: var(--muted); }
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 28px; }
.links a { display: flex; align-items: center; border-top: 1px solid #aaa; padding: 16px 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.3; text-decoration: none; min-height: 52px; }
footer {
  border-top: 1px solid #ddd;
  padding: 28px 0 18px;
  color: #555;
  font: 12px Arial, sans-serif;
}
footer .host { display: block; margin-top: 10px; color: #7a766f; }
.staff {
  display: block;
  width: fit-content;
  margin: 48px auto 28px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #c4c0b8;
  font: 10px Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.staff:hover { color: #7a766f; }
.admin-page { padding: 48px 0 80px; }
.admin-page h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 500; letter-spacing: -.03em; margin: 8px 0 12px; }
.admin-lead { color: var(--muted); max-width: 38rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; margin: 28px 0; }
.stat { border-top: 1px solid var(--line); padding-top: 14px; }
.stat b { display: block; font-size: 36px; font-weight: 500; letter-spacing: -.03em; }
.stat span, .admin-page .eyebrow { font: 600 11px Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.admin-page { max-width: 100%; overflow-x: auto; }
.admin-table { width: 100%; min-width: 640px; border-collapse: collapse; font: 13px Arial, sans-serif; margin: 8px 0 36px; }
.admin-table th, .admin-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 8px 8px 0; vertical-align: top; }
.admin-form { display: grid; gap: 10px; max-width: 26rem; margin-top: 12px; }
.admin-form label { font: 600 11px Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.admin-form input {
  min-height: 44px;
  border: 1px solid #999;
  background: transparent;
  padding: 0 12px;
  font: 16px Georgia, serif;
}
.admin-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 18px 0 36px; }
.message-list { display: grid; gap: 22px; }
.message { border-top: 1px solid var(--line); padding-top: 16px; }
.message .meta { font: 13px Arial, sans-serif; color: var(--muted); }
.message .meta b { color: var(--ink); font-weight: 600; }
.message .body { white-space: pre-wrap; font-size: 18px; line-height: 1.55; max-width: 42rem; }
.notice { border-top: 1px solid var(--line); padding-top: 12px; }
body.is-light { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 16, 16, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 64px 24px 72px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox img {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: min(920px, calc(100vw - 64px));
  max-height: min(78vh, calc(100vh - 140px));
  object-fit: contain;
  filter: grayscale(1);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .4);
  transform: translateY(16px) scale(.92);
  transition: transform .42s cubic-bezier(.19, 1, .22, 1);
}
.lightbox.is-open img { transform: translateY(0) scale(1); }
.lightbox.is-color img { filter: none; }
.lightbox img:not([src]) { display: none; }
.light-caption {
  position: absolute;
  left: 24px;
  right: 96px;
  bottom: 20px;
  margin: 0;
  color: #f4f1ea;
  font: italic 16px Georgia, serif;
}
.lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  min-width: 44px;
  min-height: 44px;
  background: #fff;
  border: 0;
  cursor: pointer;
  font: 600 12px Arial, sans-serif;
}
@keyframes settle {
  from { opacity: 0; transform: rotateY(-40deg) rotateX(10deg) translateY(12px); }
  to { opacity: 1; transform: rotateY(-26deg) rotateX(7deg); }
}
@keyframes bookShine {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}
@keyframes lineIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 1280px) {
  .reading { display: none; }
}
@media (max-width: 1120px) {
  .reading { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .06);
    padding: 4px 0 8px;
  }
  header.site.is-open nav { display: flex; }
  nav a { min-height: 48px; border-bottom: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; }
  .book-stage { padding: 36px 16px 24px; }
  .book { width: min(68%, 230px); }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .atmosphere, .live-art, .book-shine { display: none; }
  .book, .book:hover, .book:focus-within, .gallery img, .lightbox, .lightbox img,
  .poem summary:after, .poem summary h3, .read-toggle, .poem.is-reading .verse .line, .poem.is-reading .poem-body > img {
    animation: none;
    transition: none;
  }
}
.editor-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 22px;
  background: rgba(250, 249, 247, .96);
  border-bottom: 1px solid var(--line);
}
.editor-bar .logo { font-size: 18px; text-decoration: none; }
.editor-status { margin: 4px 0 0; color: var(--muted); font: 13px Arial, sans-serif; }
.editor-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.editor-actions form { margin: 0; }
.editor-main { max-width: 920px; margin: 0 auto; padding: 22px 22px 80px; }
.editor-card, .editor-row {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px;
  margin: 0 0 12px;
}
.card-head, .editor-row { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.card-head h2, .editor-body h3 { margin: 8px 0; font-size: 22px; font-weight: 500; }
.editor-field { display: grid; gap: 4px; flex: 1 1 180px; margin: 0 0 10px; }
.editor-field span, .editor-card summary { font: 600 11px Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.editor-field input, .editor-field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #999;
  background: transparent;
  padding: 8px 12px;
  font: 16px Georgia, serif;
}
.editor-field textarea { min-height: 0; resize: vertical; }
.handle {
  min-width: 64px;
  min-height: 44px;
  border: 1px solid #999;
  background: var(--wash);
  cursor: grab;
  font: 600 11px Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.editor-card.is-over, .editor-row.is-over, .dropzone.is-over { outline: 2px solid #111; }
.dropzone {
  min-height: 120px;
  border: 1px dashed #b7b3ac;
  background: var(--wash);
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font: 12px Arial, sans-serif;
  color: var(--muted);
}
.dropzone img { max-width: 180px; max-height: 140px; object-fit: cover; }
.editor-photo { flex: 1 1 220px; }
.editor-stack { flex: 1 1 280px; }
.editor-checks { display: flex; gap: 12px; align-items: center; min-height: 44px; }
.editor-check { display: flex; gap: 6px; align-items: center; font: 13px Arial, sans-serif; }
.text-button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #666;
  cursor: pointer;
  font: 12px Arial, sans-serif;
  text-decoration: underline;
}
.editor-add { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 18px; }
.editor-card details { margin-top: 8px; }
.poem-row { align-items: stretch; }
@media (max-width: 1040px) {
  .editor-bar { align-items: stretch; flex-direction: column; }
}
@media print {
  .progress, header.site, .buttons, .tools, .pillars, .gallery, .lightbox, footer, .staff, .atmosphere, .live-art { display: none !important; }
  .poems { display: block; }
  .poem { break-inside: avoid; margin-bottom: 2rem; }
  .poem.is-reading .verse .line, .poem.is-reading .poem-body > img { animation: none; }
  body { background: #fff; }
}
