/*
Theme Name: Daily Poems Notebook V2
Theme URI: https://example.com/daily-poems-notebook-v2
Author: Codex
Author URI: https://example.com
Description: A clean, literary WordPress theme designed for publishing one poem each day.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: daily-poems-notebook-v2
*/

:root {
  --paper: #fbf7ef;
  --paper-deep: #f2e7d7;
  --ink: #1b1a17;
  --muted: #6b6255;
  --accent: #b7473c;
  --line: #e2d7c6;
  --margin: #e6b7ad;
  --card: #fffdf7;
  --ring: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  position: relative;
  font-family: "Garamond", "Baskerville", "Palatino", "Times New Roman", serif;
  color: var(--ink);
  background-color: rgb(13, 13, 13);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.06), transparent 34%),
    radial-gradient(circle at 82% 70%, rgba(255, 255, 255, 0.05), transparent 38%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.025), rgba(0, 0, 0, 0.22));
  line-height: 1.8;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: soft-light;
}

body::before {
  opacity: 0.55;
  background-image:
    repeating-linear-gradient(
      112deg,
      rgba(255, 255, 255, 0.12) 0 1px,
      rgba(0, 0, 0, 0) 1px 6px
    ),
    repeating-linear-gradient(
      24deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      rgba(0, 0, 0, 0) 1px 9px
    );
  background-size: 100% 100%, 100% 100%;
}

body::after {
  opacity: 0.42;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.1) 0 0.8px, transparent 1.3px),
    radial-gradient(circle at 45% 80%, rgba(255, 255, 255, 0.08) 0 0.9px, transparent 1.5px);
  background-size: 5px 5px, 7px 7px, 9px 9px;
}

.site-wrap {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
}

a:hover,
a:focus {
  color: #1f4f56;
}

.site-wrap {
  max-width: 820px;
  min-height: 100vh;
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
}

body.home .site-main {
  min-height: calc(100vh - 8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-header {
  border-bottom: 2px solid var(--line);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.site-title {
  font-size: clamp(2.2rem, 3.2vw, 2.9rem);
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.02em;
}

.site-description {
  color: var(--muted);
  margin-top: 0.4rem;
  font-style: italic;
}

.site-nav ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.poem-card,
.poem-single {
  position: relative;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 27px,
      rgba(60, 120, 190, 0.08) 28px
    ),
    linear-gradient(180deg, var(--card), var(--paper));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2.4rem 2.6rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.poem-card::before,
.poem-single::before {
  content: "";
  position: absolute;
  top: 0.8rem;
  bottom: 0.8rem;
  left: 1.4rem;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--margin), transparent);
  opacity: 0.8;
}

.poem-title {
  margin: 0 0 0.2rem;
  line-height: 1.25;
}

.poem-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.poem-content p {
  margin: 0 0 1rem;
}

.poem-content p:last-child {
  margin-bottom: 0;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.pagination a {
  text-decoration: none;
}

.today-poem-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin: 0 0 0.7rem;
}

.site-footer {
  border-top: 2px solid var(--line);
  margin-top: 2rem;
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 600px) {
  .site-wrap {
    padding: 1rem;
  }

  .poem-card,
  .poem-single {
    padding: 1.4rem 1.2rem;
  }
}
