
/* --------------------------
   THEME VARIABLES
---------------------------*/
  :root[data-theme="main"]{
    --text: #b38029;
    --border: #5a7678;
    --accent: #b38029;
    --bg: rgba(63, 94, 49);
    --grad-top: darkslategrey;
    --grad-bottom: rgb(49, 66, 94);
    --box-bg: var(--grad-bottom);
    --font: 'Handjet', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif
  }

:root[data-theme="books"]{
  --text: #fffae3;
  --border: #1f1e18;
  --accent: #fffae3;
  --bg: rgb(56, 55, 45);
  --grad-top: rgb(56, 55, 45);
  --grad-bottom: rgb(89, 87, 71);
  --box-bg: var(--grad-bottom);
  --font: 'Handjet', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif
}

:root[data-theme="films"]{
  --text: #ad5a2d;
  --border: #ad5a2d;
  --accent: #ad5a2d;
  --bg: rgb(110, 45, 23);
  --grad-top: rgb(112, 34, 1);
  --grad-bottom: rgb(54, 16, 1);
  --box-bg: var(--grad-bottom);
  --font: 'Handjet', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif
  
}

:root[data-theme="music"]{
  --text: #b38029;
  --border: #5a7678;
  --accent: #b38029;
  --bg: rgb(63 94 49 / 1);
  --grad-top: darkslategrey;
  --grad-bottom: rgb(49 58 94);
  --box-bg: var(--grad-bottom);
  --font: 'Handjet', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif
}

:root[data-theme="thoughts"]{
  --text: #b38029;
  --border: #5a7678;
  --accent: #b38029;
  --bg: rgb(63 94 49 / 1);
  --grad-top: darkslategrey;
  --grad-bottom: rgb(49 58 94);
  --box-bg: var(--grad-bottom);
  --font: 'Handjet', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif
}

:root[data-theme="science"]{
  --text: #b38029;
  --border: #5a7678;
  --accent: #b38029;
  --bg: rgb(63 94 49 / 1);
  --grad-top: darkslategrey;
  --grad-bottom: rgb(49 58 94);
  --box-bg: var(--grad-bottom);
}



/* --------------------------
   RESET + BASE
---------------------------*/
*{ box-sizing: border-box; margin:0; padding:0; }

html, body{ height: 100%; }
body{
  font-family: var(--font);
  color: var(--text);
  padding: 10px;

  /* PAGE BACKGROUND IMAGE — replace with your PNG filename */
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* --------------------------
   CONTAINER + GRID
---------------------------*/
.container{
  max-width: 55rem;
  margin: 5vw auto 12px auto;
  border: 6px ridge var(--border);
  outline: 3px solid var(--grad-top);
  outline-offset: 4px;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  padding: 5px;
  gap: 5px;

  /* BOX INTERIOR (not page bg) */
  background-color: var(--box-bg);
  /* subtle inner texture (optional) */
  background-image:
    repeating-radial-gradient(circle at 0 0, transparent 0, var(--box-bg) 9px),
    repeating-linear-gradient(var(--bg), var(--bg));
}

.small { flex: 1 1 9%;  min-width: 200px; }
.large { flex: 1 1 82%; min-width: 320px; }
.half  { flex: 1 1 49%; min-width: 280px; }
.full  { flex: 1 1 100%; }

/* --------------------------
   HEADER (BANNER)
---------------------------*/
header{
  background: center / cover no-repeat url('banner-placeholder.jpg'); /* set your banner */
  width: 100%;
  height: 120px;              /* banner height */
  border: 2px ridge var(--border);
  border-radius: 5px;
  position: relative;
}

header span{
  font-size: 2.2rem;
  position: absolute;
  bottom: 0;
  right: 10px;
  margin: 10px;
  font-weight: 700;
  text-shadow:
    1px 1px var(--text),
   -1px 1px var(--text),
    1px -1px var(--accent),
   -1px -1px var(--accent);
  color: var(--grad-top);
}

/* --------------------------
   NAV (LEFT SIDEBAR)
---------------------------*/
nav{
  border: 2px ridge var(--border);
  border-radius: 5px;
  padding: 5px;
  background: linear-gradient(var(--grad-top), var(--grad-bottom));
}
nav div{
  text-align: center;
  font-size: 1.25rem;
  margin: 5px 5px 10px 5px;
}
nav a{
  display: block;
  margin: 5px;
  padding: 2px 7px;
  text-decoration: none;
  border-radius: 5px;
  color: var(--text);
  background: linear-gradient(to right, var(--bg), var(--grad-bottom));
  transition: background .2s ease, transform .1s ease;
}
nav a:hover,
nav a:focus{
  background: linear-gradient(to right, var(--bg), var(--grad-bottom), var(--grad-top));
  transform: translateY(-1px);
}

/* optional “button” image in sidebar */
.sidebar-btn{
  display: block;
  margin: 6px auto 0;
  max-width: 100%;
  border: 2px ridge var(--border);
  border-radius: 5px;
}

/* --------------------------
   CONTENT SECTIONS
---------------------------*/
section{
  border: 2px ridge var(--border);
  border-radius: 5px;
  padding: 5px;
  background: linear-gradient(var(--grad-top), var(--grad-bottom));
}

h1, h2, h3, h4, h5, h6, p { margin: 5px; line-height: 1.25; }
h1{
  font-size: 1.4rem;
  letter-spacing: 2px;
  font-weight: 500;
  text-align: center;
  border-bottom: 2px ridge var(--border);
  padding-bottom: 5px;
}
h2{ font-size: 1.25rem; font-weight: 500; text-align: center; }
h3{ font-size: 1.1rem; }
h4{ font-size: 1rem; color: var(--accent); padding-left: 12px; }

ul, ol{ margin: 5px 20px; }
li{ margin: 3px 0; }

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  background: rgba(0,0,0,.06);
  padding: 0 4px;
  border-radius: 3px;
}

a{ color: inherit; text-decoration: none; }
a:hover, a:focus{ font-style: italic; }
a:visited{ color: var(--accent); }

img{ max-width: 100%; height: auto; }
pre{ overflow-x: auto; }

/* --------------------------
   FOOTER
---------------------------*/
footer{
  text-align: center;
  margin: 16px 0 5vw;
  font-size: .9rem;
}
footer a{ text-decoration: none; color: inherit; }
