@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Parisienne&display=swap');

:root {
  --bg: #fbefec;
  --side: #f7dfdc;
  --paper: rgba(255, 252, 247, 0.88);
  --ink: #4a372f;
  --muted: #9a756c;
  --accent: #c8797f;
  --line: rgba(120, 75, 68, 0.16);
  --shadow: rgba(98, 56, 50, 0.12);
}

body[data-theme="cream-paper"] { --bg: #fbf4e9; --side: #f1dfcc; --accent: #b68569; --muted: #907562; }
body[data-theme="sage-green"] { --bg: #eef1e7; --side: #dfe6d7; --accent: #7f9279; --muted: #687962; }
body[data-theme="sky-blue"] { --bg: #eef5f8; --side: #dbeaf1; --accent: #7e9cad; --muted: #637986; }
body[data-theme="mocha-brown"] { --bg: #f1e5dc; --side: #dfcaba; --accent: #9b735d; --muted: #806251; }
body[data-theme="lavender"] { --bg: #f3edf7; --side: #e6dced; --accent: #9b7fa8; --muted: #75627d; }

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  background: radial-gradient(circle at top right, rgba(255,255,255,.7), transparent 28%), linear-gradient(135deg, var(--bg), #fffaf7);
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.02em;
}

.sidebar {
  width: 360px;
  min-height: 100vh;
  padding: 58px 32px 34px;
  background: linear-gradient(180deg, var(--side), rgba(255,255,255,.38));
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
}

.logo {
  font-family: "Parisienne", cursive;
  font-size: 58px;
  line-height: 0.95;
  color: var(--ink);
}

.subtitle, .center-title p {
  letter-spacing: .36em;
  font-size: 16px;
  margin-top: 18px;
  text-align: center;
}

.tiny-heart { color: var(--accent); text-align: center; margin-top: 14px; }

.nav { margin-top: 85px; display: grid; gap: 22px; }

.nav a {
  display: flex;
  gap: 22px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  padding: 20px 22px;
  border-radius: 12px;
}

.nav a.active { background: rgba(255,255,255,.35); }
.nav span { color: var(--accent); font-size: 24px; }
.nav strong { display: block; font-size: 23px; font-weight: 400; }
.nav small { color: var(--muted); font-size: 16px; }

.small-nav {
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 32px;
  display: grid;
  gap: 22px;
}

.small-nav a { color: var(--ink); text-decoration: none; font-size: 17px; }

.note-card {
  margin-top: 85px;
  background: rgba(255,255,255,.45);
  box-shadow: 0 12px 45px var(--shadow);
  padding: 28px 22px;
  text-align: center;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
  transform: rotate(-3deg);
}

.main { flex: 1; padding: 34px 56px 44px; position: relative; }

.topbar { display: flex; justify-content: space-between; align-items: center; }

.theme-picker { display: flex; gap: 12px; align-items: center; font-size: 17px; }

select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.45);
  color: var(--ink);
  padding: 11px 16px;
  font-family: inherit;
  font-size: 17px;
}

.language-toggle { display: flex; gap: 14px; align-items: center; font-size: 18px; }

.lang {
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}

.lang.active { border-bottom: 1px solid var(--accent); }

.center-title { text-align: center; margin: 8px 0 28px; }

h1 {
  font-family: "Parisienne", cursive;
  font-size: clamp(76px, 8vw, 118px);
  font-weight: 400;
  margin: 0;
  line-height: .9;
}

.center-title span { color: var(--accent); }

.journal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 42px;
  box-shadow: 0 28px 80px var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
}

.date { color: var(--accent); font-size: 34px; margin: 0; }
.meta { color: var(--ink); font-size: 17px; }

h2 {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  margin-top: 52px;
}

.entry { font-size: 21px; line-height: 1.75; max-width: 540px; }

.tags { display: flex; flex-wrap: wrap; gap: 22px; color: var(--accent); font-style: italic; margin-top: 26px; }

.music {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.album {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--side), #fff);
}

.music strong, .music small { display: block; font-size: 16px; }

.music button {
  border: none;
  background: transparent;
  font-size: 23px;
  cursor: pointer;
  color: var(--ink);
  margin-left: 24px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: 170px 170px;
  gap: 10px;
}

.photo {
  border-radius: 10px;
  background: linear-gradient(rgba(70,50,40,.08), rgba(70,50,40,.08)), linear-gradient(135deg, #ead8d2, #fff8f2);
  color: rgba(74,55,47,.44);
  display: flex;
  align-items: end;
  padding: 16px;
  font-size: 15px;
}

.photo.large { grid-row: span 2; }

.bottom-panels {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  margin-top: 2px;
  padding-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 38px;
}

.bottom-panels > div:not(:last-child) { border-right: 1px solid var(--line); }

h3 { color: var(--accent); font-weight: 400; font-size: 22px; margin: 0 0 14px; }

li { margin: 8px 0; color: var(--ink); }

.pill-row { display: flex; gap: 10px; flex-wrap: wrap; }

.pill-row span {
  border: 1px solid var(--line);
  color: var(--accent);
  border-radius: 999px;
  padding: 9px 18px;
  background: rgba(255,255,255,.28);
}

.object { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }

.object div {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--side), #fff);
}

.object p { margin: 0; font-size: 17px; }
.object small { color: var(--muted); }

.new-entry {
  position: fixed;
  right: 42px;
  bottom: 32px;
  border: none;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 17px 30px;
  font-family: inherit;
  font-size: 20px;
  box-shadow: 0 18px 50px var(--shadow);
}

footer {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin-top: 24px;
  font-size: 19px;
}

@media (max-width: 980px) {
  body { display: block; }
  .sidebar { width: auto; min-height: auto; position: relative; }
  .journal-card, .bottom-panels { grid-template-columns: 1fr; }
  .bottom-panels > div { border-right: none !important; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .main { padding: 28px 22px 96px; }
}
