/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  margin: 0;
  background-color: #1f201c;
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  color: #cbcaca;
  font-size: 18px;
  line-height: 1.65;
}
h1 {
  font-family: "Cinzel", serif;
  font-size: 30px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 25px;
}
h2 {
  font-family: "Cinzel", serif;
  font-size: 22px;
  letter-spacing: 1px;

  margin-top: 40px;
  margin-bottom: 15px;
}
h3 {
  font-family: "Cinzel", serif;
  font-size: 18px;

  margin-top: 30px;
  margin-bottom: 10px;
}
p {
  margin-bottom: 1em;
}
h1 + p, h2 + p, h3 + p {
  margin-top: 0;
}
ul, ol {
  margin: 10px 0 20px 20px;
}

li {
  margin-bottom: 6px;
}
hr {
  border: none;
  height: 1px;
  background-color: #4a4b43;
  margin: 30px auto;
  width: 60%;
}

strong {
  font-weight: bold;
}


/* PAGE WRAPPER */
.page-wrapper {
  max-width: 1200px;
  border: 1px solid #4a4b43;
  background-color: #2a2b25;
}

/* HEADER */
.site-header img {
  width: 100%;
  height: auto;
  display: block;
}

/* NAVIGATION */
.site-nav {
  background-color: #1c1c1a;
  border-top: 1px solid #4a4b43;
  border-bottom: 1px solid #4a4b43;
}

.nav-inner {
  padding: 0 20px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MENU */
.nav-menu summary {
  display: none;
  cursor: pointer;
  color: #d0af5e;
  font-size: 18px;
}

.nav-menu ul {
  list-style: none;
  display: flex !important;
  justify-content: center;
  gap: 40px;
}

/* Force visibility on desktop */
.nav-menu {
  display: block;
}

.nav-menu > ul {
  display: flex;
}



.nav-menu a {
  text-decoration: none;
  color: #d0af5e;
  font-size: 18px;
  letter-spacing: 1px;
}

.nav-menu a:hover {
  color: #f0d27a;
}

/* CONTENT */
.content {
  padding: 40px 50px;
  line-height: 1.6;
  margin: 0 auto;
}
.text-block {
  max-width: 900px;
  margin: 0 auto;
}
.text-block-narrow {
  max-width: 500px;
  margin: 0 auto;
}
.centered-block {
  max-width: 900px;
  margin: 0 auto;
}

.book-entry {
  display: flex;
  gap: 40px;
  margin: 60px 0;
  align-items: flex-start;
}

.book-cover img {
  width: 250px;
  height: auto;
  display: block;
  padding: 4px;
  background-color: #1c1c1a;
  border: 1px solid #3a3b35;
  box-sizing: border-box;
}
.emblem img {
  width: 250px;
  height: auto;
  display: block;

  box-sizing: border-box;
}

.book-info {
  flex: 1;
}

.book-info h2 {
  margin-top: 0;
}

.book-meta {
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 10px;
}
.book-links {
  display: flex;
  flex-direction: row;   
  gap: 20px;
  flex-wrap: wrap;       
  margin-top: 15px;
}

.book-links a {
  display: inline-block;
  text-decoration: none;
  color: #d0af5e;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  position: relative;
  line-height: 1; 
}

.book-links a::after {
  content: "";
  display: block;
  width: 0%;
  height: 1px;
  background: #d0af5e;
  transition: 0.3s;
}

.book-links a:hover::after {
  width: 100%;
}

.nation-meta {
  margin: 0;
}

.nation-meta dt,
.nation-meta dd {
  display: inline;
  margin: 0;
}

.nation-meta dt {
  font-weight: 600;
}

.nation-meta dt::after {
  content: ": ";
}

.nation-meta dd::after {
  content: "\A";
  white-space: pre;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.map-frame {
  padding: 6px;
  background-color: #1c1c1a;
  border: 1px solid #3a3b35;
  display: inline-block;
  cursor: pointer;
}
.map-link {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: #b8a772;
  text-align: center;
  text-decoration: none;
}

.map-link:hover {
  text-decoration: underline;
}
.map-frame img {
  transition: 0.3s ease;
  display: block;
  max-width: 100%;
  height: auto;
}

.map-frame:hover img {
  filter: brightness(1.10);
}

.map-caption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #a8a394; /* muted warm grey */
  text-align: center;
  line-height: 1.4;
}
.character {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.character img {
  width: 400px;
  height: auto;
  text-align: center;  
  box-sizing: border-box;
}
.catalog-category {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8f8a78;

}
.catalog-entry {
  margin-left: 16px;
  margin-bottom: 6px;
  font-size: 1rem;
}
.catalog-entry::before {
  content: "— ";
  color: #6f6a5a;
}
.catalog-entry a {
  text-decoration: none;
  color: #d6c8a2;
}

.catalog-entry a:hover {
  text-decoration: underline;
  color: #e6d8b5;
}
.page-back {
  margin-bottom: 6px;
}

.page-back a {
  font-size: 0.85rem;
  color: #8f8a78;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.page-back a:hover {
  color: #cfc3a0;
  text-decoration: underline;
}


.home-sections {
  display: grid;
  max-width: 700px;  
  grid-template-columns: 1fr 1fr;
  gap: 28px 60px;
  margin-top: 40px;  
  margin-left: auto;
  margin-right: auto;
}

.home-entry {
  display: block;
  text-decoration: none;
  color: #d6c8a2;
}
.entry-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.entry-title {
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.entry-desc {
  display: block;
  font-size: 0.9rem;
  color: #8f8a78;
  margin-top: 4px;
}

.entry-number {
  font-size: 0.85rem;
  color: #8f8a78;
  min-width: 16px;
}

.home-entry:hover .entry-title {
  text-decoration: underline;
}

.hero {
  text-align: center;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ornament {
  font-size: 1.2rem;
  color: #8f8a78;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2.6rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1rem;
  color: #b8ab86;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.hero-meta {
  font-size: 0.85rem;
  color: #8f8a78;
  font-style: italic;
  margin-bottom: 20px;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: rgba(200, 180, 120, 0.3);
  margin: 0 auto 20px auto;
}

.hero-intro {
  font-size: 0.95rem;
  color: #d6c8a2;
  line-height: 1.6;
}

.contact-frame {
  padding: 6px;
  background-color: #1c1c1a;
  border: 1px solid #3a3b35;
  display: inline-block;
  cursor: pointer;
  line-height: 0;
}

.contact-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.contact-image-wrapper {
  text-align: center;
  margin-top: 30px;
}

/* FOOTER */
.site-footer {
  background-color: #1c1c1a;
  border-top: 1px solid #4a4b43;
  padding: 30px 20px;
  text-align: center;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  margin: 0 10px;
  text-decoration: none;
  color: #a8a8a8;
  font-size: 14px;
}

.footer-links a:hover {
  color: #d0af5e;
}

.footer-copy {
  font-size: 13px;
  color: #777;
}


/* Hide checkbox */
#menu-toggle {
  display: none;
}

/* MENU CONTAINER */
.menu {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center; /* important */
  gap: 0;
  margin: 0;
  padding: 0;
}
.menu a {
  display: inline-block;
  line-height: 1; /* critical fix */
  padding: 0;
}

/* MENU ITEMS */
.menu li {
  position: relative;
  padding: 0 28px;
}

/* SUBTLE SEPARATORS */
.menu li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 12px;
  width: 1px;
  background-color: #4a4b43;
  opacity: 0.6;
}

/* LINKS */
.menu a {
  text-decoration: none;
  color: #d0af5e;
  font-size: 17px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  font-family: "Cinzel", serif;
}

/* UNDERLINE (hidden by default) */
.menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 1px;
  background-color: #d0af5e;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* HOVER EFFECT */
.menu a:hover::after {
  width: 100%;
}

/* SUBTLE COLOR SHIFT */
.menu a:hover {
  color: #f0d27a;
}


/* FONTS */

@font-face {
  font-family: "EB Garamond";
  src: 
    local("EB Garamond"),
    local("EBGaramond-Regular"),
    url("fonts/EBGaramond-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: 
    local("EB Garamond Bold"),
    local("EBGaramond-Bold"),
    url("fonts/EBGaramond-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: 
    local("EB Garamond Italic"),
    local("EBGaramond-Italic"),
    url("fonts/EBGaramond-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src:
    local("Cinzel"),
    local("Cinzel-Regular"),
    url("fonts/Cinzel-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel";
  src:
    local("Cinzel Bold"),
    local("Cinzel-Bold"),
    url("fonts/Cinzel-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ========================= */
/* MOBILE */
/* ========================= */
@media (max-width: 768px) {

.menu-button {
  display: block;
  text-align: center;
  cursor: pointer;
  color: #d0af5e;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 0;
  border-top: 1px solid #4a4b43;
  border-bottom: 1px solid #4a4b43;
  position: relative;
}

.menu-button::after {
  content: "▾";
  font-size: 12px;
  margin-left: 8px;
  opacity: 0.7;
}

#menu-toggle:checked + .menu-button::after {
  content: "▴";
}

  .menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }
    .nav-inner {
    display: block;
  }

  /* When checked → show menu */
  #menu-toggle:checked + .menu-button + .menu {
    display: flex;
  }
  
  .menu li {
  padding: 8px 0;
}

.menu li::after {
  display: none;
}

.menu {
  align-items: center;
}
.content {
  padding: 20px 15px;
}
.content p {
  margin-bottom: 1em;  
}
body {
    font-size: 17px;
}

h1 {
    font-size: 24px;
}

h2 {
    font-size: 20px;
}

h3 {
    font-size: 17px;
}
.book-entry {
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.book-description {
    text-align: left;
}

.book-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.nation-meta {
  text-align: left;
}
.two-columns {
    grid-template-columns: 1fr;
}
.character {
    grid-template-columns: 1fr;
	flex-direction: column;
    text-align: center;
}
.character img {
  width: 300px;
}

}

@media (min-width: 769px) {
  .page-wrapper {
    margin: 20px auto;
  }
    .menu-button {
    display: none;
  }
}
