/*
Theme Name: dahosek-child
Template: twentytwentythree
Description: Custom homepage/blog/post/page templates for dahosek.com, built on Twenty Twenty-Three.
Version: 1.0
Text Domain: dahosek-child
*/

:root {
  --primary: #9683EC;
  --secondary: #4000FF;
  --tertiary: #F6F6F6;
  --base: #FFFFF0;
  --contrast: #000000;
  --overlay: rgba(12, 0, 255, 0.5);
}

body.dahosek-custom {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--contrast);
  background: var(--base);
  line-height: 1.6;
}

body.dahosek-custom * { box-sizing: border-box; }
body.dahosek-custom a { color: inherit; }

/* ---- header ---- */
.dahosek-custom header.listing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.dahosek-custom .site-title a {
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}
.dahosek-custom .listing-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.dahosek-custom .listing-nav li.sep {
  color: #999;
}
.dahosek-custom .listing-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.dahosek-custom .listing-nav a:hover { border-bottom-color: var(--primary); }

/* narrower reading-column main, used by single/page/blog-listing */
.dahosek-custom main.reading-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 32px 64px;
}

/* wide hero main, used by front-page */
.dahosek-custom main.hero-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 32px 64px;
}

.dahosek-custom h1.tagline {
  font-size: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  line-height: 1.15;
  margin: 8px 0 36px;
}

/* ---- card grid (front page + blog listing) ---- */
.dahosek-custom .card-grid,
.dahosek-custom .post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dahosek-custom .card {
  position: relative;
  min-height: 460px;
  border-radius: 6px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.dahosek-custom .post-grid .card { min-height: 380px; }

.dahosek-custom .card-overlay {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--overlay);
  padding: 28px 26px;
  color: #fff;
}
.dahosek-custom .post-grid .card-overlay {
  justify-content: flex-end;
  padding: 24px 22px;
}

.dahosek-custom .card-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 auto 0;
  padding-bottom: 18px;
  letter-spacing: 0.01em;
}

.dahosek-custom .card-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.dahosek-custom .card-link {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.dahosek-custom .card-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #1a0f3d;
}

/* blog card: post title acts as the first "link" plus an excerpt */
.dahosek-custom .post-title-link {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}
.dahosek-custom .post-grid .post-title-link { font-size: 1.2rem; }
.dahosek-custom .post-title-link:hover { color: var(--primary); }

.dahosek-custom .post-excerpt {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.92);
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dahosek-custom .post-grid .post-excerpt { font-size: 0.9rem; margin: 0; }

/* ---- pagination (blog listing) ---- */
.dahosek-custom .pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  font-weight: 600;
  font-size: 0.95rem;
}
.dahosek-custom .pagination a { text-decoration: none; }
.dahosek-custom .pagination a:hover { color: var(--secondary); }
.dahosek-custom .pagination span.disabled { color: #bbb; }

/* ---- single post ---- */
.dahosek-custom .post-meta {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 14px;
}
.dahosek-custom .post-meta a { color: var(--secondary); text-decoration: none; }
.dahosek-custom .post-meta a:hover { text-decoration: underline; }

.dahosek-custom h1.post-title,
.dahosek-custom h1.page-title {
  font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 28px;
}

.dahosek-custom .post-body p,
.dahosek-custom .page-body p,
.dahosek-custom .post-body ul,
.dahosek-custom .page-body ul {
  margin: 0 0 1.2em;
  font-size: 1.2em;
}
.dahosek-custom .page-body a { color: var(--secondary); text-decoration: underline; }

/* ---- prev/next pager (single post) ---- */
.dahosek-custom nav.post-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}
.dahosek-custom .pager-slot { display: flex; }
.dahosek-custom .pager-slot.next { justify-content: flex-end; text-align: right; }
.dahosek-custom .pager-link {
  text-decoration: none;
  max-width: 100%;
}
.dahosek-custom .pager-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 4px;
}
.dahosek-custom .pager-title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}
.dahosek-custom .pager-link:hover .pager-title { color: var(--secondary); }

/* ---- comments ---- */
.dahosek-custom .comments-area {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}
.dahosek-custom .comments-area h2 { font-size: 1.4rem; }
.dahosek-custom .comment-list { list-style: none; margin: 0; padding: 0; }
.dahosek-custom .comment-list li { margin-bottom: 24px; }
.dahosek-custom .comment-list .comment-author { font-weight: 700; }
.dahosek-custom .comment-list .comment-metadata { font-size: 0.85rem; color: #777; margin-bottom: 6px; }
.dahosek-custom .comment-list .comment-metadata a { color: inherit; text-decoration: none; }
.dahosek-custom .comment-respond input[type="text"],
.dahosek-custom .comment-respond input[type="email"],
.dahosek-custom .comment-respond input[type="url"],
.dahosek-custom .comment-respond textarea {
  width: 100%;
  max-width: 500px;
  padding: 8px 10px;
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 12px;
}
.dahosek-custom .comment-respond textarea { max-width: 100%; }
.dahosek-custom .comment-respond .form-submit input {
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
}
.dahosek-custom .comment-respond .form-submit input:hover { background: var(--primary); color: #1a0f3d; }

/* ---- footer ---- */
.dahosek-custom footer.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 24px 32px 48px;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #e5e5e5;
}
.dahosek-custom main.reading-main + footer.site-footer,
.dahosek-custom footer.site-footer.reading-width {
  max-width: 900px;
}
.dahosek-custom footer.site-footer .site-title a { font-size: 1rem; }
.dahosek-custom .footer-credit { margin: 0; }
.dahosek-custom .footer-credit a { color: inherit; }

/* ---- responsive: stack on narrower screens ---- */
@media (max-width: 900px) {
  .dahosek-custom .card-grid,
  .dahosek-custom .post-grid {
    grid-template-columns: 1fr;
  }
  .dahosek-custom .card { min-height: 380px; }
  .dahosek-custom .post-grid .card { min-height: 340px; }
  .dahosek-custom header.listing-header { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 640px) {
  .dahosek-custom nav.post-pager { grid-template-columns: 1fr; }
  .dahosek-custom .pager-slot.next { justify-content: flex-start; text-align: left; }
}
