/* ===============================
   Color System
   =============================== */

:root {
  --ink-main: #e6b94a;        /* warm yellow */
  --ink-muted: #c9a24a;      /* muted yellow-gold */
  --rule: rgba(230, 185, 74, 0.35);
}


/* ===============================
   Font
   =============================== */

@font-face {
  font-family: "LHANDW";
  src: url("/assets/LHANDW.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* ===============================
   Base
   =============================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background-image: url("/images/space2.gif");
  background-repeat: repeat;
  background-attachment: fixed;
  background-color: #1a1a1a; /* dark fallback */
  color: var(--ink-main);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* ===============================
   Header
   =============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;

  display: flex;
  justify-content: center;
  text-align: center;

  padding: 1.2rem 2rem;
  border-bottom: 1px solid var(--rule);
}

.site-header h1 {
  margin: 0;
  font-family: "LHANDW", Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.site-header .subtitle {
  margin-top: 0.3rem;
  font-family: "LHANDW", Georgia, "Times New Roman", serif;
  font-size: 0.90rem;
  color: var(--ink-muted);
}


/* ===============================
   Layout
   =============================== */

.layout {
  display: grid;
  grid-template-columns: 15% 1fr 15%;
  gap: 2rem;
  padding: 2.5rem 2rem 4rem;
}


/* ===============================
   Columns
   =============================== */

.column.left,
.column.right {
  font-size: 1.1rem;
  color: var(--ink-muted);
}

.column.center {
  max-width: 42rem;
  margin: 0 auto;
}

.column.left ul,
.column.right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.column.left li,
.column.right li {
  margin-bottom: 0.4rem;
}


/* ===============================
   Poem Content
   =============================== */

.poem {
  margin-bottom: 3rem;
}

/* Poem title (Author · Title) */
.poem-title {
  font-family: "LHANDW", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;        /* adjust freely */
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

/* Poem body ONLY */
.poem p:not(.poem-title):not(.poem-copyright) {
  font-size: 1.3rem;         /* main poem size */
  line-height: 1.75;
  margin: 0 0 1.4rem;
}

/* Copyright line */
.poem-copyright {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--ink-muted);
}



/* ===============================
   Footer
   =============================== */

.site-footer {
  position: sticky;
  bottom: 0;
  z-index: 10;

  text-align: center;
  font-size: 1.00rem;
  color: var(--ink-muted);

  padding: 0.8rem 2rem;
  border-top: 1px solid var(--rule);
}


/* ===============================
   Stable Transparency
   =============================== */

.site-header,
.site-footer {
  background-color: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(2px);
}


/* ===============================
   Mobile
   =============================== */

@media (max-width: 900px) {

  /* One-column layout */
  .layout {
    grid-template-columns: 1fr;
  }

  /* 1. Poem first */
  .column.center {
    order: 1;
  }

  /* 2. Poem navigation next */
  .column.right {
    display: block;
    order: 2;
    margin-top: 3rem;
    font-size: 0.9rem;
  }

  /* 3. Site + author navigation last */
  .column.left {
    display: block;
    order: 3;
    margin-top: 2rem;
    font-size: 0.9rem;
  }

  /* Visual separation */
  .column.right ul,
  .column.left ul {
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
  }
}

