@import url('https://fonts.googleapis.com/css2?family=Eczar:wght@500&family=Nanum+Myeongjo&display=swap');

:root {
  --bg: #fdfaf6;
  --text: #2e2b2b;
  --ink: #4a3b36;
  --accent: #a35d5d;
  --note: #ede6dc;
  --radius: 8px;
  --shadow: 0 0 0 1px rgba(0,0,0,0.03), 0 4px 8px rgba(0,0,0,0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nanum Myeongjo', serif;
  line-height: 1.8;
  padding: 3rem 1rem;
  background-image: url('https://www.transparenttextures.com/patterns/old-mathematics.png');
}

.container {
  max-width: 750px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--note);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #ddd;
}

/* Titres comme dans un carnet ou un roman graphique */
h1, h2 {
  font-family: 'Eczar', serif;
  color: var(--ink);
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  border-left: 6px solid var(--accent);
  padding-left: 10px;
  margin-top: 2rem;
}

/* Blocs de fiction */
.story {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background-color: #fffdfb;
  border-left: 4px dashed var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  text-indent: 1em;
}

/* Liens manuscrits */
a {
  color: var(--ink);
  text-decoration: underline dotted;
}

a:hover {
  color: var(--accent);
}

/* Menu simple */
nav {
  text-align: center;
  margin-bottom: 3rem;
}

nav a {
  margin: 0 10px;
  color: var(--ink);
  font-weight: bold;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
}
