@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url('assets/fonts/manrope-latin-v20.woff2') format('woff2'); }
:root { color-scheme: light; --ink: #142438; --muted: #748195; --blue: #173b76; --line: #e1e7ee; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fbfcfe; font: 18px/1.7 Manrope, system-ui, sans-serif; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid #346bbb; outline-offset: 4px; }
.journal-header { display: flex; align-items: center; gap: 32px; padding: 18px max(24px, calc((100vw - 1380px) / 2)); border-bottom: 1px solid var(--line); background: #ffffffd9; }
.journal-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; font-size: 22px; font-weight: 650; letter-spacing: .18em; }
.journal-brand svg { width: 76px; height: 44px; }
.journal-header nav { display: flex; gap: clamp(16px, 2.2vw, 32px); margin-left: auto; font-size: 19px; }
.journal-header nav [aria-current] { color: var(--blue); border-bottom: 2px solid currentColor; }
#journal-language { border: 1px solid #bdcede; border-radius: 50%; min-width: 44px; height: 44px; background: transparent; color: var(--blue); }
.journal-shell { max-width: 1040px; margin: 0 auto; padding: 80px 28px 36px; }
.journal-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 42px; }
.journal-eyebrow { font-size: 11px; letter-spacing: .24em; color: var(--muted); margin: 0 0 10px; }
h1 { font-size: clamp(38px, 5vw, 54px); line-height: 1.2; font-weight: 500; letter-spacing: -.05em; margin: 0; }
.journal-intro { margin: 18px 0 0; color: #65748a; }
.text-button { border: 0; padding: 8px 12px; background: transparent; color: var(--blue); font-size: 15px; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
.primary-button { background: var(--blue); color: white; border: 0; border-radius: 7px; padding: 10px 22px; min-height: 44px; }
.new-entry { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 66px; border: 1px dashed #a9bbd0; border-radius: 8px; background: #f1f6fc; color: var(--blue); }
.new-entry > span:first-child { font-size: 30px; line-height: 1; }
.new-entry:hover { background: #e9f1fb; }
.journal-meta { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin: 26px 0 14px; color: var(--muted); font-size: 13px; }
.journal-meta > div { text-align: right; }
.entry { border-top: 1px solid var(--line); }
.entry:last-child { border-bottom: 1px solid var(--line); }
.entry summary { display: grid; grid-template-columns: 122px minmax(0, 1fr) 20px; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; }
.entry summary::-webkit-details-marker { display: none; }
.entry summary::after { content: '+'; font-size: 22px; color: #8293a7; text-align: center; }
.entry[open] summary::after { content: '−'; }
.entry time { font-size: 15px; color: var(--blue); font-variant-numeric: tabular-nums; }
.entry-excerpt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-content { padding: 0 0 24px 146px; }
.entry-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; }
.entry-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 18px; }
.entry-actions .delete { color: #a9464e; }
.entry-backup { margin-right: auto; color: var(--muted); font-size: 12px; }
.entry-images, .editor-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.entry-images button { display: block; border: 0; padding: 0; background: transparent; }
.entry-images img, .editor-images img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: 8px; }
.editor { border: 1px solid #b8c9dd; border-radius: 10px; padding: 24px; background: white; margin: 18px 0; box-shadow: 0 8px 32px #173b7608; }
.editor fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.editor label { display: block; font-size: 14px; color: #607188; }
.editor input[type=date] { display: block; margin: 6px 0 18px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--blue); background: #f8faff; min-height: 44px; }
.editor textarea { width: 100%; resize: vertical; min-height: 200px; border: 0; padding: 0; color: var(--ink); background: white; outline-offset: 6px; line-height: 1.8; }
.editor-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.editor-toolbar > div { display: flex; gap: 8px; }
.editor-help { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.editor-image { position: relative; }
.editor-image button { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; color: white; background: #152438b3; line-height: 1; }
.editor-error { color: #a42f40; font-size: 14px; }
#journal-message { color: var(--blue); min-height: 0; font-size: 15px; }
#journal-message:empty { display: none; }
.journal-empty, #locked-view { color: var(--muted); padding: 48px 0; text-align: center; }
.journal-footer { margin-top: 64px; color: var(--muted); font-size: 12px; }
#photo-viewer { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
#photo-viewer::backdrop { background: #081320dd; }
#photo-viewer img { display: block; max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 6px; }
#photo-viewer button { position: absolute; right: 0; top: -44px; width: 40px; height: 40px; color: white; background: transparent; border: 0; font-size: 32px; }
@media (max-width: 1000px) { .journal-header { flex-wrap: wrap; gap: 14px; } .journal-header nav { order: 3; flex: 1 0 100%; justify-content: space-between; font-size: 16px; overflow-x: auto; gap: 18px; } #journal-language { margin-left: auto; } }
@media (max-width: 600px) { body { font-size: 17px; } .journal-header { padding: 12px 20px; } .journal-brand { font-size: 19px; } .journal-brand svg { width: 58px; height: 34px; } .journal-shell { padding: 44px 20px 24px; } .journal-heading { align-items: start; margin-bottom: 28px; } .journal-intro { font-size: 15px; } .entry summary { grid-template-columns: 94px minmax(0, 1fr) 16px; gap: 12px; padding: 20px 0; } .entry time { font-size: 13px; } .entry-content { padding-left: 0; } .entry-images, .editor-images { gap: 8px; } .editor { padding: 18px; } .journal-meta { gap: 12px; font-size: 12px; } }
@media (max-width: 600px) { .journal-header nav { flex-wrap: wrap; font-size: 14px; gap: 8px 14px; overflow: visible; } }
