/* ============================================================
   THE QUANTUM VOYAGER — Field Dossier design system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --paper:       #F1ECE0;
  --paper-dark:  #E8E1D0;
  --ink:         #1A1A1A;
  --ink-soft:    #2A2A24;
  --faded:       #6B6455;
  --rust:        #8A3A2A;
  --rust-soft:   #B8B0A0;
  --tape:        rgba(230,220,190,0.75);

  --display: 'Source Serif 4', Georgia, serif;
  --mono:    'Courier Prime', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper-dark);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--rust); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 3px double var(--ink);
  padding: 18px 0;
}

.site-header .wrap {
  max-width: 920px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.brand span { color: var(--rust); }

.site-nav {
  display: flex;
  gap: 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.site-nav a { color: var(--faded); }
.site-nav a:hover { color: var(--rust); text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  position: relative;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 18px;
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid var(--rust);
}

.hero h1 {
  font-weight: 600;
  font-size: clamp(2rem, 4.8vw, 2.85rem);
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 15ch;
}

.hero p.lede {
  font-size: 1.03rem;
  color: var(--faded);
  max-width: 56ch;
  line-height: 1.6;
}

.hero::after {
  content: '';
  position: absolute;
  right: 24px; top: 46px;
  width: 76px; height: 76px;
  border: 2px solid var(--rust);
  border-radius: 50%;
  opacity: 0.35;
}
@media (max-width: 700px) {
  .hero::after { display: none; }
}

/* ---------- Log / entry list ---------- */

.log {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px 90px;
}

.log-heading {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faded);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 9px 2px;
  margin-bottom: 4px;
}

.entry {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 2px;
  border-bottom: 1px dashed var(--rust-soft);
}

.entry-thumb {
  width: 92px;
  height: 62px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #8a95a8;
}
.entry-thumb .tape {
  position: absolute;
  width: 26px; height: 10px;
  background: var(--tape);
  border: 1px solid rgba(0,0,0,0.08);
}
.entry-thumb .tape.tl { top: -5px; left: -4px; transform: rotate(-8deg); }
.entry-thumb .tape.br { bottom: -5px; right: -4px; transform: rotate(-8deg); }
.entry-num {
  position: absolute;
  bottom: 2px; left: 2px;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--rust);
  background: rgba(241,236,224,0.85);
  padding: 1px 4px;
}

.entry-body h2 {
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 5px;
  line-height: 1.3;
}
.entry-body h2 a { color: var(--ink); }
.entry-body h2 a:hover { color: var(--rust); text-decoration: none; }

.entry-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faded);
}

.status-tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  white-space: nowrap;
  justify-self: end;
  border: 1.5px solid;
  transform: rotate(-3deg);
}
.status-confirmed { color: var(--rust); border-color: var(--rust); }
.status-draft { color: #8a8474; border-color: #8a8474; border-style: dashed; }

@media (max-width: 640px) {
  .entry { grid-template-columns: 60px 1fr; }
  .entry-thumb { width: 60px; height: 44px; }
  .status-tag { grid-column: 2; justify-self: start; margin-top: 6px; }
}

/* ---------- Article ---------- */

.article-header {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.back-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--rust);
  margin-bottom: 14px;
}
.back-link:hover { color: var(--ink); }

.article-header h1 {
  font-weight: 600;
  font-size: clamp(1.75rem, 4.2vw, 2.3rem);
  line-height: 1.22;
  color: var(--ink);
  margin: 0 0 14px;
}

.article-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faded);
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.article-photo {
  max-width: 780px;
  margin: 0 auto 28px;
  padding: 0 24px;
}
.article-photo .photo-inner {
  height: 260px;
  background-size: cover;
  background-position: center;
  background-color: #8a95a8;
  position: relative;
}
.article-photo .tape {
  position: absolute;
  width: 34px; height: 13px;
  background: var(--tape);
  border: 1px solid rgba(0,0,0,0.08);
}
.article-photo .tape.tl { top: -7px; left: 24px; transform: rotate(-6deg); }
.article-photo .tape.br { bottom: -7px; right: 24px; transform: rotate(4deg); }
.article-photo .caption {
  position: absolute;
  bottom: 8px; left: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--paper);
  background: rgba(0,0,0,0.45);
  padding: 2px 7px;
}

article.content {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

article.content p {
  margin: 0 0 1.3em;
  color: var(--ink-soft);
}

article.content > p:first-of-type::first-letter {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  padding: 6px 6px 0 0;
  color: var(--rust);
}

article.content h2 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.42rem;
  margin: 1.8em 0 0.7em;
  line-height: 1.3;
  padding-top: 0.6em;
  border-top: 1px dashed var(--rust-soft);
}

article.content h3 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 1.6em 0 0.6em;
}

article.content strong { color: var(--ink); }
article.content em { color: var(--faded); }

article.content a {
  color: var(--rust);
  text-decoration: underline;
}

article.content ul, article.content ol {
  margin: 0 0 1.3em;
  padding-left: 1.4em;
}
article.content li { margin-bottom: 0.5em; }

article.content blockquote {
  margin: 1.8em 0;
  padding: 10px 18px;
  border-left: 3px solid var(--rust);
  background: var(--paper);
  color: var(--faded);
  font-style: italic;
}

article.content figure {
  margin: 2em 0;
  position: relative;
  padding: 6px;
  background: var(--paper);
}
article.content img {
  max-width: 100%;
  height: auto;
  display: block;
}
article.content figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faded);
  margin-top: 8px;
  text-align: center;
}

.stamp-box {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  border: 2px solid var(--rust);
  color: var(--rust);
  padding: 4px 11px;
  transform: rotate(-3deg);
  margin: 0 0 22px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--paper);
  border-top: 3px double var(--ink);
  padding: 22px 0 40px;
}
.site-footer .wrap {
  max-width: 920px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer p {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faded);
  margin: 0;
}
