/* Daily Owl - Typography-first essays */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #fefdfb;
  --text: #2c2c2c;
  --text-light: #666;
  --accent: #b8860b;
  --link: #1a5f7a;
  --border: #e8e4df;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.container.wide {
  max-width: 900px;
}

/* Header */
.site-header {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-size: 1.8rem;
  font-weight: normal;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.site-tagline {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

/* Essay list (homepage) */
.essay-list {
  list-style: none;
}

/* Date section headers */
.date-section {
  margin-bottom: 2rem;
}

.date-header {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Grid layout for essays */
.essay-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .essay-grid {
    grid-template-columns: 1fr;
  }
}

.essay-card {
  padding: 1.2rem;
  background: #f9f8f6;
  border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.essay-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.essay-title {
  font-size: 1.1rem;
  font-weight: normal;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.essay-title a {
  color: var(--text);
  text-decoration: none;
}

.essay-title a:hover {
  color: var(--accent);
}

.essay-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.essay-excerpt {
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Old list style - keep for compatibility */
.essay-item {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.essay-item:last-child {
  border-bottom: none;
}

/* Essay page */
.essay-header {
  text-align: center;
  margin-bottom: 3rem;
}

.essay-header h1 {
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.essay-header .subtitle {
  font-size: 1rem;
  color: var(--text-light);
  font-style: italic;
}

.essay-content {
  margin-bottom: 4rem;
}

.essay-content p {
  margin-bottom: 1.5rem;
  text-align: justify;
  hyphens: auto;
}

.essay-content h2 {
  font-size: 1.3rem;
  font-weight: normal;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.essay-content blockquote {
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: #f9f8f6;
  font-style: italic;
}

.essay-content blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: normal;
}

.essay-content a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.essay-content a:hover {
  color: var(--accent);
}

/* Essay images */
.essay-image {
  margin: 2.5rem -1.5rem;
  text-align: center;
}

.essay-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

@media (min-width: 800px) {
  .essay-image {
    margin: 3rem -3rem;
  }
}

/* Zones (for framework articles) */
.zone {
  margin: 1.5rem 0;
  padding: 1.2rem;
  background: #f7f6f4;
  border-radius: 4px;
}

.zone strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

.site-footer a {
  color: var(--text-light);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.ai-disclosure {
  margin-top: 1rem;
  padding: 0.8rem;
  background: #f7f6f4;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-light);
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 600px) {
  body {
    font-size: 17px;
  }

  .container {
    padding: 2rem 1rem;
  }

  .essay-header h1 {
    font-size: 1.6rem;
  }
}
