:root {
  color-scheme: light;
  --text: #30272a;
  --muted: #6e6265;
  --accent: #705063;
  --border: rgba(73, 53, 48, 0.14);
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background: #f8f6f2;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background:
    linear-gradient(rgba(248, 246, 242, 0.78), rgba(248, 246, 242, 0.92)),
    url("background.jpg") center / cover fixed;
}

.page-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(20px, calc((100vw - 1000px) / 2));
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.brand,
.back-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.brand {
  color: var(--text);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 21px;
}

main {
  width: min(100% - 32px, 1000px);
  flex: 1;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 58px) 0;
}

h1,
h2 {
  font-family: "Crimson Pro", Georgia, serif;
  font-weight: 400;
}

h1 {
  margin: 0 0 26px;
  font-size: clamp(38px, 7vw, 54px);
  text-align: center;
}

.entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.entry-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 40px rgba(41, 34, 36, 0.1);
}

.entry-preview {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
}

.entry-preview:hover,
.entry-preview:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(41, 34, 36, 0.16);
}

.album-card {
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.album-card:hover,
.album-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(41, 34, 36, 0.16);
}

.album-count {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.entry-image {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.entry-content {
  padding: 15px 16px;
}

.entry-author {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.entry-author img {
  width: 32px;
  height: 32px;
  border: 1px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 35%;
}

.entry-card h2 {
  margin: 0 0 8px;
  font-size: 25px;
}

.entry-copy {
  margin: 0;
  line-height: 1.7;
  white-space: pre-wrap;
}

.entry-preview-copy {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.entry-detail {
  width: min(100%, 760px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(41, 34, 36, 0.1);
}

.entry-detail .entry-image {
  max-height: min(68vh, 680px);
  object-fit: contain;
  background: rgba(48, 39, 42, 0.05);
}

.entry-detail-content {
  padding: clamp(20px, 5vw, 38px);
}

.entry-detail-title {
  margin: 0 0 12px;
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.15;
}

.entry-detail .entry-copy {
  font-size: 16px;
  line-height: 1.85;
}

.entry-audio {
  width: 100%;
  margin-top: 12px;
}

.empty-message,
.page-status {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.page-status {
  text-align: center;
}

.page-status.error {
  color: #a32946;
}

.site-footer {
  padding: 12px 20px 18px;
  color: #fff8e9;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 15px;
  font-style: italic;
  text-align: center;
  text-shadow: 0 1px 4px rgba(31, 28, 55, 0.9);
}

@media (max-width: 520px) {
  .page-header .brand,
  .page-header .back-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
}
