@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg: #1c1810;
  --bg-raised: #2a2418;
  --text: #d4ccc0;
  --text-muted: #9a8e7e;
  --orange: #d47a2e;
  --orange-light: #e8a060;
  --orange-dim: rgba(212,122,46,0.15);
  --rule: #3a3228;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  line-height: 1.75;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* text selection */
::selection {
  background: var(--orange-dim);
  color: var(--orange-light);
}
::-moz-selection {
  background: var(--orange-dim);
  color: var(--orange-light);
}

main {
  max-width: 38rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  position: relative;
  z-index: 1;
}

/* links */
a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--orange-light);
  border-bottom-color: rgba(232,160,96,0.3);
}

a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* headings */
h1 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}

h2 {
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* rules */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule), transparent);
  margin: 2.5rem 0;
}

/* paragraphs */
p {
  margin-bottom: 1.35rem;
}

p:last-child {
  margin-bottom: 0;
}

/* drop cap */
.drop-cap::first-letter {
  float: left;
  font-size: 3.2em;
  line-height: 0.8;
  padding-right: 0.08em;
  padding-top: 0.05em;
  color: var(--orange);
  font-weight: 600;
}

/* signature */
.signature {
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2.5rem;
  font-size: 0.9rem;
}

/* navigation */
nav ul {
  list-style: none;
  padding: 0;
}

nav li {
  margin-bottom: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  transition: background 0.3s;
}

nav li:hover {
  background: rgba(42,36,24,0.5);
}

nav a {
  display: block;
  border-bottom: none;
}

nav a:hover {
  border-bottom: none;
}

nav .nav-title {
  font-weight: 600;
  letter-spacing: 0.02em;
}

nav .nav-desc {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.15rem;
  line-height: 1.5;
}

/* heart */
.heart {
  color: var(--orange);
}

/* scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* emphasis line — a line that glows */
.emphasis {
  color: var(--orange-light);
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  main { padding: 3rem 1.25rem 4rem; }
  h1 { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
