.binder-stories [hidden] { display: none !important; }
.memory-hero { background: radial-gradient(ellipse at 75% 30%,#44344e,transparent 57%),#211b29; }
.memory-hero-inner { display: grid; grid-template-columns: 1.5fr .8fr; gap: clamp(24px,6vw,105px); align-items: center; padding-block: clamp(34px,5vw,67px); }
.memory-label,.memory-length,.memory-scan figcaption { font: 600 .77rem/1.45 var(--mono); }
.memory-label { color: var(--acid); letter-spacing: .15em; text-transform: uppercase; }
.memory-hero h1 { font: italic 800 clamp(3.7rem,6.9vw,7rem)/.87 var(--display); letter-spacing: -.035em; margin: .14em 0 .18em; }
.memory-hero h1 em { color: var(--lilac); font-style: inherit; }
.memory-deck { max-width: 54ch; color: #e1dbe7; font-size: clamp(1.02rem,1.38vw,1.19rem); }
.memory-hero .btn { margin-top: 20px; }
.memory-scan { max-width: 340px; width: 100%; margin: 0 auto; padding: 12px 12px 10px; background: #e9e0cb; color: #302a37; box-shadow: 6px 7px 0 #17131e; transform: rotate(2deg); }
.memory-scan > a,.memory-scan img { display: block; width: 100%; }
.memory-scan img { height: auto; }
.memory-scan figcaption { margin-top: 7px; text-align: center; font-size: .72rem; }
.memory-scan figcaption a,.binder-stories .foot a:last-child { text-decoration: underline; text-underline-offset: .2em; }
.memory-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,5vw,76px); padding-block: clamp(32px,5vw,60px); align-items: start; }
.memory-grid > section { min-width: 0; }
.memory-grid h2 { margin-bottom: 12px; font-size: clamp(2.1rem,3.5vw,3.45rem); }
.memory-form-section > .field-note { font-size: 1rem; color: #d7d1de; }
#memory-form label { display: block; margin: 19px 0 3px; font-weight: 710; }
#memory-form label span { font-weight: 400; color: var(--muted); }
.field-note { color: #c1b9c9; font-size: .93rem; line-height: 1.5; }
#memory-form input,#memory-form textarea { margin-top: 7px; padding: 10px 12px; max-width: 100%; width: 100%; border: 1px solid #655c70; border-radius: 4px; background: #211e27; color: var(--paper); font: inherit; }
#memory-form textarea { resize: vertical; min-height: 112px; display: block; }
#memory-form input[type=file] { font-size: .9rem; }
#memory-form input[type=file]::file-selector-button,#remove-photo { min-height: 37px; margin-right: 9px; padding-inline: 12px; border: 1px solid #655b70; border-radius: 4px; background: #332d3c; color: #ece6f4; font: inherit; cursor: pointer; }
#remove-photo { margin-top: 8px; }
.memory-length { margin-top: 4px; text-align: right; color: var(--muted); }
.memory-feedback { margin-top: 8px; color: var(--acid); font-size: .94rem; }
.memory-feedback:empty { display: none; }
.memory-quiz { display: grid; gap: 2px; }
.memory-quiz span { color: #d8d2df; }
.memory-quiz b { color: var(--lilac); }
.memory-quiz:hover b { text-decoration: underline; }
.memory-proof { display: grid; justify-items: center; border: 1px solid #51495a; border-radius: 5px; background: radial-gradient(ellipse at 50% 30%,#382e42,#1c1920 80%); padding: clamp(12px,2.6vw,34px); }
.memory-proof canvas { display: block; width: 100%; height: auto; max-height: 650px; object-fit: contain; }
.memory-empty { display: grid; width: 100%; min-height: 218px; place-items: center; padding: 24px; border: 1px dashed #74687e; border-radius: 2px; color: #d2c9da; text-align: center; }
.memory-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.memory-end { border-top:1px solid var(--line); padding-block: 22px; }
@media(max-width:760px) {
  .memory-hero-inner { grid-template-columns: minmax(0,1fr) minmax(90px,.41fr); gap: 14px; }
  .memory-hero h1 { font-size: clamp(2.45rem,8.1vw,4.1rem); }
  .memory-deck { font-size: 1rem; }
  .memory-scan { padding: 5px; transform: rotate(2deg); }
  .memory-scan figcaption { font-size: .65rem; }
  .memory-grid { grid-template-columns: 1fr; }
  .memory-proof canvas { max-height: none; }
}
@media(max-width:540px) {
  .memory-hero-inner { grid-template-columns: 1fr; }
  .memory-scan { display: flex; align-items: center; gap: 10px; transform: none; padding: 5px; margin: 0; max-width: 260px; }
  .memory-scan > a { width: 64px; flex-shrink: 0; }
  .memory-hero h1 { font-size: clamp(3.25rem,12vw,4.1rem); }
}
