@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:wght@300;400;500&display=swap'); *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --bg: #f5f0e8; --surface: #fdfaf4; --border: #ddd5c0; --text: #1a1814; --muted: #8c8070; --accent: #c84b2f; --accent-h: #a83a20; --danger: #c0392b; --radius: 6px; --shadow: 0 1px 6px rgba(0,0,0,.08); } body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; font-size: 16px; font-weight: 300; } h1, h2, h3 { font-family: 'Instrument Serif', serif; font-weight: 400; } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } /* ---- Navbar ---- */ .navbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0 2.5rem; height: 58px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; } .nav-brand { font-family: 'Instrument Serif', serif; font-size: 1.35rem; color: var(--text); letter-spacing: 0.01em; } .nav-brand:hover { text-decoration: none; } .nav-links { display: flex; align-items: center; gap: .75rem; } .nav-user { font-size: .85rem; color: var(--muted); font-weight: 300; } /* ---- Container ---- */ .container { max-width: 880px; margin: 0 auto; padding: 2.5rem 2rem; } /* ---- Buttons ---- */ .btn { display: inline-flex; align-items: center; justify-content: center; padding: .5rem 1.25rem; border-radius: var(--radius); font-family: 'DM Sans', sans-serif; font-size: .875rem; font-weight: 400; cursor: pointer; border: 1px solid transparent; transition: all .15s; text-decoration: none; letter-spacing: 0.02em; } .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); } .btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); text-decoration: none; } .btn-ghost { background: transparent; color: var(--text); border-color: var(--border); } .btn-ghost:hover { background: var(--bg); text-decoration: none; } .btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); } .btn-danger:hover { background: var(--danger); color: #fff; text-decoration: none; } .btn-sm { padding: .35rem .9rem; font-size: .82rem; } .btn-full { width: 100%; } /* ---- Alerts ---- */ .alert { padding: .75rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: .9rem; border-left: 3px solid; } .alert-success { background: #f0f7f0; border-color: #5a9e6f; color: #2d6a40; } .alert-error { background: #fdf0ee; border-color: var(--accent); color: var(--accent-h); } /* ---- Page header ---- */ .page-header { margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; } .page-header h1 { font-size: 2.2rem; line-height: 1.2; } .subtitle { color: var(--muted); font-size: .88rem; margin-top: .35rem; font-weight: 300; } /* ---- Search bar ---- */ .search-form { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; } .input { padding: .55rem .9rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: .9rem; color: var(--text); background: var(--surface); outline: none; transition: border-color .15s; font-family: 'DM Sans', sans-serif; font-weight: 300; } .input:focus { border-color: var(--accent); } .search-form .input:first-child { flex: 1; min-width: 180px; } .select-input { cursor: pointer; } /* ---- Entries grid ---- */ .entries-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; } .entry-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: block; transition: box-shadow .15s, transform .15s; color: var(--text); } .entry-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; } .entry-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; } .mood-badge { font-size: .75rem; padding: .2rem .65rem; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; color: var(--muted); font-weight: 400; letter-spacing: 0.03em; } .mood-large { font-size: .88rem; padding: .3rem .85rem; } .entry-date { font-size: .75rem; color: var(--muted); font-weight: 300; } .entry-title { font-family: 'Instrument Serif', serif; font-size: 1.2rem; font-weight: 400; margin-bottom: .5rem; line-height: 1.3; } .entry-excerpt { font-size: .875rem; color: var(--muted); line-height: 1.6; font-weight: 300; } /* ---- Empty state ---- */ .empty-state { text-align: center; padding: 5rem 2rem; color: var(--muted); } .empty-icon { font-size: 2.5rem; margin-bottom: 1rem; } /* ---- Entry detail ---- */ .detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; } .back-link { color: var(--muted); font-size: .88rem; font-weight: 300; } .back-link:hover { color: var(--text); } .detail-actions { display: flex; gap: .5rem; } .entry-detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; } .entry-meta { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; } .detail-title { font-size: 2.4rem; line-height: 1.2; margin-bottom: 2rem; } .entry-content { font-size: 1.05rem; line-height: 1.85; color: var(--text); font-weight: 300; } .entry-content p { margin-bottom: 1.1rem; } /* ---- Forms ---- */ .form-page { max-width: 660px; } .form-page h1 { font-size: 2rem; margin-bottom: 1.75rem; } .diary-form { display: flex; flex-direction: column; gap: 1.35rem; } .form-group { display: flex; flex-direction: column; gap: .45rem; } .form-group label { font-size: .85rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; } .form-group .input { width: 100%; } .textarea { resize: vertical; min-height: 240px; line-height: 1.7; } .form-actions { display: flex; gap: .75rem; padding-top: .5rem; } .field-error { font-size: .82rem; color: var(--danger); } .field-hint { font-size: .82rem; color: var(--muted); font-weight: 300; } /* ---- Auth ---- */ .auth-page { min-height: calc(100vh - 58px); display: flex; align-items: center; justify-content: center; padding: 2rem; } .auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.75rem; width: 100%; max-width: 420px; } .auth-card h1 { font-size: 1.9rem; margin-bottom: 1.75rem; } .auth-footer { margin-top: 1.25rem; font-size: .875rem; text-align: center; color: var(--muted); font-weight: 300; }