@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=Inter:wght@300;400;600&family=Jacquarda+Bastarda+9&display=swap');

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

:root {
  --bg: #0a0a0a;
  --card-bg: #0f120f;
  --card-border: #1a221a;
  --accent: #737434;
  --text: #c8d4c8;
  --text-muted: #898b6f;
  --text-dim: #6f795d;
  --body-font: 'Inter', sans-serif;
  --mono-font: 'IBM Plex Mono', monospace;
  --grad-start: #7f8c3b;
  --grad-end: #51581d;
  --card-w: 520px;
  --hdr-size: 2.8rem;
  --body-size: 0.8rem;
  --small-size: 0.6rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
@keyframes cardGlow {
  0%, 100% { box-shadow: 0 0 54px -16px rgba(115, 116, 52, 0.5), 0 0 140px -36px rgba(127, 140, 59, 0.34); }
  50% { box-shadow: 0 0 62px -14px rgba(115, 116, 52, 0.6), 0 0 160px -30px rgba(127, 140, 59, 0.42); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 0.8; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(115, 116, 52, 0.45); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(115, 116, 52, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(92vw, 780px);
  height: min(92vh, 780px);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(115, 116, 52, 0.16), transparent 72%);
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 12s ease-in-out infinite;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  max-width: var(--card-w);
  width: 100%;
  padding: 3rem 2rem 2rem;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both, cardGlow 10s ease-in-out infinite;
}

.card::before, .card::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--card-bg) 0px, var(--card-bg) 3px, transparent 3px, transparent 5px);
}
.card::before { top: -2px; }
.card::after { bottom: -2px; }

/* header */
.header {
  text-align: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 1.4rem;
}
.header .today-label {
  font-family: var(--mono-font);
  font-size: var(--small-size);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.header .title {
  font-family: 'Jacquarda Bastarda 9', serif;
  font-size: var(--hdr-size);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.header .title .accent { color: var(--accent); }
.header .title .rest {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header .title .heart {
  color: var(--accent);
  font-size: 0.8em;
  vertical-align: 0.12em;
  animation: breathe 3s ease-in-out infinite;
}
.header .blurb {
  font-size: var(--body-size);
  color: var(--text-muted);
  margin-top: 0.9rem;
  line-height: 1.6;
  font-weight: 300;
}
.header .blurb .blurb-meta {
  display: inline-block;
  margin-top: 0.4rem;
}

/* section label */
.subhead {
  font-family: var(--mono-font);
  font-size: var(--small-size);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #181818;
  animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.subhead + .link-list { margin-bottom: 1.5rem; }

/* link list */
.link-list { list-style: none; }

/* blog grid — 3 columns */
.blog-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}
.blog-grid .link-item {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 0.55rem 0.35rem;
  margin-bottom: 0;
  border-left: none;
  border: 1px solid transparent;
}
.blog-grid .link-item:hover {
  border-left-color: transparent;
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  transform: translateY(-1px);
}
.blog-grid .url-link { align-items: center; }
.blog-grid .url-text {
  font-size: calc(var(--body-size) * 0.8);
  letter-spacing: 0.04em;
  line-height: 1.35;
}
.blog-grid .muse-text {
  font-size: calc(var(--body-size) * 0.66);
  margin-top: 0.15rem;
}
/* center the lone 7th blog in the middle column */
.blog-grid .link-item:nth-child(7) {
  grid-column: 2;
}
@media (max-width: 480px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

.link-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
  border-left: 2px solid transparent;
  transition: all 0.2s;
  font-size: var(--body-size);
  animation: fadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(0.05s * var(--i, 0));
}
.link-item:hover {
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  transform: translateX(3px);
}

.url-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.url-link .url-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  font-family: var(--mono-font);
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.url-link .url-text .accent { color: var(--accent); }
.url-link .muse-text {
  font-weight: 300;
  font-size: calc(var(--body-size) * 0.8);
  color: var(--text-dim);
  margin-top: 0.1rem;
  transition: opacity 0.2s;
}
.url-link:hover .url-text { opacity: 0.8; }
.url-link:hover .url-text .accent {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* footer */
.footer {
  margin-top: 1.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid #181818;
  text-align: center;
}
.footer .tagline {
  font-family: var(--mono-font);
  font-size: var(--small-size);
  color: var(--text-muted);
  letter-spacing: 0.15em;
}
.footer .tagline .accent {
  color: var(--accent);
  animation: breathe 3s ease-in-out infinite;
}
.footer .note {
  font-size: calc(var(--small-size) * 0.9);
  color: var(--text-dim);
  margin-top: 0.5rem;
  font-style: italic;
}
.footer .music { margin-top: 1.2rem; }

/* playlist widget — hybrid (option 2 header + option 1 tracklist) */
.music .widget-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem;
  background: #121212;
  border: 1px solid #1f1f1f;
  border-radius: 8px 8px 0 0;
}
.music .art {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--grad-start), #2a2a1a);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  color: var(--text);
  animation: floaty 7s ease-in-out infinite;
}
.music .meta { flex: 1; min-width: 0; }
.music .ptitle {
  font-family: var(--mono-font);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music .ptitle .accent { color: var(--accent); }
.music .psub {
  font-size: 0.6rem;
  color: #a7a7a7;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music .play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0a0a;
  font-size: 0.7rem;
  flex-shrink: 0;
  animation: btnPulse 3.5s ease-out infinite;
}
.music .tracklist {
  list-style: none;
  background: #121212;
  border: 1px solid #1f1f1f;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 0.4rem 0;
}
.music .track { transition: all 0.2s; }
.music .track:hover { background: #1a1a1a; }
.music .track:hover .track-link { transform: translateX(3px); }
.music .track-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.music .track .num {
  font-family: var(--mono-font);
  font-size: 0.55rem;
  color: #6f795d;
  width: 1.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.music .track .info { flex: 1; min-width: 0; }
.music .track .name {
  font-family: var(--mono-font);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music .track .name .accent { color: var(--accent); }
.music .track .artist {
  font-size: 0.6rem;
  color: #6f795d;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.music .track .play {
  color: var(--accent);
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.music .track:hover .play { opacity: 1; }
.music .track.playing { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.music .track.playing .num { color: var(--accent); }
.music .track.playing .name {
  color: color-mix(in srgb, var(--text) 82%, var(--accent));
  text-shadow: 0 0 10px color-mix(in srgb, var(--accent) 45%, transparent);
}
.music .eq { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.music .eq span {
  width: 2px;
  background: var(--accent);
  animation: eq 1s ease-in-out infinite;
}
.music .eq span:nth-child(1) { animation-delay: 0s; }
.music .eq span:nth-child(2) { animation-delay: 0.2s; }
.music .eq span:nth-child(3) { animation-delay: 0.4s; }
@keyframes eq {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}
