body {
  font-family: "Georgia", "Times New Roman", serif;
  background: #FAF3E0; /* camel white */
  color: #1f1f1f;
}

main {
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 2rem;

  display: grid;
  grid-template-columns: 1fr minmax(600px, 680px) 1fr;
  gap: 3rem;
}

#left-rail,
#right-rail {
  font-size: 0.85rem;
  color: #777;
}

#left-rail {
  padding-top: 2rem;
}

/* History Column Styling */
#history {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #888;
}

#history span {
  cursor: pointer;
  transition: color 0.2s;
}

#history span:hover {
  text-decoration: underline;
  color: #000;
}

#right-rail {
  padding-top: 4rem;
  position: sticky;
  top: 0;
  align-self: start;
  height: calc(100vh - 4rem);
  overflow-y: auto;
}

#content {
  justify-self: center;
  width: 100%;
}

h1 {
  font-size: 1.9rem;
  font-weight: normal;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.1rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
  margin: 4rem 0 1.5rem;
}

h3 {
  font-size: 1rem;
  font-weight: normal;
  margin-bottom: 0.25rem;
}

#summary {
  font-size: 1.05rem;
  margin-bottom: 3.5rem;
  line-height: 1.6;
}

/* Paths / Next Steps */
#paths {
  margin-top: 5rem;
}

.path {
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 1px solid #ddd;
  cursor: pointer;
  transition: border-color 0.2s;
}

.path h3 {
  color: #1f1f1f;
}

.path p {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.3rem;
}

.path:hover {
  border-left-color: #000;
}

/* Full Article Content - Always Visible */
#full-article {
  display: block;
  margin-top: 4rem;
  border-top: 1px solid #eee;
  padding-top: 3rem;
  font-family: "Georgia", "Times New Roman", serif;
  color: #1f1f1f;
  animation: fadeIn 1s ease;
}

#full-article p {
  line-height: 1.75;
  margin: 1.5rem 0;
  font-size: 1.05rem;
}

#full-article h2,
#full-article h3 {
  font-weight: normal;
  margin-top: 3rem;
  color: #1f1f1f;
  text-transform: none;
  letter-spacing: normal;
}

#full-article img {
  filter: grayscale(20%);
  transition: filter 0.3s;
}

#full-article img:hover {
  filter: grayscale(0%);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsiveness */
@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
    margin: 1rem auto;
  }

  #left-rail,
  #right-rail {
    display: none;
  }
}

/* Landing Page State */
body.landing main {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

body.landing h1 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

body.landing input {
  font-family: inherit;
  font-size: 1.1rem;
  padding: 0.6rem 0.8rem;
  width: 320px;
  border: none;
  border-bottom: 1px solid #999;
  background: transparent;
  outline: none;
  text-align: center;
}

body.landing input::placeholder {
  color: #aaa;
}

body.landing ul {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  width: 320px;
  text-align: center;
}

body.landing li {
  font-size: 0.95rem;
  color: #666;
  padding: 0.35rem 0;
  cursor: pointer;
}

.path {
  transition: opacity 0.3s ease;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.loading-shimmer { display: flex; flex-direction: column; gap: 12px; }
.shimmer-line {
  height: 14px;
  background: linear-gradient(90deg, #e8e3da 25%, #ede9e0 50%, #e8e3da 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.path-shimmer { height: 52px; margin-bottom: 10px; border-radius: 4px; }
.path-shimmer, .shimmer-line { /* same gradient as above */ }
.article-enter { animation: fadeUp 240ms ease forwards; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
