/* Shared paper, typography, and printer's rules. */
:root { --journal-paper: #faf6eb; --journal-ink: #29231b; --journal-muted: #625a48; --journal-rule: #c9bea7; }
.masthead { width: 94%; font-size: clamp(30px, 5.5vw, 80px); line-height: 1.2; }
nav { width: 94%; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 14px 0 32px; font-size: 17px; }
nav a, nav a:visited { padding: 8px 0; text-decoration: none; }
nav a[aria-current="page"] { border-bottom: 2px solid #74634b; }
nav a:hover { text-underline-offset: 5px; }
.login-strip a, .login-strip a:visited { color: #fffef9; }
:focus-visible { outline: 2px solid #74634b; outline-offset: 4px; }
.section-heading { text-align: center; margin-bottom: 28px; }
.section-heading .eyebrow { margin: 0 0 10px; color: var(--journal-muted); font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; }
.section-heading h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(32px, 5vw, 44px); margin: 0; font-weight: 600; line-height: 1.2; }
.section-heading .deck { color: var(--journal-muted); font-size: 17px; font-style: italic; line-height: 1.6; margin: 16px auto 0; max-width: 520px; }
.floral-divider { display: block; width: 220px; max-width: 100%; height: 50px; margin: 12px auto 0; }
.journal-sheet { width: min(900px, 92%); background: var(--journal-paper); border: 1px solid #b9ae96; padding: clamp(22px, 5vw, 48px); margin: 0 0 36px; box-shadow: 0 5px 18px #392b1710; color: var(--journal-ink); }
.journal-sheet .empty-message { margin: 0; padding: 36px 12px; font-size: 18px; line-height: 1.7; color: var(--journal-muted); opacity: 1; }
.journal-sheet .woe-card, .journal-sheet .dump-card { background: transparent; border: 0; border-bottom: 1px solid var(--journal-rule); padding: 8px 0 28px; box-shadow: none; line-height: 1.7; overflow-wrap: anywhere; }
.journal-sheet .woe-card:last-child, .journal-sheet .dump-card:last-child { border-bottom: 0; padding-bottom: 0; }
.journal-sheet .woe-title, .journal-sheet .dump-title { line-height: 1.25; font-size: clamp(25px, 3.5vw, 32px); }
.journal-sheet .woe-title a { text-decoration: none; }
.journal-sheet .woe-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.journal-sheet .woe-meta, .journal-sheet .dump-meta { font-style: italic; color: var(--journal-muted); opacity: 1; }
.journal-sheet input, .journal-sheet select, .journal-sheet textarea { background: #fffdf7; color: var(--journal-ink); border: 1px solid #a99c82; border-radius: 2px; font: 16px Georgia, serif; max-width: 100%; }
.journal-sheet input, .journal-sheet select { min-height: 44px; }
.journal-sheet button { font-family: Georgia, serif; border-radius: 2px; min-height: 44px; }
.journal-sheet .search-controls { background: transparent; border: 0; border-top: 1px solid var(--journal-rule); border-bottom: 1px solid var(--journal-rule); border-radius: 0; padding: 20px 0; margin-bottom: 30px; justify-content: flex-start; }
.search-controls > div { min-width: 0; }
.journal-sheet .search-controls label { display: block; margin-bottom: 4px; font-size: 14px; color: var(--journal-muted); font-weight: normal; }
.journal-sheet .search-controls button, .journal-sheet #submitComment, .journal-sheet .save-btn { background: #3c3327; color: #fffdf7; }
.journal-sheet .snippet b { background: #e9ddbf; }
.essays-sheet .dump-card { font-size: 18px; }
.essays-sheet .dump-list { gap: 32px; }
.editorial-sheet { max-width: 800px; font-size: 18px; line-height: 1.75; }
.editorial-sheet .section-heading { border-bottom: 1px solid var(--journal-rule); padding-bottom: 26px; }
.editorial-sheet h2 { font-size: 27px; margin: 30px 0 8px; }
.editorial-sheet p { margin: 0 0 20px; }
.article-sheet { max-width: 800px; }
.article-return { display: inline-block; color: var(--journal-muted); font-size: 14px; margin-bottom: 30px; text-underline-offset: 4px; }
.article-sheet .woe-title { font-size: clamp(30px, 4.5vw, 44px); margin: 0 0 14px; }
.article-sheet .woe-meta { border-bottom: 1px solid var(--journal-rule); padding-bottom: 20px; margin-bottom: 26px; }
.article-sheet .woe-body { line-height: 1.8; overflow-wrap: anywhere; }
.article-sheet hr { border: 0; border-top: 1px solid var(--journal-rule); }
.article-sheet h2 { font-size: 28px; }
.article-sheet .comment { border-color: var(--journal-rule); line-height: 1.6; }
.article-sheet .comment-header { flex-wrap: wrap; gap: 8px; }
.article-sheet .comment-header .left { flex-wrap: wrap; }
.home-page .circle-wrapper { margin-top: 8px; width: min(600px, 92%); padding: 28px 20px; border-top: 3px double #74634b; border-bottom: 3px double #74634b; }
.home-page .circle-wrapper img { width: min(320px, 100%); height: auto; aspect-ratio: 1; border: 1px solid #74634b; padding: 5px; }
.home-page .headline-top, .home-page .headline-bottom { font-size: clamp(28px, 4vw, 42px); }
.home-page .read-link { margin-top: 28px; font-size: 19px; text-underline-offset: 5px; }
.footer-container { margin-top: auto; padding: 24px 20px 0; }
.footer-text { font-size: 12px; color: var(--journal-muted); }
@media (max-width: 640px) {
 nav { gap: 2px 18px; margin-bottom: 24px; font-size: 16px; }
 .journal-sheet .search-controls > div { flex: 1 1 140px; }
 .journal-sheet .search-controls input, .journal-sheet .search-controls select { width: 100%; }
 .editorial-sheet { font-size: 17px; }
 .login-strip { gap: 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .skeleton-line { animation: none; } }
.post-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; margin-bottom: 16px; }
.post-actions .delete-btn { position: static; border-radius: 2px; font-family: Georgia, serif; }
.edit-post { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border: 1px solid #74634b; text-underline-offset: 3px; }
.management-note { color: var(--journal-muted); line-height: 1.6; }
.post-editor fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.editor-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 20px; margin-top: 24px; }
.editor-actions button { float: none; margin: 0; }
.editor-actions a { text-underline-offset: 4px; }
.post-editor button:disabled { opacity: .6; cursor: wait; }
.archive-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--journal-rule); margin-top: 28px; padding-top: 20px; }
.archive-pagination[hidden] { display: none; }
.archive-pagination button { padding: 10px 14px; background: transparent; color: var(--journal-ink); border: 1px solid #a99c82; cursor: pointer; }
.archive-pagination button:disabled { opacity: .45; cursor: default; }
.archive-status { color: var(--journal-muted); font-size: 14px; }

/* Small printer's ornaments and the town dateline. */
.journal-dateline { text-align:center; font-size:12px; letter-spacing:.07em; margin:8px 16px 14px; text-transform:uppercase; }
.archive-feature, .pressroom { box-sizing:border-box; width:min(720px,90%); margin:36px auto; padding:24px 30px; border-top:3px double #514536; border-bottom:1px solid #514536; background:#faf6eccc; }
.archive-feature h2, .pressroom h2 { font-family:Georgia,serif; font-size:28px; margin:12px 0; }
.archive-feature p, .pressroom p { line-height:1.6; }
.archive-feature[hidden] { display:none; }
.letters-intro { font-style:italic; color:#625744; }
.comment { padding:20px 0; border-bottom:1px solid #b9ad96; }
.comment-header .left { flex-wrap:wrap; }
.comment-text { display:block; white-space:pre-wrap; line-height:1.7; margin-top:12px; }
.comment .icon-btn { width:auto; padding:0 8px; color:#463a2c; text-decoration:underline; font-family:inherit; }
.article-sheet .save-btn, .article-sheet .cancel-btn { background:#453b30; color:#fffaf0; font-family:inherit; border-radius:0; }
.edition-tools { width:min(1100px,92%); text-align:center; margin:0 auto 28px; }
.edition-tools button, .draft-tools button, .pressroom button { font:inherit; background:transparent; color:#463a2c; border:1px solid #88785e; padding:10px 14px; cursor:pointer; }
.draft-tools { border-top:1px solid #b9ad96; margin:20px 0 0; padding-top:12px; font-size:14px; }
.draft-tools p { line-height:1.5; }
.pressroom .attention { border-left:3px solid #80512c; padding-left:12px; }
@media(max-width:640px) { .journal-dateline { font-size:10px; } .comment-header { flex-wrap:wrap; } .archive-feature,.pressroom { padding:20px; } }
@media print {
  @page { margin:15mm; }
  body { display:block !important; background:white !important; color:black !important; padding:0 !important; }
  body > .masthead, .journal-dateline, nav, .login-strip, .footer-container, .edition-tools, .issue-nav, .column-sources { display:none !important; }
  #frontPage { width:100%; max-width:none; margin:0; padding:0; border:0; box-shadow:none; background:white; }
  #frontPage .paper-masthead { font-size:32px; }
  #frontPage .society-column { max-width:none; }
  #frontPage p { font-size:11pt; line-height:1.5; }
  #frontPage .article { break-inside:avoid; }
  #frontPage a { color:black; }
  .editor-signature { break-before:avoid; }
}

/* Letterpress-inspired editorial: a bold headline and a true flowing lead. */
.society-column > h2 { font-size:clamp(30px,4.6vw,48px); font-weight:900; line-height:1.04; text-transform:uppercase; letter-spacing:-.025em; max-width:760px; margin:14px auto 20px; padding-bottom:18px; border-bottom:3px double #74634b; }
.society-column .column-kicker { letter-spacing:.28em; font-weight:bold; margin-top:24px; }
.society-column .column-opening { max-width:760px; column-count:2; column-gap:32px; column-rule:1px solid #b8aa8d; text-align:justify; hyphens:auto; font-size:18px; line-height:1.5; margin:20px auto; }
.column-opening::first-letter { float:left; font-family:"Playfair Display",Georgia,serif; font-size:5em; font-weight:600; line-height:.8; margin:6px 8px 0 0; }
.society-column .quiet-column { column-count:1; max-width:620px; }
@media(max-width:640px) { .society-column .column-opening { column-count:1; text-align:left; font-size:17px; } .society-column .column-kicker { letter-spacing:.16em; } }
@media print { .society-column .column-opening { column-count:2; text-align:justify; } .society-column .quiet-column { column-count:1; } .society-column > h2 { font-size:28pt; } .ribbon { background:white !important; color:black !important; border:1px solid black; } }
@media print {
  body { background:#faf7ef !important; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
  #frontPage { background-color:#faf7ef; background-image:repeating-linear-gradient(0deg,transparent,transparent 3px,rgba(116,99,75,.018) 4px); padding:8mm; box-sizing:border-box; }
  #frontPage .opinion-read { display:none !important; }
  .ribbon { background:transparent !important; }
}

/* The private writing rooms use the same paper and rules as the public journal. */
.user-page { color:var(--journal-ink); }
.user-page .post-editor { width:min(780px,92%); padding:clamp(24px,5vw,48px); background:var(--journal-paper); border:1px solid #b9ae96; box-shadow:0 5px 18px #392b1710; }
.user-page .post-editor h2, .management-sheet > h2, .dashboard-sheet > h1 { text-align:center; font-family:"Playfair Display",Georgia,serif; font-size:clamp(30px,4vw,42px); line-height:1.2; margin:12px 0 18px; }
.user-page .column-kicker { text-align:center; text-transform:uppercase; font-size:11px; letter-spacing:.2em; color:var(--journal-muted); }
.user-page .post-editor label { color:var(--journal-muted); font-size:15px; font-weight:normal; margin-top:24px; }
.user-page .post-editor input, .user-page .post-editor textarea { border-radius:0; background:#fffdf7; border:1px solid #b9ae96; line-height:1.65; }
.user-page .post-editor textarea { min-height:240px; }
.user-page .post-editor #submitBtn { background:#3c3327; color:#fffdf7; border-radius:0; font:16px Georgia,serif; padding:12px 22px; }
.user-page .draft-tools { display:flow-root; }
.user-page .draft-tools button { float:none; margin:0; border-radius:0; min-height:44px; }
.management-sheet .management-note { text-align:center; font-style:italic; padding-bottom:24px; border-bottom:3px double var(--journal-rule); }
.management-sheet .post-actions { margin:22px 0 14px; }
.management-sheet .delete-btn { background:transparent; color:#803b31; border:1px solid #aa8173; box-shadow:none; border-radius:0; }
.management-sheet .edit-post { background:transparent; border-color:var(--journal-rule); border-radius:0; }
.dashboard-sheet { max-width:900px; }
.user-page .banner { width:100%; height:240px; border:1px solid var(--journal-rule); box-shadow:none; margin:24px 0; filter:sepia(.15); }
.user-page .welcome { text-align:center; font:italic 18px Georgia,serif; color:var(--journal-muted); margin:24px 0; }
.user-page .actions { display:grid; grid-template-columns:1fr 1fr; gap:0; border-top:3px double var(--journal-rule); border-bottom:3px double var(--journal-rule); margin:28px 0; padding:24px 0; }
.user-page .action-block { padding:0 20px; }
.user-page .action-block + .action-block { border-left:1px solid var(--journal-rule); }
.user-page .card { background:transparent; border:0; box-shadow:none; padding:14px 8px; font-size:25px; color:var(--journal-ink); text-decoration:none; line-height:1.3; }
.user-page .card:hover { transform:none; text-decoration:underline; text-underline-offset:5px; }
.user-page .edit-link { margin:8px 0; text-align:center; }
.user-page .pressroom { width:100%; margin:28px 0 0; padding:24px 0 0; border:0; background:transparent; }
.user-page .pressroom h2 { text-align:center; }
@media(max-width:640px) { .user-page .banner { height:170px; } .user-page .actions { grid-template-columns:1fr; } .user-page .action-block { padding:16px 0; } .user-page .action-block + .action-block { border-left:0; border-top:1px solid var(--journal-rule); } .management-sheet .post-actions { justify-content:flex-start; } }
@media print {
  @page { size:letter; margin:0; }
  html { background:#faf7ef !important; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
  body { margin:0 !important; min-height:279mm; }
  #frontPage { min-height:279mm; padding:15mm; }
}
.save-confirmation, .undo-notice { border-top:3px double var(--journal-rule); border-bottom:1px solid var(--journal-rule); background:#f1ead8; padding:18px; margin:22px 0; line-height:1.6; }
.save-confirmation[hidden] { display:none; }
.save-confirmation h3 { font:26px Georgia,serif; margin:0 0 12px; }
.undo-notice { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.undo-notice button { font:16px Georgia,serif; min-height:44px; padding:8px 18px; background:#3c3327; color:#fffdf7; border:0; cursor:pointer; }
.journal-sheet .date-controls { align-items:flex-end; }
.journal-sheet .date-controls input, .journal-sheet .date-controls button { height:44px; }

.journal-sheet .search-controls { align-items:flex-end; }
.journal-sheet .search-controls input, .journal-sheet .search-controls select, .journal-sheet .search-controls button { box-sizing:border-box; height:44px; }

/* Paint the document canvas too, including Safari's exposed viewport edges. */
@media screen {
  html { background:#f8f5ee url("woestreetbg.jpg") center top / cover no-repeat; min-height:100%; }
  body { padding-left:env(safe-area-inset-left,0px); padding-right:env(safe-area-inset-right,0px); }
}
/* Keep content clear of the notch while extending paper to the screen edges. */
@media screen and (max-width:640px) {
  body { padding-top:max(8px,env(safe-area-inset-top,0px)); padding-bottom:env(safe-area-inset-bottom,0px); min-height:100dvh; background-attachment:scroll; }
  body.has-login-strip { padding-top:0; }
  body .login-strip { position:static; flex-wrap:wrap; margin-bottom:10px; padding-top:max(8px,env(safe-area-inset-top,0px)); }
  body > .masthead { font-size:clamp(27px,7.5vw,36px); line-height:1.12; letter-spacing:.3px; }
  .journal-dateline { margin:8px 12px 4px; line-height:1.5; }
  body > nav { gap:0 16px; margin:8px 0 16px; font-size:16px; }
  body > nav a { display:inline-flex; align-items:center; min-height:44px; padding:6px 0; }
  .home-page .circle-wrapper { margin-top:0; padding:20px 16px; }
  /* Keep "In Sorrow, [image] We Find Solidarity" reading as one line of
     sight instead of three separate mobile screens of scrolling. */
  .home-page .circle-wrapper img { width: min(200px, 55vw); }
  .home-page .headline-top, .home-page .headline-bottom { font-size: clamp(22px, 6vw, 28px); }
  /* Override the desktop auto-margin, which stretches the footer flush to
     the bottom of a 100dvh body — now that the hero above is shorter on
     mobile, that stretch reads as a big dead gap rather than a pinned
     footer. */
  .footer-container { margin-top:40px; margin-bottom:16px; padding-top:20px; }
}

.user-page .post-editor select { width:100%; min-height:44px; padding:10px 12px; font:16px Georgia,serif; border:1px solid #b9ae96; border-radius:0; background:#fffdf7; color:var(--journal-ink); }

.archive-filters > div { flex:1 1 180px; }
.archive-filters input, .archive-filters select { width:100%; max-width:100%; }
.archive-filters > div:has(#categorySelect) { flex-basis:250px; }
@media(max-width:640px) { .archive-filters > div { flex-basis:100%; } .archive-filters > button { width:100%; } }

.user-page .post-editor .category-help { padding-left:18px; margin:12px 0 0; font-size:14px; line-height:1.5; color:var(--journal-muted); }

.category-help li { margin:4px 0; }

.opinion-article { margin:28px auto; padding-bottom:24px; border-bottom:1px solid var(--journal-rule); max-width:760px; }
.opinion-body { white-space:pre-wrap; overflow-wrap:anywhere; column-count:2; column-gap:32px; column-rule:1px solid #b8aa8d; font-size:18px; line-height:1.6; text-align:justify; hyphens:auto; margin-top:16px; }
.opinion-body::first-letter { float:left; font:600 4em/.85 "Playfair Display",Georgia,serif; margin:6px 8px 0 0; }
@media screen and (max-width:640px) { .opinion-body { column-count:1; text-align:left; font-size:17px; } }
@media print { .opinion-article { break-inside:auto; } .opinion-article h3, .opinion-article .byline { break-after:avoid; } .opinion-body { orphans:3; widows:3; } }

@media screen and (max-width:640px) {
  .journal-sheet .date-controls { display:grid; grid-template-columns:minmax(0,1fr); align-items:stretch; gap:12px; }
  .journal-sheet .date-controls > div { min-width:0; }
  .journal-sheet .date-controls input { display:block; appearance:none; -webkit-appearance:none; width:100%; max-width:100%; min-width:0; height:44px; line-height:42px; margin:0; padding:0 10px; box-sizing:border-box; }
  .journal-sheet .date-controls input::-webkit-date-and-time-value { display:flex; align-items:center; justify-content:center; min-width:0; height:42px; line-height:42px; text-align:center; margin:0; padding:0; }
  .journal-sheet .date-controls button { width:100%; margin:0; }
}
