/* MIGHTEES KNEES — global visual system. Edit colors here. */
:root {
  --night: #181613;
  --wood: #36261d;
  --charcoal: #24201f;
  --panel: #292523;
  --paper: #d9d2be;
  --cream: #ede1c9;
  --ink: #29221e;
  --rust: #b67e65;
  --teal: #92b0a7;
  --muted: #c0ae9b;
  --line: #7d6654;
  --red: #b44437
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: auto
}

body {
  margin: 0;
  background: linear-gradient(#100d0bba, #100d0bce), url('assets/wood.png') repeat;
  color: var(--cream);
  font: 14px/1.6 'Courier New', monospace
}

a {
  color: var(--teal)
}

a:hover,
a:focus-visible {
  color: #e5b49f
}

button {
  font: inherit
}

p {
  margin: .5em 0 1em
}

h1,
h2,
h3 {
  line-height: 1.18
}

h2 {
  font-size: 20px
}

h3 {
  font-size: 17px
}

img {
  max-width: 100%
}

::selection {
  background: #ad6f55;
  color: #fff
}

.muted {
  color: #b8a99b
}

.micro {
  font-size: 11px
}

.tiny-label,
.eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #cbb4a1
}

.date {
  font-size: 11px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .08em
}

.shell {
  width: 70%;
  max-width: 960px;
  margin: 60px auto 90px;
  position: relative
}

.footer {
  border-top: 2px dashed #997963;
  color: #ccb5a0;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  font-size: 11px;
  padding: 15px 4px;
  margin-top: 40px
}

.footer a {
  color: inherit
}

.backlink {
  display: inline-block;
  margin: 20px 0
}

.window {
  background: var(--panel);
  border: 3px solid #796554;
  box-shadow: 5px 6px 0 #140f0d;
  margin-bottom: 20px;
  min-width: 0
}

.window-bar {
  background: #544036;
  color: #f2e2c9;
  padding: 6px 11px;
  border-bottom: 2px solid #19110e;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: .02em
}

.window-bar.muted-bar {
  background: #3b4038
}

.window-body {
  padding: 20px 22px
}

.window-body>*:first-child {
  margin-top: 0
}

.window-body>*:last-child {
  margin-bottom: 0
}

.window h2 {
  color: #e0b49b
}

.rough-link {
  display: inline-block;
  margin-top: 3px;
  background: #4b362e;
  color: #efc1a8;
  padding: 4px 9px;
  text-decoration: none;
  border: 1px dashed #bb8d76
}

.rough-link:hover {
  background: #674435;
  color: white
}

.page-heading {
  background: #211b18d9;
  border-left: 9px solid #a87f65;
  padding: 22px 28px;
  margin-bottom: 30px;
  box-shadow: 8px 8px 0 #0d0a08a8
}

.page-heading h1 {
  font-size: clamp(25px, 3.5vw, 43px);
  color: #dfc8ae;
  margin: 8px 0 2px;
  line-height: 1.15
}

.page-heading p {
  color: #b3a292;
  margin-bottom: 0
}

/* the physical red button */
.nav-trigger {
  position: fixed;
  z-index: 110;
  top: 12px;
  left: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(2px 3px 3px #000);
  line-height: 0
}

.nav-trigger img {
  display: block;
  width: 76px;
  height: auto;
  max-width: none
}

.nav-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/button-red-pressed.png') center/100% 100% no-repeat;
  opacity: 0;
  pointer-events: none
}

.nav-trigger:hover {
  filter: brightness(1.16) drop-shadow(2px 3px 3px #000)
}

.nav-trigger:active img {
  opacity: 0
}

.nav-trigger:active::after {
  opacity: 1
}

.nav-trigger:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px
}

.site-menu {
  position: fixed;
  z-index: 109;
  top: 94px;
  left: 16px;
  width: min(275px, calc(100vw - 32px));
  background: #d0bea0;
  color: #2e2119;
  border: 5px ridge #75513c;
  padding: 13px;
  box-shadow: 8px 9px 0 #0a0807
}

.site-menu[hidden] {
  display: none
}

.site-menu .menu-caption {
  font-size: 10px;
  border-bottom: 2px dotted #75513c;
  padding-bottom: 8px;
  margin-bottom: 8px
}

.site-menu a {
  display: block;
  color: #281b14;
  padding: 5px 9px;
  text-decoration: none;
  border-bottom: 1px dashed #8d7564;
  text-transform: uppercase;
  font-weight: bold
}

.site-menu a:hover {
  background: #a77459;
  color: #fff
}

/* one image, one door, no text on the entrance */
.page-entry {
  min-height: 100vh;
  background: radial-gradient(ellipse at center, #281b16 0, #110e0c 55%, #070606 100%);
  display: grid;
  place-items: center;
  overflow: hidden
}

.door-stage {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vh 30px
}

.door-link {
  display: block;
  height: 94%;
  max-height: 860px;
  max-width: 100%;
  filter: drop-shadow(0 12px 30px #000)
}

.door-link img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain
}

.door-link:hover {
  filter: brightness(1.08) drop-shadow(0 12px 30px #000)
}

.door-link:focus-visible {
  outline: 3px dashed #d6b799;
  outline-offset: 6px
}

/* home */
.masthead {
  position: relative;
  overflow: hidden;
  padding: 32px 40px;
  margin-bottom: 23px;
  min-height: 230px;
  background: linear-gradient(100deg, #2b211dea, #403025eb), url('assets/wood.png');
  border: 4px double #a7886b;
  box-shadow: 8px 8px 0 #0b0908b8
}

.masthead::before {
  content: '✳';
  position: absolute;
  right: 40px;
  top: 2px;
  font-size: 190px;
  color: #ab81602b;
  line-height: 1
}

.masthead h1 {
  position: relative;
  font-size: clamp(43px, 7vw, 86px);
  letter-spacing: -.075em;
  margin: 4px 0 10px;
  color: #ebd9bd;
  text-shadow: 4px 4px #4b2824;
  line-height: .82
}

.masthead h1 em {
  font-style: normal;
  color: #d9a184
}

.masthead p {
  margin: 20px 0 0;
  color: #bdc0a6
}

.stamp {
  border: 3px double #7f4a3f;
  color: #8d473c;
  display: inline-block;
  padding: 6px 9px;
  font-weight: bold;
  transform: rotate(-7deg);
  font-size: 11px;
  text-align: center
}

.stamp-side {
  position: absolute;
  right: 30px;
  bottom: 30px;
  color: #ce9880;
  border-color: #ce9880
}

.columns-home {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(235px, 1fr);
  gap: 22px
}

.home-primary,
.home-secondary {
  min-width: 0
}

.intro h2 {
  font-size: 25px;
  color: #e5c2a5
}

.paper-card {
  position: relative;
  background: #d9cfb8;
  color: #352820;
  padding: 25px;
  box-shadow: 5px 7px 0 #130c08b5;
  outline: 1px solid #8d7c63;
  transform: rotate(var(--tilt, 0deg));
  margin: 14px 9px 27px
}

.paper-card h2 {
  font-family: Georgia, serif;
  font-size: 24px;
  margin-top: 0;
  border-bottom: 1px dotted #8b7b69
}

.paper-card a {
  color: #774a3b
}

.paper-card:before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  background: repeating-linear-gradient(0deg, transparent 0 5px, #8c7b6440 6px, transparent 7px 13px)
}

.scrap-sticky {
  max-width: 470px;
  min-height: 190px
}

.paper-pin {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #9d5347;
  box-shadow: 2px 3px 2px #554236
}

.scribbled-note {
  display: block;
  text-align: right;
  color: #765746;
  font-size: 12px;
  font-style: italic;
  transform: rotate(-3deg)
}

.post-preview {
  border-left: 2px solid #92705c;
  padding-left: 12px;
  margin: 14px 0
}

.post-preview h3 {
  margin: 5px 0
}

.post-preview h3 a {
  color: #eac8a7
}

.post-preview p {
  margin: 0 0 8px
}

.box-under {
  background: #181715;
  border: 2px dashed #c2a16b;
  padding: 14px 20px;
  margin-bottom: 20px
}

.hazard {
  display: block;
  color: #ebc17e;
  letter-spacing: .08em;
  font-weight: bold;
  font-size: 12px
}

.box-under p {
  margin: 8px 0
}

.home-secondary .window-body {
  padding: 16px
}

.current p {
  margin: 0 0 15px;
  color: #c6b6aa
}

.current b {
  color: #ebd3b8
}

.cat-photo {
  background: #d6c8ae;
  padding: 7px;
  box-shadow: 5px 5px 0 #21140d;
  margin: 6px 8px 23px;
  transform: rotate(2deg)
}

.cat-photo a {
  display: block;
  text-align: center;
  color: #32221b;
  font-weight: bold;
  text-decoration: none;
  font-size: 11px
}

.cat-photo img {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: sepia(.14) contrast(1.08)
}

.cat-photo span {
  display: block;
  padding: 6px 0 1px
}

.cat-photo:hover {
  transform: rotate(-2deg)
}

.music-player {
  margin: 0 0 23px;
  border: 5px ridge #77726d;
  background: linear-gradient(115deg, #312e2a, #4e4942);
  padding: 13px 12px 12px;
  box-shadow: 5px 6px 0 #100d0a
}

.music-label {
  font-size: 10px;
  color: #ddd2bb;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  gap: 5px
}

.music-label span {
  color: #cd9c86
}

.lcd {
  border: 5px inset #454d44;
  background: #b8c0a8;
  color: #303a30;
  min-height: 140px;
  margin: 10px 0;
  padding: 11px 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: space-between;
  text-shadow: 1px 0 #82937c
}

.lcd span,
.lcd small {
  font-size: 10px
}

.lcd strong {
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere
}

.player-controls {
  display: flex;
  gap: 8px;
  justify-content: center
}

.player-controls button {
  font-size: 11px;
  min-width: 0;
  flex: 1;
  background: #4e4a45;
  border: 3px outset #817970;
  color: #e4d7c4;
  min-width: 55px;
  min-height: 40px;
  cursor: pointer
}

.player-controls button:disabled {
  opacity: .45;
  cursor: not-allowed
}

.player-controls button:not(:disabled):active {
  border-style: inset
}

.music-help {
  font-size: 10px;
  color: #d2c3b6;
  margin-top: 9px
}

.mini-ad {
  border: 3px dashed #8d5e4c;
  background: #382a24;
  padding: 15px;
  transform: rotate(-2deg)
}

.mini-ad span {
  font-size: 10px;
  color: #c3b897
}

.mini-ad p {
  font-weight: bold;
  font-size: 17px;
  color: #dca38b;
  margin: 8px 0
}

.mini-ad a {
  font-size: 10px;
  color: #dfc786
}

.badge-panel {
  margin: 28px 0 18px;
  padding: 18px 22px;
  background: #241c1aec;
  border: 2px solid #8d6b59;
  position: relative
}

.badge-panel h2 {
  font-size: 16px;
  margin: 0 0 12px;
  color: #d5bca2
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center
}

.badges img {
  display: block;
  width: 88px;
  height: 31px;
  image-rendering: pixelated
}

.badges a:hover {
  outline: 2px solid #e7ad91;
  outline-offset: 2px
}

.webrings {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
  margin-top: 0px;
}

.webrings * {
  padding: 10px;
}

.tiny-end-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px
}

.last-drawer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border: 3px outset #6d4c35;
  background: #392a20
}

.last-drawer a {
  color: #eed0ab
}

.secret-object {
  position: absolute;
  right: -28px;
  bottom: 18px;
  font-size: 15px;
  color: #856443;
  text-decoration: none;
  opacity: .7
}

.secret-object:hover {
  color: #e9d6b8;
  opacity: 1
}

/* A little paper label with mechanical counter digits. */
.visitor-counter {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin: 22px 0 4px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid #99856b;
  box-shadow: 3px 4px 0 #100d0b80;
  font-size: 12px
}

.visitor-counter-label {
  letter-spacing: .08em
}

#visitor-count {
  min-width: 6ch;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 3px 9px;
  background: #24201f;
  color: #ede1c9;
  border: 2px inset #796554;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
  text-align: center;
  line-height: 1.4
}

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  align-items: start
}

.dossier {
  font-size: 13px;
  min-height: 330px;
  background: #d6cdb7
}

.classified {
  background: #412f28;
  color: #e3d2b6;
  font-weight: bold;
  padding: 7px;
  margin-bottom: 14px;
  letter-spacing: .1em
}

.dossier .stamp {
  margin-left: 18px
}

.loose-list {
  padding-left: 18px
}

.loose-list li {
  margin-bottom: 12px
}

.sincere {
  max-width: 675px;
  margin: 30px auto
}

.editable-hint {
  border-left: 2px dashed #b48d75;
  padding: 5px 0 5px 12px;
  color: #baa38e;
  font-style: italic
}

/* blog */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(210px, 1fr);
  gap: 25px
}

.blog-slip {
  background: #d5ccba;
  color: #362820;
  border: 2px solid #967c63;
  box-shadow: 7px 7px 0 #0f0b09;
  margin-bottom: 24px;
  padding: 25px
}

.blog-slip h2 {
  margin: 10px 0
}

.blog-slip a {
  color: #734736
}

.blog-slip .date {
  color: #90614e
}

.small-note {
  margin-top: 30px;
  font-size: 13px
}

.blog-aside .window-body {
  font-size: 12px
}

.blog-aside ol {
  padding-left: 18px
}

.blog-aside li {
  margin-bottom: 9px
}

.post-full {
  min-height: 340px
}

.post-full h1 {
  color: #e3bba3
}

.post-full time {
  color: #99aca0
}

/* links */
.badges-large {
  padding: 20px;
  background: #181412;
  border: 2px dotted #92755f;
  gap: 11px
}

.links-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start
}

.links-cards .paper-card {
  margin-top: 20px
}

.subtle-secret {
  font-size: 11px
}

/* cats */
.cat-heading {
  text-align: center
}

.cat-heading h1 small {
  font-size: 20px;
  color: #b6937d
}

.versus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center
}

.fighter {
  background: #2b2521;
  border: 3px solid #89705d;
  box-shadow: 6px 6px 0 #120e0b;
  padding: 13px
}

.fighter-label {
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: .07em;
  color: #e7be9d;
  font-size: 12px;
  border-bottom: 1px dashed #82654e;
  padding-bottom: 7px
}

.fighter img {
  display: block;
  width: 100%;
  height: 350px;
  object-fit: cover;
  margin: 12px 0;
  filter: sepia(.18)
}

.fighter h2 {
  font-size: 30px;
  color: #e1bfa4;
  margin: 5px 0
}

.fighter p {
  min-height: 90px
}

.fighter dl {
  margin: 0
}

.fighter dl div {
  border-top: 1px dotted #806858;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 11px
}

.fighter dt {
  color: #c6b2a0
}

.fighter dd {
  margin: 0;
  text-align: right;
  color: #a8bcb0
}

.versus-mark {
  text-align: center;
  font-size: 26px;
  color: #e2a389;
  font-weight: 900;
  transform: rotate(-12deg)
}

.referee {
  text-align: center;
  margin-top: 25px;
  padding: 12px;
  border: 2px dashed #9b7d64
}

/* scraps */
.folder-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 25px 0 36px
}

.folder {
  position: relative;
  display: block;
  background: #a6845b;
  border: 3px outset #b3916b;
  padding: 34px 14px 18px;
  min-height: 116px;
  text-decoration: none;
  color: #291e15;
  box-shadow: 5px 6px 0 #130e0c
}

.folder .tab {
  position: absolute;
  top: -19px;
  left: 9px;
  background: #b5966e;
  border: 2px solid #61472e;
  padding: 3px 10px;
  font-weight: bold;
  text-transform: uppercase
}

.folder>span:last-child {
  font-size: 11px
}

.folder:hover {
  color: #281a11;
  background: #c4a077
}

.scrap-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  column-gap: 18px;
  row-gap: 16px
}

.scrap-board .paper-card {
  min-height: 235px
}

/* guestbook */
/* cat room - secret */
.page-catroom {
  background: radial-gradient(ellipse at 50% 85%, #534634, #1b1714 70%);
  min-height: 100vh
}

.secret-room {
  max-width: 680px;
  min-height: 100vh;
  margin: auto;
  padding: 25px;
  position: relative;
  text-align: center
}

.room-exit {
  display: block;
  text-align: left;
  font-size: 11px
}

.room-window {
  margin: 30px auto 0;
  width: 170px;
  height: 170px;
  border: 16px ridge #5b4435;
  background: radial-gradient(circle at 66% 30%, #dad3a3 0 24px, #252b35 26px);
  box-shadow: 0 12px 40px #0006
}

.room-window span {
  opacity: 0
}

.room-lamp {
  margin: 0 auto;
  height: 100px;
  width: 3px;
  background: #7e6549
}

.cat-bed {
  width: 260px;
  height: 145px;
  margin: 15px auto 0;
  border-radius: 45% 45% 30% 30%;
  border: 15px ridge #987862;
  background: #756050;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative
}

.pet-cat {
  font-size: 37px;
  cursor: pointer;
  border: 0;
  background: none;
  color: #eee0cb;
  transform-origin: center bottom;
  text-shadow: 3px 4px #352720
}

.pet-cat.pet-bounce {
  animation: pet-bounce .35s steps(3, end)
}

@keyframes pet-bounce {
  50% {
    transform: rotate(-10deg) translateY(-12px)
  }
}

.bed-label {
  position: absolute;
  top: 120px;
  font-size: 11px;
  color: #b9a68d
}

.secret-room>p {
  margin-top: 28px
}

/* responsive */
@media(max-width:900px) {
  .shell {
    width: calc(100% - 44px);
    max-width: 710px
  }

  .nav-trigger img {
    width: 65px
  }

  .site-menu {
    top: 83px
  }

  .masthead {
    padding: 28px 28px
  }

  .stamp-side {
    right: 16px;
    bottom: 16px
  }
}

@media(max-width:640px) {
  .shell {
    width: calc(100% - 24px);
    margin: 100px auto 50px
  }

  .columns-home,
  .about-grid,
  .blog-layout,
  .links-cards,
  .scrap-board {
    grid-template-columns: 1fr
  }

  .versus-grid {
    grid-template-columns: 1fr
  }

  .versus-mark {
    margin: 0
  }

  .folder-row {
    grid-template-columns: 1fr;
    gap: 26px
  }

  .last-drawer,
  .footer {
    flex-direction: column
  }

  .masthead {
    min-height: 205px
  }

  .masthead h1 {
    font-size: 56px
  }

  .masthead p {
    font-size: 12px
  }

  .stamp-side {
    position: relative;
    display: inline-block;
    right: auto;
    bottom: auto;
    margin: 20px 0 0
  }

  .fighter img {
    height: 340px
  }

  .page-heading {
    padding: 20px
  }

  .secret-object {
    right: 4px
  }

  .door-stage {
    padding: 8vh 12px
  }

  .door-link {
    height: auto;
    max-height: 83vh
  }

  .door-link img {
    max-height: 83vh
  }
}

@media(prefers-reduced-motion:reduce) {
  .pet-cat.pet-bounce {
    animation: none
  }
}


/* =============================================
   PAPER SCRAPS
   26 textures available in assets/papers/.
   Assign class paper-cream-XX, paper-aged-XX, or paper-lined-XX
   Text remains ordinary editable HTML.
   ============================================= */
.paper-card,
.blog-slip {
  position: relative;
  isolation: isolate;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
  color: #34281f;
  overflow-wrap: anywhere;
}

.paper-card {
  padding: 43px 50px 49px;
  margin: 21px 15px 37px;
  min-height: 235px;
}

.paper-card::before,
.blog-slip::before {
  content: "";
  position: absolute;
  inset: -4% -4%;
  background-image: var(--paper-image, url('assets/papers/cream-01.png'));
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(6px 8px 3px rgba(10, 7, 5, .65));
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

.paper-card>*,
.blog-slip>* {
  position: relative;
  z-index: 1
}

.paper-card>.paper-pin {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 50%
}

.paper-card h2 {
  color: #49342a;
  border-bottom: 1px dotted #897866
}

.paper-card .scribbled-note {
  color: #72523f
}

.paper-card a,
.blog-slip a {
  color: #704c38
}

.paper-card .editable-hint {
  color: #624b39;
  border-color: #93745a
}

.paper-card .stamp {
  color: #7e3f35
}

.paper-card.dossier {
  min-height: 470px;
  padding: 59px 63px 70px
}

.paper-card.dossier .classified {
  margin-bottom: 17px
}

.paper-card.scrap-sticky {
  max-width: 470px;
  min-height: 265px;
  padding: 48px 53px 44px
}

.paper-card.small-note {
  min-height: 175px;
  max-width: 465px;
  padding: 45px 50px 36px
}

.scrap-board .paper-card {
  min-height: 290px;
  margin: 24px 6px 35px;
  padding: 57px 51px 45px
}

.scrap-board .paper-card h2 {
  font-size: 22px
}

.links-cards .paper-card {
  min-height: 370px;
  padding: 55px 54px
}

.blog-slip {
  min-height: 340px;
  padding: 67px 68px 72px;
  margin: 0 3px 31px
}

.blog-slip .date {
  color: #865a43
}

.blog-slip h2 {
  font-family: Georgia, serif;
  color: #49342a
}

.blog-slip::before {
  inset: -3% -3%
}

@media(max-width:900px) {
  .paper-card {
    padding: 42px 39px 44px
  }

  .paper-card.dossier {
    padding: 59px 42px 63px
  }

  .links-cards .paper-card {
    padding: 53px 45px
  }

  .blog-slip {
    padding: 63px 46px 68px
  }
}

@media(max-width:640px) {
  .paper-card {
    padding: 43px 35px;
    margin: 25px 6px 38px
  }

  .paper-card.scrap-sticky {
    padding: 53px 37px 51px;
    min-height: 275px
  }

  .paper-card.dossier {
    padding: 59px 45px 72px;
    min-height: 480px
  }

  .paper-card.small-note {
    padding: 51px 43px
  }

  .scrap-board .paper-card {
    padding: 58px 48px;
    min-height: 280px
  }

  .links-cards .paper-card {
    padding: 55px 45px;
    min-height: 385px
  }

  .blog-slip {
    padding: 66px 49px;
    min-height: 380px
  }
}

.paper-cream-01 {
  --paper-image: url("assets/papers/cream-01.png");
}

.paper-cream-02 {
  --paper-image: url("assets/papers/cream-02.png");
}

.paper-cream-03 {
  --paper-image: url("assets/papers/cream-03.png");
}

.paper-cream-04 {
  --paper-image: url("assets/papers/cream-04.png");
}

.paper-cream-05 {
  --paper-image: url("assets/papers/cream-05.png");
}

.paper-cream-06 {
  --paper-image: url("assets/papers/cream-06.png");
}

.paper-cream-07 {
  --paper-image: url("assets/papers/cream-07.png");
}

.paper-cream-08 {
  --paper-image: url("assets/papers/cream-08.png");
}

.paper-cream-09 {
  --paper-image: url("assets/papers/cream-09.png");
}

.paper-cream-10 {
  --paper-image: url("assets/papers/cream-10.png");
}

.paper-cream-11 {
  --paper-image: url("assets/papers/cream-11.png");
}

.paper-cream-12 {
  --paper-image: url("assets/papers/cream-12.png");
}

.paper-aged-01 {
  --paper-image: url("assets/papers/aged-01.png");
}

.paper-aged-02 {
  --paper-image: url("assets/papers/aged-02.png");
}

.paper-aged-03 {
  --paper-image: url("assets/papers/aged-03.png");
}

.paper-aged-04 {
  --paper-image: url("assets/papers/aged-04.png");
}

.paper-aged-05 {
  --paper-image: url("assets/papers/aged-05.png");
}

.paper-aged-06 {
  --paper-image: url("assets/papers/aged-06.png");
}

.paper-aged-07 {
  --paper-image: url("assets/papers/aged-07.png");
}

.paper-aged-08 {
  --paper-image: url("assets/papers/aged-08.png");
}

.paper-lined-01 {
  --paper-image: url("assets/papers/lined-01.png");
}

.paper-lined-02 {
  --paper-image: url("assets/papers/lined-02.png");
}

.paper-lined-03 {
  --paper-image: url("assets/papers/lined-03.png");
}

.paper-lined-04 {
  --paper-image: url("assets/papers/lined-04.png");
}

.paper-lined-05 {
  --paper-image: url("assets/papers/lined-05.png");
}

.paper-lined-06 {
  --paper-image: url("assets/papers/lined-06.png");
}

/* Paper-safe typing areas: avoid placing ink outside the torn edges. */
.blog-layout {
  align-items: start
}

.paper-card.scrap-sticky {
  padding-top: 77px;
  min-height: 310px
}

.links-cards .paper-card {
  padding-top: 86px;
  min-height: 415px
}

.scrap-board .paper-card {
  padding-top: 94px;
  min-height: 340px
}

@media(max-width:640px) {
  body {
    overflow-x: hidden
  }

  .paper-card.scrap-sticky {
    padding-top: 86px;
    min-height: 316px
  }

  .links-cards .paper-card {
    padding-top: 91px;
    min-height: 425px
  }

  .scrap-board .paper-card {
    padding-top: 98px;
    min-height: 370px
  }
}

/* Drag handles are deliberately tiny, like tacks in a real pinboard. */
.paper-card.scrap-sticky {
  padding-left: 75px
}

.scrap-board .draggable-note:nth-child(4) {
  padding-left: 82px
}

.draggable-note {
  z-index: 1;
  touch-action: pan-y
}

.draggable-note.is-dragging {
  z-index: 12
}

.drag-handle {
  position: absolute !important;
  top: 47px;
  left: 50%;
  transform: translateX(-50%);
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 3px ridge #833d35;
  background: radial-gradient(circle at 32% 27%, #deaa91, #9d5347 70%);
  box-shadow: 3px 4px 3px #30211b8a;
  cursor: grab;
  z-index: 5 !important;
  touch-action: none;
  padding: 0;
}

.drag-handle:active {
  cursor: grabbing
}

.drag-handle:focus-visible {
  outline: 3px dotted #482e27;
  outline-offset: 4px
}

@media(max-width:640px) {
  .paper-card.scrap-sticky {
    padding-left: 56px
  }

  .scrap-board .draggable-note:nth-child(4) {
    padding-left: 67px
  }
}

/* Final interaction details */
.room-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px
}

.room-controls button {
  padding: 10px;
  background: #e6d7b0;
  color: #302318;
  border: 3px outset #b6a27b;
  cursor: pointer
}

.lights-low .secret-room {
  filter: brightness(.6)
}

:focus-visible {
  outline: 3px dashed #d95135;
  outline-offset: 5px
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important
  }
}

/* The public pages stay simple; the entrance and hidden room keep their own styles. */
.bare-site {
  background: linear-gradient(#100d0bbf, #100d0bbf), url('assets/wood.png') repeat;
  font-size: 15px;
  line-height: 1.65
}

.bare-site .shell {
  width: calc(100% - 48px);
  max-width: 740px;
  margin: 110px auto 60px
}

.plain-header {
  margin-bottom: 12px;
  font-size: 14px
}

.plain-header a {
  color: var(--cream)
}

.plain-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #705a47;
  margin-bottom: 36px;
  font-size: 13px
}

.plain-nav [aria-current="page"] {
  color: var(--cream);
  text-decoration: none
}

.bare-site h1 {
  font-size: 30px;
  letter-spacing: 0;
  margin: 0 0 24px;
  color: var(--cream);
  font-weight: normal
}

.bare-site h2 {
  font-size: 18px;
  font-weight: normal;
  margin: 0 0 12px
}

.bare-site main>p {
  max-width: 570px
}

.plain-section {
  margin: 32px 0
}

.home-cat {
  display: block;
  width: 270px;
  max-width: 100%;
  margin: 30px 0;
  color: var(--cream);
  font-size: 12px
}

.home-cat img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 6px
}

.plain-links {
  padding-left: 20px;
  margin-bottom: 30px
}

.plain-links li {
  margin: 9px 0
}

.cat-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  max-width: 620px
}

.cat-pair img {
  display: block;
  width: 100%;
  height: auto
}

.plain-scrap {
  position: relative;
  max-width: 440px;
  margin: 30px 0 60px;
  padding: 38px 30px 24px;
  background: transparent url('assets/papers/modest/scrap-001-cream-1031.png') center / 100% 100% no-repeat;
  color: #352820;
  touch-action: pan-y
}

.plain-scrap .drag-handle {
  top: 8px;
  width: 18px;
  height: 18px;
  border-width: 2px;
  box-shadow: 1px 2px 2px #30211b66
}


.page-home .featured-scrap {
  max-width: 370px;
  margin: 18px 0;
  padding: 30px 28px 24px;
  transform: rotate(-1deg);
  font-size: 14px;
  line-height: 1.6;
}

.bare-site .footer {
  border-top: 1px solid #705a47;
  margin-top: 55px;
  padding: 14px 0;
  color: var(--muted)
}

.bare-site .secret-object {
  right: 0;
  bottom: -30px
}

@media(max-width:640px) {
  .bare-site .shell {
    width: calc(100% - 36px);
    margin-top: 100px
  }

  .plain-nav {
    gap: 8px 16px;
    margin-bottom: 28px
  }

  .cat-pair {
    grid-template-columns: 1fr;
    max-width: 340px
  }

  .bare-site .footer {
    flex-direction: row
  }
}

.volume-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px
}

.volume-label input {
  min-width: 0;
  flex: 1
}

.bare-site audio[controls] {
  max-width: 100%
}

/* Shared content blocks, including future posts and media. */
.content-media {
  margin: 24px 0;
  max-width: 620px
}

.content-media img,
.content-media video {
  display: block;
  max-width: 100%;
  height: auto
}

.content-media audio {
  width: 100%
}

.content-media figcaption {
  margin-top: 6px;
  font-size: 13px;
  white-space: pre-line
}

.content-media img {
  max-height: 650px;
  object-fit: contain
}

.page-home .content-media {
  max-width: 270px
}

.bare-site main p,
.bare-site blockquote {
  white-space: pre-line;
  overflow-wrap: anywhere
}

.bare-site article time {
  font-size: 13px;
  color: var(--muted)
}

.cat-pair .content-media {
  margin: 0;
  min-width: 0
}

.content-video {
  display: block;
  max-width: 100%;
  height: auto
}
/* Temporary styling study: shared palette, hierarchy, spacing, tactile details. */
.bare-site { --teal: #b4d0c3; --muted: #d0beaa; }
.bare-site a { text-underline-offset: 3px; }
.bare-site a:hover, .bare-site a:focus-visible { color: #f2bf9f; }
.plain-nav { gap: 8px 19px; margin-bottom: 30px; border-color: #92775e; }
.plain-nav [aria-current="page"] { font-weight: bold; }
.bare-site h1 { font-weight: bold; font-size: 32px; margin-bottom: 18px; letter-spacing: -.035em; }
.bare-site h2 { font-weight: bold; color: #ead4b5; margin-bottom: 10px; font-size: 19px; }
.plain-section { margin: 28px 0; }
.bare-site main > p { max-width: 550px; }
.bare-site .footer { border-color: #92775e; margin-top: 42px; }
.page-about main, .page-scraps main, .page-blog main { max-width: 570px; }
.page-about .shell, .page-scraps .shell, .page-blog .shell { max-width: 650px; }
.plain-scrap { filter: drop-shadow(2px 4px 2px #100c0960); margin: 22px 0 38px; }
.page-home .featured-scrap { margin: 14px 0; }
.page-home .content-media { margin: 25px 0 30px 3px; transform: rotate(.7deg); }
.page-home .content-media img { border: 5px solid #d8c9ac; box-shadow: 2px 4px 3px #100c0970; }
.page-home .content-media figcaption { color: #d0beaa; margin-top: 9px; }
.music-player { border-color: #92775e; box-shadow: 3px 4px 0 #160f0b80; }
.bare-site .badges { gap: 10px; }
@media (max-width:640px) {
 .bare-site h1 { font-size: 29px; }
 .plain-nav { gap: 10px 16px; margin-bottom: 26px; }
 .page-home .content-media { transform: none; margin-left: 0; }
}

/* Post pages keep a direct way back within reach while reading. */
.post-back {
 position: fixed;
 top: max(12px, env(safe-area-inset-top));
 left: max(12px, env(safe-area-inset-left));
 z-index: 100;
 padding: 10px 14px;
 border: 2px solid #92775e;
 background: #30251e;
 color: #f2e5cf;
 box-shadow: 3px 3px 0 #160f0b80;
 text-decoration: none;
}
.post-back:hover { background: #493629; }
.post-back:focus-visible { outline: 3px solid #f2e5cf; outline-offset: 3px; }
.page-post .shell { margin-top: 80px; }
