/* The Samarapix Journal — shared styles for blog pages */
:root {
  --night: #0B0A08;
  --night-raise: #131009;
  --night-panel: #171310;
  --line: #29221A;
  --line-lt: #3A3128;
  --amber: #E8A33D;
  --amber-soft: rgba(232, 163, 61, 0.16);
  --ivory: #F3EDE3;
  --stone: #A89D8C;
  --faint: #6E655A;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); font-weight: 300;
  background: var(--night); color: var(--ivory);
  line-height: 1.75; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--amber-soft); }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 2rem; }
.wrap.wide { max-width: 1220px; }

/* Nav */
nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(11, 10, 8, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1220px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.wordmark { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; text-decoration: none; }
.wordmark b { color: var(--amber); font-weight: 500; }
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone); text-decoration: none; transition: color 0.25s ease;
}
.nav-links a:hover, .nav-links a.here { color: var(--amber); }
@media (max-width: 640px) { .nav-links { gap: 1.3rem; } .nav-links a.hide-sm { display: none; } }

.eyebrow {
  font-size: 0.68rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--amber);
}

/* Journal index */
.j-hero { padding: 5.5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.j-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5.5vw, 4.2rem); margin-top: 1rem; line-height: 1.08; }
.j-hero h1 em { font-style: italic; color: var(--amber); }
.j-hero p { color: var(--stone); margin-top: 1.1rem; max-width: 34rem; }

.j-list { padding: 3.5rem 0 6rem; }
.j-entry {
  display: block; text-decoration: none; padding: 2.4rem 0;
  border-bottom: 1px solid var(--line); transition: padding-left 0.35s ease;
}
.j-entry:hover { padding-left: 0.9rem; }
.j-entry time { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); }
.j-entry h2 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; margin: 0.7rem 0 0.6rem; line-height: 1.2; transition: color 0.3s ease; }
.j-entry:hover h2 { color: var(--amber); }
.j-entry p { color: var(--stone); font-size: 0.95rem; max-width: 42rem; }
.j-entry .more { display: inline-block; margin-top: 1rem; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber); }

/* Article */
.post-head { padding: 5rem 0 3rem; border-bottom: 1px solid var(--line); }
.post-head .meta { display: flex; gap: 1.4rem; align-items: baseline; flex-wrap: wrap; }
.post-head time, .post-head .readtime { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); }
.post-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.7rem); line-height: 1.12; margin: 1.1rem 0 1rem; }
.post-head .dek { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--stone); line-height: 1.45; }

article.prose { padding: 3.4rem 0 3rem; }
.prose p { margin-bottom: 1.35rem; color: #D9D2C4; font-size: 1.02rem; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.95rem; margin: 2.6rem 0 1rem; line-height: 1.2; }
.prose h2::before { content: '— '; color: var(--amber); }
.prose h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin: 2rem 0 0.8rem; }
.prose ul, .prose ol { margin: 0 0 1.35rem 1.2rem; color: #D9D2C4; }
.prose li { margin-bottom: 0.55rem; }
.prose li::marker { color: var(--amber); }
.prose strong { font-weight: 500; color: var(--ivory); }
.prose em { font-style: italic; }
.prose blockquote {
  border-left: 2px solid var(--amber); padding: 0.4rem 0 0.4rem 1.6rem; margin: 2rem 0;
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.5; color: var(--ivory);
}
.prose img { border: 1px solid var(--line-lt); margin: 2rem 0; }
.prose figcaption { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin: -1.4rem 0 2rem; }
.prose a { color: var(--amber); text-decoration: none; border-bottom: 1px solid var(--amber-soft); transition: border-color 0.25s ease; }
.prose a:hover { border-color: var(--amber); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.6rem 0; }

/* Post footer CTA */
.post-cta {
  margin: 2rem 0 5rem; padding: 2.6rem; border: 1px solid var(--line); background: var(--night-raise);
}
.post-cta h2 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; margin-bottom: 0.6rem; }
.post-cta h2 em { font-style: italic; color: var(--amber); }
.post-cta p { color: var(--stone); font-size: 0.95rem; margin-bottom: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.9rem 2.1rem; border: 1px solid var(--amber);
  font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  transition: all 0.35s ease; color: var(--amber); background: transparent; cursor: pointer;
}
.btn:hover { background: var(--amber-soft); }
.btn.solid { background: var(--amber); color: var(--night); font-weight: 500; }
.btn.solid:hover { background: #F0B458; }
.backlink { display: inline-block; margin: 0 0 2rem; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); text-decoration: none; transition: color 0.25s ease; }
.backlink:hover { color: var(--amber); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 3rem 0; }
.foot { max-width: 1220px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.foot .legal { font-size: 0.72rem; color: var(--faint); }
.foot-links { display: flex; gap: 1.6rem; }
.foot-links a { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); text-decoration: none; transition: color 0.25s ease; }
.foot-links a:hover { color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
