/* =========================================================
   SINATICUS' LIBRARY — MAIN STYLE SHEET
   Change the colors here first. Everything else follows.
========================================================= */

:root {
  --bg: #11100d;
  --bg-soft: #1b1813;
  --panel: #231f18;
  --panel-light: #2e281f;

  --text: #f2eadc;
  --muted: #c2b59f;
  --faint: #8c806d;

  --accent: #c99a3d;
  --accent-light: #e3bd68;
  --accent-dark: #8a6422;

  --border: #3b3328;

  --max-width: 1050px;
  --article-width: 780px;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   BASE PAGE
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(201, 154, 61, 0.12), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
  font-size: 18px;
}

/* This keeps pages from touching the edge of the screen */
body > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 22px;
  padding-right: 22px;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1, h2, h3 {
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-top: 46px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

h3 {
  font-size: 1.35rem;
  margin-top: 28px;
  color: var(--accent-light);
}

p {
  color: var(--muted);
  margin-bottom: 18px;
}

strong {
  color: var(--text);
}

em {
  color: var(--accent-light);
}

a {
  color: var(--accent-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--text);
  border-bottom-color: var(--accent-light);
}

/* =========================================================
   NAVIGATION
========================================================= */

nav {
  max-width: none;
  width: 100%;
  background: rgba(17, 16, 13, 0.92);
  border-bottom: 1px solid var(--border);
  padding: 14px 22px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  text-align: center;
}

nav a {
  display: inline-block;
  margin: 4px 8px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.95rem;
  border-radius: 999px;
  border-bottom: none;
}

nav a:hover {
  background: var(--panel-light);
  color: var(--accent-light);
}

/* =========================================================
   HEADER / HERO AREA
========================================================= */

h1 + p {
  font-size: 1.2rem;
  max-width: 760px;
  color: var(--muted);
}

/* Adds a subtle intro-card feel to the first paragraph after h1 */
body > h1,
body > h1 + p {
  text-align: center;
}

/* =========================================================
   SECTIONS, LISTS, AND CARDS
========================================================= */

ul {
  padding-left: 0;
  list-style: none;
}

li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

li:hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
  border-color: var(--accent-dark);
}

/* Useful if you make project or essay cards later */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 18px 0;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

.card p {
  margin-bottom: 0;
}

/* Makes groups of cards into a clean grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

/* =========================================================
   ARTICLE STYLING
========================================================= */

article {
  max-width: var(--article-width);
  margin: 42px auto;
  background: rgba(35, 31, 24, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 5vw, 44px);
  box-shadow: var(--shadow);
}

article h1 {
  text-align: left;
  margin-top: 0;
}

article p {
  color: var(--text);
}

article blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  color: var(--muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

article img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 20px 0;
}

article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* =========================================================
   BUTTONS / READ MORE LINKS
========================================================= */

.button,
a.button {
  display: inline-block;
  background: var(--accent);
  color: #18130b;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: bold;
  border-bottom: none;
  margin-top: 10px;
}

.button:hover,
a.button:hover {
  background: var(--accent-light);
  color: #18130b;
  transform: translateY(-1px);
}

/* =========================================================
   VIDEO EMBEDS
========================================================= */

iframe {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Makes YouTube embeds responsive if you wrap them in .video */
.video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 26px 0;
}

.video iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

/* =========================================================
   FOOTER
========================================================= */

footer {
  margin-top: 70px;
  padding-top: 24px;
  padding-bottom: 36px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  text-align: center;
  font-size: 0.95rem;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {
  body {
    font-size: 16px;
  }

  nav {
    position: static;
  }

  nav a {
    display: inline-block;
    margin: 3px;
    font-size: 0.9rem;
  }

  h1 {
    margin-top: 32px;
  }

  li {
    padding: 12px 14px;
  }

  article {
    margin-top: 24px;
  }
}
/* =========================================================
   DIFFERENTIATE LINKS FROM NORMAL BULLET POINTS
========================================================= */

/* Normal bullet-point lists */
li:not(:has(a)) {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;

  position: relative;
  padding: 6px 0 6px 30px;
  margin-bottom: 8px;

  color: var(--text);
}

/* Custom bullet symbol */
li:not(:has(a))::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 6px;

  color: var(--accent);
  font-size: 0.9rem;
}

/* Remove hover-card effect from normal bullet points */
li:not(:has(a)):hover {
  transform: none;
  border-color: transparent;
}

/* Link list items stay card-like */
li:has(a) {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

/* Make link cards feel more clickable */
li:has(a):hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
  border-color: var(--accent-dark);
}

/* Make links inside link cards cleaner */
li:has(a) a {
  color: var(--accent-light);
  border-bottom: none;
  font-weight: bold;
}