/* Shared SVG texture assets; each component controls its own opacity. */
:root {
  --texture-01: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.68' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%23877e6c' opacity='.23' filter='url(%23grain)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}

/* Site styles. Preserve cascade order when editing; responsive and motion overrides
   remain next to their existing component revisions. */

:root {
  --bg:#e8e5de;
  --paper:#faf8ef;
  --ink:#33372f;
  --muted:#717369;
  --line:#aaa99c;
  --accent:#68724f;
  --wash:#efede3;
  --shadow:0 15px 40px #39362418;
  color-scheme:light;
}

html[data-mode=dark] {
  --bg:#1d1d1d;
  --paper:#2b2b2b;
  --ink:#e5e5e5;
  --muted:#b2b2b2;
  --line:#696969;
  --accent:#c7c7c7;
  --wash:#353535;
  --shadow:0 15px 40px #0003;
  color-scheme:dark;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:36px;
}

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:13px/1.65 'Courier New',monospace;
}

body:before {
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.15;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23888' opacity='.25' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}

a {
  color:inherit;
  text-decoration:none;
}

a:hover {
  color:var(--accent);
}

button,input,textarea,select {
  font:inherit;
  color:inherit;
}

button,a,input,select,summary {
  touch-action:manipulation;
}

button {
  cursor:pointer;
  background:none;
  border:1px solid var(--line);
  padding:9px 13px;
}

button:hover {
  background:var(--wash);
}

:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:4px;
}

.utility {
  padding:28px 42px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.wordmark span {
  letter-spacing:1.6px;
  font-size:10px;
  margin-left:14px;
}

/* Printed appearance choices, matching the site's archival controls. */
.appearance {
  display: flex;
  gap: 4px;
}
.appearance button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font: 10px/1.4 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  padding: 10px 6px;
}
.appearance button::before {
  content: '[ ]' / '';
  white-space: pre;
}
.appearance button[aria-pressed=true] {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}
.appearance button[aria-pressed=true]::before { content: '[x]' / ''; }
.appearance button:hover { color: var(--ink); background: transparent; }
.appearance button:focus-visible { outline: 1px dashed var(--ink); outline-offset: 2px; }

.receipt {
  position:relative;
  background:var(--paper);
  box-shadow:var(--shadow);
  max-width:420px;
  margin:31px auto 70px;
  padding:43px 38px 32px;
}

.receipt:after {
  content:'';
  position:absolute;
  left:0;
  right:0;
  bottom:-9px;
  height:10px;
  background:linear-gradient(135deg,var(--paper) 25%,transparent 25%) -5px 0/10px 10px,linear-gradient(225deg,var(--paper) 25%,transparent 25%) -5px 0/10px 10px;
}

.receipt-head {
  text-align:center;
}

.asterisk {
  font-size:34px;
  line-height:1;
  margin-bottom:22px;
}

.receipt h1 {
  margin:0 0 6px;
}

.smallcaps {
  font-size:10px;
  letter-spacing:1.8px;
  text-transform:uppercase;
}

.receipt-head .edition {
  font-size:10px;
  margin:22px 0 0;
  color:var(--muted);
  letter-spacing:.9px;
}

.rule {
  border:0;
  border-top:1px dashed var(--line);
  margin:25px 0;
}

.motto {
  text-align:center;
  font-size:23px;
  line-height:1.35;
  letter-spacing:.4px;
  margin:27px 0;
}

.section-label {
  color:var(--muted);
  font-size:10px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  margin-bottom:11px;
}

.directory a,.social a {
  display:flex;
  align-items:center;
  gap:16px;
  padding:10px 0;
}

.directory .num {
  font-size:11px;
  color:var(--muted);
}

.directory .arrow,.social .arrow {
  margin-left:auto;
}

.directory a:hover,.social a:hover {
  transform:translateX(3px);
}

.directory small {
  display:block;
  font:11px/1.4 Georgia,serif;
  font-style:italic;
  color:var(--muted);
}

.social a,.social-inactive {
  font-size:12px;
  padding:7px 0;
}

.social-inactive {
  display:flex;
  color:var(--muted);
}

.extras-inactive {
  display:flex;
  align-items:center;
  gap:16px;
  padding:10px 0;
  color:var(--muted);
}

.receipt-foot {
  text-align:center;
}

.receipt-foot .thanks {
  font-size:11px;
  letter-spacing:1.2px;
}

.receipt-foot p {
  font-size:10px;
  color:var(--muted);
}

.barcode {
  height:32px;
  width:154px;
  margin:21px auto 6px;
  opacity:.7;
  background:repeating-linear-gradient(90deg,var(--ink) 0 1px,transparent 1px 3px,var(--ink) 3px 5px,transparent 5px 7px,var(--ink) 7px 8px,transparent 8px 12px,var(--ink) 12px 15px,transparent 15px 17px);
}

.site-footer {
  display:flex;
  justify-content:space-between;
  margin:35px 42px 24px;
  font-size:9px;
  letter-spacing:1px;
  color:var(--muted);
}

.skip {
  position:absolute;
  left:20px;
  top:-100px;
}

.skip:focus {
  top:10px;
  background:var(--paper);
  padding:10px;
  z-index:10;
}

.page {
  max-width:1000px;
  margin:35px auto 90px;
  padding:0 30px;
}

.breadcrumbs {
  font-size:10px;
  letter-spacing:1px;
  color:var(--muted);
  margin-bottom:38px;
  text-transform:uppercase;
}
.breadcrumbs a:hover { color:var(--ink); text-decoration:underline; text-underline-offset:3px; }

.page h1 {
  font:normal 56px/1.1 Georgia,serif;
  letter-spacing:normal;
  margin:16px 0;
}

.intro {
  font:20px/1.6 Georgia,serif;
  color:var(--muted);
  max-width:580px;
}

.page-top {
  border-bottom:1px dashed var(--line);
  padding-bottom:25px;
  margin-bottom:25px;
}

.filters {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  margin:25px 0;
}

.filters input {
  flex:1;
  min-width:180px;
}

input,textarea,select {
  background:var(--paper);
  border:1px solid var(--line);
  padding:11px;
  width:100%;
  border-radius:0;
}

.filters select {
  width:auto;
}

.document-row {
  display:grid;
  grid-template-columns:55px 1fr 110px;
  gap:20px;
  padding:29px 0;
  border-bottom:1px dashed var(--line);
}

.document-row h2 {
  font:26px/1.25 Georgia,serif;
  margin:0 0 8px;
}

.document-row p {
  color:var(--muted);
  margin:0;
}

.document-row .ref {
  color:var(--muted);
  font-size:11px;
}

.document-row .end {
  text-align:right;
  font-size:10px;
}

.tag {
  font-size:9px;
  letter-spacing:1px;
  color:var(--accent);
  text-transform:uppercase;
}

.empty {
  padding:40px 0;
  font:20px/1.7 Georgia,serif;
}

.article-layout {
  max-width:1120px;
  margin:25px auto 80px;
  padding:0 30px;
  display:grid;
  grid-template-columns:190px minmax(0,740px);
  gap:50px;
}

.toc {
  position:sticky;
  top:35px;
  align-self:start;
  font-size:11px;
  padding-top:50px;
}

.toc a {
  display:block;
  padding:7px 0;
  color:var(--muted);
  border-left:1px solid var(--line);
  padding-left:14px;
}

.toc a.sub {
  padding-left:25px;
}

.toc a.active {
  color:var(--ink);
  border-color:var(--accent);
  font-weight:bold;
}

.article-paper {
  background:var(--paper);
  padding:45px 54px;
  box-shadow:var(--shadow);
}

.article-paper h1 {
  font:46px/1.1 Georgia,serif;
  letter-spacing:normal;
  margin:18px 0;
}

.subtitle {
  font:21px/1.5 Georgia,serif;
  color:var(--muted);
}

.metadata {
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  border-top:1px dashed var(--line);
  border-bottom:1px dashed var(--line);
  padding:13px 0;
  margin:25px 0;
  font-size:10px;
  text-transform:uppercase;
}

.cover {
  width:100%;
  aspect-ratio:1.8;
  object-fit:cover;
  margin:6px 0 22px;
}

.prose {
  font:19px/1.85 Georgia,serif;
  overflow-wrap:anywhere;
}

.prose p {
  margin:0 0 1.4em;
}

.prose h2 {
  font-size:29px;
  line-height:1.3;
  margin:1.8em 0 .7em;
}

.prose h3 {
  font-size:23px;
  line-height:1.4;
  margin:1.5em 0 .7em;
}

.prose a {
  text-decoration:underline;
}

.prose blockquote {
  margin:30px 0;
  padding:4px 25px;
  border-left:2px solid var(--accent);
  font-style:italic;
}

.doc-footer {
  max-width:330px;
  text-align:center;
  margin:55px auto 0;
  border-top:1px dashed var(--line);
  padding-top:26px;
}

.doc-footer dl {
  display:grid;
  grid-template-columns:1fr 1fr;
  text-align:left;
  font-size:10px;
}

.doc-footer dd {
  text-align:right;
  margin:0;
}

.mobile-toc {
  display:none;
}

.notice {
  background:var(--wash);
  padding:10px 14px;
  font-size:11px;
  margin:20px 0;
}

.editor-layout {
  display:grid;
  grid-template-columns:220px 1fr;
  gap:35px;
}

.editor-list button {
  display:block;
  width:100%;
  text-align:left;
  margin-bottom:8px;
}

.editor-list .selected {
  background:var(--paper);
  border-color:var(--accent);
}

.editor-form label {
  display:block;
  font-size:11px;
  letter-spacing:.5px;
  margin-bottom:18px;
}

.editor-form label input,.editor-form label select,.editor-form label textarea {
  display:block;
  margin-top:7px;
}

.field-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.toolbar {
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  padding:10px;
  background:var(--wash);
  border:1px solid var(--line);
  border-bottom:0;
}

.toolbar button {
  padding:6px 10px;
}

.editable {
  min-height:350px;
  background:var(--paper);
  border:1px solid var(--line);
  padding:24px;
  font:18px/1.7 Georgia,serif;
  outline:none;
}

.actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:22px;
  align-items:center;
}

.primary {
  background:var(--ink);
  color:var(--paper);
  border-color:var(--ink);
}

.primary:hover {
  background:var(--accent);
  color:var(--paper);
}

.editor-cover {
  max-width:180px;
  max-height:110px;
  object-fit:cover;
}

.status {
  font-size:11px;
  color:var(--muted);
}

#toast {
  position:fixed;
  bottom:25px;
  left:50%;
  transform:translateX(-50%);
  background:var(--ink);
  color:var(--paper);
  padding:12px 22px;
  z-index:20;
  display:none;
  max-width:90vw;
}

button:disabled {
  opacity:.5;
  cursor:wait;
}

@media(max-width:760px) {
  .utility {
    padding:20px;
  }
  .wordmark span {
    display:none;
  }
  .receipt {
    margin:20px auto 55px;
    width:calc(100% - 40px);
    max-width:400px;
    padding:36px 28px 28px;
  }
  .site-footer {
    margin:25px 20px;
    gap:20px;
    font-size:8px;
  }
  .page {
    margin-top:22px;
    padding:0 23px;
  }
  .page h1 {
    font-size:43px;
  }
  .document-row {
    grid-template-columns:30px 1fr;
    gap:12px;
  }
  .document-row .end {
    grid-column:2;
    text-align:left;
  }
  .article-layout {
    display:block;
    padding:0 15px;
  }
  .toc {
    display:none;
  }
  .article-paper {
    padding:30px 24px;
  }
  .article-paper h1 {
    font-size:36px;
  }
  .prose {
    font-size:18px;
  }
  .mobile-toc {
    display:block;
    border-bottom:1px dashed var(--line);
    padding:15px 0;
    margin-bottom:25px;
  }
  .mobile-toc summary {
    cursor:pointer;
  }
  .mobile-toc a {
    display:block;
    font-size:12px;
    padding:7px 0;
  }
  .mobile-toc .sub {
    padding-left:15px;
  }
  .editor-layout {
    display:block;
  }
  .editor-list {
    margin-bottom:25px;
  }
  .editor-list button {
    width:auto;
    display:inline-block;
    margin-right:5px;
  }
  .field-row {
    grid-template-columns:1fr;
    gap:0;
  }
  .appearance button {
    padding:7px;
  }
  .motto {
    font-size:22px;
  }
}

@media print {
  body {
    background:white;
    color:black;
  }
  body:before,.utility,.site-footer,.toc,.mobile-toc,.breadcrumbs,.actions,.skip,#toast {
    display:none!important;
  }
  .article-layout {
    display:block;
    margin:0;
    padding:0;
    max-width:none;
  }
  .article-paper {
    box-shadow:none;
    padding:0;
    background:white;
    color:black;
  }
  .cover {
    max-height:250px;
  }
  .prose {
    font-size:12pt;
    line-height:1.6;
  }
  .prose h2,.prose h3 {
    break-after:avoid;
  }
  .prose p {
    orphans:3;
    widows:3;
  }
  .doc-footer {
    break-inside:avoid;
  }
  .receipt {
    box-shadow:none;
  }
  .notice {
    background:none;
  }
  a {
    color:black;
  }
  .metadata {
    font-size:9pt;
  }
  @page {
    margin:20mm;
  }
}

/* A sharper engraved serif for the name, with a stronger corner monogram. */
.receipt h1 {
  font-family:Didot,'Bodoni MT','Times New Roman',serif;
  font-weight:700;
  font-size:27px;
  letter-spacing:.7px;
  line-height:1.15;
}

.wordmark span {
  font-weight:400;
}

@media(max-width:380px) {
  .receipt h1 {
    font-size:24px;
    letter-spacing:.4px;
  }
}

/* Heavy, sharp serif corner monogram. */
.wordmark {
  font-family:Palatino,'Palatino Linotype','Book Antiqua',serif;
  font-size:19px;
  font-weight:700;
  letter-spacing:-.35px;
  -webkit-text-stroke:0;
}

.wordmark span {
  font-family:'Courier New',monospace;
  -webkit-text-stroke:0;
}

.wordmark:hover {
  color:#303030;
}

html[data-mode=dark] .wordmark:hover {
  color:#d6d6d6;
}

.asterisk {
  color:#303030;
}

html[data-mode=dark] .asterisk {
  color:#d6d6d6;
}

.archive-row {
  grid-template-columns:1fr 150px;
  padding:32px 0;
}

.archive-row .tag {
  margin-bottom:10px;
  color:var(--muted);
}

.archive-row .archive-author {
  font:17px/1.6 Georgia,serif;
  color:var(--ink);
  margin:0 0 8px;
}

.archive-byline {
  font:21px/1.5 Georgia,serif;
  margin:0 0 23px;
}

.archive-stamp {
  font-size:10px;
  letter-spacing:1px;
  line-height:2;
  color:var(--muted);
}

@media(max-width:760px) {
  .archive-row {
    grid-template-columns:1fr;
  }
  .archive-row .end {
    grid-column:1;
  }
}

.screenplay {
  font:15px/1.8 'Courier New',monospace;
}

.screenplay p {
  max-width:480px;
  margin:0 auto 26px;
}

.screenplay p strong {
  display:block;
  text-align:center;
  font-size:13px;
  letter-spacing:1px;
}

.screenplay p strong+br {
  display:none;
}

.screenplay p em {
  font-style:italic;
}

.print-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:40px 28px;
}

.print-card img {
  display:block;
  width:100%;
  height:auto;
  background:var(--paper);
}

.print-caption {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:14px;
}

.print-caption h2 {
  font:24px/1.3 Georgia,serif;
  margin:0;
}

.print-card p {
  color:var(--muted);
}

.full-print {
  width:100%;
  height:auto;
  display:block;
  margin:30px 0;
}

.print-detail {
  max-width:1100px;
}

.upload-link {
  border-bottom:1px solid var(--line);
  padding:8px 0;
}

@media(max-width:600px) {
  .print-grid {
    grid-template-columns:1fr;
  }
}

/* Photos mounted on a continuous archival sheet. */
.prints-page {
  max-width:1380px;
}
@media (min-width:1000px) {
  .prints-page {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(300px,390px);
    column-gap:48px;
  }
  .prints-page>.breadcrumbs,.prints-page>.album-sheet,.prints-page>.actions {
    grid-column:1 / -1;
  }
  .prints-page>.page-top {
    grid-column:1;
    border-bottom:0;
    margin-bottom:32px;
  }
  .prints-page>.print-filters {
    grid-column:2;
    align-self:end;
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
    margin:0 0 32px;
    border-bottom:0;
  }
  .prints-page>.print-filters input,.prints-page>.print-filters .desk-select {
    width:100%;
    min-width:0;
  }
}

.print-demo-note {
  font-size:10px;
  letter-spacing:.8px;
  color:var(--muted);
  margin:0 0 22px;
}

.album-sheet {
  isolation:isolate;
  position:relative;
  background:var(--paper);
  padding:30px 42px 24px;
  box-shadow:0 12px 35px #00000012;
  margin:0 0 35px;
}

.album-sheet:after {
  z-index:0;
  pointer-events:none;
  content:'';
  position:absolute;
  left:0;
  right:0;
  bottom:-8px;
  height:9px;
  background:linear-gradient(135deg,var(--paper) 25%,transparent 25%) -4px 0/9px 9px,linear-gradient(225deg,var(--paper) 25%,transparent 25%) -4px 0/9px 9px;
}

.album-heading,.album-end {
  display:flex;
  justify-content:space-between;
  gap:15px;
  font-size:9px;
  letter-spacing:1px;
  color:var(--muted);
  border-bottom:1px dashed var(--line);
  padding-bottom:19px;
}

.album-end {
  border-bottom:0;
  border-top:1px dashed var(--line);
  padding:22px 0 0;
  align-items:center;
}

.album-end>span:first-child {
  font-size:20px;
  color:var(--ink);
}

.album-sheet .print-grid {
  gap:55px 42px;
  align-items:start;
}

.album-sheet .print-card {
  margin:0;
  min-width:0;
  display:block;
  color:var(--ink);
}

.photo-mount {
  position:relative;
  padding:10px 10px 16px;
  background:#f3f1e9;
  box-shadow:1px 3px 6px #0002,0 12px 17px -11px #0005;
  transform:rotate(-2deg);
  transition:transform .2s,box-shadow .2s;
}

.print-card:nth-child(even) {
  padding-top:44px;
}

.print-card:nth-child(even) .photo-mount {
  transform:rotate(2deg);
}
a.print-card:focus-visible .photo-mount {
  transform:rotate(0);
  box-shadow:2px 8px 16px #0003;
}
@media (hover: hover) and (pointer: fine) {
  a.print-card:hover .photo-mount {
    transform:rotate(0);
    box-shadow:2px 8px 16px #0003;
}
}

.photo-mount img {
  width:100%;
  height:auto;
  display:block;
}

.photo-mount .print-caption {
  gap:12px;
  color:#333;
  align-items:baseline;
  margin-top:14px;
}

.photo-mount .print-caption h2 {
  font:16px/1.5 Georgia,serif;
  flex:1;
}

.print-index {
  font:9px/1.5 'Courier New',monospace;
  color:#777;
}

.print-file-note {
  font-size:8px;
  letter-spacing:1.1px;
  color:var(--muted);
  margin:22px 4px 0;
}

.pencil-note {
  font:italic 16px/1.6 Georgia,serif;
  margin:20px 4px 0;
}

.fastener {
  position:absolute;
  z-index:2;
  pointer-events:none;
}

.mount-tape .fastener {
  left:50%;
  top:-13px;
  transform:translateX(-50%) rotate(-6deg);
  width:88px;
  height:29px;
  background:#d6c9a6a6;
  border-left:1px dashed #b5ab8c;
  border-right:1px dashed #b5ab8c;
  box-shadow:0 1px 2px #0001;
  backdrop-filter:blur(1px);
}

@media(max-width:600px) {
  .album-sheet {
    padding:23px 23px 20px;
  }
  .album-heading {
    font-size:8px;
  }
  .album-heading span:last-child {
    display:none;
  }
  .album-sheet .print-grid {
    padding:44px 4px 30px;
    gap:44px;
  }
  .print-card:nth-child(even) {
    padding-top:0;
  }
  .album-end {
    font-size:8px;
    gap:10px;
  }
  .prints-page {
    padding:0 20px;
  }
  .photo-mount .print-caption h2 {
    font-size:17px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .photo-mount {
    transition:none;
  }
}

@media print {
  .photo-mount,.print-card:nth-child(even) .photo-mount {
    transform:none;
    box-shadow:none;
  }
  .album-sheet {
    box-shadow:none;
  }
  .fastener,.print-demo-note {
    display:none;
  }
  .print-card {
    break-inside:avoid;
  }
}

/* Each print retains its randomly assigned mounting position. */
.print-card[class*="tape-"] .fastener {
  top:-12px;
  width:83px;
  height:29px;
  background:linear-gradient(100deg,#e0d6b9a8,#d6c9a6b8,#e4dbbca0);
  border-left:1px dashed #b5ab8c;
  border-right:1px dashed #b5ab8c;
  box-shadow:0 1px 2px #0001;
  backdrop-filter:blur(1px);
}

.print-card[class*="tape-"] .fastener svg {
  display:none;
}

.tape-left .fastener {
  left:10%;
  transform:rotate(-11deg);
}

.tape-center .fastener {
  left:calc(50% - 42px);
  transform:rotate(3deg);
}

.tape-right .fastener {
  right:9%;
  transform:rotate(9deg);
}

.tape-slant .fastener {
  left:28%;
  transform:rotate(-17deg);
}

/* Fine wire clips extend slightly beyond the backing sheet. */
.tape-corner-left .fastener {
  left:-13px;
  top:3px!important;
  transform:rotate(-38deg);
  width:72px!important;
}

.tape-corner-right .fastener {
  right:-13px;
  top:3px!important;
  transform:rotate(38deg);
  width:72px!important;
}

/* Six distinct tape materials, widths, and placements. */
.print-card.tape-left .fastener {
  width:105px;
  height:35px;
  background:linear-gradient(95deg,#d9cba8b5,#ede2c4c7,#d9cba8b5);
  clip-path:polygon(2% 0,98% 2%,100% 19%,98% 36%,100% 53%,97% 75%,99% 100%,1% 96%,3% 76%,0 57%,2% 35%,0 15%);
}

.print-card.tape-center .fastener {
  width:114px;
  height:25px;
  left:calc(50% - 57px);
  top:-10px;
  background:linear-gradient(180deg,#ffffff55,#e9edf12e 45%,#ffffff66);
  border:1px solid #ffffff55;
  box-shadow:0 1px 2px #0002,inset 0 1px #ffffff55;
  transform:rotate(2deg);
}

.print-card.tape-right .fastener {
  width:61px;
  height:24px;
  right:12%;
  top:-9px;
  background:repeating-linear-gradient(0deg,#d7cdaeac 0 1px,#e8dfc5b3 1px 3px);
  transform:rotate(12deg);
}

.print-card.tape-slant .fastener {
  width:95px;
  height:32px;
  left:32%;
  background:linear-gradient(110deg,#ae79365c,#dca75c9e,#b887445c);
  border-color:#97734666;
  box-shadow:0 1px 2px #0002,inset 0 1px #ffe2a455;
  transform:rotate(-16deg);
}

.print-card.tape-corner-left .fastener {
  width:76px!important;
  height:30px;
  left:-14px;
  background:repeating-linear-gradient(135deg,#a3a3a1a8 0 2px,#d2d2ce9e 2px 5px);
  border-color:#9999;
  transform:rotate(-37deg);
}

.print-card.tape-corner-right .fastener {
  width:100px!important;
  height:39px;
  right:-16px;
  background:radial-gradient(circle,#9f927b55 .7px,transparent 1px) 0 0/5px 5px,linear-gradient(90deg,#dfd1b8c2,#eee3cfcc);
  border-color:#aa9a7b77;
  transform:rotate(32deg);
}

.print-filter {
  padding:20px 0;
  border-bottom:1px dashed var(--line);
}

.print-filter .section-label {
  font-size:9px;
  margin-bottom:10px;
}

.category-options {
  display:flex;
  gap:8px 18px;
  flex-wrap:wrap;
}

.category-options button {
  padding:6px 0;
  border:0;
  font-size:10px;
  letter-spacing:.7px;
  color:var(--muted);
}

.category-options button:before {
  content:'[ ]';
  margin-right:7px;
}

.category-options button[aria-pressed=true] {
  color:var(--ink);
  font-weight:bold;
}

.category-options button[aria-pressed=true]:before {
  content:'[×]';
}

.category-options button span {
  font-size:9px;
  margin-left:5px;
  color:var(--muted);
}

.category-options button:hover {
  background:none;
  color:var(--ink);
  text-decoration:underline;
  text-underline-offset:4px;
}

.print-empty {
  padding:35px 0;
  font:italic 18px/1.6 Georgia,serif;
  color:var(--muted);
}

.print-card[hidden],.print-grid[hidden],.print-empty[hidden] {
  display:none!important;
}

.prints-page>.print-filter {
  padding:0 0 24px;
  border-bottom:0;
}

.prints-page>.page-top {
  margin-bottom:20px;
}

/* The receipt feeds downward, then gently settles on the page. */
@keyframes receipt-feed {
  0% {
    transform:translateY(calc(-100% - 160px));
    animation-timing-function:linear;
  }
  88% {
    transform:translateY(-16px);
    animation-timing-function:cubic-bezier(.2,.7,.3,1);
  }
  96% {
    transform:translateY(4px);
    animation-timing-function:ease-in-out;
  }
  100% {
    transform:translateY(0);
  }
}

.receipt-printing {
  animation:none;
}

@media(prefers-reduced-motion:reduce) {
  .receipt-printing {
    animation:none;
  }
}

@media print {
  .receipt-printing {
    animation:none;
    clip-path:none;
    transform:none;
  }
}

/* Writing lives on a bound notebook page, with perforated entry labels. */
.writing-page {
  max-width:1020px;
}

.writing-sheet {
  position:relative;
  margin:34px 0 0;
}

.writing-sheet:before {
  content:'';
  position:absolute;
  left:31px;
  top:0;
  bottom:0;
  border-left:1px solid var(--line);
  opacity:.35;
}

.journal-heading {
  justify-content:space-between;
  border-bottom:1px solid var(--line);
}

.journal-folio {
  display:flex;
  justify-content:space-between;
  padding-top:15px;
  border-top:1px solid var(--line);
  font-size:9px;
  letter-spacing:1.4px;
  color:var(--muted);
}

:is(.writing-sheet, .journal-document-shadow) .writing-label {
  position:relative;
  grid-template-columns:88px minmax(0,1fr);
  margin:0;
}

:is(.writing-sheet, .journal-document-shadow) .writing-label:hover {
  transform:translateY(-2px);
}

:is(.writing-sheet, .journal-document-shadow) .writing-label h2 {
  font-size:27px;
}

:is(.writing-sheet, .journal-document-shadow) .writing-label .tag {
  color:var(--muted);
}

:is(.writing-sheet, .journal-document-shadow) .writing-label .end {
  grid-column:2;
  border-top:1px dashed var(--line);
}

.writing-sheet #count {
  margin-top:28px;
  font-size:9px;
  color:var(--muted);
}

@media(max-width:600px) {
  .writing-sheet:before {
    left:12px;
  }
  .journal-heading {
    font-size:8px;
  }
  :is(.writing-sheet, .journal-document-shadow) .writing-label {
    grid-template-columns:57px minmax(0,1fr);
    gap:15px;
  }
  :is(.writing-sheet, .journal-document-shadow) .writing-label p {
    font-size:15px;
  }
  :is(.writing-sheet, .journal-document-shadow) .writing-label .end {
    grid-column:1/-1;
  }
  .journal-folio {
    font-size:8px;
  }
}

.desk-collections {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  margin:38px 0;
}

.desk-collections>a {
  display:flex;
  flex-direction:column;
  background:var(--paper);
  padding:29px 24px;
  box-shadow:var(--shadow);
  border-top:1px dashed var(--line);
}

.desk-collections h2 {
  font:32px/1.2 Georgia,serif;
  margin:20px 0 12px;
}

.desk-collections p {
  font:17px/1.6 Georgia,serif;
  color:var(--muted);
  margin:0 0 30px;
}

.desk-open {
  margin-top:auto;
  border-top:1px dashed var(--line);
  padding-top:18px;
  font-size:10px;
  letter-spacing:.6px;
}

.desk-switch {
  display:inline-block;
  margin-bottom:24px;
  font-size:11px;
}

.desk-collections .smallcaps {
  font-size:9px;
}

.editor-form .field-row:has(input[type=hidden]) {
  grid-template-columns:1fr;
}

@media(max-width:760px) {
  .desk-collections {
    grid-template-columns:1fr;
    gap:20px;
  }
  .desk-choice h1 {
    font-size:38px;
  }
}

.desk-picker {
  display:block;
  font-size:11px;
  letter-spacing:.5px;
  max-width:420px;
  margin:0 0 30px;
}

.desk-picker select {
  display:block;
  margin-top:10px;
  padding:14px;
  background:var(--paper);
}

/* Independent columns keep differently sized prints evenly spaced. */
.album-sheet .print-grid {
  display:block;
  position:relative;
  padding:0;
  margin:52px 8px 42px;
}

.album-sheet .print-grid .print-card {
  position:absolute;
  padding-top:0;
  margin:0;
}

@media(max-width:600px) {
  .album-sheet .print-grid {
    margin:44px 4px 30px;
  }
}

@media print {
  .album-sheet .print-grid {
    display:block;
    height:auto!important;
  }
  .album-sheet .print-grid .print-card {
    position:relative;
    left:auto!important;
    top:auto!important;
    width:100%!important;
    margin-bottom:40px;
  }
}

/* Quiet, consistent dropdowns throughout the writing desk. */
.desk-select {
  position:relative;
  width:100%;
  margin-top:6px;
  letter-spacing:normal;
}

.desk-select-trigger {
  width:100%;
  text-align:left;
  background:var(--paper);
  border:1px solid var(--line);
  padding:12px 36px 12px 12px;
  transition:background .18s,border-color .18s,box-shadow .18s;
}

.desk-select-trigger:after {
  content:'⌄';
  position:absolute;
  right:14px;
  top:10px;
  color:var(--muted);
  transition:transform .18s;
}

.desk-select-trigger[aria-expanded=true]:after {
  transform:rotate(180deg);
}

.desk-select-menu {
  position:absolute;
  top:calc(100% + 5px);
  left:0;
  right:0;
  z-index:30;
  max-height:280px;
  overflow-y:auto;
  background:var(--paper);
  border:1px solid var(--line);
  box-shadow:0 8px 20px #00000014;
  padding:5px;
  animation:desk-dropdown-in .16s ease-out;
}

.desk-select-menu[hidden] {
  display:none;
}

.desk-select-menu button {
  display:block;
  width:100%;
  border:0;
  text-align:left;
  padding:9px 11px;
  transition:background .15s;
  color:var(--ink);
}

.desk-select-menu button[aria-selected=true] {
  background:var(--wash);
}

.desk-select-menu button:focus-visible {
  outline:none;
  background:var(--wash);
  box-shadow:inset 2px 0 var(--muted);
}

.desk-picker :focus-visible,.editor-layout :focus-visible {
  outline:none;
  box-shadow:0 0 0 2px var(--wash);
  border-color:var(--muted);
}

@keyframes desk-dropdown-in {
  from {
    opacity:0;
    transform:translateY(-4px);
  }
  to {
    opacity:1;
    transform:translateY(0);
  }
}

@media(prefers-reduced-motion:reduce) {
  .desk-select-menu {
    animation:none;
  }
  .desk-select-trigger,.desk-select-menu button {
    transition:none;
  }
}

select[data-enhanced][hidden] {
  display:none!important;
}

.filters .desk-select {
  margin-top:0;
  flex:0 0 210px;
}

.desk-select-trigger:focus-visible {
  outline:none;
  box-shadow:0 0 0 2px var(--wash);
  border-color:var(--muted);
}

@media(max-width:480px) {

}

.print-filter .desk-select {
  max-width:320px;
  margin-top:0;
}

.print-category-header {
  display:flex;
  align-items:flex-start;
  gap:32px;
}

.print-category-disclosure {
  min-width:0;
  flex:1;
}

.print-category-disclosure summary {
  list-style:none;
  cursor:pointer;
  padding:6px 0;
  font-size:10px;
  letter-spacing:.7px;
  color:var(--muted);
  width:fit-content;
}

.print-category-disclosure summary::-webkit-details-marker {
  display:none;
}

.print-category-disclosure summary span {
  display:inline-block;
  margin-left:8px;
  transition:transform .18s;
}

.print-category-disclosure[open] summary span {
  transform:rotate(180deg);
}

.print-category-list {
  flex-direction:column;
  align-items:flex-start;
  gap:1px;
  padding:10px 0 0;
  animation:desk-dropdown-in .18s ease-out;
}

.print-filter :focus-visible {
  outline:none;
  box-shadow:0 0 0 2px var(--wash);
}

@media(prefers-reduced-motion:reduce) {
  .print-category-list {
    animation:none;
  }
}

/* Keep search focus quiet while retaining a visible keyboard cue. */
.filters input[type="search"] {
  transition:border-color .18s,box-shadow .18s;
}

.filters input[type="search"]:focus,.filters input[type="search"]:focus-visible {
  outline:none;
  border-color:var(--muted);
}

@media(prefers-reduced-motion:reduce) {
  .filters input[type="search"] {
    transition:none;
  }
}

/* Box-drawing frames for collection search and category controls. */
.filters {
  gap:14px;
}

.filters input[type="search"],.filters .desk-select-trigger {
  border:1px solid var(--muted);
  border-radius:0;
  background:transparent;
  font:11px/20px 'Courier New',monospace;
  letter-spacing:.6px;
  box-shadow:none;
}

.filters input[type="search"]::placeholder {
  color:var(--muted);
  opacity:1;
}

.filters input[type="search"]:focus,.filters input[type="search"]:focus-visible,.filters .desk-select-trigger:focus-visible {
  outline:none;
  box-shadow:none;
  border-color:var(--ink);
}

.filters .desk-select-trigger:before {
  content:'[ ]';
  margin-right:10px;
  color:var(--muted);
}

.filters .desk-select-trigger[aria-expanded=true]:before {
  content:'[×]';
  color:var(--ink);
}

.filters .desk-select-menu {
  border:1px solid var(--muted);
  border-radius:0;
  font-size:11px;
  letter-spacing:.5px;
}

.filters .desk-select-menu button {
  padding:10px 8px;
  background:transparent;
}

.filters .desk-select-menu button:before {
  content:'[ ]';
  margin-right:12px;
  color:var(--muted);
}

.filters .desk-select-menu button[aria-selected=true]:before {
  content:'[×]';
  color:var(--ink);
}

.filters .desk-select-menu button:hover,.filters .desk-select-menu button:focus-visible {
  background:var(--wash);
  box-shadow:none;
  outline:none;
}

.filters .desk-select {
  flex-basis:230px;
  width:230px;
}

@media(max-width:480px) {
  .filters .desk-select {
    flex-basis:100%;
    width:100%;
  }
}

/* Literal box-drawing characters, tiled like a text-mode frame. */
:root {
  --code-frame:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22120%22%20height%3D%2260%22%20viewBox%3D%220%200%20120%2060%22%3E%3Cg%20fill%3D%22%23717369%22%20font-family%3D%22monospace%22%20font-size%3D%2212%22%20text-anchor%3D%22middle%22%3E%3Ctext%20x%3D%226%22%20y%3D%2210%22%3E%E2%94%8C%3C/text%3E%3Ctext%20x%3D%22114%22%20y%3D%2210%22%3E%E2%94%90%3C/text%3E%3Ctext%20x%3D%226%22%20y%3D%2258%22%3E%E2%94%94%3C/text%3E%3Ctext%20x%3D%22114%22%20y%3D%2258%22%3E%E2%94%98%3C/text%3E%3Ctext%20x%3D%2218%22%20y%3D%2210%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2218%22%20y%3D%2258%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2230%22%20y%3D%2210%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2230%22%20y%3D%2258%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2242%22%20y%3D%2210%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2242%22%20y%3D%2258%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2254%22%20y%3D%2210%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2254%22%20y%3D%2258%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2266%22%20y%3D%2210%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2266%22%20y%3D%2258%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2278%22%20y%3D%2210%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2278%22%20y%3D%2258%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2290%22%20y%3D%2210%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2290%22%20y%3D%2258%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%22102%22%20y%3D%2210%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%22102%22%20y%3D%2258%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%226%22%20y%3D%2222%22%3E%E2%94%82%3C/text%3E%3Ctext%20x%3D%22114%22%20y%3D%2222%22%3E%E2%94%82%3C/text%3E%3Ctext%20x%3D%226%22%20y%3D%2234%22%3E%E2%94%82%3C/text%3E%3Ctext%20x%3D%22114%22%20y%3D%2234%22%3E%E2%94%82%3C/text%3E%3Ctext%20x%3D%226%22%20y%3D%2246%22%3E%E2%94%82%3C/text%3E%3Ctext%20x%3D%22114%22%20y%3D%2246%22%3E%E2%94%82%3C/text%3E%3C/g%3E%3C/svg%3E");
}

html[data-mode=dark] {
  --code-frame:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22120%22%20height%3D%2260%22%20viewBox%3D%220%200%20120%2060%22%3E%3Cg%20fill%3D%22%23b2b2b2%22%20font-family%3D%22monospace%22%20font-size%3D%2212%22%20text-anchor%3D%22middle%22%3E%3Ctext%20x%3D%226%22%20y%3D%2210%22%3E%E2%94%8C%3C/text%3E%3Ctext%20x%3D%22114%22%20y%3D%2210%22%3E%E2%94%90%3C/text%3E%3Ctext%20x%3D%226%22%20y%3D%2258%22%3E%E2%94%94%3C/text%3E%3Ctext%20x%3D%22114%22%20y%3D%2258%22%3E%E2%94%98%3C/text%3E%3Ctext%20x%3D%2218%22%20y%3D%2210%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2218%22%20y%3D%2258%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2230%22%20y%3D%2210%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2230%22%20y%3D%2258%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2242%22%20y%3D%2210%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2242%22%20y%3D%2258%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2254%22%20y%3D%2210%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2254%22%20y%3D%2258%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2266%22%20y%3D%2210%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2266%22%20y%3D%2258%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2278%22%20y%3D%2210%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2278%22%20y%3D%2258%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2290%22%20y%3D%2210%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%2290%22%20y%3D%2258%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%22102%22%20y%3D%2210%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%22102%22%20y%3D%2258%22%3E%E2%94%80%3C/text%3E%3Ctext%20x%3D%226%22%20y%3D%2222%22%3E%E2%94%82%3C/text%3E%3Ctext%20x%3D%22114%22%20y%3D%2222%22%3E%E2%94%82%3C/text%3E%3Ctext%20x%3D%226%22%20y%3D%2234%22%3E%E2%94%82%3C/text%3E%3Ctext%20x%3D%22114%22%20y%3D%2234%22%3E%E2%94%82%3C/text%3E%3Ctext%20x%3D%226%22%20y%3D%2246%22%3E%E2%94%82%3C/text%3E%3Ctext%20x%3D%22114%22%20y%3D%2246%22%3E%E2%94%82%3C/text%3E%3C/g%3E%3C/svg%3E");
}

.filters input[type="search"],.filters .desk-select-trigger,.filters .desk-select-menu {
  border:12px solid transparent;
  border-image-source:var(--code-frame);
  border-image-slice:12;
  border-image-width:12px;
  border-image-repeat:round;
  background-clip:padding-box;
}

.filters input[type="search"],.filters .desk-select-trigger {
  padding:4px 10px;
  min-height:54px;
}

.filters .desk-select-trigger {
  padding-right:26px;
}

.filters .desk-select-trigger:after {
  top:16px;
}

.filters input[type="search"]:focus,.filters .desk-select-trigger:focus-visible {
  background-color:var(--wash);
  border-color:transparent;
}

.filters input[type="search"]:focus,.filters input[type="search"]:focus-visible {
  background-color:transparent;
  box-shadow:none;
}

/* Category controls as little paper slips; search keeps its character frame. */
.filters .desk-select-trigger,.filters .desk-select-menu {
  border:0;
  border-image:none;
  background:var(--paper);
  background-clip:border-box;
  font-family:'Courier New',monospace;
  box-shadow:1px 3px 7px #00000012;
}

.filters .desk-select-menu {
  padding:12px 10px 18px;
  background-image:repeating-linear-gradient(transparent 0,transparent 39px,var(--wash) 39px,var(--wash) 40px);
  background-position:0 12px;
  clip-path:polygon(0 0,100% 0,100% 98%,96% 99%,91% 98%,85% 100%,79% 98%,73% 99%,66% 98%,60% 100%,53% 98%,46% 99%,39% 98%,32% 100%,25% 98%,18% 99%,11% 98%,5% 100%,0 98%);
}

/* An outer shadow follows the paper silhouette without being clipped. */
.filters .desk-select-menu {
  box-shadow:none;
  filter:drop-shadow(0 3px 4px #00000018);
}

.filters .desk-select:has(.desk-select-menu:not([hidden])) {
  filter:drop-shadow(0 4px 5px #00000016);
}

html[data-mode=dark] .filters .desk-select:has(.desk-select-menu:not([hidden])) {
  filter:drop-shadow(0 4px 6px #00000040);
}

.filters .desk-select:has(.desk-select-menu:not([hidden])) {
  z-index:30;
}

/* Code-style trigger, paper-style expanded menu. */
.filters .desk-select-trigger {
  border:12px solid transparent;
  border-image-source:var(--code-frame);
  border-image-slice:12;
  border-image-width:12px;
  border-image-repeat:round;
  background:transparent;
  background-clip:padding-box;
  padding:4px 26px 4px 10px;
  min-height:54px;
  box-shadow:none;
}

.filters .desk-select-trigger:focus-visible {
  background:transparent;
  border-color:transparent;
  box-shadow:none;
  outline:none;
}

/* Align the paper with the visible glyph strokes, inset within the 12px frame. */
.filters .desk-select-menu {
  left:6px;
  right:6px;
}

/* A text-terminal scrollbar for the paper category lists. */
.desk-select-menu::-webkit-scrollbar {
  width:14px;
  background:transparent;
}

.desk-select-menu::-webkit-scrollbar-track {
  border-left:1px dashed var(--muted);
  border-right:1px dashed var(--muted);
  border-top:1px solid var(--muted);
  border-bottom:1px solid var(--muted);
  margin:8px 2px;
}

.desk-select-menu::-webkit-scrollbar-thumb {
  background:var(--wash);
  border:1px dashed var(--ink);
  border-radius:0;
  min-height:30px;
}

.desk-select-menu::-webkit-scrollbar-thumb:hover {
  background:var(--line);
}

.desk-select-menu::-webkit-scrollbar-button {
  display:none;
}

.desk-select-menu {
  scrollbar-gutter:stable;
}

.desk-select-menu::-webkit-scrollbar-thumb,.desk-select-menu::-webkit-scrollbar-thumb:hover {
  background:transparent;
}

/* Only the moving thumb has an outline; no stationary track frame. */
.desk-select-menu::-webkit-scrollbar-track {
  border:0;
  background:transparent;
}

.desk-auth {
  max-width:560px;
}

.desk-sign-out {
  float:right;
  font-size:10px;
  margin-bottom:12px;
}

.desk-auth #auth-message {
  color:var(--muted);
}

/* Match the archive's quiet dividers on individual print pages. */
.print-detail h1 {
  padding-bottom:25px;
  border-bottom:1px dashed var(--line);
}

.print-detail > .actions {
  border-top:1px dashed var(--line);
  padding-top:25px;
  margin-top:30px;
}

.print-detail .full-print {
  box-shadow:0 5px 10px #00000020,0 16px 32px #00000026;
}

html[data-mode=dark] .print-detail .full-print {
  box-shadow:0 5px 12px #00000050,0 18px 36px #00000065;
}

/* Keep document navigation left and printing centered independently. */
.article-paper > .actions {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:12px;
}

.article-paper > .actions #print {
  grid-column:2;
  grid-row:1;
  justify-self:center;
}

.article-paper > .actions > a,.article-paper > .actions #back-editor {
  grid-column:1;
  grid-row:1;
  justify-self:start;
}

@media(max-width:480px) {
  .article-paper > .actions {
    column-gap:6px;
    font-size:10px;
  }
  .article-paper > .actions #print {
    font-size:10px;
    padding:9px 8px;
  }
}

.article-paper > .actions > a,.print-detail > .actions > a {
  white-space:nowrap;
}

@media screen {
  .writing-article .prose {
    font-size:17px;
    line-height:1.8;
  }
}

@media screen {
  .writing-article .prose h2 {
    font-size:24px;
  }
  .writing-article .prose h3 {
    font-size:20px;
  }
}

/* Clean Korean typography for the About introduction. */
.prose p[lang="ko"] {
  font-family:"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR",sans-serif;
  font-weight:400;
}

/* A folded, torn sheet for Brandt's personal note. */
.about-note {
  position:relative;
  padding:48px 48px 52px;
  background:var(--paper);
  isolation:isolate;
}

.about-note:before,.about-note:after {
  content:"";
  position:absolute;
  pointer-events:none;
  z-index:-1;
}

.about-note:after {
  inset:0;
  z-index:0;
}

.about-note>* {
  position:relative;
  z-index:1;
}

.about-note .page-top {
  margin-top:0;
}

.about-note>a {
  overflow-wrap:anywhere;
  font-size:11px;
  letter-spacing:.5px;
}

@media(max-width:600px) {
  .about-page {
    padding:0 22px;
  }
  .about-note {
    padding:32px 25px 38px;
  }
  .about-note h1 {
    font-size:42px;
  }
}

@media print {
  .about-note {
    filter:none;
  }
}

/* Fibrous paper grain and irregular tears on the personal note. */
.about-note {
  background-color:var(--paper);
  background-image:var(--texture-01);
}

.about-note:before {
  background:inherit;
}

/* More visible fold shadows with a narrow lifted highlight. */

html[data-mode=dark] .about-note:after {
  opacity:.5;
}

/* Keep the note flat, with grain and torn edges only. */

/* A small uneven tear at the bottom-right corner. */

/* Cast the shadow after clipping the torn sheet, so it follows the edge. */

.about-note {
  filter:none;
}

@media print {

}

/* Fine, irregular paper fibers instead of regular zigzag teeth. */
.about-note:before {
  inset:-7px 0;
  clip-path:polygon(0.00% 2.5px,0.66% 1.7px,2.25% 3.3px,3.53% 3.2px,4.39% 3.9px,5.52% 4.1px,6.77% 4.4px,7.71% 1.6px,8.26% 3.9px,8.84% 3.6px,10.03% 1.2px,11.43% 1.1px,12.95% 4.4px,13.60% 3.9px,14.93% 1.5px,16.19% 1.5px,17.77% 3.8px,19.45% 1.2px,20.22% 3.5px,21.40% 1.7px,22.94% 4.4px,23.70% 1.6px,24.95% 2.6px,26.20% 3.0px,27.08% 1.1px,27.61% 2.8px,28.95% 2.7px,30.30% 3.2px,31.84% 3.6px,32.62% 1.6px,33.06% 1.2px,34.58% 4.5px,35.94% 1.4px,37.18% 1.5px,38.73% 3.6px,40.10% 3.4px,41.01% 4.4px,42.66% 2.0px,43.60% 3.9px,44.87% 2.6px,45.82% 4.9px,46.55% 1.8px,47.82% 2.1px,49.38% 2.3px,50.98% 2.5px,52.53% 4.0px,53.87% 1.9px,54.44% 1.1px,55.03% 3.7px,55.47% 1.9px,56.58% 1.6px,57.38% 1.9px,58.64% 1.5px,60.34% 3.4px,61.65% 3.2px,62.67% 4.9px,64.23% 4.3px,64.62% 3.4px,66.24% 3.6px,67.28% 3.6px,67.87% 3.9px,69.28% 1.3px,70.32% 3.4px,71.14% 3.7px,72.74% 4.6px,73.50% 1.6px,75.01% 3.4px,76.48% 4.5px,77.20% 3.3px,77.96% 4.2px,79.25% 2.0px,80.27% 3.4px,80.94% 1.7px,81.93% 1.3px,82.94% 4.8px,84.41% 1.2px,85.87% 3.9px,87.18% 1.1px,88.56% 1.8px,89.99% 2.3px,90.84% 1.7px,92.36% 1.9px,93.88% 3.1px,94.44% 3.6px,95.50% 1.1px,96.96% 2.1px,97.35% 4.1px,98.68% 2.5px,99.28% 3.1px,100% 3px,100.00% calc(100% - 2.8px),98.99% calc(100% - 2.3px),97.67% calc(100% - 0.8px),97.07% calc(100% - 1.9px),95.70% calc(100% - 3.2px),94.20% calc(100% - 1.8px),92.89% calc(100% - 0.4px),92.01% calc(100% - 0.3px),90.54% calc(100% - 4.0px),89.28% calc(100% - 3.0px),88.43% calc(100% - 3.2px),87.96% calc(100% - 1.5px),87.14% calc(100% - 3.5px),86.56% calc(100% - 0.6px),86.09% calc(100% - 3.4px),85.31% calc(100% - 3.6px),84.54% calc(100% - 3.3px),83.93% calc(100% - 3.6px),82.26% calc(100% - 3.5px),80.98% calc(100% - 3.6px),79.39% calc(100% - 3.9px),78.67% calc(100% - 3.4px),77.27% calc(100% - 1.4px),76.69% calc(100% - 3.6px),75.70% calc(100% - 2.1px),74.16% calc(100% - 1.9px),73.47% calc(100% - 2.7px),72.40% calc(100% - 1.1px),71.11% calc(100% - 3.6px),70.43% calc(100% - 3.3px),69.06% calc(100% - 2.1px),68.45% calc(100% - 2.7px),67.72% calc(100% - 1.0px),66.22% calc(100% - 1.1px),65.75% calc(100% - 3.4px),64.05% calc(100% - 1.2px),63.16% calc(100% - 2.2px),61.79% calc(100% - 0.0px),60.56% calc(100% - 0.9px),58.96% calc(100% - 1.7px),57.34% calc(100% - 1.8px),56.10% calc(100% - 0.2px),55.48% calc(100% - 1.2px),54.63% calc(100% - 0.7px),53.71% calc(100% - 0.4px),52.60% calc(100% - 3.9px),51.09% calc(100% - 2.5px),49.41% calc(100% - 2.9px),48.21% calc(100% - 1.8px),47.75% calc(100% - 3.6px),46.19% calc(100% - 3.2px),44.91% calc(100% - 3.3px),43.26% calc(100% - 3.9px),41.87% calc(100% - 0.1px),40.24% calc(100% - 2.3px),39.28% calc(100% - 1.7px),38.57% calc(100% - 0.1px),37.38% calc(100% - 2.5px),36.92% calc(100% - 3.7px),35.35% calc(100% - 3.5px),34.27% calc(100% - 1.5px),33.29% calc(100% - 1.5px),31.65% calc(100% - 3.7px),30.08% calc(100% - 2.1px),29.04% calc(100% - 2.7px),28.30% calc(100% - 0.7px),26.62% calc(100% - 1.1px),25.91% calc(100% - 2.0px),25.44% calc(100% - 2.1px),24.87% calc(100% - 3.3px),24.41% calc(100% - 3.2px),23.70% calc(100% - 3.2px),22.27% calc(100% - 3.8px),21.68% calc(100% - 3.9px),21.13% calc(100% - 1.4px),20.77% calc(100% - 2.0px),20.31% calc(100% - 2.2px),18.70% calc(100% - 3.1px),17.48% calc(100% - 0.4px),15.80% calc(100% - 1.5px),14.17% calc(100% - 0.6px),13.41% calc(100% - 3.8px),12.05% calc(100% - 0.7px),11.09% calc(100% - 2.2px),10.40% calc(100% - 0.9px),9.93% calc(100% - 2.0px),9.02% calc(100% - 1.4px),8.02% calc(100% - 1.4px),7.15% calc(100% - 3.1px),6.60% calc(100% - 0.4px),5.65% calc(100% - 1.2px),4.66% calc(100% - 3.4px),3.03% calc(100% - 3.3px),1.44% calc(100% - 0.9px),0.62% calc(100% - 0.4px),0 calc(100% - 2px));
}

/* Asymmetric tear with a shallow bite, hanging fibers, and a deeper lower rip. */
.about-note {
  clip-path:polygon(0 -12px,100% -12px,100% calc(100% - 61px),calc(100% - 3px) calc(100% - 60px),calc(100% - 2px) calc(100% - 54px),calc(100% - 9px) calc(100% - 51px),calc(100% - 18px) calc(100% - 50px),calc(100% - 21px) calc(100% - 46px),calc(100% - 20px) calc(100% - 42px),calc(100% - 25px) calc(100% - 44px),calc(100% - 32px) calc(100% - 40px),calc(100% - 39px) calc(100% - 39px),calc(100% - 42px) calc(100% - 32px),calc(100% - 39px) calc(100% - 27px),calc(100% - 44px) calc(100% - 28px),calc(100% - 45px) calc(100% - 18px),calc(100% - 51px) calc(100% - 14px),calc(100% - 50px) calc(100% - 8px),calc(100% - 57px) calc(100% - 9px),calc(100% - 64px) calc(100% - 3px),calc(100% - 71px) calc(100% - 4px),calc(100% - 73px) calc(100% + 12px),0 calc(100% + 12px));
}

/* Royal-blue marker doodles, kept clear of the note's text. */
.about-note>.note-doodles {
  position:absolute;
  top:8px;
  right:12px;
  z-index:2;
  pointer-events:none;
  opacity:.92;
  transform:rotate(-7deg);
  mix-blend-mode:multiply;
}

.about-note .page-top>.smallcaps {
  display:block;
  padding-right:100px;
}

html[data-mode=dark] .about-note>.note-doodles {
  mix-blend-mode:normal;
  opacity:1;
  filter:brightness(1.4);
}

@media(max-width:600px) {
  .about-note>.note-doodles {
    right:7px;
    top:4px;
  }
  .about-note .page-top>.smallcaps {
    padding-right:65px;
  }
}

.about-note>.note-doodles {
  width:130px;
  height:104px;
}

@media(max-width:600px) {
  .about-note>.note-doodles {
    width:102px;
    height:86px;
  }
}

/* Envelope arrival: open right, slide left, release and unfold the note. */
.about-page {
  position:relative;
}

.letter-arrival {
  position:absolute;
  top:68px;
  left:30px;
  right:30px;
  height:460px;
  perspective:1200px;
  pointer-events:none;
  z-index:5;
  animation:letter-stage-away .35s 4.65s forwards;
}

.letter-envelope {
  position:absolute;
  top:10px;
  left:10%;
  width:80%;
  height:360px;
  background:var(--paper);
  box-shadow:0 12px 26px #0002,inset 0 0 2px #0004;
  transform-style:preserve-3d;
  animation:envelope-depart 1.4s 1.8s both;
}

.envelope-seam {
  position:absolute;
  inset:0;
  background:linear-gradient(43deg,transparent 49.6%,#00000018 50%,#ffffff55 50.4%,transparent 51%) left bottom/45px 45px no-repeat,linear-gradient(-43deg,transparent 49.6%,#00000018 50%,transparent 51%) right bottom/45px 45px no-repeat;
  border:1px solid #8882;
}

.envelope-label {
  position:absolute;
  left:10%;
  bottom:32px;
  display:grid;
  gap:8px;
  font-size:9px;
  letter-spacing:1.1px;
}

.envelope-label strong {
  font-size:16px;
  letter-spacing:1px;
}

.envelope-label i {
  font-style:normal;
  font-size:28px;
  margin-top:12px;
}

.envelope-flap {
  position:absolute;
  right:0;
  top:0;
  width:30%;
  height:100%;
  background:var(--paper);
  border-left:1px solid #9994;
  box-shadow:-3px 0 5px #0001;
  clip-path:polygon(100% 0,100% 100%,0 88%,0 12%);
  transform-origin:right center;
  animation:envelope-open 1.2s .55s both;
  backface-visibility:visible;
}

.envelope-flap span {
  position:absolute;
  top:48%;
  left:16%;
  font-size:9px;
  letter-spacing:1px;
  writing-mode:vertical-rl;
}

.envelope-strip {
  position:absolute;
  right:23%;
  top:12%;
  height:76%;
  width:13px;
  border:1px dashed #aaa5;
  background:var(--paper);
  box-shadow:1px 1px 3px #0002;
  animation:strip-peel .7s .25s both;
}

.folded-letter {
  position:absolute;
  top:30px;
  left:17%;
  width:66%;
  height:330px;
  transform-style:preserve-3d;
  opacity:0;
  animation:note-emerge 2.8s 1.9s both;
}

.folded-letter-face,.folded-letter-wing {
  position:absolute;
  inset:0;
  background:var(--paper);
  box-shadow:0 5px 15px #0002;
  padding:32px;
  border:1px solid #9992;
}

.folded-letter-face span {
  font-size:9px;
  letter-spacing:1px;
}

.folded-letter-face strong {
  display:block;
  font:36px/1.15 Georgia,serif;
  margin-top:28px;
}

.folded-letter-face i {
  display:block;
  color:#234bd0;
  font-size:32px;
  font-style:normal;
  margin-top:22px;
}

.folded-letter-wing {
  transform-origin:left center;
  animation:note-unfold 1.3s 3s both;
  backface-visibility:hidden;
  background:linear-gradient(90deg,#0000000b,transparent 12%),var(--paper);
}

.about-arriving .about-note-shadow {
  animation:finished-note-in .65s 4.65s both;
  transform-origin:center top;
}

.about-note:after {
  display:block;
}

@keyframes strip-peel {
  to {
    transform:translate(35px,-20px) rotate(12deg);
    opacity:0;
  }
}

@keyframes envelope-open {
  to {
    transform:rotateY(165deg);
  }
}

@keyframes envelope-depart {
  0% {
    transform:translateX(0);
  }
  70% {
    opacity:1;
  }
  100% {
    transform:translateX(-85%) rotate(-6deg);
    opacity:0;
  }
}

@keyframes note-emerge {
  0% {
    opacity:0;
    transform:translateX(0) scale(.87);
  }
  15% {
    opacity:1;
  }
  40% {
    transform:translateX(12%) scale(.92);
  }
  65% {
    transform:translateX(0) scale(1);
  }
  85% {
    opacity:1;
    transform:scale(1);
  }
  100% {
    opacity:0;
    transform:scale(1.08);
  }
}

@keyframes note-unfold {
  0% {
    transform:rotateY(0);
  }
  100% {
    transform:rotateY(-175deg);
  }
}

@keyframes finished-note-in {
  from {
    opacity:0;
    transform:translateY(12px) scale(.97);
  }
  to {
    opacity:1;
    transform:none;
  }
}

@keyframes letter-stage-away {
  to {
    opacity:0;
    visibility:hidden;
  }
}

@media(max-width:600px) {
  .letter-arrival {
    left:22px;
    right:22px;
  }
  .letter-envelope {
    left:5%;
    width:90%;
    height:310px;
  }
  .folded-letter {
    left:12%;
    width:76%;
    height:290px;
  }
  .folded-letter-face,.folded-letter-wing {
    padding:22px;
  }
  .folded-letter-face strong {
    font-size:30px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .letter-arrival {
    display:none;
  }
  .about-arriving .about-note-shadow {
    animation:none;
  }
}

@media print {
  .letter-arrival {
    display:none;
  }
  .about-arriving .about-note-shadow {
    animation:none;
  }
  .about-note:after {
    display:none;
  }
}

.letter-envelope,.envelope-flap,.folded-letter-face,.folded-letter-wing {
  background-image:var(--texture-01);
}

/* Fold the real note at its midpoint, preserving its final dimensions. */
.real-letter-stage {
  animation:none;
  overflow:visible;
  top:68px;
}

.actual-folded-note {
  position:absolute;
  left:0;
  transform-style:preserve-3d;
  z-index:2;
}

.actual-note-top,.actual-note-bottom {
  position:absolute;
  left:0;
  width:100%;
  overflow:hidden;
  background:var(--paper);
  backface-visibility:hidden;
}

.actual-note-bottom {
  transform-origin:center top;
  transform:rotateX(180deg);
  transform-style:preserve-3d;
  backface-visibility:visible;
}

.actual-note-bottom:after {
  content:'';
  position:absolute;
  inset:0;
  background:var(--paper);
  box-shadow:inset 0 -6px 9px #0000000c;
}

.real-letter-stage .about-note:after {
  background:linear-gradient(180deg,transparent 49.8%,#00000012 50%,#ffffff55 50.2%,transparent 50.5%);
}

.about-note:after {
  background:linear-gradient(180deg,transparent 49.85%,#0000000b 50%,#ffffff45 50.15%,transparent 50.4%);
}

/* Hide the printed face when the lower half is folded back toward the reader. */
.actual-note-bottom {
  overflow:visible;
  background:transparent;
}

.actual-note-bottom>.about-note {
  backface-visibility:hidden;
  transform:translateZ(.5px);
}

.actual-note-bottom:after {
  transform:rotateX(180deg) translateZ(1px);
  backface-visibility:hidden;
}

/* The letter sits between the envelope lining and its front pocket. */
.real-letter-stage .envelope-pocket {
  position:absolute;
  inset:0 22% 0 0;
  background:var(--paper);
  border:1px solid #9993;
  z-index:1;
}

.real-letter-stage .envelope-label {
  z-index:2;
}

.real-letter-stage .envelope-flap {
  z-index:3;
}

.real-letter-stage .envelope-strip {
  z-index:4;
}

.real-letter-stage .envelope-seam {
  display:none;
}

/* More definition around the opening flap and pocket lip. */
.real-letter-stage .envelope-flap {
  border-left:1px solid #7776;
  box-shadow:inset 5px 0 9px -4px #0005,inset -3px 0 5px -3px #fff9;
  filter:drop-shadow(-5px 4px 4px #00000035);
}

html[data-mode=dark] .real-letter-stage .envelope-flap {
  border-left-color:#aaa7;
  filter:drop-shadow(-5px 4px 5px #0009);
}

/* Define the pocket's top lip against the paper tucked inside. */

.real-letter-stage .envelope-pocket:before {
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  pointer-events:none;
  border-top:1px solid #ffffff70;
}

html[data-mode=dark] .real-letter-stage .envelope-pocket:before {
  border-top-color:#ffffff30;
}

.real-letter-stage .envelope-pocket {
  border-top-color:#555a;
}

.real-letter-stage .envelope-pocket:before {
  height:12px;
  background:linear-gradient(to bottom,#00000048,#0000001c 40%,transparent);
  border-top-color:#ffffff85;
}

html[data-mode=dark] .real-letter-stage .envelope-pocket:before {
  background:linear-gradient(to bottom,#000b,#0004 40%,transparent);
}

/* Match the blank reverse to the printed side of the note. */
.actual-note-bottom:after {
  background-color:var(--paper);
  background-image:var(--texture-01);
  background-size:auto;
}

/* Shade the right-hand opening, not the top of the pocket. */
.real-letter-stage .envelope-pocket {
  border-top:1px solid #9993;
}

.real-letter-stage .envelope-pocket:before {
  display:none;
}

.real-letter-stage .envelope-pocket:after {
  content:'';
  position:absolute;
  top:0;
  bottom:0;
  right:0;
  width:6px;
  pointer-events:none;
  background:linear-gradient(to left,#0000001c,transparent);
  border-right:1px solid #ffffff55;
}

html[data-mode=dark] .real-letter-stage .envelope-pocket {
  border-top-color:#9993;
}

html[data-mode=dark] .real-letter-stage .envelope-pocket:after {
  background:linear-gradient(to left,#0005,transparent);
  border-right-color:#ffffff20;
}

/* Keep the opening lip continuous after the flap opens. */
.real-letter-stage .envelope-pocket {
  clip-path:none;
}

/* Consistent paper stock across the envelope flap, pocket, and lining. */
.real-letter-stage .envelope-pocket,.real-letter-stage .envelope-lining {
  background-image:var(--texture-01)!important;
  background-size:auto;
}

/* Stronger depth beneath the note, both folded and fully open. */
.about-note-shadow {
  filter:drop-shadow(0 3px 3px #00000018) drop-shadow(0 15px 15px #00000030);
}

.actual-folded-note {
  filter:drop-shadow(0 4px 4px #00000025) drop-shadow(0 15px 13px #00000038);
}

html[data-mode=dark] .about-note-shadow,html[data-mode=dark] .actual-folded-note {
  filter:drop-shadow(0 4px 4px #0005) drop-shadow(0 15px 15px #0007);
}

@media print {
  .about-note-shadow {
    filter:none;
  }
}

/* A single clean pocket edge instead of overlapping lip effects. */
.real-letter-stage .envelope-pocket {
  border-right:1px solid #958f842e;
  box-shadow:3px 0 5px -2px #00000030;
  filter:none;
  border-radius:0 2px 2px 0;
}

.real-letter-stage .envelope-pocket:after {
  display:none;
}

html[data-mode=dark] .real-letter-stage .envelope-pocket {
  filter:none;
  border-right-color:#ffffff20;
  box-shadow:3px 0 5px -2px #0009;
}

/* Smoother envelope stock; retain the stronger grain on the note. */
.real-letter-stage .letter-envelope,.real-letter-stage .envelope-flap,.real-letter-stage .envelope-pocket,.real-letter-stage .envelope-lining {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.68' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Cpath fill='%23877e6c' opacity='.09' filter='url(%23grain)' d='M0 0h180v180H0z'/%3E%3C/svg%3E")!important;
}

.envelope-postage {
  margin:10px 0 6px;
  font:10px/1.25 'Courier New',monospace;
  letter-spacing:0;
  white-space:pre;
}

.envelope-tracking {
  margin-top:7px;
  font-size:8px;
  letter-spacing:.6px;
}

.real-letter-stage .envelope-label {
  max-width:65%;
  gap:7px;
}

.real-letter-stage .envelope-label i {
  margin-top:5px;
}

@media(max-width:600px) {
  .envelope-postage {
    font-size:9px;
  }
  .real-letter-stage .envelope-label {
    font-size:8px;
  }
  .real-letter-stage .envelope-label strong {
    font-size:14px;
  }
}

.envelope-postage span {
  font:inherit;
  letter-spacing:0;
  white-space:pre;
  line-height:1;
  display:block;
}

/* Full-height rectangular flap and tear strip. */
.real-letter-stage .envelope-flap {
  clip-path:none;
  border-radius:0;
}

.real-letter-stage .envelope-strip {
  top:0;
  height:100%;
  border-radius:0;
}

/* Keep the opening label clear of the full-height tear strip. */

/* Point to the top of the strip where the tear begins. */
.real-letter-stage .envelope-flap span {
  white-space:nowrap;
  font-size:8px;
  letter-spacing:.4px;
}

.real-letter-stage .envelope-flap span {
  writing-mode:vertical-rl;
  text-orientation:mixed;
  top:10px;
  left:30%;
  right:auto;
}

/* Keep the opened hinge in its own layer beneath the emerging paper. */
.real-letter-stage .letter-envelope {
  transform-style:flat;
  isolation:isolate;
}

/* Archive directory, styled as a quiet vintage text terminal. */
.archive-terminal {
  position:relative;
  margin-top:30px;
  font-family:'Courier New',monospace;
}

.archive-terminal:before,.archive-terminal:after {
  position:absolute;
  color:var(--ink);
  font:22px/1 'Courier New',monospace;
  background:var(--bg);
  pointer-events:none;
}

.archive-terminal:before {
  content:'┌';
  left:-5px;
  top:-8px;
}

.archive-terminal:after {
  content:'┘';
  right:-5px;
  bottom:-8px;
}

.terminal-status {
  justify-content:space-between;
  font-size:10px;
  letter-spacing:1px;
  padding-bottom:15px;
}

.terminal-online {
  white-space:nowrap;
}

.terminal-command {
  letter-spacing:.5px;
  color:var(--ink);
}

.terminal-cursor {
  animation:terminal-blink 1.2s steps(1) infinite;
  margin-left:5px;
}

.archive-terminal .archive-row h2 {
  font:700 21px/1.45 'Courier New',monospace;
}

.archive-terminal .archive-author {
  font:13px/1.6 'Courier New',monospace;
}

.archive-terminal .archive-row .tag {
  letter-spacing:1px;
}

.archive-terminal .archive-row .tag:before {
  content:'[ ';
}

.archive-terminal .archive-row .tag:after {
  content:' ]';
}

.archive-terminal .archive-row:hover {
  color:var(--ink);
  background:var(--wash);
}

.archive-terminal #count {
  color:var(--muted);
}

.archive-terminal #count:before {
  content:'> ';
}

@keyframes terminal-blink {
  50% {
    opacity:0;
  }
}

@media(max-width:600px) {
  .archive-terminal {
    padding:20px 18px;
  }
  .terminal-status {
    font-size:8px;
    letter-spacing:.5px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .terminal-cursor {
    animation:none;
  }
}

/* Fine ruled record-card details from the archival label reference. */
.archive-terminal {
  padding:0;
  border:1px solid var(--line);
  box-shadow:0 2px 7px #0000000b;
}

.archive-terminal:before,.archive-terminal:after {
  display:none;
}

.terminal-status {
  display:grid;
  grid-template-columns:85px 1fr 115px;
  gap:0;
  padding:0;
  border-bottom:1px solid var(--line);
  color:var(--ink);
  align-items:stretch;
}

.terminal-monogram {
  font:700 32px/1 Palatino,serif;
  display:flex;
  align-items:center;
  justify-content:center;
  border-right:1px solid var(--line);
  padding:22px 12px;
}

.terminal-identity {
  padding:18px;
  font-size:10px;
  line-height:1.9;
  letter-spacing:.25px;
}

.terminal-online {
  border-left:1px solid var(--line);
  padding:18px 14px;
  font-size:9px;
  line-height:2;
  letter-spacing:.5px;
}

.terminal-command {
  margin:0;
  padding:10px 16px;
  border-bottom:1px solid var(--line);
  font-size:10px;
}

.archive-terminal .archive-row {
  padding:0;
  gap:0;
  grid-template-columns:minmax(0,1fr) 150px;
  border-bottom:1px solid var(--line);
}

.archive-terminal .archive-row>div {
  padding:0 0 17px;
}

.archive-terminal .archive-row .tag {
  padding:8px 16px;
  border-bottom:1px solid var(--line);
  margin-bottom:14px;
  font-size:9px;
}

.archive-terminal .archive-row h2 {
  padding:0 16px;
  font-size:19px;
  font-weight:400;
  letter-spacing:-.4px;
}

.archive-terminal .archive-row .archive-author {
  padding:0 16px;
  font-size:12px;
  margin-bottom:0;
}

.archive-terminal .archive-row .end {
  border-left:1px solid var(--line);
  padding:13px 12px;
  text-align:left;
  font-size:9px;
  line-height:2;
}

.archive-terminal #count {
  padding:12px 16px;
  margin:0;
  font-size:9px;
}

@media(max-width:600px) {
  .terminal-status {
    grid-template-columns:53px 1fr 78px;
  }
  .terminal-monogram {
    font-size:25px;
    padding:18px 7px;
  }
  .terminal-identity {
    padding:12px 10px;
    font-size:8px;
  }
  .terminal-online {
    padding:12px 8px;
    font-size:8px;
  }
  .archive-terminal .archive-row {
    grid-template-columns:minmax(0,1fr) 96px;
  }
  .archive-terminal .archive-row .end {
    grid-column:auto;
    padding:12px 8px;
    font-size:8px;
  }
  .archive-terminal .archive-row h2 {
    font-size:17px;
  }
  .archive-terminal .archive-row .tag {
    font-size:8px;
    letter-spacing:.3px;
  }
}

/* The envelope wrapper must be empty: only its physical panels carry texture. */
.real-letter-stage .letter-envelope {
  background:transparent!important;
  background-image:none!important;
}

/* Filters flatten 3D faces; keep the fold solid and cast shadows per panel. */
.real-letter-stage .actual-folded-note {
  filter:none;
  isolation:auto;
}

.real-letter-stage .actual-note-top {
  box-shadow:0 10px 16px #00000028;
}

.real-letter-stage .actual-note-face {
  background-color:var(--paper);
}

.real-letter-stage .actual-note-bottom:after {
  opacity:1;
  box-shadow:0 8px 16px #00000025,inset 0 -6px 9px #0000000c;
}

/* Royal-blue terminal startup mark, before the directory types in. */
.archive-boot {
  position:absolute;
  inset:0;
  z-index:5;
  background:var(--paper);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:20px;
  pointer-events:none;
}

.archive-boot-star {
  color:#234bd0;
  font:64px/1 Georgia,serif;
}

.archive-boot-label {
  color:var(--muted);
}

.archive-booting>.terminal-status,.archive-booting>.terminal-command,.archive-booting>#results,.archive-booting>#count {
  visibility:hidden;
}

html[data-mode=dark] .archive-boot-star {
  color:#819bff;
}

@keyframes archive-star-boot {
  0% {
    opacity:0;
    transform:scale(.65) rotate(-90deg);
  }
  25% {
    opacity:1;
  }
  65% {
    transform:scale(1) rotate(0);
  }
  80% {
    opacity:.5;
  }
  100% {
    opacity:1;
    transform:scale(1) rotate(0);
  }
}

@keyframes archive-boot-out {
  to {
    opacity:0;
  }
}

@media(prefers-reduced-motion:reduce) {
  .archive-boot {
    display:none;
  }
}

/* Pixel-built startup star and deliberately stepped terminal flicker. */
.archive-boot {
  animation:archive-boot-out .3s 2.3s both;
}

.archive-boot-star {
  width:64px;
  height:64px;
  image-rendering:pixelated;
}

@keyframes archive-pixel-boot {
  0% {
    opacity:0;
    transform:scale(.85);
  }
  12% {
    opacity:1;
    transform:scale(.85);
  }
  20% {
    opacity:.25;
  }
  27% {
    opacity:1;
    transform:scale(1);
  }
  42% {
    opacity:.55;
  }
  48% {
    opacity:1;
  }
  78% {
    opacity:1;
  }
  84% {
    opacity:.4;
  }
  90%,100% {
    opacity:1;
  }
}

.archive-boot-star {
  animation:archive-pixel-spin 2.3s steps(16,end) both;
}

.archive-boot-label {
  font:10px/1 'Courier New',monospace;
  white-space:pre;
  text-align:left;
}

.archive-boot-label>span {
  display:block;
}

.archive-boot-label .terminal-cursor {
  margin-left:0;
}

@keyframes archive-pixel-spin {
  0% {
    transform:rotate(0deg);
    opacity:.4;
  }
  15% {
    opacity:1;
  }
  100% {
    transform:rotate(360deg);
    opacity:1;
  }
}

.archive-boot-label {
  font-size:13px;
  line-height:1.1;
  letter-spacing:0;
}

.archive-boot-label>span {
  font:inherit;
  white-space:pre;
  letter-spacing:0;
}

/* Archive monogram and status grid. */
.archive-terminal .terminal-monogram {
  font:700 32px/1 Palatino,serif;
  letter-spacing:normal;
  padding:22px 12px;
}

.archive-terminal .terminal-status {
  grid-template-columns:85px 1fr 115px;
}

html[data-mode=dark] .archive-terminal .terminal-monogram {
  color:var(--ink);
}

@media(max-width:600px) {
  .archive-terminal .terminal-status {
    grid-template-columns:53px 1fr 78px;
  }
  .archive-terminal .terminal-monogram {
    font-size:25px;
    padding:18px 7px;
  }
}

/* Keep the page above the site's background-grain overlay. */
.article-paper {
  position:relative;
  z-index:1;
  background-color:var(--paper);
  opacity:1;
  isolation:isolate;
}

/* Archive files: monochrome terminal documents, in the existing reading layout. */
.archive-file-layout, .archive-terminal {
  --file-ink: #202020;
  --file-paper: var(--paper);
  --file-muted: #555550;
  color: var(--file-ink);
}
html[data-mode=dark] .archive-file-layout,
html[data-mode=dark] .archive-terminal {
  --file-ink: #e5e5e0;
  --file-paper: var(--paper);
  --file-muted: #b9b9b2;
}
.archive-file-layout .article-paper {
  background: var(--file-paper);
  box-shadow: none;
  border: 1px solid var(--line);
}
/* Open records use the directory's restrained, ruled fields. */
.archive-file-layout .article-paper h1 {
  font: 400 28px/1.3 'Courier New', monospace;
  letter-spacing: normal;
  margin: 20px 18px 8px;
}
.archive-file-header {
  border: 1px solid var(--line);
  margin-bottom: 32px;
}
.archive-file-header > .smallcaps {
  padding: 9px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .5px;
}
.archive-file-layout .archive-byline {
  font: 13px/1.6 'Courier New', monospace;
  margin: 0 18px 22px;
}
.archive-file-layout .archive-stamp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .3px;
  line-height: 1.9;
  color: var(--file-muted);
}
.archive-file-layout .archive-stamp > span { padding: 10px 18px; }
.archive-file-layout .archive-stamp > span + span { border-left: 1px solid var(--line); }
.archive-file-layout .archive-stamp b { font-weight: 400; color: var(--file-ink); }
.archive-file-layout .metadata {
  margin: 0;
  padding: 8px 18px;
  border: 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
.archive-file-layout .breadcrumbs,
.archive-file-layout .toc,
.archive-file-layout .toc a,
.archive-file-layout .section-label { color: var(--file-muted); }
.archive-file-layout .breadcrumbs a:hover { color: var(--file-ink); }
.archive-file-layout .prose {
  font: 16px/1.75 'Courier New', monospace;
  color: var(--file-ink);
}
.archive-file-layout .prose h2 {
  font-size: 23px;
  text-transform: uppercase;
}
.archive-file-layout .prose h3 {
  font-size: 19px;
  text-transform: uppercase;
}
.archive-file-layout .prose a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.archive-file-layout .doc-footer {
  border: 1px solid var(--line);
  text-align: left;
  padding: 0;
  margin-top: 36px;
}
.archive-file-layout .doc-footer > .smallcaps {
  font-size: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}
.archive-file-layout .doc-footer dl {
  margin: 0;
  font-size: 10px;
  line-height: 1.9;
}
.archive-file-layout .doc-footer dt,
.archive-file-layout .doc-footer dd { padding: 7px 18px; }
.archive-file-layout .doc-footer dd { border-left: 1px solid var(--line); }
.archive-file-layout .doc-footer dt:not(:first-of-type),
.archive-file-layout .doc-footer dd:not(:first-of-type) { border-top: 1px solid var(--line); }
.archive-file-layout .actions button {
  color: var(--file-ink);
  border-color: var(--file-muted);
}
.archive-file-layout a:hover {
  color: var(--file-ink);
}
.archive-file-layout ::selection {
  color: var(--file-paper);
  background: var(--file-ink);
}
@media (max-width: 600px) {
  .archive-file-layout .prose { font-size: 14px; }
  .archive-file-layout .article-paper h1 { font-size: 23px; }
  .archive-file-layout .archive-stamp > span { padding: 10px; }
}
@media print {
  .archive-file-layout {
    --file-ink: #000;
    --file-paper: #fff;
    --file-muted: #333;
  }
  .archive-file-layout .article-paper { border: 0; }
  .archive-file-layout .article-paper > .smallcaps,
  .archive-file-layout .doc-footer > .smallcaps:first-child {
    background: none;
    color: #000;
    border: 1px solid #000;
  }
}

/* Directory ink matches its files, on the original warmer paper stock. */
.archive-terminal {
  --ink: var(--file-ink);
  --muted: var(--file-muted);
  --accent: var(--file-ink);
  background: var(--paper);
  color: var(--file-ink);
}
.archive-terminal .terminal-monogram {
  color: var(--file-ink);
}

/* Text keeps its final dimensions throughout the file-loading sequence. */
.archive-file-layout .metadata { display: flex; align-items: center; justify-content: space-between; }
.file-type-skip { border: 0; padding: 0; font-size: 10px; text-transform: uppercase; }
.file-type-skip:hover { background: none; text-decoration: underline; }
.file-type-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
  background: var(--file-ink);
  pointer-events: none;
  animation: file-cursor-blink .7s steps(1, end) infinite;
}
@keyframes file-cursor-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce), print {
  .file-type-character { visibility: visible !important; }
  .file-type-skip { display: none; }
  .file-type-cursor { display: none; }
}

.archive-file-layout .article-paper > .actions > a,
.archive-file-layout .article-paper > .actions > a:hover {
  text-decoration: none;
  border-bottom: 0;
}

/* A closing note within each Archive record. */
.archive-file-layout .archive-signoff {
  border-top: 1px solid var(--line);
  padding: 20px 18px;
  text-align: center;
  font: 10px/1.8 'Courier New', monospace;
  letter-spacing: .7px;
}
.archive-file-layout .archive-signoff p { margin: 0 0 5px; }
.archive-file-layout .archive-signoff > span { color: var(--file-muted); font-size: 9px; }

/* Both faces retain the real note silhouette throughout the fold. */
.real-letter-stage .actual-note-top,
.real-letter-stage .actual-note-bottom {
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.real-letter-stage .actual-note-face,
.real-letter-stage .actual-note-reverse {
  background: transparent;
  filter: drop-shadow(0 8px 9px #00000026);
}
.real-letter-stage .actual-note-bottom::after { display: none; }

/* Personal-letter typography, shared by the note and its animated copies. */
.about-note .prose {
  font-family: Palatino, 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  line-height: 1.85;
}
.about-note .prose p[lang=ko] {
  font-family: "AppleMyungjo", "Batang", serif;
  font-style: normal;
  font-weight: 400;
}

/* Journal backing sheet and catalogue header. */
.writing-sheet {
  background: var(--paper);
  padding: 40px 38px 28px;
  min-height: 420px;
}
.writing-sheet::before { display: none; }
.journal-heading {
  display: grid;
  grid-template-columns: 82px minmax(0,1fr) auto;
  align-items: start;
  gap: 20px;
  color: var(--ink);
  margin-bottom: 28px;
  padding-bottom: 22px;
  font-size: 10px;
  letter-spacing: .3px;
}
.journal-heading p { margin: 12px 0 0; }
.journal-heading > span { text-align: right; line-height: 1.8; }
.journal-folio { margin-top: 48px; }
@media(max-width:600px) {
  .writing-sheet { padding: 28px 18px 24px; min-height: 350px; }
  .journal-heading { grid-template-columns: 1fr auto; gap: 14px; }
  .journal-heading > strong { grid-column: 1 / -1; }
}

/* Individual catalogue cards on the opening Journal sheet. */
.writing-sheet #results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
:is(.writing-sheet, .journal-document-shadow) .writing-label {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 330px;
  padding: 26px 28px;
  cursor: pointer;
  background: var(--wash);
  border: 0;
  border-radius: 6px;
  filter: none;
  mask: radial-gradient(circle at 0 70px, transparent 9px, #000 9.5px) left / 51% 100% no-repeat,
        radial-gradient(circle at 100% 70px, transparent 9px, #000 9.5px) right / 51% 100% no-repeat;
  -webkit-mask: radial-gradient(circle at 0 70px, transparent 9px, #000 9.5px) left / 51% 100% no-repeat,
        radial-gradient(circle at 100% 70px, transparent 9px, #000 9.5px) right / 51% 100% no-repeat;
  mask-composite: add;
  transition: background-color .18s ease, transform .18s ease;
}
:is(.writing-sheet, .journal-document-shadow) .writing-label:last-child { border: 0; }
:is(.writing-sheet, .journal-document-shadow) .writing-label:hover,
:is(.writing-sheet, .journal-document-shadow) .writing-label:focus-visible {
  background: var(--bg);
  transform: translateY(-2px);
}
:is(.writing-sheet, .journal-document-shadow) .writing-label:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: -1px;
}
.writing-sheet .report-reference {
  font: 11px/1.5 'Courier New', monospace;
  letter-spacing: .7px;
  padding-bottom: 36px;
  color: var(--muted);
  white-space: nowrap;
}
:is(.writing-sheet, .journal-document-shadow) .writing-label h2 {
  display: block;
  font: 400 23px/1.25 'Courier New', monospace;
  letter-spacing: normal;
  margin: 12px 0 18px;
}
:is(.writing-sheet, .journal-document-shadow) .writing-label .tag { font-size: 10px; letter-spacing: 0; margin: 0 0 8px; }
:is(.writing-sheet, .journal-document-shadow) .writing-label .tag::before { content: '['; }
:is(.writing-sheet, .journal-document-shadow) .writing-label .tag::after { content: ']'; }
:is(.writing-sheet, .journal-document-shadow) .writing-label p {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font: 12px/1.65 'Courier New', monospace;
}
:is(.writing-sheet, .journal-document-shadow) .writing-label .end {
  margin-top: auto;
  border: 0;
  padding-top: 26px;
  text-align: left;
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1.8;
}
.journal-card-open {
  display: block;
  padding-top: 16px;
  color: var(--ink);
  font-size: 11px;
}
@media(max-width:600px) {
  .writing-sheet #results { grid-template-columns: 1fr; gap: 18px; }
  :is(.writing-sheet, .journal-document-shadow) .writing-label { padding: 24px; min-height: 300px; }
  :is(.writing-sheet, .journal-document-shadow) .writing-label h2 { font-size: 22px; }
}
@media(prefers-reduced-motion:reduce) {
  :is(.writing-sheet, .journal-document-shadow) .writing-label { transition: none; }
  :is(.writing-sheet, .journal-document-shadow) .writing-label:hover { transform: none; }
}

/* Off-screen card entrances must not widen the document. */
body:has(.writing-page) { overflow-x: clip; }

/* Textured backing sheet beneath the Journal's catalogue cards. */
.writing-sheet {
  background-color: var(--paper);
  background-image: var(--texture-01);
  border-radius: 1px;
  box-shadow: 0 2px 3px #0000000b, 0 14px 30px #00000016;
  border-top: 1px solid #ffffff55;
  border-bottom: 1px solid #00000012;
}
html[data-mode=dark] .writing-sheet {
  border-top-color: #ffffff0d;
  border-bottom-color: #00000055;
  box-shadow: 0 2px 4px #0003, 0 14px 30px #0004;
}
@media print {
  .writing-sheet { box-shadow: none; border: 0; }
}

/* Separate the smooth index-card stock from its textured backing sheet. */
:is(.writing-sheet, .journal-document-shadow) .writing-label {
  background-color: #fffdf6;
}
:is(.writing-sheet, .journal-document-shadow) .writing-label:hover,
:is(.writing-sheet, .journal-document-shadow) .writing-label:focus-visible {
  background-color: #f4f0e4;
}
html[data-mode=dark] :is(.writing-sheet, .journal-document-shadow) .writing-label {
  background-color: #414141;
}
html[data-mode=dark] :is(.writing-sheet, .journal-document-shadow) .writing-label:hover,
html[data-mode=dark] :is(.writing-sheet, .journal-document-shadow) .writing-label:focus-visible {
  background-color: #494949;
}

/* Shadow belongs outside the notched mask so it follows the card silhouette. */
.journal-card-shadow {
  min-width: 0;
  filter: drop-shadow(0 3px 3px #00000018) drop-shadow(0 9px 10px #0000000d);
}
.journal-card-shadow > .writing-label { height: 100%; }
html[data-mode=dark] .journal-card-shadow {
  filter: drop-shadow(0 4px 4px #00000045) drop-shadow(0 10px 12px #00000026);
}
@media print { .journal-card-shadow { filter: none !important; } }

/* Keep the index header in the same printed type as its catalogue cards. */
.journal-heading > strong {
  font: 400 12px/1.5 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.journal-heading p {
  font: 11px/1.7 'Courier New', monospace;
  letter-spacing: 0;
  color: var(--muted);
}

/* Journal documents inherit the catalogue cards' stock and typography. */
.article-paper.writing-article {
  position: relative;
  background: #fffdf6;
  border-radius: 6px;
}
html[data-mode=dark] .article-paper.writing-article { background: #414141; }
.writing-article::before,
.writing-article::after {
  content: '';
  position: absolute;
  top: 94px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
}
.writing-article::before { left: -9px; }
.writing-article::after { right: -9px; }
.article-paper.writing-article h1 {
  font: 400 clamp(27px, 3vw, 36px)/1.25 'Courier New', monospace;
  letter-spacing: normal;
  margin: 22px 0 16px;
}
.writing-article > .smallcaps { font-size: 10px; letter-spacing: .5px; }
.writing-article > .smallcaps::before { content: '['; }
.writing-article > .smallcaps::after { content: ']'; }
.writing-article .subtitle {
  font: 14px/1.7 'Courier New', monospace;
  color: var(--muted);
}
.writing-article .metadata {
  border-top-style: solid;
  border-bottom-style: solid;
  font-size: 10px;
  line-height: 1.7;
}
.writing-article .prose h2,
.writing-article .prose h3 {
  font-family: 'Courier New', monospace;
  font-weight: 400;
  letter-spacing: -.4px;
}
.writing-article .doc-footer { border-top-style: solid; }
.writing-article .doc-footer .rule { border-top-style: solid; }
.writing-article .doc-footer .barcode { display: none; }
@media print {
  .article-paper.writing-article { background: white; box-shadow: none; }
  .writing-article::before,.writing-article::after { display: none; }
}

/* True cutouts, with the silhouette shadow outside the mask. */
.journal-document-shadow {
  min-width: 0;
  filter: drop-shadow(0 4px 5px #00000014) drop-shadow(0 14px 18px #00000012);
}
.article-paper.writing-article {
  box-shadow: none;
  mask: radial-gradient(circle at 0 103px, transparent 9px, #000 9.5px) left / 51% 100% no-repeat,
        radial-gradient(circle at 100% 103px, transparent 9px, #000 9.5px) right / 51% 100% no-repeat;
  -webkit-mask: radial-gradient(circle at 0 103px, transparent 9px, #000 9.5px) left / 51% 100% no-repeat,
        radial-gradient(circle at 100% 103px, transparent 9px, #000 9.5px) right / 51% 100% no-repeat;
  mask-composite: add;
}
.writing-article::before,.writing-article::after { display: none; }
html[data-mode=dark] .journal-document-shadow {
  filter: drop-shadow(0 4px 5px #0005) drop-shadow(0 14px 18px #0003);
}
@media print {
  .journal-document-shadow { filter: none !important; }
  .article-paper.writing-article { mask: none; -webkit-mask: none; }
}

/* Journal files read as typed pages from the same catalogue as the index. */
.article-paper.writing-article {
  font-family: 'Courier New', Courier, monospace;
  background-image: var(--texture-01);
}
.writing-article .prose,
.writing-article .prose blockquote {
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  line-height: 1.85;
}
.writing-article .prose h2 {
  font: 700 23px/1.4 'Courier New', Courier, monospace;
  letter-spacing: -.4px;
}
.writing-article .prose h3 {
  font: 700 19px/1.4 'Courier New', Courier, monospace;
  letter-spacing: -.3px;
}
.writing-article .subtitle,
.writing-article .notice,
.writing-article .doc-footer,
.writing-article button {
  font-family: 'Courier New', Courier, monospace;
}
.writing-article .doc-footer > .smallcaps:first-child {
  display: table;
  margin: 0 auto 18px;
  padding: 3px 6px;
  color: var(--paper);
  background: var(--ink);
  letter-spacing: .6px;
}
.writing-article .prose a {
  text-underline-offset: 3px;
}
@media(max-width:600px) {
  .writing-article .prose,
  .writing-article .prose blockquote { font-size: 14px; line-height: 1.8; }
  .writing-article .prose h2 { font-size: 21px; }
  .writing-article .prose h3 { font-size: 18px; }
}
@media print {
  .writing-article .doc-footer > .smallcaps:first-child { color: #000; background: none; }
}

@property --journal-notch { syntax: '<length>'; inherits: false; initial-value: 70px; }

/* A small ink seal, filed in the free corner of each Journal card. */
.writing-sheet .writing-label { position: relative; }
.journal-stamp {
  position: absolute;
  top: var(--stamp-top);
  right: var(--stamp-right);
  width: 60px;
  height: 60px;
  color: #2148bd;
  opacity: .82;
  transform: rotate(var(--stamp-turn));
  pointer-events: none;
}
.journal-stamp svg { display: block; width: 100%; height: 100%; overflow: visible; }
.journal-stamp .stamp-edge,
.journal-stamp .stamp-bleed,
.journal-stamp .stamp-ring,
.journal-stamp .stamp-dots { fill: none; stroke: currentColor; }
.journal-stamp .stamp-bleed {
  stroke-width: 5.2;
  stroke-dasharray: 3 7 9 5 2 11;
  opacity: .27;
}
.journal-stamp .stamp-edge { stroke-width: 3.1; stroke-linecap: round; }
.journal-stamp .stamp-ring { stroke-width: 1.7; }
.journal-stamp .stamp-dots { stroke-width: 1.1; stroke-dasharray: 1 2.6; }
.journal-stamp .stamp-star { fill: currentColor; }
.stamp-variation-0 { --stamp-top: 10px; --stamp-right: 17px; --stamp-turn: -8deg; }
.stamp-variation-1 { --stamp-top: 16px; --stamp-right: 26px; --stamp-turn: 6deg; }
.stamp-variation-2 { --stamp-top: 9px; --stamp-right: 21px; --stamp-turn: -3deg; }
.stamp-variation-3 { --stamp-top: 17px; --stamp-right: 14px; --stamp-turn: 10deg; }
.stamp-variation-4 { --stamp-top: 12px; --stamp-right: 30px; --stamp-turn: -11deg; }
.stamp-variation-5 { --stamp-top: 15px; --stamp-right: 22px; --stamp-turn: 3deg; }
html[data-mode=dark] .journal-stamp { color: #6b89f7; }
@media (max-width: 600px) { .journal-stamp { width: 54px; height: 54px; } }

/* The print lifts out while its sleeve slides below the viewport. */
.prints-page .print-card.is-extracting { z-index: 3; }
.prints-page .print-card.is-extracting .sleeve-face { will-change: transform; }
.prints-page .print-pocket {
  position: relative;
  padding: 20px 10px 12px;
  transform: rotate(-1.3deg);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.prints-page .print-card:nth-child(even) .print-pocket { transform: rotate(1.1deg); }
.prints-page a.print-card:focus-visible .print-pocket { transform: translateY(-12px) rotate(0deg); }
@media (hover: hover) and (pointer: fine) {
  .prints-page a.print-card:hover .print-pocket { transform: translateY(-12px) rotate(0deg); }
}

.prints-page .photo-mount {
  padding: 9px 9px 17px;
  background: #f7f4eb;
  box-shadow: 1px 4px 8px #00000020, 0 17px 22px -14px #00000055;
  transform: none;
  transition: box-shadow .4s ease;
}
.prints-page .print-card:nth-child(even) .photo-mount { transform: none; }
.prints-page a.print-card:focus-visible .photo-mount {
  transform: none;
  box-shadow: 1px 10px 18px #0000002b, 0 25px 28px -15px #00000055;
}
@media (hover: hover) and (pointer: fine) {
  .prints-page a.print-card:hover .photo-mount {
    transform: none;
    box-shadow: 1px 10px 18px #0000002b, 0 25px 28px -15px #00000055;
  }
}

.prints-page .print-card:nth-child(even) { padding-top: 0; }
.print-image img { display: block; width: 100%; height: auto; }
.prints-page .photo-mount .print-caption,
.print-detail .photo-mount .print-caption {
  display: block;
  margin: 0;
  padding: 14px 5px 2px;
  color: #24231f;
}
.prints-page .photo-mount .print-caption { opacity: 0; }
.prints-page .print-card.is-extracting .photo-mount .print-caption {
  opacity: 1;
  transition: opacity .3s ease .1s;
}
.prints-page .photo-mount .print-caption h2 {
  font: 18px/1.3 Georgia, serif;
  letter-spacing: -.02em;
  margin: 0;
}
.print-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 13px;
  row-gap: 3px;
  margin-top: 13px;
  padding-top: 9px;
  border-top: 1px solid #34302942;
  font: 9px/1.55 'Courier New', monospace;
  letter-spacing: .035em;
  color: #45413a;
}
.prints-page .sleeve-face {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  left: 0;
  right: 0;
  top: 34px;
  bottom: 12px;
  box-sizing: border-box;
  border: 1px solid #ffffff9c;
  border-top: 0;
  background: linear-gradient(115deg,#fffef46e 0%,#eeeae16e 46%,#f9f7ef78 100%);
  box-shadow: 0 4px 12px #00000028, inset 1px 0 2px #ffffffaa, inset -1px 0 2px #ffffffaa;
  transition: box-shadow .4s ease;
}
.prints-page a.print-card:focus-visible .sleeve-face { box-shadow: 0 12px 22px #0000002a, inset 1px 0 2px #ffffffaa, inset -1px 0 2px #ffffffaa; }
@media (hover: hover) and (pointer: fine) {
  .prints-page a.print-card:hover .sleeve-face { box-shadow: 0 12px 22px #0000002a, inset 1px 0 2px #ffffffaa, inset -1px 0 2px #ffffffaa; }
}

.prints-page .sleeve-face::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--texture-01);
  opacity: .26;
}
.prints-page .sleeve-face::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #bbb4a6bd;
  box-shadow: 0 -2px 5px #ffffff8a;
}
.sleeve-mark,.sleeve-tab {
  position: absolute;
  top: 14px;
  font: 8px/1.2 'Courier New', monospace;
  letter-spacing: .1em;
  color: #2828249c;
}
.sleeve-mark { left: 15px; }
.sleeve-tab { right: 15px; }
.sleeve-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 24px 19px;
  color: #24231f;
  transition: opacity .2s ease;
}
.sleeve-title {
  display: block;
  font: 18px/1.3 Georgia, serif;
  letter-spacing: -.02em;
  padding-bottom: 10px;
  border-bottom: 1px solid #34302942;
}
.sleeve-redactions { display: flex; gap: 18px; padding-top: 12px; }
.sleeve-redactions i { display: block; height: 8px; background: #24231f; flex: 1; }
.sleeve-redactions i:first-child { flex: .38; }
.sleeve-redactions i:last-child { flex: 1.25; }
.print-card.is-extracting .photo-mount { transition: none; }
.print-card:focus-visible { outline: 1px dashed var(--ink); outline-offset: 7px; }
.print-detail-head { margin: 36px 0 18px; }
.print-detail-stage { width: min(100%, 780px); margin: 0 auto 52px; }
.print-detail-stage .photo-mount {
  padding: 14px 14px 26px;
  background: #f7f4eb;
  transform: none;
  box-shadow: 1px 8px 18px #00000024, 0 24px 46px #0000003d;
}
.print-detail-stage .print-caption { padding: 20px 13px 1px; }
.print-detail .print-caption h1 {
  margin: 0;
  padding: 0;
  border: 0;
  color: #24231f;
  font: 400 clamp(25px,3.2vw,38px)/1.24 Georgia, serif;
  letter-spacing: normal;
}
.print-detail-stage .print-meta { font-size: 11px; margin-top: 22px; padding-top: 13px; }
.print-signoff {
  max-width: 780px;
  margin: 0 auto 18px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
  color: var(--ink);
  text-align: center;
  font: 10px/1.8 'Courier New', monospace;
  letter-spacing: .7px;
}
.print-signoff span { display: block; }
.print-signoff span + span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}
.print-detail > .actions { max-width: 780px; margin: 0 auto; }
.print-detail > .print-actions {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 12px;
}
.print-actions > a[href="/prints"],.print-actions > #back-editor {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}
.print-actions > .download-photo {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  white-space: nowrap;
  border: 1px solid var(--line);
  padding: 9px 13px;
}
.print-actions > .download-photo:hover { background: var(--wash); }
.print-detail .prose,.print-detail > .intro { max-width: 780px; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) {
  .prints-page .print-pocket { padding: 14px 4px 9px; }
  .prints-page .sleeve-face { top: 28px; bottom: 9px; }
  .sleeve-info { padding: 12px 15px 16px; }
  .sleeve-title { font-size: 17px; }
  .prints-page .photo-mount .print-caption h2 { font-size: 17px; }
  .print-detail-head { margin-top: 28px; }
  .print-detail-stage .photo-mount { padding: 9px 9px 20px; }
  .print-detail-stage .print-caption { padding: 15px 8px 0; }
  .print-detail-stage .print-meta { font-size: 9px; }
}
@media (max-width: 480px) {
  .print-detail > .print-actions { column-gap: 6px; font-size: 10px; }
  .print-actions > .download-photo { padding: 9px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .prints-page .photo-mount,.prints-page .print-pocket { transition: none; }
}
@media print {
  .prints-page .sleeve-face { display: none; }
  .prints-page .photo-mount .print-caption { opacity: 1; }
  .print-detail-stage .photo-mount { box-shadow: none; }
}

/* Game previews are stacked like loose index folders. */
.game-folder-stack {
  position: relative;
  width: min(100%,750px);
  height: 635px;
  margin: 118px auto 44px;
  isolation: isolate;
}

.game-folder {
  --game-folder-paper: #eeeae0;
  --game-folder-edge: #38352e;
  --game-folder-ink: #000;
  --game-tab-width: 34%;
  appearance: none;
  display: block;
  align-content: start;
  position: absolute;
  left: 50%;
  width: 100%;
  height: 290px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--game-folder-ink);
  font-family: 'Courier New',monospace;
  text-align: left;
  cursor: pointer;
  transform: translateX(-50%);
  transition: transform .58s cubic-bezier(.22,1,.36,1);
}

.game-folder:nth-child(1) {
  top: 40px;
  z-index: 1;
  --tab-left: 20%;
}

.game-folder:nth-child(2) {
  top: 132px;
  z-index: 2;
  --tab-left: 50%;
}

.game-folder:nth-child(3) {
  top: 224px;
  z-index: 3;
  --tab-left: 32%;
}

.game-folder:nth-child(4) {
  top: 316px;
  z-index: 4;
  --tab-left: 68%;
}

.game-folder.game-folder-dark {
  --game-folder-paper: #252421;
  --game-folder-edge: #f5f1e8;
  --game-folder-ink: #f5f1e8;
  color: var(--game-folder-ink);
}

.game-folder-crown {
  position: absolute;
  z-index: 0;
  top: -30px;
  left: 0;
  width: 100%;
  height: calc(100% + 30px);
  overflow: visible;
  fill: var(--game-folder-paper);
  stroke: var(--game-folder-edge);
  stroke-width: 1;
  filter: drop-shadow(0 2px 2px #00000024) drop-shadow(0 6px 8px #00000012);
  transition: filter .58s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}

.game-folder-crown path {
  vector-effect: non-scaling-stroke;
  stroke-linecap: butt;
  stroke-linejoin: round;
}

.game-folder-crown-mobile {
  display: none;
}

.game-folder > span {
  z-index: 1;
}

.game-folder-tab {
  position: absolute;
  top: -30px;
  left: var(--tab-left);
  width: var(--game-tab-width);
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  font: 10px/1 'Courier New',monospace;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
}

.game-folder-tab>span {
  position: relative;
}

.game-folder-topline {
  position: absolute;
  top: 13px;
  left: 26px;
  right: 26px;
  display: block;
  padding: 0 0 7px;
  border-bottom: 1px solid currentColor;
  font-size: 9px;
  letter-spacing: .7px;
  opacity: 1;
}

.game-folder-title {
  position: absolute;
  top: 42px;
  left: 26px;
  display: block;
  font: normal 29px/1.15 Georgia,serif;
  letter-spacing: -.5px;
}

.game-folder:not(:last-child) .game-folder-title {
  opacity: 0;
  transition: opacity .22s ease;
}

.game-folder-detail {
  position: absolute;
  top: 80px;
  left: 26px;
  right: 26px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 460px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease,transform .45s cubic-bezier(.22,1,.36,1);
}

.game-folder-mode,.game-folder-instruction {
  font: 9px/1.4 'Courier New',monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.game-folder-description {
  font: 16px/1.45 Georgia,serif;
}

.game-folder-instruction {
  position: absolute;
  left: 26px;
  bottom: 22px;
  opacity: 1;
  transition: opacity .2s ease;
}

.game-folder:hover,.game-folder:focus-visible,.game-folder.is-open {
  color: var(--game-folder-ink);
  transform: translate(-50%,-84px);
}

.game-folder:is(:hover,:focus-visible,.is-open) .game-folder-crown {
  filter: drop-shadow(0 13px 12px #00000023);
}

.game-folder:not(:last-child):is(:hover,:focus-visible,.is-open) .game-folder-topline,
.game-folder:not(:last-child):is(:hover,:focus-visible,.is-open) .game-folder-title {
  opacity: 1;
}

.game-folder:is(:hover,:focus-visible,.is-open) .game-folder-detail {
  opacity: 1;
  transform: translateY(0);
}

.game-folder:is(:hover,:focus-visible,.is-open) .game-folder-instruction {
  opacity: 0;
}

.game-folder-stack:has(.game-folder:hover) .game-folder.is-open:not(:hover) {
  transform: translateX(-50%);
}

.game-folder-stack:has(.game-folder:hover) .game-folder.is-open:not(:hover) .game-folder-crown {
  filter: drop-shadow(0 2px 2px #00000024) drop-shadow(0 6px 8px #00000012);
}

.game-folder-stack:has(.game-folder:hover) .game-folder.is-open:not(:hover) .game-folder-detail,
.game-folder-stack:has(.game-folder:hover) .game-folder.is-open:not(:hover) .game-folder-title {
  opacity: 0;
}

.game-folder-stack:has(.game-folder:hover) .game-folder.is-open:not(:hover) .game-folder-instruction {
  opacity: .65;
}

.game-folder-stack:has(.game-folder:hover) .game-folder.is-open:last-child:not(:hover) .game-folder-topline,
.game-folder-stack:has(.game-folder:hover) .game-folder.is-open:last-child:not(:hover) .game-folder-title {
  opacity: 1;
}

.game-folder:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.games-page>.actions {
  width: min(100%,750px);
  margin: 0 auto;
}

.games-count {
  width: min(100%,750px);
  margin: 0 auto 22px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font: 9px/1.5 'Courier New',monospace;
  letter-spacing: 1px;
}

@media (max-width:600px) {
  .game-folder-stack {
    height: 555px;
    margin-top: 120px;
  }
  .game-folder {
    height: 260px;
  }
  .game-folder:nth-child(1) {
    top: 32px;
  }
  .game-folder:nth-child(2) {
    top: 115px;
  }
  .game-folder:nth-child(3) {
    top: 198px;
  }
  .game-folder:nth-child(4) {
    top: 281px;
  }
  .game-folder {
    --game-tab-width: 52%;
  }
  .game-folder-crown-desktop {
    display: none;
  }
  .game-folder-crown-mobile {
    display: block;
  }
  .game-folder-tab {
    font-size: 8px;
  }
  .game-folder:nth-child(1) {
    --tab-left: 28%;
  }
  .game-folder:nth-child(2) {
    --tab-left: 63%;
  }
  .game-folder:nth-child(3) {
    --tab-left: 38%;
  }
  .game-folder:nth-child(4) {
    --tab-left: 70%;
  }
  .game-folder-topline {
    top: 11px;
    left: 16px;
    right: 16px;
    padding-bottom: 6px;
    font-size: 8px;
  }
  .game-folder-title {
    top: 36px;
    left: 16px;
    font-size: 24px;
  }
  .game-folder-detail {
    top: 69px;
    left: 16px;
    right: 16px;
    gap: 4px;
  }
  .game-folder-description {
    font-size: 14px;
  }
  .game-folder-instruction {
    left: 16px;
    bottom: 16px;
    font-size: 8px;
  }
  .game-folder:hover,.game-folder:focus-visible,.game-folder.is-open {
    transform: translate(-50%,-75px);
  }
}

/* Touch taps open playable files directly, without a competing hover lift. */
@media (hover:none), (pointer:coarse) {
 .game-folder:hover:not(.is-open):not(:focus-visible){transform:translateX(-50%)}
 .game-folder:hover:not(.is-open):not(:focus-visible) .game-folder-crown{filter:drop-shadow(0 2px 2px #00000024) drop-shadow(0 6px 8px #00000012)}
 .game-folder:hover:not(.is-open):not(:focus-visible) .game-folder-detail{opacity:0;transform:translateY(10px)}
 .game-folder:not(:last-child):hover:not(.is-open):not(:focus-visible) .game-folder-title{opacity:0}
 .game-folder:hover:not(.is-open):not(:focus-visible) .game-folder-instruction{opacity:1}
 .game-folder{touch-action:manipulation}
}

@media (prefers-reduced-motion:reduce) {
  .game-folder,.game-folder-detail,.game-folder-instruction {
    transition: none;
  }
}

/* Solitaire is a small playable terminal, with the same legible board in both site modes. */
.solitaire-window {
  position: relative;
  isolation: isolate;
  --sol-card: clamp(36px,8vw,70px);
  --sol-gap: clamp(4px,1vw,10px);
  --sol-height: calc(var(--sol-card) * 1.44);
  --sol-step: clamp(25px,2.4vw,30px);
  width: min(100%,680px);
  margin: 42px auto 0;
  overflow: hidden;
  border: 1px solid #5a5554;
  border-radius: 18px;
  background: #1e1e1e;
  color: #f4f2ee;
  box-shadow: 0 28px 55px #00000043,0 3px 8px #00000030;
  font-family: 'Courier New',monospace;
}

html[data-mode=dark] .solitaire-window {
  border-color: #837b79;
  box-shadow: 0 28px 55px #00000080,0 3px 8px #00000060;
}

.sol-titlebar {
  position: relative;
  height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #433a39;
  border-bottom: 1px solid #6b605e;
}

.sol-titlebar strong {
  font: 600 20px/1 system-ui,sans-serif;
  letter-spacing: -.6px;
  color: #e7e1dc;
}

.sol-traffic {
  position: absolute;
  left: 17px;
  display: flex;
  gap: 8px;
}

.sol-traffic i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fa615a;
  box-shadow: inset 0 -1px 2px #0005;
}

.sol-traffic i:nth-child(2) {
  background: #ffbd4d;
}

.sol-traffic i:nth-child(3) {
  background: #39c85d;
}

.sol-title-end {
  position: absolute;
  right: 18px;
  color: #b8aaa5;
  font-size: 9px;
  letter-spacing: 1px;
}

.sol-controls {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px 0;
  color: #aaa7a2;
  font-size: 10px;
  letter-spacing: 1px;
}

.sol-board {
  width: calc(var(--sol-card) * 7 + var(--sol-gap) * 6);
  margin: 16px auto 0;
}

.sol-top,.sol-tableau {
  display: grid;
  grid-template-columns: repeat(7,var(--sol-card));
  gap: var(--sol-gap);
}

.sol-top {
  align-items: start;
}

.sol-spacer {
  width: var(--sol-card);
}

.sol-slot,.sol-card {
  width: var(--sol-card);
  height: var(--sol-height);
}

.sol-slot {
  position: relative;
  background: none;
  border: 0;
  padding: 0;
}

.sol-foundation,.sol-card {
  border: 2px solid #f2f2ee;
  border-radius: 5px;
  background: #1e1e1e;
  color: #f2f2ee;
}

/* Use the spare top-row column for a readable, responsive draw-three fan. */
.sol-waste{
  position:relative;
  --waste-step:calc(var(--sol-card) * .36);
  --waste-offset:calc(var(--waste-count) * var(--waste-step));
}
.sol-waste>.sol-waste-peek{
  position:absolute;
  left:calc(var(--waste-offset) - var(--peek) * var(--waste-step));
  top:calc(var(--peek) * -10px);
  pointer-events:none;
  cursor:default;
  z-index:0;
}
/* A surface-colored clearance hides the rear borders beneath each overlap. */
.sol-waste>.sol-card{
  box-shadow:0 0 0 4px #1e1e1e;
}
.sol-waste>button.sol-card{
  position:relative;
  left:var(--waste-offset);
  z-index:1;
}
.sol-board:has(.sol-waste-peek){
  margin-top:36px;
}

.sol-foundation {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sol-foundation:hover,.sol-card:hover {
  background: #1e1e1e;
}
@media (hover: hover) and (pointer: fine) {
  .sol-empty-target:hover {
    background: #282828;
}
}

.sol-card,.sol-foundation {
  font: 600 clamp(13px,calc(var(--sol-card) * .28),20px)/1 'Courier New',monospace;
}

.sol-card {
  position: relative;
  display: block;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.sol-card.is-red,.sol-corner.is-red {
  color: #f15a49;
}

.sol-card.is-selected,.sol-foundation.is-selected {
  background: #1e1e1e;
}

.sol-selection-star {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #f2f2ee;
  pointer-events: none;
}

.sol-layer:not(:last-child) .sol-selection-star {
  inset: 0 0 auto auto;
  width: var(--sol-step);
  height: var(--sol-step);
}

.sol-corner {
  position: absolute;
  top: -.48em;
  left: 3px;
  padding: 0 2px;
  background: #1e1e1e;
  white-space: nowrap;
}

.sol-corner-bottom {
  top: auto;
  bottom: -.48em;
  left: auto;
  right: 3px;
}

.sol-stock {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: .9;
  font-size: calc(var(--sol-card) * .35);
}

.sol-stock.is-backed {
  font-size: calc(var(--sol-card) * .3);
  letter-spacing: 1px;
}

.sol-stock-mark {
  display: block;
  width: calc(var(--sol-card) - 4px);
  max-width: 64px;
  height: auto;
}

.sol-tableau {
  margin-top: 24px;
  min-height: 405px;
}

.sol-column {
  position: relative;
  min-height: var(--sol-height);
}

.sol-empty-target {
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--sol-card);
  height: var(--sol-height);
  padding: 0;
  border: 1px dashed #ffffff45;
  border-radius: 5px;
  background: transparent;
}

.sol-layer {
  position: absolute;
  left: 0;
  width: var(--sol-card);
  height: var(--sol-height);
}

.sol-layer:not(:last-child) > .sol-card:not(.sol-facedown) {
  height: calc(var(--sol-step) - 6px);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.sol-layer:not(:last-child) > .sol-card .sol-corner-bottom {
  display: none;
}

.sol-facedown {
  display: block;
  height: calc(var(--sol-step) - 6px);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: #1e1e1e;
}

.sol-status {
  min-height: 38px;
  padding: 0 24px;
  color: #c7c3bd;
  font-size: 11px;
}

.sol-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px 18px;
  border-top: 1px solid #5a5654;
  font-size: 10px;
  letter-spacing: .5px;
}

.sol-toolbar button {
  padding: 4px 0;
  border: 0;
  color: #eee;
}

.sol-toolbar button:hover {
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sol-toolbar button:disabled {
  opacity: .35;
  cursor: default;
  text-decoration: none;
}

.sol-toolbar span {
  margin-left: auto;
  color: #898681;
  text-align: right;
}

.solitaire-page>.actions {
  width: min(100%,680px);
  margin: 22px auto 0;
}

@media (max-width:600px) {
  .solitaire-window {
    --sol-card: clamp(28px,9.6vw,52px);
    --sol-gap: 4px;
    --sol-step: clamp(22px,5.5vw,28px);
    border-radius: 12px;
  }
  .sol-titlebar {
    height: 42px;
  }
  .sol-titlebar strong {
    font-size: 16px;
  }
  .sol-title-end {
    display: none;
  }
  .sol-controls {
    padding: 14px 12px 0;
    font-size: 8px;
  }
  .sol-tableau {
    min-height: 400px;
  }
  .sol-status {
    padding: 0 12px;
  }
  .sol-toolbar {
    padding: 12px;
    gap: 10px;
    font-size: 9px;
  }
  .sol-toolbar span {
    display: none;
  }
}

@supports (view-transition-name: active-print) {
  ::view-transition-group(active-print) {
    animation-duration: 580ms;
    animation-timing-function: cubic-bezier(.76,0,.24,1);
  }
  ::view-transition-old(active-print) { animation: print-out 580ms ease-in-out both; }
  ::view-transition-new(active-print) { animation: print-in 580ms ease-in-out both; }
  ::view-transition-old(root) { animation: print-page-out 580ms ease-in-out both; }
  ::view-transition-new(root) { animation: print-page-in 580ms ease-in-out both; }
}
@keyframes print-out { from { opacity:1; } to { opacity:0; } }
@keyframes print-in { from { opacity:0; } to { opacity:1; } }
@keyframes print-page-out { from { opacity:1; } to { opacity:0; } }
@keyframes print-page-in { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(active-print),::view-transition-old(active-print),::view-transition-new(active-print),::view-transition-old(root),::view-transition-new(root) {
    animation-duration: 1ms;
  }
}

/* Empty categories belong to the same terminal or paper as their entries. */
.collection-empty {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.collection-empty p { margin: 0 0 10px; }
.collection-empty > span { display: block; color: var(--muted); }
.archive-terminal .archive-empty {
  padding: 36px 24px;
  font: 14px/1.7 'Courier New', Courier, monospace;
  letter-spacing: 0;
}
.archive-terminal .archive-empty > span { font-size: 12px; }
.writing-sheet .journal-empty {
  grid-column: 1 / -1;
  padding: 38px 4px 48px;
  font: 16px/1.7 'Courier New', Courier, monospace;
  letter-spacing: 0;
}
.writing-sheet .journal-empty > span { font-size: 13px; }
@media(max-width:600px) {
  .archive-terminal .archive-empty { padding: 28px 18px; }
  .writing-sheet .journal-empty { padding: 24px 0 36px; }
}

/* Keep dark mode's shadow off the 3D parent: filters flatten folded faces. */
.real-letter-stage .actual-folded-note,
html[data-mode=dark] .real-letter-stage .actual-folded-note {
  filter: none;
  transform-style: preserve-3d;
  will-change: transform;
}
.real-letter-stage .actual-note-bottom { will-change: transform; }
.real-letter-stage .actual-note-face,
.real-letter-stage .actual-note-reverse {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.real-letter-stage .actual-note-reverse > .actual-note-face { filter: none; }
.real-letter-stage .letter-envelope,
.real-letter-stage .envelope-lining,
.real-letter-stage .envelope-flap { will-change: transform; }

/* Empty archives keep the same enclosed count row as populated directories. */
.archive-terminal #results:has(.archive-empty) + #count {
  border-top: 1px solid var(--line);
}

/* Contact shadow follows only the ripped edge of the folded blank face. */
.folded-corner-shadow {
  position: absolute;
  right: 0;
  top: -16px;
  width: 80px;
  height: 90px;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke: #000;
  stroke-width: 1.5;
  opacity: .14;
  filter: blur(.8px);
}
html[data-mode=dark] .folded-corner-shadow { opacity: .26; }
.folded-corner-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: inset(-7px 0 0 0);
}

/* The backing sheet's perforated edge stays beneath every photo/sleeve layer. */
.album-sheet > .album-heading,
.album-sheet > .print-grid,
.album-sheet > .print-empty,
.album-sheet > .album-end { position: relative; z-index: 1; }

/* A private, familiar login at the writing desk. */
.desk-login { display: grid; gap: 10px; max-width: 380px; }
.desk-login label { font: 11px/1.6 'Courier New', monospace; margin-top: 10px; }
.desk-login input { width: 100%; min-height: 44px; }
.desk-login #auth-message { margin: 10px 0; font-size: 12px; }
.desk-login button { justify-self: start; min-height: 44px; }

/* Signed-in desk: a private terminal beneath the public paper surfaces. */
.desk-terminal {
  --ink:#f4f2ee;
  --muted:#b6b1aa;
  --line:#595552;
  --paper:#1e1e1e;
  --wash:#353330;
  color:var(--ink);
  background:var(--paper);
  border:1px solid #837b79;
  border-radius:18px;
  box-shadow:0 24px 50px #0004,0 3px 8px #0003;
  font:14px/1.65 'Courier New',Courier,monospace;
  margin:32px 0 48px;
  isolation:isolate;
}
.desk-terminal-tab { border-radius:17px 17px 0 0; }
.desk-terminal-tab strong { font-size:17px; letter-spacing:0; }
.desk-terminal-tab .sol-title-end { display:none; }
.desk-terminal-body { padding:30px; }
.desk-prompt { display:flex;align-items:baseline;gap:14px;margin:0 0 30px; }
.desk-prompt > span { color:#a0b5ff;font-size:20px; }
.desk-terminal .desk-prompt h1 { font:400 clamp(19px,3vw,27px)/1.4 'Courier New',monospace;letter-spacing:0;margin:0; }
.desk-terminal .desk-picker { font:11px/1.6 'Courier New',monospace;max-width:100%;margin-bottom:30px; }
.desk-terminal .desk-picker .desk-select { max-width:460px; }
.desk-terminal button,.desk-terminal input,.desk-terminal textarea,.desk-terminal select { font-family:inherit;letter-spacing:0;color:var(--ink); }
.desk-terminal button { cursor:pointer; }
.desk-terminal button:disabled { opacity:.45;cursor:not-allowed; }
.desk-terminal input,.desk-terminal textarea { background:#252525;border:1px solid var(--line);border-radius:3px;min-height:44px;padding:12px; }
.desk-terminal input::placeholder { color:#b6b1aa;opacity:1; }
.desk-terminal :focus-visible { outline:2px solid #a0b5ff;outline-offset:3px;box-shadow:none; }
.desk-terminal .desk-select-trigger { min-height:46px;font-size:14px;transition:border-color .2s; }
.desk-terminal .desk-select-menu { background:#252525;border-color:#77716d;box-shadow:0 12px 24px #0005;animation:none;max-height:300px; }
.desk-terminal .desk-select-menu button { min-height:44px;font-size:14px; }
.desk-terminal .desk-select-menu button:hover,.desk-terminal .desk-select-menu button:focus-visible { background:transparent; }
.desk-terminal .editor-layout { grid-template-columns:210px minmax(0,1fr);gap:30px; }
.desk-terminal .editor-list { min-width:0;border-right:1px solid var(--line);padding-right:22px; }
.desk-terminal .editor-list button { padding:12px 8px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;min-height:44px;font-size:12px;transition:background .2s; }
.desk-terminal .editor-list button:hover,.desk-terminal .editor-list .selected { background:#353330; }
.desk-terminal .editor-list .primary { border:1px solid #77716d; }
.desk-terminal .section-label,.desk-terminal .tag,.desk-terminal .status { color:var(--muted);font-family:inherit;letter-spacing:0;font-size:11px; }
.desk-terminal .editor-form { min-width:0; }
.desk-panel { border-top:1px solid var(--line);margin:0; }
.desk-panel-toggle { display:flex;justify-content:space-between;align-items:center;width:100%;padding:17px 0;background:transparent;border:0;font-size:12px;text-align:left;text-transform:uppercase; }
.desk-panel-toggle::after { content:'−';color:var(--muted);font-size:18px; }
.desk-panel-toggle[aria-expanded=false]::after { content:'+'; }
.desk-panel-content { padding:0 0 24px;min-width:0;display:flow-root; }
.desk-panel-content[hidden] { display:none; }
.desk-terminal .editor-form label { font:12px/1.6 'Courier New',monospace;letter-spacing:0;color:var(--muted);margin:8px 0 16px; }
.desk-terminal .editor-form label input { margin-top:8px; }
.desk-terminal .toolbar button { background:transparent;border:0;font-size:11px;transition:background .2s; }
.desk-terminal .toolbar button:hover { background:#44413b; }
.desk-terminal .editable { background:#1e1e1e;color:#f4f2ee;border-top:0;min-height:350px;padding:22px;font:15px/1.8 'Courier New',monospace; }
.desk-terminal .editable :is(p,h2,h3,blockquote,li,a) { font-family:inherit;color:inherit; }
.desk-terminal .actions { margin:0;padding:8px 0 0;border:0;gap:12px; }
.desk-terminal .actions button { padding:10px 14px;border:1px solid #77716d;min-height:44px;background:transparent;font-size:12px;transition:background .2s; }
.desk-terminal .actions .primary { background:#f4f2ee;color:#1e1e1e; }
.desk-terminal .actions button:hover { background:#393733; }
.desk-terminal #save-status { display:block;width:100%; }
.desk-terminal-status { display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:28px;padding-top:16px;font-size:10px;color:var(--muted); }
.desk-terminal ::selection { background:#a0b5ff;color:#171717; }
@media(max-width:760px) {
 .desk-terminal-body { padding:22px 18px; }
 .desk-terminal .editor-layout { grid-template-columns:1fr;gap:26px; }
 .desk-terminal .editor-list { border-right:0;border-bottom:1px solid var(--line);padding:0 0 22px; }
 .desk-terminal .editor-list button { width:100%; }
 .desk-terminal-tab .sol-traffic { left:14px;gap:6px; }
 .desk-terminal-tab .sol-traffic i { width:10px;height:10px; }
 .desk-terminal-tab strong { font-size:15px; }
 .desk-terminal .editable { padding:16px; }
 .desk-terminal-status { font-size:9px; }
}
@media(prefers-reduced-motion:reduce) {
 .desk-terminal *, .desk-select * { transition-duration:.01ms!important;animation-duration:.01ms!important; }
}
.desk-terminal .desk-picker .desk-select-menu {
 position:relative;top:auto;margin-top:5px;max-height:300px;overflow-x:hidden;overflow-y:auto;
}
.desk-terminal .editor-list > .desk-panel-toggle {border:0;font-size:11px; }
.desk-library-content[hidden] { display:none; }
.desk-terminal .editor-list #new { margin-bottom:18px; }
.desk-terminal .editor-list .desk-library-content button { display:block;width:100%; }
@media(max-width:760px) {
 .desk-terminal .editor-list { margin-bottom:0;padding-bottom:0; }
 .desk-terminal .editor-list > .desk-panel-toggle { margin-bottom:0;min-height:44px; }
}
/* Pasted copy shares one body size; headings are applied explicitly in the toolbar. */
.desk-terminal .editable :is(p,li,blockquote,strong,b,em,i,a,span) { font-size:inherit; }
.desk-terminal .editable p { font-size:15px; }
.desk-terminal .alignment-controls { display:inline-flex;gap:3px;border-left:1px solid var(--line);padding-left:7px;margin-left:3px; }
.desk-terminal .toolbar button[aria-pressed=true] { background:#49463f;box-shadow:inset 0 -2px #a0b5ff; }

/* Separate writing tools by purpose while keeping every control visible. */
.desk-terminal .toolbar { display:flex;flex-wrap:wrap;align-items:stretch;gap:12px 20px; }
.desk-terminal .toolbar-section { display:flex;flex-direction:column;gap:5px;min-width:0; }
.desk-terminal .toolbar-section-label { color:var(--muted);font:10px/1.4 'Courier New',monospace;text-transform:uppercase;letter-spacing:.5px;padding:0 8px; }
.desk-terminal .toolbar-section-buttons { display:flex;flex-wrap:wrap;gap:3px; }
.desk-terminal .toolbar .alignment-controls { border:0;padding:0;margin:0; }
.desk-terminal .toolbar button { min-height:40px; }
@media(max-width:600px) {
 .desk-terminal .toolbar-section { width:100%; }
 .desk-terminal .toolbar-section + .toolbar-section { border-top:1px solid var(--line);padding-top:10px; }
}

.desk-link-dialog { width:min(440px,calc(100% - 36px));padding:26px;background:#252525;color:#f4f2ee;border:1px solid #837b79;border-radius:10px;box-shadow:0 20px 60px #0007;font:14px/1.6 'Courier New',monospace; }
.desk-link-dialog::backdrop { background:#0008; }
.desk-link-dialog h2 { margin:0 0 22px;font:20px/1.3 'Courier New',monospace;color:inherit;letter-spacing:0; }
.desk-link-dialog label { display:block;margin-bottom:8px;font-size:12px; }
.desk-link-dialog input { width:100%;min-height:44px;background:#1e1e1e;color:#f4f2ee;border:1px solid #837b79;padding:10px;font:14px 'Courier New',monospace; }
.desk-link-dialog input::placeholder { color:#b6b1aa; }
.desk-link-error { color:#ffb4ab;font-size:12px; }
.desk-link-actions { display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:20px; }
.desk-link-actions button { min-height:44px;background:transparent;color:#f4f2ee;border:1px solid #837b79;padding:8px 12px;font:12px 'Courier New',monospace; }
.desk-link-actions button[type=submit] { background:#f4f2ee;color:#1e1e1e; }
.desk-link-dialog :focus-visible { outline:2px solid #a0b5ff;outline-offset:3px; }

/* Links remain identifiable while editing, without relying on color alone. */
.desk-terminal .editable a,
.desk-terminal .editable a:visited {
  color:#a9beff;
  text-decoration-line:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
  text-decoration-skip-ink:auto;
}
.desk-terminal .editable a:hover {
  color:#d3ddff;
  text-decoration-thickness:2px;
}
.desk-terminal .toolbar button[aria-pressed=mixed] { background:#353330;box-shadow:inset 0 -1px #a0b5ff; }

/* Prevent text-field focus zoom in iPhone browsers without restricting pinch zoom. */
@media (max-width: 760px), (pointer: coarse) {
  :is(.desk-terminal, .desk-login) :is(input, textarea, select, [contenteditable="true"]),
  .desk-terminal .editable p,
  .desk-link-dialog input {
    font-size: 16px;
  }
}

/* Published documents and private works in progress have separate shelves. */
.desk-terminal .desk-document-group { margin:0 0 24px; }
.desk-terminal .desk-document-group h2 { display:flex;justify-content:space-between;align-items:center;gap:12px;font:12px/1.5 'Courier New',monospace;letter-spacing:0;text-transform:uppercase;color:#f4f2ee;margin:0 0 12px;padding:0 8px; }
.desk-terminal .desk-document-group h2 span { color:var(--muted);font-size:11px; }
.desk-terminal .desk-list-empty { font:11px/1.7 'Courier New',monospace;color:var(--muted);padding:0 8px;margin:10px 0; }
.desk-terminal .editor-list button[hidden] { display:none; }

/* Each document shelf opens independently. */
.desk-terminal .editor-list .desk-document-toggle {
 display:flex;align-items:center;gap:12px;width:100%;min-height:44px;
 padding:8px;margin:0 0 8px;border:0;background:transparent;
 color:#f4f2ee;font:12px/1.5 'Courier New',monospace;text-transform:uppercase;
}
.desk-terminal .desk-document-toggle > span { color:var(--muted);font-size:11px; }
.desk-document-toggle::after { content:'⌄';color:var(--muted);transform:rotate(180deg);transition:transform .28s; }
.desk-document-toggle[aria-expanded=false]::after { transform:rotate(0); }
.desk-document-content[hidden] { display:none; }

/* Keep the library disclosure symbol at the far edge of its heading. */
.desk-terminal .editor-list > .desk-panel-toggle {
  display:flex;
  align-items:center;
  gap:16px;
  width:100%;
}
.desk-terminal .editor-list > .desk-panel-toggle::after {
  margin-left:auto;
  flex-shrink:0;
}
/* Keep collection changes anchored beneath the stationary title bar. */
.desk-terminal-page { overflow-anchor:none; }
.desk-terminal-body { box-sizing:border-box; }

/* Bracket commands and field rules belong to the terminal's inner interface. */
.desk-terminal .desk-prompt h1 { font-size:clamp(17px,2.2vw,23px); }
.desk-terminal .desk-picker { color:#c7c1b8; }
.desk-terminal .desk-select-trigger,
.desk-terminal .editor-form label input,
.desk-terminal .editor-form label textarea {
 background:transparent;border:0;border-bottom:1px solid #77716d;border-radius:0;
 padding-left:10px;box-shadow:none;
}
.desk-terminal .desk-select-trigger::before { content:'[ ';color:#a0b5ff; }
.desk-terminal .desk-select-trigger::after { content:' ]';top:12px;color:#a0b5ff;transform:none; }
.desk-terminal .desk-select-trigger[aria-expanded=true] { background:transparent;border-color:#77716d; }
.desk-terminal .desk-select-menu { padding:0;border-radius:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;box-sizing:border-box; }
.desk-terminal .desk-select-menu button { padding:10px 14px; }
.desk-terminal .desk-select-menu button::before { content:'[ ] ';color:#b6b1aa;white-space:pre; }
.desk-terminal .desk-select-menu button[aria-selected=true]::before { content:'[x] ';color:#a0b5ff; }
.desk-terminal :is(.desk-panel-toggle,.desk-document-toggle)::before { content:'[+]';color:#a0b5ff;font-size:12px;flex-shrink:0; }
.desk-terminal :is(.desk-panel-toggle,.desk-document-toggle)[aria-expanded=true]::before { content:'[−]'; }
.desk-terminal :is(.desk-panel-toggle,.desk-document-toggle)::after { content:none; }
.desk-terminal .desk-panel-toggle { justify-content:flex-start;gap:12px;font-size:12px; }
.desk-terminal .editor-list > .desk-panel-toggle { justify-content:flex-start;padding:17px 0; }
.desk-terminal .editor-list .desk-document-toggle { justify-content:flex-start;padding-left:0; }
.desk-terminal .desk-document-toggle > span { margin-left:auto; }
.desk-terminal .desk-panel-content { padding:0; }
.desk-terminal .desk-panel-content > .desk-disclosure-inner { padding:0 0 24px;display:flow-root; }
.desk-terminal .desk-document-content > .desk-disclosure-inner { padding:4px 0 12px;display:flow-root; }
.desk-terminal .desk-library-content > .desk-disclosure-inner { padding:4px 0 20px;display:flow-root; }
.desk-terminal .desk-panel,.desk-terminal .editor-list { border-color:#45423f; }
.desk-terminal .desk-document-group { margin-bottom:10px; }
.desk-terminal .desk-drafts { padding-top:8px;border-top:1px solid #45423f; }
.desk-terminal .toolbar { background:transparent;border:0;border-top:1px solid #595552;border-bottom:1px solid #595552;padding:12px 0; }
.desk-terminal .toolbar button { border-radius:0;padding:6px 8px; }
.desk-terminal .toolbar button::before { content:'[';color:#b6b1aa;margin-right:4px; }
.desk-terminal .toolbar button::after { content:']';color:#b6b1aa;margin-left:4px; }
.desk-terminal .editable { border:0;border-bottom:1px solid #595552;padding-left:0;padding-right:0;caret-color:#a0b5ff; }
.desk-terminal .actions button,.desk-terminal .editor-list #new { background:transparent;color:#f4f2ee;border:0;border-bottom:1px solid #77716d;border-radius:0;text-align:left; }
.desk-terminal .actions button::before,.desk-terminal .editor-list #new::before { content:'[ ';color:#a0b5ff; }
.desk-terminal .actions button::after,.desk-terminal .editor-list #new::after { content:' ]';color:#a0b5ff; }
.desk-terminal .actions .primary:hover { background:#353330; }
.desk-terminal .desk-terminal-status { font-size:10px; }
.desk-terminal .editor-list .desk-library-content .desk-document-toggle { display:flex;gap:10px;align-items:center; }
.desk-terminal button:is(.desk-panel-toggle,.desk-document-toggle):is(:hover,:active) { background:transparent; }

/* The active document remains visible even when its details are collapsed. */
.desk-terminal .desk-current-document {
 display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 20px;
 border-top:1px solid #595552;border-bottom:1px solid #595552;
 padding:17px 0;margin:0 0 25px;overflow-wrap:anywhere;
}
/* Dropdowns open without a mouse/touch selection flash; keyboard outlines remain. */
.desk-terminal button:is(.desk-select-trigger,.desk-panel-toggle,.desk-document-toggle),
.desk-terminal .desk-select-menu button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.desk-terminal button.desk-select-trigger:is(:hover,:active,:focus){background:transparent;box-shadow:none}
.desk-terminal .desk-select-menu button:is(:hover,:active){background:transparent;box-shadow:none}

.desk-current-label { grid-column:1 / -1;color:#b6b1aa;font:10px/1.5 'Courier New',monospace;letter-spacing:.5px; }
.desk-current-document strong { color:#f4f2ee;font:400 17px/1.5 'Courier New',monospace; }
.desk-current-state { align-self:center;color:#a9beff;font:11px/1.6 'Courier New',monospace; }
@media(max-width:600px) {
 .desk-terminal .desk-current-document { grid-template-columns:1fr;gap:7px; }
 .desk-current-label { grid-column:auto; }
}

/* Game files share the Archive's ruled structure; the playing surface stays black. */
.games-page .game-folder-title { font:400 25px/1.25 'Courier New',monospace;letter-spacing:0; }
.games-page .game-folder-description { font:13px/1.6 'Courier New',monospace; }
.games-page .games-count { display:flex;justify-content:space-between;gap:12px;font-size:9px; }
.games-index-signoff { width:min(100%,750px);margin:28px auto 32px;padding-top:24px;border-top:1px solid var(--line);text-align:center;font:11px/1.7 'Courier New',monospace;color:var(--ink); }
.games-index-signoff p,.game-file-signoff p { margin:0 0 7px;font-size:11px;letter-spacing:1px; }
.games-index-signoff > span,.game-file-signoff > span { font-size:11px;color:var(--muted);letter-spacing:0; }
.game-record-label { width:min(100%,750px);margin:36px auto 14px;font:10px/1.6 'Courier New',monospace;color:var(--muted); }
.solitaire-page .game-file-window {
 --ink:#f4f2ee;--muted:#bbb5ac;--line:#686159;--paper:#1e1e1e;--wash:#35312d;
 width:min(100%,750px);margin:0 auto;background:#1e1e1e;color:#f4f2ee;border:1px solid #837b79;border-radius:0;
 box-shadow:0 12px 30px #0002;
}
html[data-mode=dark] .solitaire-page .game-file-window { background:#1e1e1e;box-shadow:0 12px 30px #0005;border-color:#837b79; }
.game-file-header { display:grid;grid-template-columns:80px minmax(0,1fr) 165px;border-bottom:1px solid var(--line); }
.game-file-monogram { display:flex;align-items:center;justify-content:center;border-right:1px solid var(--line);font:700 29px/1 Palatino,serif;padding:22px 10px; }
.game-file-identity { padding:19px 22px; }
.game-file-identity > span { font:9px/1.8 'Courier New',monospace;letter-spacing:.5px; }
.game-file-window .game-file-identity h1 { margin:7px 0;font:400 25px/1.2 'Courier New',monospace;letter-spacing:0;color:#f4f2ee; }
.game-file-spec { display:flex;flex-direction:column;justify-content:center;gap:7px;padding:16px;border-left:1px solid var(--line);font:9px/1.6 'Courier New',monospace; }
.game-file-command { padding:11px 18px;border-bottom:1px solid var(--line);font:9px/1.7 'Courier New',monospace;color:var(--muted); }
.game-file-window .sol-controls { padding-top:18px; }
.game-file-window .sol-toolbar { border-top:1px solid var(--line); }
.game-file-window .sol-toolbar button { font-family:'Courier New',monospace;color:#f4f2ee; }
.game-file-signoff { border-top:1px solid var(--line);padding:27px 18px;text-align:center; }
.solitaire-page > .actions { width:min(100%,750px); }
@media(max-width:600px) {
 .game-file-header { grid-template-columns:54px minmax(0,1fr); }
 .game-file-monogram { font-size:22px;padding:16px 8px; }
 .game-file-identity { padding:16px; }
 .game-file-window .game-file-identity h1 { font-size:23px; }
 .game-file-identity > span { font-size:8px; }
 .game-file-spec { grid-column:1 / -1;flex-direction:row;flex-wrap:wrap;justify-content:space-between;border-left:0;border-top:1px solid var(--line);padding:9px 12px;font-size:8px; }
 .game-file-command { font-size:8px;padding:10px 12px; }
 .games-page .games-count { flex-direction:column;gap:5px; }
}
/* The game file is physically lifted out; its folder remains a separate object. */
.game-extraction-stage { position:fixed;inset:0;z-index:1000;pointer-events:none;overflow:hidden;background:transparent; }
.game-extraction-stage > .games-page { z-index:0;isolation:isolate; }
.game-file-carrier { position:fixed;inset:0;z-index:2;pointer-events:none; }
.game-extraction-stage .game-file-window { background:#1e1e1e;color:#f4f2ee;border:1px solid #837b79;border-radius:0;box-shadow:0 18px 38px #0005;--ink:#f4f2ee;--muted:#bbb5ac;--line:#686159; }
.game-extraction-stage .game-file-identity h1 { font:400 25px/1.2 'Courier New',monospace;letter-spacing:0;color:#f4f2ee;margin:7px 0; }
.game-boot { position:absolute;inset:0;z-index:20;display:flex;justify-content:center;align-items:flex-start;padding:clamp(85px,15vw,150px) 20px 40px;background:#1e1e1e;color:#f4f2ee; }
.game-boot-inner { width:min(340px,100%);text-align:center;font:11px/1.8 'Courier New',monospace; }
.game-boot-inner p { margin:10px 0 8px;font-size:12px; }
.game-boot-inner > span { display:block;color:#bbb5ac;font-size:10px; }
.game-boot-star { width:64px;height:64px;color:#557aff; }
.game-boot-track { height:9px;margin:24px 0 14px;border:1px solid #837b79;padding:2px; }
.game-boot-track i { display:block;height:3px;background:#f4f2ee;transform-origin:left center; }
@media(max-width:600px) {
 .game-extraction-stage .game-file-identity h1 { font-size:23px; }
 .game-boot { padding-top:85px; }
}
.game-extraction-opening { background:var(--bg); }
.game-extraction-stage .game-folder-title { font:400 25px/1.25 'Courier New',monospace;letter-spacing:0; }
.game-extraction-stage .game-folder-description { font:13px/1.6 'Courier New',monospace; }
.game-folders-frozen { pointer-events:none; }
/* The extracted shell stays blank until its horizontal-to-vertical resize finishes. */
.game-file-carrier .game-file-window { overflow:hidden; }
.game-file-carrier .game-file-window > * { visibility:hidden; }

/* Numbered puzzle files share Solitaire's opaque terminal surface. */
.puzzle-play-area{padding:22px 24px 0;color:#eee;font-family:inherit}
.puzzle-settings{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;font-size:11px;letter-spacing:.03em;margin-bottom:24px}
.puzzle-settings b{font-weight:400;font-variant-numeric:tabular-nums}
.mine-grid{display:grid;grid-template-columns:repeat(var(--mine-cols),minmax(0,1fr));gap:4px;max-width:510px;margin:0 auto}
.mine-cell{appearance:none;aspect-ratio:1;min-width:0;padding:0;border:1px solid #aaa;border-radius:3px;background:#1e1e1e;color:#eee;font:500 clamp(12px,2.2vw,21px)/1 monospace;display:flex;align-items:center;justify-content:center;cursor:pointer}
.mine-cell.is-revealed{border-color:#414141;background:#252525;color:#c9c9c9}
.mine-cell.is-flagged{color:#7394ff}
.mine-cell.is-exploded{color:#ff7568;border-color:#ff7568}
.mine-cell:disabled{opacity:1;cursor:default}
.mine-cell:not(.is-actionable){cursor:default}
.mine-cell:not(.is-actionable):hover{background:#1e1e1e}
.mine-cell.is-revealed:not(.is-actionable):hover{background:#252525}
.mine-cell:disabled:hover{background:#1e1e1e}
.mine-cell.is-revealed:disabled:hover{background:#252525}
.mine-flag{width:65%;height:65%;max-width:25px;color:#7394ff}
.mine-cell:focus-visible,.reversi-cell:focus-visible{outline:2px solid #8fa8ff;outline-offset:2px;z-index:1}
@media (hover: hover) and (pointer: fine) {
  .mine-cell.is-actionable:not(:disabled):hover {border-color:#fff;background:#303030;cursor:pointer}
}

.puzzle-help{font-size:11px!important;line-height:1.8!important;color:#aaa!important;margin:24px 0 0!important}
.puzzle-status{min-height:3.5em;font-size:12px;line-height:1.6;padding:18px 0;color:#eee}
.puzzle-toolbar button[aria-pressed=true]{color:#9eb4ff;border-color:#9eb4ff}
.reversi-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));max-width:510px;margin:0 auto;border:1px solid #aaa;background:#1e1e1e;gap:0}
.reversi-cell{appearance:none;aspect-ratio:1;min-width:0;padding:0;border:0;border-right:1px solid #555;border-bottom:1px solid #555;background:#1e1e1e;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:0}
.reversi-cell:nth-child(8n){border-right:0}.reversi-cell:nth-last-child(-n+8){border-bottom:0}
.reversi-cell:disabled{opacity:1;cursor:default}
.reversi-cell:not(.is-legal),.reversi-cell:not(.is-legal):hover{background:#1e1e1e;cursor:default}
@media (hover: hover) and (pointer: fine) {
  .reversi-cell.is-legal:not(:disabled):hover {background:#303030;cursor:pointer}
}

.reversi-disc{display:inline-block;width:69%;height:69%;flex-shrink:0;border-radius:50%;border:1.5px solid #eee;background:#1e1e1e}
.disc-white{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%20100%22%3E%3Cdefs%3E%3CclipPath%20id%3D%22disc%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2241%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3Cpath%20d%3D%22M0%2060L60%200M0%2080L80%200M0%20100L100%200M20%20100L100%2020M40%20100L100%2040%22%20clip-path%3D%22url%28%23disc%29%22%20fill%3D%22none%22%20stroke%3D%22%23eeeeee%22%20stroke-width%3D%222.8%22%2F%3E%3C%2Fsvg%3E");background-size:100% 100%;background-position:center;background-repeat:no-repeat}
.reversi-cell.is-last .reversi-disc{border-color:#9eb4ff}
.reversi-legal{width:9%;height:9%;min-width:4px;min-height:4px;border-radius:50%;background:#829eff}
.reversi-count{display:flex;align-items:center;gap:7px}.reversi-count .reversi-disc{width:14px;height:14px}
.reversi-turn{display:flex;justify-content:space-between;gap:10px;font-size:11px;margin:0 auto 14px;max-width:510px;color:#ddd}
.game-turn-you{color:#9eb4ff;font-weight:bold}
@media(max-width:600px){.puzzle-play-area{padding:18px 12px 0}.puzzle-settings{font-size:10px;gap:12px}.mine-grid{gap:3px}.mine-cell{font-size:14px}.puzzle-help{font-size:10px!important}.puzzle-status{font-size:11px}.reversi-turn{font-size:10px}}

/* Shared bracket menu for every current and future game setting. */
.game-dropdown{position:relative;display:flex;align-items:center;gap:10px}
.game-dropdown button{appearance:none;border:0;border-radius:0;background:transparent;color:#eee;font:inherit;padding:7px 0;box-shadow:none;cursor:pointer;text-align:left}
.game-dropdown button:hover,.game-dropdown button:active{background:transparent;color:#fff;box-shadow:none}
.game-dropdown button:focus{outline:none;box-shadow:none;background:transparent}
.game-dropdown button:focus-visible{text-decoration:underline;text-underline-offset:4px}
.game-dropdown-options{position:absolute;top:100%;left:0;min-width:210px;z-index:5;display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transform:translateY(-5px);transition:grid-template-rows .26s ease,opacity .2s ease,transform .26s ease,visibility .26s}
.game-dropdown-options>div{min-height:0;overflow:hidden;background:#1e1e1e;border:1px solid #686159;padding:0 13px;box-shadow:0 8px 14px #0003}
.game-dropdown-options button{display:block;width:100%;white-space:nowrap;padding:11px 0}
.game-dropdown-options button[aria-pressed=true]{color:#9eb4ff}
.game-dropdown.is-expanded .game-dropdown-options{grid-template-rows:1fr;opacity:1;visibility:visible;transform:translateY(0)}
@media(prefers-reduced-motion:reduce){.game-dropdown-options{transition:none}}

/* Completed boards are static; only the new-game control remains active. */
.game-complete .sol-board,.mine-grid[aria-disabled=true],.reversi-grid[aria-disabled=true]{pointer-events:none}
.game-complete .sol-board *,.mine-grid[aria-disabled=true] *,.reversi-grid[aria-disabled=true] *{pointer-events:none}

.sol-foundation-guide{font:400 clamp(15px,2.6vw,23px)/1 'Courier New',monospace;color:#b8b6b0;pointer-events:none}
.sol-foundation-guide.is-red{color:#cf7970}

/* Touch interactions do not leave a browser tap overlay on game boards or sleeves. */
.game-file-window button,.print-card { -webkit-tap-highlight-color: transparent; }

/* Accounts: an issued paper pass and private access form. */
.accounts-page{max-width:1060px;margin-inline:auto}
.account-heading{margin:0 0 42px}
.account-layout{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:clamp(36px,7vw,94px);align-items:start}
.account-layout.is-signed-out{display:block;width:min(100%,520px);margin-inline:auto;background:var(--paper);padding:32px 36px;border:1px solid var(--line)}
.account-session-loading{font:14px/1.7 'Courier New',monospace;padding-block:32px}

@font-face{font-family:PermitKorean;src:url('/fonts/permit/Galmuri11.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:PermitType;src:url('/fonts/permit/VT323-Regular.ttf') format('truetype');font-display:swap}
.account-pass-frame{container-type:inline-size;width:100%;filter:drop-shadow(0 12px 18px #0003)}
.account-pass{--permit-paper:var(--paper);--permit-ink:var(--ink);position:relative;isolation:isolate;display:flex;flex-direction:column;width:100%;aspect-ratio:760/1000;overflow:hidden;padding:0;background:var(--permit-paper);color:var(--permit-ink);font-family:PermitType,'Courier New',monospace;mask:url('/assets/permit-perforation.svg') center/100% 100% no-repeat;-webkit-mask:url('/assets/permit-perforation.svg') center/100% 100% no-repeat}
.permit-security{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.49}
.permit-security svg{width:100%;height:100%;fill:none;stroke:var(--permit-ink);stroke-width:.65}
.permit-grain{position:absolute;inset:0;z-index:5;pointer-events:none;background:url('/assets/account-paper-grain.png') repeat;background-size:180px;mix-blend-mode:normal;opacity:.13}
.permit-main{position:relative;display:flex;flex-direction:column;flex:1;min-height:0;margin:2.3% 2.7% 0;border:1px solid var(--permit-ink);padding:1.4% 2.1% 0}
.permit-authority{text-align:center;font-size:4.25cqw;line-height:.98;letter-spacing:.005em;text-transform:uppercase}
.permit-authority span{display:block;white-space:nowrap}
.permit-insignia{position:relative;width:27%;height:13cqw;margin:1.2cqw auto .4cqw}
.permit-stripes{position:absolute;inset:0;display:block;width:100%;height:100%;fill:var(--permit-ink)}
.permit-symbol{position:absolute;left:0;top:0;width:39%;height:calc(100% * 7 / 13);display:grid;place-items:center;background:var(--permit-ink);color:var(--permit-paper);padding:6%}
.account-pass h2{font:normal 7.6cqw/.95 PermitType,'Courier New',monospace;text-align:center;letter-spacing:0;margin:1.4cqw 0 6cqw;white-space:nowrap}
.account-pass .permit-fields{margin:0;padding:0;font-size:5.6cqw;line-height:.91}
.permit-fields>div{display:grid;grid-template-columns:42% 58%;align-items:end;margin:0 0 2cqw;gap:0}
.permit-fields dt{font-weight:normal;letter-spacing:-.02em}
.permit-fields dt small{display:block;font-size:3.5cqw;line-height:1.15;letter-spacing:.025em;margin-bottom:.4cqw}
.permit-fields dt small[lang=ko]{font-family:PermitKorean,"Malgun Gothic",monospace;font-size:3.1cqw;font-weight:400;letter-spacing:0}
.permit-fields dd{margin:0;white-space:nowrap;letter-spacing:-.025em}
.permit-fields .permit-issued dd,.permit-fields .permit-holder dd{text-transform:uppercase;font-size:6.7cqw;text-align:right;letter-spacing:-.025em}
.permit-fields .permit-issued{margin-bottom:3.5cqw}
.permit-issuer{border:1px solid var(--permit-ink);border-right:0;border-bottom:0;margin:auto -2.1cqw 0 auto;padding:.4cqw 2.5cqw;width:68%;font-size:4.3cqw;line-height:1.15;text-align:center;white-space:nowrap}
.permit-identification{display:grid;grid-template-columns:1fr 34%;gap:3%;background:var(--permit-ink);color:var(--permit-paper);margin:1.7% 1.5% 1.5%;padding:2% 1.2% 2% 2.5%;height:25%;flex-shrink:0}
.permit-id-column{display:flex;flex-direction:column;align-items:start;justify-content:space-between;min-width:0;padding:1% 0 1.5%}
.permit-footer-symbol{display:block;width:11cqw;height:11cqw}
.permit-id-column>div{font-size:4.9cqw;line-height:.88;letter-spacing:.045em}
.permit-id-column span,.permit-id-column strong{display:block;font-weight:normal}
.permit-id-column strong{font-size:5.5cqw;letter-spacing:.1em}
.permit-code{align-self:center;justify-self:center;display:grid;place-items:center;width:min(100%,28cqw);aspect-ratio:1;min-width:0}
.permit-code svg{display:block;width:100%;height:100%;fill:var(--permit-paper)}
.pass-symbols svg{width:100%;height:100%;display:block}
html[data-mode=dark] .permit-grain{mix-blend-mode:normal;opacity:.11}
.account-controls{font:14px/1.7 'Courier New',monospace;padding-top:5px;min-width:0}
.account-controls h2{font:normal 25px/1.35 'Courier New',monospace;letter-spacing:0;margin:20px 0 14px}
.account-intro{margin-bottom:28px;max-width:40ch}
.account-tabs{display:flex;gap:20px;flex-wrap:wrap;margin-bottom:35px}
.accounts-page button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:0}
.account-tabs button,.account-text-button{border:0;background:none;padding:0;font-size:12px}
.account-tabs button[aria-pressed=true]{text-decoration:underline;text-underline-offset:5px}
.account-controls label,.account-private>span{display:block;font-size:11px;letter-spacing:.07em;margin:20px 0 7px}
.account-controls input{display:block;width:100%;min-width:0;border:1px solid var(--line);background:var(--paper);color:var(--ink);font:16px/1.5 'Courier New',monospace;padding:12px;border-radius:0}
.account-controls input:focus-visible{outline:1px solid var(--ink);outline-offset:-1px}
.accounts-page button:focus-visible{outline:2px solid #3159df;outline-offset:4px}
.account-primary{display:block;border:1px solid var(--ink);background:var(--ink);color:var(--paper)!important;width:100%;padding:14px 18px;margin:26px 0 20px;text-align:left}
.accounts-page button:disabled{opacity:.55;cursor:wait}
.account-note{font-size:11px;line-height:1.7;margin:10px 0 22px}
.pass-symbols{border:0;padding:0;margin:28px 0;display:flex;flex-wrap:wrap;gap:10px}
.pass-symbols legend{font-size:11px;letter-spacing:.07em;padding:0;margin-bottom:12px}
.pass-symbols button{width:45px;height:45px;padding:9px;background:none;border:1px solid var(--line)}
.pass-symbols button[aria-pressed=true]{color:#2549d8;border:2px solid #2549d8;padding:8px}
.account-message{min-height:3em;font-size:12px;overflow-wrap:anywhere;margin-top:20px}
.account-private p{overflow-wrap:anywhere}
.account-local{padding:15px;border:1px dashed var(--line);font-size:11px}.account-local p{margin-bottom:0}.account-local strong{font-size:22px;letter-spacing:.2em}
html[data-mode=dark] .pass-emblem,html[data-mode=dark] .pass-symbols button[aria-pressed=true]{color:#91a8ff}
html[data-mode=dark] .pass-symbols button[aria-pressed=true]{border-color:#91a8ff}
@media(max-width:700px){.account-layout.is-signed-out{padding:24px}.account-layout{grid-template-columns:1fr;gap:42px}.account-pass-frame{width:min(100%,440px);margin:auto}.account-controls{width:min(100%,420px);margin:auto}.account-heading{margin-bottom:30px}}
@media(prefers-reduced-motion:no-preference){.account-pass.is-issued{animation:pass-issued 850ms cubic-bezier(.16,1,.3,1) both}@keyframes pass-issued{from{transform:translateY(-18px) rotate(-1deg)}to{transform:translateY(0) rotate(0)}}}

/* Accounts access: typewritten notices, reverse labels and bracket controls. */
.account-layout.is-signed-out{position:relative;isolation:isolate;width:min(100%,750px);padding:30px 34px 24px;border:0;background:var(--paper);box-shadow:0 12px 28px #24231e20,0 3px 8px #24231e0c}
.account-layout.is-signed-out::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('/assets/account-paper-grain.png') repeat;background-size:240px;mix-blend-mode:multiply;opacity:.15}
.is-signed-out .account-controls{padding:0;width:100%;max-width:none;color:var(--ink)}
.access-document-head{display:flex;justify-content:space-between;gap:20px;font-size:10px;line-height:1.7;letter-spacing:.04em}
.access-office,.access-form-ref{display:flex;flex-direction:column}.access-form-ref{text-align:right}.access-form-ref b{font-weight:normal}
.access-document-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:36px 0 23px}
.access-document-title h2{font:normal clamp(21px,2.4vw,27px)/1.3 'Courier New',monospace;letter-spacing:.04em;text-transform:uppercase;margin:0}
.access-copy{font-size:9px;white-space:nowrap}
.access-instructions{font-size:14px;line-height:1.55;text-transform:uppercase;margin-bottom:26px}
.access-instructions>b,.access-processing b{display:inline;background:var(--ink);color:var(--paper);padding:1px 4px;font-size:11px;font-weight:normal;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.access-instructions p{margin:12px 0 0;max-width:65ch}
.access-instructions::after,.access-processing::before{display:block;content:'********************************************************************************************************';font:normal 14px/1 'Courier New',monospace;letter-spacing:.05em;white-space:nowrap;overflow:hidden;margin-top:29px}
.account-tabs.access-request-type{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;margin:0 0 30px;padding:0}
.access-section-no{font-size:11px}.access-section-label{font-size:11px}
.access-request-type button{font-size:12px;min-height:32px}.access-request-type button[aria-pressed=true]{font-weight:bold;text-decoration:underline;text-underline-offset:5px}
.access-field,.access-symbol-section{border:0;margin:25px 0 0;padding:0}
.access-fields .access-field label,.access-symbol-section .pass-symbols legend{display:flex;align-items:center;gap:12px;width:100%;padding:0;margin:0 0 12px;border:0;font-size:12px;font-weight:normal;letter-spacing:.04em}
.access-field label>span,.access-symbol-section legend>span{border:0;padding:0}
.access-field label>span::before,.access-symbol-section legend>span::before{content:'['}.access-field label>span::after,.access-symbol-section legend>span::after{content:']'}
.access-entry{display:flex;align-items:center;min-height:46px;gap:12px}
.access-entry::before{content:'['}.access-entry::after{content:']'}
.access-entry::before,.access-entry::after{font:normal 24px/1 'Courier New',monospace}
.access-fields .access-field input{border:0;border-radius:0;background:transparent;min-width:0;min-height:44px;padding:7px 0;font:16px/1.6 'Courier New',monospace;color:var(--ink);caret-color:var(--ink);outline:none;box-shadow:none}
.access-fields .access-field input:focus-visible{outline:none;background:transparent}
/* Small inline visibility control with a full touch target. */
.accounts-page .access-password-toggle{flex:0 0 36px;display:grid;place-items:center;width:36px;height:44px;padding:8px;border:0;background:transparent;color:var(--ink)}
.accounts-page .access-password-toggle:hover,.accounts-page .access-password-toggle:active{background:transparent}
.access-password-toggle svg{display:block;width:19px;height:19px}
.access-password-toggle .eye-slash{display:block}
.access-password-toggle[aria-pressed=true] .eye-slash{display:none}
.access-entry:focus-within::before,.access-entry:focus-within::after{font-weight:bold}
.access-field:focus-within label{text-decoration:underline;text-underline-offset:4px}
/* Keep autofilled fields transparent over the paper grain. */
.access-field input:-webkit-autofill,
.access-field input:-webkit-autofill:hover,
.access-field input:-webkit-autofill:focus,
.access-field input:-webkit-autofill:active{
 -webkit-background-clip:text;background-clip:text;
 -webkit-text-fill-color:var(--ink);caret-color:var(--ink);
 -webkit-box-shadow:none;box-shadow:none;outline:none;
}
.access-field input:autofill{background-clip:text;box-shadow:none;color:var(--ink);caret-color:var(--ink)}
.access-field-note{font-size:10px;line-height:1.7;margin:5px 0 0;padding:0 22px;max-width:65ch}
.pass-symbol-options{display:flex;flex-wrap:wrap;gap:10px}
.access-symbol-section .pass-symbols{display:block;min-width:0;margin:0;padding:0}
.access-symbol-section .pass-symbol-options{padding:0;gap:9px}
.access-symbol-section .pass-symbols button{position:relative;display:flex;align-items:center;justify-content:center;border:0;width:40px;height:40px;padding:10px;background:none;color:var(--ink)}
.access-symbol-section .pass-symbols button::before,.access-symbol-section .pass-symbols button::after{position:absolute;top:50%;transform:translateY(-50%);font:normal 24px/1 'Courier New',monospace}
.access-symbol-section .pass-symbols button::before{content:'[';left:0}.access-symbol-section .pass-symbols button::after{content:']';right:0}
.access-symbol-section .pass-symbols button[aria-pressed=true]{padding:10px;background:var(--ink);color:var(--paper)}
.access-symbol-section .pass-symbols button:focus-visible{outline:1px dashed var(--ink);outline-offset:3px}
.access-symbol-section>.access-field-note{padding-left:0;margin-top:12px}
.access-processing{margin:30px 0 24px;padding:0}
.access-processing::before{content:'////////////////////////////////////////////////////////////////////////////////////////////////////////';margin:0 0 26px}
.access-processing p{font-size:11px;line-height:1.7;margin:12px 0 0;max-width:65ch}
.is-signed-out .account-primary{display:block;min-width:0;width:auto;margin:22px 0 30px;padding:9px 0;border:0;background:none;color:var(--ink)!important;font-size:13px;letter-spacing:.02em;text-align:left;text-decoration:underline;text-underline-offset:5px}
.is-signed-out button:focus-visible{outline:1px dashed var(--ink);outline-offset:4px}
.access-document-foot{display:flex;justify-content:space-between;gap:15px;font-size:8px;line-height:1.7;letter-spacing:.03em;padding-top:18px;border-top:1px solid var(--line)}
.is-signed-out .account-message{font-size:12px;margin:16px 0 0;min-height:0}.is-signed-out .account-message:empty{display:none}
.is-signed-out .account-local{border:0;border-left:1px solid var(--ink);margin:25px 0;padding:0 14px}
html[data-mode=dark] .account-layout.is-signed-out{box-shadow:0 14px 32px #0005,0 3px 8px #0003}
html[data-mode=dark] .account-layout.is-signed-out::before{mix-blend-mode:screen;opacity:.075}
html[data-mode=dark] .access-symbol-section .pass-symbols button[aria-pressed=true]{color:var(--paper)}
@media(max-width:540px){.account-layout.is-signed-out{padding:24px 18px}.access-document-head{font-size:8px;gap:12px}.access-document-title{align-items:start;flex-direction:column;margin-top:28px;gap:12px}.access-instructions{font-size:12px}.account-tabs.access-request-type{gap:8px 12px}.access-section-label{flex-basis:calc(100% - 42px)}.access-request-type button{font-size:11px}.access-document-foot{font-size:7px}.access-symbol-section .pass-symbol-options{gap:7px}.access-symbol-section .pass-symbols button,.access-symbol-section .pass-symbols button[aria-pressed=true]{width:36px;padding:8px}}

/* Profile marks share a drawing grid, ink weight and optical bounds. */
.pass-symbol-drawing{display:block;width:100%;height:100%}
.access-symbol-section .pass-symbol-options{row-gap:8px}

/* The issued permit sits above its account sheet; details are filed beneath it. */
.account-layout.is-signed-in{position:relative;isolation:isolate;display:block;width:min(100%,750px);margin:0 auto;padding:34px 36px;background:var(--paper);box-shadow:0 12px 28px #24231e20,0 3px 8px #24231e0c}
.account-layout.is-signed-in::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('/assets/account-paper-grain.png') repeat;background-size:240px;mix-blend-mode:multiply;opacity:.15}
.is-signed-in .account-pass-frame{position:relative;width:min(100%,440px);margin:0 auto 34px;filter:drop-shadow(0 4px 5px #0003) drop-shadow(0 12px 16px #0002)}
.is-signed-in .account-controls{width:100%;max-width:none;margin:0;padding:25px 0 0;border-top:1px solid var(--line)}
.is-signed-in .account-controls h2{margin-top:0}
.is-signed-in .account-intro{max-width:60ch}
.is-signed-in .account-note{max-width:65ch}
html[data-mode=dark] .account-layout.is-signed-in{box-shadow:0 14px 32px #0005,0 3px 8px #0003}
html[data-mode=dark] .account-layout.is-signed-in::before{mix-blend-mode:screen;opacity:.075}
@media(max-width:540px){.account-layout.is-signed-in{margin-top:0;padding:24px 18px 26px}.is-signed-in .account-pass-frame{margin-bottom:26px}.is-signed-in .account-controls{padding-top:22px}}

.account-sheet-signoff{grid-column:1/-1;margin-top:32px;padding:26px 0 6px;border-top:1px solid var(--line);text-align:center;font-family:'Courier New',monospace}
.account-sheet-signoff p{font-size:12px;letter-spacing:.1em;margin:0 0 10px}
.account-sheet-signoff span{display:block;font-size:11px;line-height:1.8}

/* The account record uses the same printed bracket language as sign-in. */
.account-record .access-document-head{font-size:9px}
.account-record h2{font:normal 24px/1.35 'Courier New',monospace;text-transform:uppercase;letter-spacing:.03em;margin:28px 0 18px!important}
.account-record .account-intro{font-size:12px;line-height:1.7;text-transform:uppercase;margin:0 0 26px}
.account-record-rule{font:normal 14px/1 'Courier New',monospace;letter-spacing:.05em;white-space:nowrap;overflow:hidden;width:100%;margin:0 0 26px}
.account-record .account-private>span{display:inline;background:var(--ink);color:var(--paper);padding:1px 4px;font-size:10px;letter-spacing:.03em}
.account-record .account-private p{font-size:13px;line-height:1.7;margin:13px 0 28px}
.account-record .pass-symbols{margin:24px 0 18px}
.account-record .pass-symbols legend{display:flex;gap:10px;align-items:center;font-size:11px;letter-spacing:.03em;margin-bottom:13px}
.account-record .pass-symbol-options{gap:7px}
.account-record .pass-symbols button{position:relative;display:flex;align-items:center;justify-content:center;width:38px;height:40px;padding:9px;border:0;background:none;color:var(--ink)}
.account-record .pass-symbols button::before,.account-record .pass-symbols button::after{position:absolute;top:50%;transform:translateY(-50%);font:normal 24px/1 'Courier New',monospace}
.account-record .pass-symbols button::before{content:'[';left:0}.account-record .pass-symbols button::after{content:']';right:0}
.account-record .pass-symbols button[aria-pressed=true],html[data-mode=dark] .account-record .pass-symbols button[aria-pressed=true]{background:var(--ink);color:var(--paper);padding:9px;border:0}
.account-record .account-note{font-size:10px;line-height:1.8;margin:12px 0 25px}
.account-record-actions{display:flex;flex-wrap:wrap;gap:12px 25px;align-items:center}
.account-record .account-primary,.account-record .account-text-button{display:inline-block;width:auto;min-height:38px;margin:0;padding:6px 0;border:0;background:none;color:var(--ink)!important;font:12px/1.7 'Courier New',monospace;text-decoration:underline;text-underline-offset:5px}
.account-record button:focus-visible{outline:1px dashed var(--ink);outline-offset:3px}
.account-record #save-symbol:disabled{opacity:.4;cursor:default;text-decoration:none}

/* Empty status messages must not reserve space above the closing rule. */
.account-record .account-message:empty{display:none}
.account-record .account-message{min-height:0;margin:12px 0 0}
@media(max-width:849px){.account-sheet-signoff{margin-top:24px}}

/* The issued pass can be saved independently from the private account sheet. */
.accounts-page .save-visa{display:block;margin:6px auto 0;padding:4px 0;border:0;background:none;color:var(--ink);font:10px/1.5 'Courier New',monospace;letter-spacing:.03em;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.accounts-page .save-visa:hover,.accounts-page .save-visa:active{background:transparent;color:var(--ink);box-shadow:none}
.accounts-page .save-visa:focus:not(:focus-visible){outline:none}
.accounts-page .save-visa:focus-visible{outline:1px dashed var(--ink);outline-offset:4px}

/* Desktop sheet: align the pass and account record at the top. */
@media(min-width:850px){
 .account-layout.is-signed-in{display:grid;grid-template-columns:minmax(0,380px) minmax(0,1fr);align-items:start;column-gap:42px;row-gap:24px;width:100%;padding:36px}
 .is-signed-in .account-pass-frame{display:flex;flex-direction:column;justify-content:flex-start;width:100%;margin:0}
 .is-signed-in .account-pass{flex-shrink:0}
 .is-signed-in .account-controls{padding:0;border-top:0}
 .is-signed-in .account-record{display:flex;flex-direction:column}
 .account-record-actions{margin-top:auto}
 .is-signed-in .save-visa{min-height:38px;margin-top:2px;margin-bottom:0}
 .account-layout.is-signed-in .account-sheet-signoff{margin-top:0}
}

/* Dropdown focus follows the bracket styling throughout the site. */
body .desk-select-trigger:focus,
body .desk-select-menu button:focus,
body .desk-terminal .desk-select-trigger:focus,
body .desk-terminal .desk-select-menu button:focus{
  outline:none;
  box-shadow:none;
  -webkit-tap-highlight-color:transparent;
}
body .desk-select-trigger:focus-visible,
body .desk-select-menu button:focus-visible{
  text-decoration:underline;
  text-underline-offset:4px;
}

/* Private user registry shares the Writing Desk terminal shell. */
.desk-users {
  margin-top:28px;
}

.desk-users-body {
  padding:24px;
}

.desk-users-status {
  margin:0 0 18px;
  font-size:11px;
  letter-spacing:1px;
  color:#b7b4ae;
}

.desk-users-list table {
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  line-height:1.6;
  text-align:left;
}

.desk-users-list th {
  font-weight:normal;
  font-size:10px;
  letter-spacing:1px;
  color:#b7b4ae;
}

.desk-users-list th,.desk-users-list td {
  padding:12px 8px;
  border-bottom:1px solid #686159;
  vertical-align:middle;
}

.desk-users-list td:nth-child(2) {
  overflow-wrap:anywhere;
}

.desk-users-list td:last-child {
  white-space:nowrap;
}

.desk-user-identity {
  display:flex;
  align-items:center;
  gap:12px;
  white-space:nowrap;
}

.desk-user-symbol {
  display:block;
  width:24px;
  height:24px;
  flex:0 0 24px;
  color:#eee;
}

.desk-user-symbol svg {
  display:block;
  width:100%;
  height:100%;
}

@media (max-width:520px) {
.desk-users-body {
  padding:16px 10px;
}
.desk-users-list table {
  font-size:11px;
}
.desk-user-identity {
  gap:7px;
}
.desk-user-symbol {
  width:20px;
  height:20px;
  flex-basis:20px;
}
}

.permit-mbti{display:block;margin-top:1cqw;font-size:2.8cqw;letter-spacing:.02em;white-space:nowrap}
.permit-id-column [data-pass-mbti]{display:inline}

/* Place navigation, document action, and sharing across the footer. */
.actions .share-link{
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:inherit;
  cursor:pointer;
  font:inherit;
  padding:0;
  text-decoration:underline;
  text-underline-offset:3px;
  -webkit-tap-highlight-color:transparent;
}
.actions .share-link:hover{background:transparent;color:var(--accent)}
.actions .share-link:focus-visible{outline:1px dashed currentColor;outline-offset:4px}
.games-page>.actions,.solitaire-page>.actions,.archive-terminal-page>.actions,.writing-page>.actions,.prints-page>.actions,.about-page>.actions{justify-content:space-between}
.article-paper>.actions>.share-link,.print-actions>.share-link{grid-column:3;grid-row:1;justify-self:end}
@media(max-width:480px){
  .article-paper>.actions,.print-detail>.print-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr);row-gap:14px}
  .article-paper>.actions>.share-link,.print-actions>.share-link{grid-column:2;grid-row:1;justify-self:end}
  .article-paper>.actions #print,.print-actions>.download-photo{grid-column:1/-1;grid-row:2;justify-self:center}
}

/* Public records open above the game files. */
.game-records{width:min(100%,750px);margin:48px auto 0;position:relative;z-index:5;font-family:'Courier New',monospace;color:#282720}
.game-records-handle{appearance:none;width:100%;min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 24px;border:1px solid currentColor;border-radius:3px 3px 0 0;background:#eae7df;color:inherit;text-align:left;cursor:pointer;font:700 13px/1.35 'Courier New',monospace;letter-spacing:.09em;box-shadow:0 -5px 18px #0000000c,0 8px 15px #00000013;position:relative;z-index:2;transition:background .25s ease}
.game-records-handle:hover{background:#f4f1e9}
.game-records-handle small{display:block;margin-top:4px;font-size:10px;font-weight:400;letter-spacing:.13em}
.game-records-handle-mark{font-size:16px;white-space:nowrap}
.game-records-reveal{display:grid;grid-template-rows:0fr;opacity:0;transform:translateY(-20px);transition:grid-template-rows .65s cubic-bezier(.2,.8,.2,1),opacity .4s ease,transform .65s cubic-bezier(.2,.8,.2,1)}
.game-records.is-open .game-records-reveal{grid-template-rows:1fr;opacity:1;transform:translateY(0)}
.game-records-paper{min-height:0;overflow:hidden;box-sizing:border-box;background:#f4f0e7;border:1px solid #a9a599;border-top:0;padding:0 28px;box-shadow:0 18px 24px #00000018;transition:padding .65s cubic-bezier(.2,.8,.2,1)}
.game-records.is-open .game-records-paper{padding:30px 28px 34px}
.game-records-top,.game-records-tabs,.game-records-row{display:flex;justify-content:space-between;gap:12px}
.game-records-top{font-size:10px;letter-spacing:.12em;border-bottom:1px solid #77746a;padding-bottom:12px}
.game-records-paper h2{font-size:clamp(25px,4vw,39px);font-weight:400;letter-spacing:-.05em;margin:27px 0 6px}
.game-records-intro,.game-records-note{font-size:11px;line-height:1.6;letter-spacing:.02em}
.game-records-tabs{justify-content:flex-start;flex-wrap:wrap;border-top:1px solid #77746a;border-bottom:1px solid #77746a;margin-top:27px;padding:9px 0}
.game-records-tabs button{appearance:none;border:0;background:transparent;color:inherit;font:11px 'Courier New',monospace;letter-spacing:.04em;padding:8px;cursor:pointer}
.game-records-tabs button[aria-pressed=true]{background:#252520;color:#f5f2eb}
.game-records-list{min-height:52px;padding:16px 0;font-size:11px;line-height:1.4}
.game-records-row{display:grid;grid-template-columns:38px minmax(0,1fr) 52px 55px;align-items:center;padding:9px 3px;border-bottom:1px solid #bbb7aa}
.game-records-row-chess{grid-template-columns:38px minmax(0,1fr) 42px 62px 54px}
.game-records-heading{font-size:9px;letter-spacing:.08em;border-bottom-color:#77746a}
.game-records-note{border-top:1px solid #77746a;padding-top:14px;margin:12px 0 0}
@media(max-width:600px){.game-records{margin-top:32px}.game-records-handle{min-height:68px;padding:16px}.game-records.is-open .game-records-paper{padding:24px 16px}.game-records-tabs{gap:2px}.game-records-tabs button{font-size:9px;padding:8px 5px}.game-records-row{grid-template-columns:26px minmax(0,1fr) 34px 38px;font-size:10px}}
@media(max-width:600px){.game-records-row-chess{grid-template-columns:22px minmax(0,1fr) 27px 43px 35px;gap:5px;font-size:9px}.game-records-row-chess .game-records-visitor{gap:4px}.game-records-row-chess .game-records-visitor .pass-symbol-drawing{width:12px;height:12px}}
@media(prefers-reduced-motion:reduce){.game-records-reveal,.game-records-paper,.game-records-handle{transition:none}}
.game-records-visitor{display:flex;align-items:center;gap:8px;min-width:0}
.game-records-visitor .pass-symbol-drawing{width:15px;height:15px;flex:none}
.game-records-modes{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}
.game-records-modes button{appearance:none;border:1px solid #77746a;background:transparent;color:inherit;padding:7px 9px;font:10px 'Courier New',monospace;cursor:pointer}
.game-records-modes button[aria-pressed=true]{background:#252520;color:#f5f2eb}
.game-records-rule{margin:14px 0 0;font:9px/1.5 'Courier New',monospace;letter-spacing:.05em;color:#68665f}

.games-page .game-folder-stack{margin-top:88px}
@media(max-width:600px){.games-page .game-folder-stack{margin-top:88px}}
.games-page .game-folder-stack::before{
  content:"";
  position:absolute;
  top:-26px;
  left:0;
  right:0;
  border-top:1px solid var(--line);
  pointer-events:none;
}
.game-records-note a{color:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.game-records-note a:hover{text-decoration-thickness:2px}
.game-file-window .sol-toolbar .game-victory-share{
  border:1px solid #c9c5bd;
  padding:7px 10px;
  background:#ffffff0c;
  color:#f6f3eb;
  animation:victory-share-enter .42s cubic-bezier(.2,.8,.2,1) both;
}
.game-file-window .sol-toolbar .game-victory-share:hover{background:#ffffff22;text-decoration:none}
@keyframes victory-share-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.game-file-window .sol-toolbar .game-victory-share{animation:none}}
/* Reversi private-room screen shares the game file's ink and quiet motion. */
.reversi-room-panel{min-height:440px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:17px;padding:38px 18px;color:#eee;font:11px/1.6 'Courier New',monospace}
.reversi-room-panel h2{font:400 clamp(19px,3vw,29px)/1.2 'Courier New',monospace;letter-spacing:.06em;margin:0}
.reversi-room-panel p{max-width:360px;color:#bdb8b2;margin:0}
.reversi-room-panel button,.reversi-room-action{background:none;color:#f4f2ee;border:0;padding:7px 10px;font:11px/1.5 'Courier New',monospace;cursor:pointer;text-decoration:none;-webkit-tap-highlight-color:transparent}
.reversi-room-panel button:hover,.reversi-room-action:hover{text-decoration:underline;background:none}
.reversi-room-mark{font-size:36px;line-height:1;color:#9cb4ff}
.reversi-wait-logo{position:relative;width:76px;height:76px;display:flex;align-items:center;justify-content:center;color:#9cb4ff}
.reversi-wait-logo span{font-size:34px;animation:reversi-wait-turn 4.8s ease-in-out infinite}
.reversi-wait-logo i{position:absolute;width:4px;height:4px;border:1px solid currentColor;border-radius:50%;left:50%;top:50%;animation:reversi-wait-orbit 2.4s linear infinite}
.reversi-wait-logo i:nth-of-type(2){animation-delay:-.8s}.reversi-wait-logo i:nth-of-type(3){animation-delay:-1.6s}
@keyframes reversi-wait-turn{0%,100%{transform:rotate(0) scale(.9)}50%{transform:rotate(90deg) scale(1.08)}}
@keyframes reversi-wait-orbit{0%{transform:rotate(0) translateX(30px)}100%{transform:rotate(360deg) translateX(30px)}}
.reversi-room-code{font:17px/1.4 'Courier New',monospace;letter-spacing:.18em;border-top:1px solid #6c6862;border-bottom:1px solid #6c6862;padding:10px 22px}
.reversi-join-form{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:10px}.reversi-join-form label{font-size:10px;color:#bdb8b2}.reversi-join-form input{width:78px;background:transparent;color:#fff;border:0;border-bottom:1px solid #aaa;border-radius:0;text-align:center;letter-spacing:.2em;font:16px 'Courier New',monospace;outline:0}.reversi-join-form input:focus{border-color:#fff}
.reversi-room-players{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;width:100%;color:#bbb7b0;font:10px/1.5 'Courier New',monospace}.reversi-room-players>.reversi-player{display:flex;align-items:center;gap:6px;min-width:0}.reversi-room-players>.reversi-player:last-child{justify-self:end;justify-content:flex-end;text-align:right}.reversi-room-vs{justify-self:center}.reversi-player-symbol{width:19px;height:19px;flex:none;color:#f4f2ee}.reversi-player-symbol svg{width:100%;height:100%}.reversi-room-players-board{padding-bottom:20px;border-bottom:1px solid #5c5954;margin-bottom:20px}
.reversi-room-players.reversi-room-players-waiting{font-size:clamp(7px,2.2vw,10px)}.reversi-room-players-waiting .reversi-player>span:last-child{white-space:nowrap}
@media(max-width:600px){.reversi-room-players{gap:6px;font-size:9px}.reversi-player-symbol{width:16px;height:16px}}
@media(prefers-reduced-motion:reduce){.reversi-wait-logo span,.reversi-wait-logo i{animation:none}.reversi-wait-logo i{display:none}}

/* Private desk: Publishing retains the original document terminal. */
.desk-select{position:relative}
.desk-select-menu{position:absolute!important;top:100%;left:0;right:0;z-index:40;max-height:300px;overflow:auto}
.desk-select-menu[hidden],.desk-panel-content[hidden],.desk-document-content[hidden],.desk-library-content[hidden]{display:none!important}
.desk-terminal-body,.desk-panel-content{overflow-anchor:none}
.workspace-nav{display:flex;margin:18px 0 24px;border:1px solid var(--line);font:12px 'Courier New',monospace;letter-spacing:.12em}
.workspace-nav button{appearance:none;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;color:inherit;padding:16px 22px;text-transform:uppercase;cursor:pointer;-webkit-tap-highlight-color:transparent}
.workspace-nav button[aria-current=page]{background:#242424;color:#f6f3eb}
.workspace-nav button:hover:not([aria-current=page]){text-decoration:underline;text-underline-offset:4px}
.workspace-nav button:focus-visible{outline:1px dashed currentColor;outline-offset:-4px}
.workspace-location-row{display:flex;align-items:baseline;justify-content:space-between;gap:18px;margin-bottom:38px}
.workspace-location-row .breadcrumbs{margin:0;min-width:0}
.workspace-location-row .desk-sign-out{float:none;margin:0;padding:0;border:0;background:transparent;color:var(--muted);font:10px 'Courier New',monospace;letter-spacing:1px;text-transform:uppercase;white-space:nowrap;cursor:pointer}
.workspace-location-row .desk-sign-out:hover{text-decoration:underline;text-underline-offset:3px;color:var(--ink)}
.workspace-location-row .desk-sign-out:focus-visible{outline:1px dashed currentColor;outline-offset:4px}
.workspace-page{max-width:1160px!important}
.workspace-terminal{position:relative;z-index:1;isolation:isolate;border:1px solid #69645f;border-radius:18px;overflow:hidden;background:#1d1d1d;color:#ece9e3;box-shadow:0 18px 34px #0002}
.workspace-terminal>.desk-terminal-tab{border-radius:17px 17px 0 0}
.workspace-terminal-body{padding:28px 32px 26px;background:#1d1d1d}
.workspace-content{background:#1d1d1d;font:13px/1.6 'Courier New',monospace}
.workspace-content .desk-users{margin:0 0 32px;background:#1e1e1e}
.workspace-content .desk-users .sol-titlebar{display:none}
.workspace-terminal .desk-terminal-status{margin-top:32px;padding-top:18px;line-height:1.7}
.workspace-heading{border-bottom:1px solid #625e59;padding-bottom:26px;margin-bottom:28px}
.workspace-heading h1{font:400 clamp(26px,4vw,43px)/1.13 'Courier New',monospace;letter-spacing:-.04em;margin:12px 0}
.workspace-heading p{max-width:700px;color:#b9b4ad;margin:0}
.studio-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,340px);gap:clamp(25px,5vw,64px)}
.studio-fields{min-width:0}
.studio-upload{display:block;padding:20px;border:1px dashed #87827a;letter-spacing:.1em}
.studio-upload input{display:block;max-width:100%;margin-top:15px;font:12px 'Courier New',monospace}
.studio-captions{border-top:1px solid #625e59;margin-top:26px}
.studio-caption{display:block;padding:17px 0 20px;border-bottom:1px solid #625e59}
.studio-caption h2{font:400 17px 'Courier New',monospace;margin:0 0 12px}
.studio-caption label{display:block;margin:12px 0 5px;color:#bdb8b0;font-size:11px;letter-spacing:.05em}
.studio-caption textarea,.studio-caption input[type=text]{box-sizing:border-box;display:block;width:100%;background:#242424;color:#f0ece5;border:1px solid #706b65;border-radius:0;padding:11px 12px;font:13px/1.5 'Courier New',monospace;letter-spacing:normal;outline:none}
.studio-caption textarea{min-height:84px;resize:vertical}
.studio-caption :is(textarea,input):focus{border-color:#d7d3cb}
.studio-handoff,.workspace-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-top:13px}
.studio-platform-actions{margin-top:22px;border-top:1px solid #625e59}
.studio-platform-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 18px;padding:14px 0;border-bottom:1px solid #494641}
.studio-caption>.studio-platform-row{margin-top:15px}
.studio-platform-row a{color:#eae7e0;text-decoration:underline;text-underline-offset:4px}
.workspace-content button,.workspace-content .studio-platform-row a{font:12px 'Courier New',monospace;letter-spacing:.04em}
.studio-preview{align-self:start;position:sticky;top:20px}
.studio-frame{position:relative;aspect-ratio:9/16;max-height:650px;background:#101010;border:1px solid #706b65;overflow:hidden}
.studio-frame video{width:100%;height:100%;object-fit:contain}
.studio-frame>span{position:absolute;left:0;right:0;top:45%;text-align:center;color:#aabaf1;line-height:2.1;pointer-events:none}
.studio-frame>span[hidden]{display:none}
.studio-preview>.smallcaps{display:block;margin-top:10px;color:#aaa49d}
@media(max-width:760px){.studio-grid{grid-template-columns:1fr}.studio-preview{position:static;grid-row:1;width:min(100%,300px);margin-inline:auto}.workspace-terminal-body{padding:20px 17px 24px}.workspace-nav button{flex:1;padding:13px 6px;font-size:11px}}

/* Chess / game file 004 — one match rail above the indexed, printed board. */
.chess-match-strip{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:18px;width:min(100%,596px);margin:0 auto 16px;padding:0 22px 17px;border-bottom:1px solid #5b5955;color:#c9c4bd;font:11px/1.35 'Courier New',monospace;letter-spacing:.04em}
.chess-match-player{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}.chess-match-player:last-child{align-items:flex-end;text-align:right}.chess-match-player .reversi-player{min-width:0;max-width:100%;overflow-wrap:anywhere}.chess-side-label{font-size:9px;color:#a19d96;letter-spacing:.13em}.chess-match-player strong{color:#9eb4ff;font-size:20px;font-weight:normal;font-variant-numeric:tabular-nums;letter-spacing:.03em}.chess-match-vs{color:#a19d96;font-size:10px}
.chess-board-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(100%,596px);margin:0 auto 12px;padding:0 22px;color:#a9a59f;font:10px/1.4 'Courier New',monospace;letter-spacing:.05em}
.chess-board-wrap{display:grid;grid-template-columns:22px minmax(0,1fr) 22px;width:min(100%,596px);margin:0 auto;color:#a9a59f;font:10px/1 'Courier New',monospace}
.chess-ranks{grid-column:1;grid-row:1;display:grid;grid-template-rows:repeat(8,1fr);align-items:center;text-align:left}
.chess-grid{grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));min-width:0;width:100%;border:1px solid #a6a39d;aspect-ratio:1;background:#242424;box-shadow:0 8px 18px -12px #000,0 0 0 3px #242424,0 0 0 4px #595752}
.chess-cell{appearance:none;position:relative;display:grid;place-items:center;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;cursor:pointer;-webkit-tap-highlight-color:transparent;outline:none;box-shadow:none}
.chess-cell.chess-light{background-color:#2a2a29}.chess-cell.chess-dark{background-color:#41413e;background-image:repeating-linear-gradient(132deg,rgba(235,231,221,.14) 0 1px,transparent 1px 5px)}
.chess-cell:disabled{opacity:1;cursor:default}
.chess-cell:focus{outline:none}.chess-cell:focus-visible:not(:disabled){outline:2px solid #9eb4ff;outline-offset:-3px;z-index:3}
.chess-cell.is-selected::before{content:'';position:absolute;inset:6%;z-index:1;pointer-events:none;border:2px solid #9eb4ff}
.chess-cell.is-check{box-shadow:inset 0 0 0 2px #b88780}
.chess-piece{display:block;width:84%;height:84%;object-fit:contain;image-rendering:pixelated;pointer-events:none;position:relative;z-index:2;filter:drop-shadow(2px 3px 2px rgba(0,0,0,.72))}
.chess-piece--major{transform:translateY(-9%)}
.chess-target{width:12%;height:12%;min-width:5px;min-height:5px;background:#9eb4ff;border-radius:50%;pointer-events:none}
.chess-cell.is-target:has(.chess-piece)::after{content:'';position:absolute;inset:7%;border:2px solid #9db2ee;pointer-events:none}
@media(hover:hover) and (pointer:fine){.chess-cell:not(:disabled):hover{filter:brightness(1.21)}}
.chess-files{grid-column:2;grid-row:2;display:grid;grid-template-columns:repeat(8,1fr);text-align:center;padding:8px 0 0}
.chess-promotion{display:flex;align-items:center;justify-content:center;gap:6px 14px;flex-wrap:wrap;max-width:574px;margin:16px auto 0;border-top:1px solid #69645f;border-bottom:1px solid #69645f;padding:11px;color:#e9e5de;font:10px/1.4 'Courier New',monospace}
.chess-promotion button{background:none;border:0;color:inherit;padding:5px 2px;font:inherit;cursor:pointer}.chess-promotion button:hover{text-decoration:underline}
@media(max-width:600px){.chess-board-wrap{grid-template-columns:16px minmax(0,1fr) 16px;font-size:8px}.chess-match-strip{padding-inline:16px;gap:8px;font-size:9px}.chess-match-player strong{font-size:17px}.chess-board-meta{padding-inline:16px;font-size:9px}.chess-cell.is-selected::before{border-width:1px}}
