/* The Unwind Journal (temecula.top) — "Dusk Wall" visual.
   Serif type, soft dusk violet, sunset-gradient motif. No rounded corners, no emoji. */
:root {
  --bg: #f3eef0;
  --panel: #fbf7fa;
  --ink: #3d3446;
  --muted: #857b93;
  --line: #ded4e2;
  --accent: #7c5cbf;
  --accent-deep: #5b3f96;
  --dusk-1: #f7c8b0;
  --dusk-2: #d9a6c8;
  --dusk-3: #7c5cbf;
  --cat-cc: #7c5cbf;
  --cat-mf: #b46b8f;
  --cat-ne: #55806f;
  --cat-qe: #5b5a9e;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

/* sky header */
.sky {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.sky::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--dusk-1), var(--dusk-2), var(--dusk-3));
}
.sky-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; }
.sky-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.sky-brand:hover { text-decoration: none; color: var(--ink); }
.sky-mark { width: 34px; height: 34px; display: block; }
.sky-text { display: flex; flex-direction: column; line-height: 1.25; }
.sky-name { font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.sky-tag { font-size: 12px; color: var(--muted); letter-spacing: .5px; font-style: italic; }
.horizon-nav { display: flex; gap: 24px; }
.horizon-nav a {
  color: var(--ink); font-size: 15px; padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.horizon-nav a:hover { border-bottom-color: var(--accent); text-decoration: none; color: var(--accent-deep); }

/* dusk hero */
.dusk-hero {
  background-image: linear-gradient(180deg, var(--dusk-1) 0%, var(--dusk-2) 62%, var(--dusk-3) 100%);
  padding: 54px 0 60px;
  border-bottom: 1px solid var(--line);
}
.hero-kicker {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: #4a2f78; font-weight: 700; margin-bottom: 14px;
}
.hero-title { font-size: 40px; line-height: 1.14; font-weight: 700; color: #2c2340; margin-bottom: 16px; }
.hero-lede { max-width: 620px; font-size: 18px; color: #3a2d54; }

/* phase nav (categories as evening phases) */
.phase-band { padding: 40px 0 10px; }
.phase-label {
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 16px;
}
.phase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.phase-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--panel); border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  padding: 18px 16px; color: var(--ink);
}
.phase-card:hover { border-color: var(--accent); text-decoration: none; }
.phase-cc { border-top-color: var(--cat-cc); }
.phase-mf { border-top-color: var(--cat-mf); }
.phase-ne { border-top-color: var(--cat-ne); }
.phase-qe { border-top-color: var(--cat-qe); }
.phase-name { font-size: 18px; font-weight: 700; }
.phase-note { font-size: 13px; color: var(--muted); }
.phase-count { font-size: 12px; color: var(--muted); font-style: italic; }

/* wall sections (grouped by phase) */
.wall-section { padding: 30px 0 6px; }
.wall-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--line); padding-bottom: 10px; margin-bottom: 20px;
}
.wall-head h2 { font-size: 24px; font-weight: 700; }
.wall-more { font-size: 14px; font-style: italic; }

/* wind-down cards (cm: Wind-Down Card) */
.wind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wind-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: var(--panel); border: 1px solid var(--line);
  padding: 20px 18px 18px; color: var(--ink); overflow: hidden;
}
.wind-card:hover { border-color: var(--accent); text-decoration: none; box-shadow: 0 6px 18px rgba(124,92,191,.14); }
.wind-strip {
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--dusk-1), var(--dusk-2), var(--dusk-3));
}
.wind-cat {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent-deep);
}
.cat-cc { color: var(--cat-cc); }
.cat-mf { color: var(--cat-mf); }
.cat-ne { color: var(--cat-ne); }
.cat-qe { color: var(--cat-qe); }
.wind-time {
  font-size: 13px; color: var(--muted); font-style: italic;
}
.wind-title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.wind-act { font-size: 14px; color: var(--accent-deep); }
.wind-desc { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* page head */
.page-head { padding: 38px 0 10px; }
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: var(--muted); }
.page-head h1 { font-size: 32px; line-height: 1.2; font-weight: 700; }
.lede { color: var(--muted); margin-top: 10px; font-style: italic; }

/* relaxation card layout (entry page) */
.rest-layout { display: grid; grid-template-columns: 320px 1fr; gap: 30px; padding-top: 26px; padding-bottom: 44px; align-items: start; }
.relax-card { background: var(--panel); border: 1px solid var(--line); }
.relax-head {
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  background-image: linear-gradient(90deg, var(--dusk-1), var(--dusk-2), var(--dusk-3));
}
.relax-head .wind-cat { color: #2c2340; }
.relax-label { display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #3a2d54; font-weight: 700; margin-top: 4px; }
.relax-rows { display: flex; flex-direction: column; }
.relax-row { display: flex; border-bottom: 1px solid var(--line); font-size: 15px; }
.relax-row:last-child { border-bottom: 0; }
.relax-key { flex: 0 0 42%; padding: 11px 14px; color: var(--muted); border-right: 1px solid var(--line); font-size: 13px; letter-spacing: .3px; }
.relax-val { flex: 1; padding: 11px 14px; }
.relax-row.legend .relax-val { color: var(--accent-deep); font-weight: 700; }

/* prose passages */
.passage { background: var(--panel); border: 1px solid var(--line); padding: 30px 34px; }
.passage-sec { margin-bottom: 26px; }
.passage-sec:last-child { margin-bottom: 0; }
.passage h2 {
  font-size: 21px; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: baseline; gap: 12px;
}
.passage-num {
  font-size: 15px; color: var(--accent); font-style: italic;
  border-bottom: 2px solid var(--dusk-2); padding-bottom: 1px;
}
.passage p { margin-bottom: 13px; color: #463c52; }
.passage p:last-child { margin-bottom: 0; }

/* related */
.related-list { list-style: none; }
.related-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.related-list li:last-child { border-bottom: 0; }

/* dusk footer */
.dusk-footer {
  background: var(--panel); border-top: 1px solid var(--line);
  margin-top: 24px; padding: 34px 0;
}
.dusk-footer::before {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--dusk-1), var(--dusk-2), var(--dusk-3));
  margin: -34px 0 30px;
}
.foot-inner { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.foot-brand { flex: 1 1 320px; }
.foot-brand p { color: var(--muted); font-size: 15px; margin-top: 8px; font-style: italic; }
.foot-nav { display: flex; gap: 18px; }
.foot-nav a { color: var(--ink); font-size: 15px; }
.copyright { flex: 1 1 100%; font-size: 13px; color: var(--muted); margin-top: 8px; }

@media (max-width: 880px) {
  .phase-grid { grid-template-columns: repeat(2, 1fr); }
  .wind-grid { grid-template-columns: repeat(2, 1fr); }
  .rest-layout { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
}
@media (max-width: 560px) {
  .phase-grid, .wind-grid { grid-template-columns: 1fr; }
  .sky-inner { flex-direction: column; gap: 12px; }
  .horizon-nav { gap: 16px; }
  .hero-title { font-size: 27px; }
  .passage { padding: 22px 20px; }
}
