/* 773 Christmas letter as Do it with me: Pin's screens over the page (docs/design/sketches/773.css). Colours only through theme tokens. */
html.lt-on { overflow: hidden; }
.lt-sub { margin: 0 0 8px; color: var(--muted); }
.lt { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: flex; flex-direction: column; height: 100dvh; }
.lt[hidden] { display: none; }
.lt-top { display: flex; justify-content: space-between; padding: max(8px, env(safe-area-inset-top)) 8px 0; }
.lt-x { min-width: var(--tap); min-height: var(--tap); border: 0; background: none; color: var(--ink); font: 400 28px/1 var(--ui); cursor: pointer; touch-action: manipulation; }
.lt-main { flex: 1; overflow-y: auto; padding: 8px 20px 16px; max-width: 560px; width: 100%; margin-inline: auto; box-sizing: border-box; }
.lt-main h2 { font: 700 var(--h2, 26px)/1.2 var(--ui); margin: 12px 0 8px; }
.lt-p { color: var(--muted); margin: 0 0 14px; }
.lt-row { display: grid; gap: 6px; margin: 0 0 22px; }
.lt input, .lt textarea { width: 100%; box-sizing: border-box; min-height: var(--tap); padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 400 max(16px, var(--body))/1.3 var(--ui); }
.lt-f { display: block; margin: 0 0 16px; }
.lt-f > span { display: block; font-weight: 600; margin: 0 0 6px; }
.lt-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.lt-chip { min-height: var(--tap); padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 16px var(--ui); cursor: pointer; }
.lt-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.lt-bar { padding: 10px 20px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); max-width: 560px; width: 100%; margin-inline: auto; box-sizing: border-box; }
.lt-acts { display: grid; gap: 8px; }
.lt-go, .lt-alt { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--btn); border: 0; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); font: 600 max(18px, var(--body))/1.2 var(--ui); cursor: pointer; touch-action: manipulation; }
.lt-alt { background: var(--surface-2); color: var(--ink); border: 1.5px solid var(--line); min-height: var(--tap); }
.lt-go[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); }
.lt-link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--tap); border: 0; background: none; color: var(--accent); font: 600 var(--small) var(--ui); cursor: pointer; }
.lt-wait { display: grid; place-items: center; color: var(--muted); }
.lt-paper { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px; box-shadow: 0 2px 10px color-mix(in srgb, var(--ink) 12%, transparent); }
.lt-paper h3 { font: 700 22px/1.2 var(--serif, Georgia, serif); margin: 0 0 12px; }
.lt-paper p, .lt-line { font: 400 max(16px, var(--body))/1.5 var(--serif, Georgia, serif); margin: 0 0 10px; }
.lt-line { display: block; width: 100%; min-height: var(--tap); text-align: start; background: none; border: 0; padding: 4px 0; color: inherit; cursor: pointer; }
.lt-sign { font-style: italic; margin-top: 14px; }
.lt-tile { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 120px; margin: 0 0 12px; border: 2px dashed var(--line); border-radius: var(--r-sm); background: var(--surface-2); color: var(--accent); font: 600 16px var(--ui); cursor: pointer; padding: 12px; text-align: center; }
.lt-ph { display: grid; gap: 6px; margin: 0 0 12px; }
.lt-ph button { padding: 0; border: 0; background: none; display: block; min-width: 0; cursor: pointer; }
.lt-ph img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--r-sm); aspect-ratio: 4 / 3; }
.lt-ph.n2 { grid-template-columns: 1fr 1fr; }
.lt-ph.n3 { grid-template-columns: 1fr 1fr; } .lt-ph.n3 > :first-child { grid-column: 1 / -1; }
.lt-ph.n4 { grid-template-columns: 1fr 1fr; }
.lt-sheet { position: fixed; inset-inline: 0; bottom: 0; max-height: 90dvh; overflow-y: auto; padding: 16px 20px max(16px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; display: grid; gap: 8px; box-shadow: 0 -4px 20px color-mix(in srgb, var(--ink) 18%, transparent); }
.lt-sheet h2 { margin: 0; font: 700 19px var(--ui); }
.lt-addr { text-align: center; }
@media (max-height: 500px) and (orientation: landscape) { .lt-sheet { position: static; } .lt-acts { grid-template-columns: repeat(3, 1fr); padding-block: 6px; } .lt-go, .lt-alt { min-height: var(--tap); font-size: 16px; } .lt-main h2 { margin: 4px 0; font-size: 19px; } }
/* the letter's own page, /letter/<id>/ */
.lt-page { max-width: 560px; margin: 0 auto; padding: 16px; }
.lt-by { text-align: center; margin: 16px 0; }
#lt-print { display: none; }
@media print {
  body > *:not(#lt-print) { display: none !important; }
  #lt-print { display: block; }
  #lt-print .lt-paper { border: 0; box-shadow: none; background: Canvas; color: CanvasText; }
}
