
/*
Theme Name: Kirton Niner Solstice Storybook
Theme URI: https://kirton.niner.me
Author: K. Kirton Niner
Author URI: https://kirton.niner.me
Description: Warm solstice journal theme for Kirton.Niner.me dia — longest night, returning sun. Includes featured images + menu.
Version: 2.1
Text Domain: kirton-niner-solstice
*/

:root {
  --midnight: #050815;
  --dusk: #10172b;
  --ember: #ffb86b;
  --ember-soft: #ffd8a5;
  --frost: #f4f5fb;
  --card-bg-top: #171b30;
  --card-bg-bottom: #120e19;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0, rgba(255,255,255,0.04) 0, transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,0.06) 0, transparent 45%),
    linear-gradient(to bottom, var(--dusk) 0, var(--midnight) 55%, #251329 80%, #f08a4b 100%);
  color: var(--frost);
  line-height: 1.7;
  min-height: 100vh;
}

/* Light snow */
body::before,
body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  top: -15%;
  left: 0;
  width: 100%;
  height: 130%;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 30% 80%, rgba(255,255,255,0.6) 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 70% 30%, rgba(255,255,255,0.8) 50%, transparent 51%);
  opacity: 0.35;
  z-index: 0;
  animation: snowFall 40s linear infinite;
}
body::after { opacity: 0.22; animation-duration: 65s; animation-direction: reverse; }
@keyframes snowFall { 0%{transform:translate3d(0,0,0);} 100%{transform:translate3d(0,18%,0);} }

.site { min-height: 100vh; display: flex; flex-direction: column; position: relative; z-index: 1; }

/* Header */
.site-header {
  background: linear-gradient(135deg, #060814, #12182d 60%, #3a2443 100%);
  border-bottom: 1px solid rgba(255, 216, 160, 0.35);
  position: relative;
  padding: 14px 20px 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.78);
}
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background-image: linear-gradient(90deg, rgba(255,173,97,0.1), rgba(255,216,160,0.9), rgba(255,173,97,0.1));
  opacity: 0.85;
}
.site-branding { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; justify-content: space-between; }
.site-title {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.98rem;
  color: var(--ember-soft);
}
.site-title a { text-decoration: none; color: inherit; }
.site-description { margin: 0; font-size: 0.8rem; color: rgba(244, 245, 251, 0.85); }
.site-tagline-extra { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255, 216, 160, 0.9); }

/* Menu */
.main-navigation { margin-top: 10px; }
.main-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.main-navigation a {
  display: inline-flex; align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 216, 160, 0.28);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--frost);
  background: rgba(6, 8, 20, 0.8);
}
.main-navigation a::before { content: "☼"; margin-right: 6px; font-size: 0.7rem; opacity: 0.85; }
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  border-color: var(--ember);
  background: radial-gradient(circle at top, rgba(255,216,160,0.3), rgba(6, 8, 20, 0.98));
}

/* Content */
.site-content { flex: 1; padding: 26px 14px 40px; }
@media (min-width: 960px) { .site-content { padding: 40px 40px 70px; } }
.content-area { max-width: 960px; margin: 0 auto; }

/* Post cards */
.post-card {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(255,216,160,0.12), transparent 48%),
    radial-gradient(circle at bottom right, rgba(240,138,75,0.12), transparent 55%),
    linear-gradient(145deg, var(--card-bg-top), var(--card-bg-bottom));
  border-radius: 16px;
  padding: 20px 18px 22px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 216, 160, 0.22);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.8);
}
.post-card::after {
  content: "✺";
  position: absolute;
  right: 16px;
  top: 8px;
  font-size: 1rem;
  opacity: 0.5;
  color: var(--ember-soft);
}

.entry-header { margin-bottom: 8px; }
.entry-title {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
  color: var(--ember-soft);
}
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { text-decoration: underline; }

.entry-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(244, 245, 251, 0.82);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Featured image */
.featured-media {
  margin: 12px 0 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 216, 160, 0.18);
  box-shadow: 0 10px 24px rgba(0,0,0,0.55);
}
.featured-media img { display: block; width: 100%; height: auto; border-radius: 0; }

.entry-content { font-size: 0.95rem; color: var(--frost); margin-top: 10px; }
.entry-content a { color: var(--ember-soft); text-decoration-color: rgba(255,216,160,0.5); }
.entry-content a:hover { text-decoration-color: rgba(255,216,160,1); }

.read-more { margin-top: 14px; }
.read-more a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ember-soft); text-decoration: none;
}
.read-more a::after { content: "↠"; font-size: 0.8rem; }
.read-more a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 216, 160, 0.35);
  background: radial-gradient(circle at top, rgba(255,216,160,0.16), rgba(6, 8, 20, 0.98));
  padding: 16px 14px 22px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(244, 245, 251, 0.9);
}
.site-footer small { display: block; opacity: 0.9; }
.footer-sun { font-size: 0.9rem; opacity: 0.8; margin-bottom: 4px; }

/* Utility */
.aligncenter { display:block; margin-left:auto; margin-right:auto; }
img { max-width: 100%; height: auto; border-radius: 10px; }
