/* Ruminations — shares the Axion editorial palette */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --gold: #e8b44a;
  --cyan: #7fd8e8;
  --ink: #0a0c10;
  --paper: #c9ccd2;
  --dim: #7a7f88;
  --line: #1b1f27;
}
body { background: var(--ink); color: var(--paper); font-family: -apple-system, "Helvetica Neue", Inter, Arial, sans-serif; }
a { color: inherit; }

.rumhead { max-width: 1060px; margin: 0 auto; padding: 8vh 24px 4vh; }
.rumhead .back {
  display: inline-block; margin-bottom: 26px; text-decoration: none;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(232, 180, 74, .5);
  padding: 9px 18px; transition: background .3s, color .3s;
}
.rumhead .back:hover { background: var(--gold); color: #000; }
.rumhead .home { display: block; margin-top: 4px; width: fit-content; }
.rumhead .home img { width: 130px; opacity: .75; transition: opacity .3s; display: block; }
.rumhead .home:hover img { opacity: 1; }
.rumhead h1 { margin-top: 22px; font-weight: 300; font-size: clamp(30px, 4.4vw, 52px); color: #eef0f4; }
.rumhead h1 .dot, article h1 .dot { color: var(--gold); }
.rumhead .sub { margin-top: 10px; color: var(--dim); font-weight: 300; font-size: 15px; line-height: 1.7; }

/* controls */
.controls {
  max-width: 1060px; margin: 0 auto; padding: 0 24px 20px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
#cats { display: flex; gap: 8px; flex-wrap: wrap; }
#cats button {
  background: none; border: 1px solid var(--line); color: var(--dim);
  padding: 8px 16px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; font-family: inherit; transition: color .25s, border-color .25s;
}
#cats button:hover { color: var(--paper); }
#cats button.active { color: var(--gold); border-color: rgba(232, 180, 74, .6); }
.controls .spacer { flex: 1; }
#sort {
  background: #0f1218; border: 1px solid var(--line); color: var(--paper);
  padding: 8px 12px; font-size: 12px; letter-spacing: .08em; font-family: inherit;
}
#viewtoggle { display: flex; }
#viewtoggle button {
  background: none; border: 1px solid var(--line); color: var(--dim);
  padding: 8px 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; font-family: inherit;
}
#viewtoggle button + button { border-left: none; }
#viewtoggle button.active { color: var(--gold); border-color: rgba(232, 180, 74, .6); }
#count { max-width: 1060px; margin: 0 auto; padding: 0 24px 14px; color: #3d424b; font-size: 12px; letter-spacing: .12em; }

/* cards */
#postgrid { max-width: 1060px; margin: 0 auto; padding: 0 24px 14vh; display: grid; gap: 26px; }
#postgrid.grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
#postgrid.list { grid-template-columns: 1fr; }

.card {
  display: flex; flex-direction: column; text-decoration: none;
  border: 1px solid var(--line); background: #0d1016;
  transition: border-color .3s, transform .3s;
}
.card:hover { border-color: rgba(232, 180, 74, .5); transform: translateY(-2px); }
#postgrid.list .card { flex-direction: row; }
.cardimg { aspect-ratio: 16 / 9; overflow: hidden; flex-shrink: 0; }
#postgrid.list .cardimg { width: 300px; aspect-ratio: auto; }
.cardimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cardbody { padding: 20px 22px 22px; }
.cardmeta { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.card h2 { font-weight: 300; font-size: 21px; color: #eef0f4; line-height: 1.35; }
.cardexcerpt { margin-top: 10px; color: var(--dim); font-weight: 300; font-size: 14px; line-height: 1.65; }
.cardtags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.cardtags span {
  font-size: 11px; letter-spacing: .1em; color: var(--dim);
  border: 1px solid var(--line); padding: 3px 10px;
}

/* post page */
.hero { max-height: 56vh; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
article { max-width: 720px; margin: 0 auto; padding: 7vh 24px 14vh; }
.postmeta { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.postmeta a { text-decoration: none; }
.postmeta a:hover { color: #fff; }
article h1 { font-weight: 300; font-size: clamp(28px, 4vw, 44px); color: #eef0f4; line-height: 1.2; margin-bottom: 4vh; }
article p { font-weight: 300; font-size: 16.5px; line-height: 1.85; color: #b9bdc6; margin-bottom: 24px; }
article figure { margin: 5vh 0; }
article figure img { width: 100%; display: block; }
article figcaption { margin-top: 10px; font-size: 12px; letter-spacing: .08em; color: #3d424b; }
article .cardtags { margin: 5vh 0 0; }
.backlink { margin-top: 6vh; }
.backlink a { color: var(--cyan); text-decoration: none; font-size: 14px; letter-spacing: .08em; }
.backlink a:hover { color: #fff; }

@media (max-width: 640px) {
  #postgrid.list .card { flex-direction: column; }
  #postgrid.list .cardimg { width: 100%; aspect-ratio: 16 / 9; }
}

@media (max-width: 700px) {
  .rumhead { padding: 5vh 20px 3vh; }
  .controls { padding: 0 20px 16px; }
  #count { padding: 0 20px 12px; }
  #postgrid { padding: 0 20px 10vh; gap: 18px; }
  .hero { max-height: 38vh; }
  article { padding: 5vh 20px 12vh; }
  article p { font-size: 16px; }
}
