/* =====================
   Tharendell Main Style
   ===================== */

/* ---- Palette (single source of truth) ---- */
:root{
  --th-gold:    #F4CF74;   /* hot highlight gold */
  --th-amber:   #E3B24F;   /* core gold */
  --th-bronze:  #A8782D;   /* aged bronze trim */
  --th-brown:   #5B3920;   /* leather mid */
  --th-deep:    #2A1B12;   /* leather deep */
  --th-iron:    #5E6A72;   /* cool metal accent */
  --th-slate:   #0E1A22;   /* background slate/teal */
  --th-smoke:   #9FB5C4;   /* mist highlights */
  --th-text:    #F7F1E0;   /* parchment text */

  /* Header band height knob */
  --th-header-h: 96px;    /* adjust 110–150 to taste */
}

/* ---- Base / Reset ---- */
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }

body {
  background-color: #0b0a09;                /* deep obsidian */
  color: var(--th-text);
  font-family: "Cormorant Garamond", serif; /* body font */
  line-height: 1.45;
}

/* Global headings: font + default color for plain text pages */
h1, h2, h3, h4, h5, h6 {
  font-family: "Cinzel Decorative", serif;  /* display font */
  color: var(--th-text);                    /* parchment by default */
  margin-top: 1.4em;
  margin-bottom: 0.4em;
}

/* Brand title (uses the same display font) */
.brand-title{
  font-family: "Cinzel Decorative", serif;
}

/* Global content links (non-header) */
a {
  color: var(--th-gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--th-text);
}

a:visited {
  color: var(--th-amber);
}

/* =========================
   Header (crest + title)
   ========================= */

header.site-header{
  position: relative;
  z-index: 1000; /* above hero */
  background: linear-gradient(
    180deg,
    #191817 0%,
    #141414 55%,
    #0f0f0f 78%,
    #0b0b0b 100%
  );
}

/* Slim band that holds the logo + title + nav */
.header-inner{
  height: var(--th-header-h);
  min-height: var(--th-header-h);
  display: flex;
  align-items: center;
  padding: 0 40px; /* pull inward */
}

/* Brand link: crest + wordmark */
.site-header .brand{
  display: inline-flex;
  align-items: center;
  gap: 18px;              /* spacing between crest + title */
  text-decoration: none;
}

/* Crest icon using your PNG (pseudo element) */
.site-header .brand::before{
  content:"";
  width: 90px;
  height: 90px;
  background: url("../img/logo-crest.png") center / contain no-repeat;
  flex-shrink: 0;
}

/* Wordmark text */
.site-header .brand-title{
  font-size: 1.85rem;     /* slightly larger */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--th-gold);
  margin-top: 3px;        /* micro-adjust baseline */
}

/* Hover state */
.site-header .brand:hover .brand-title{
  color: #fff2bf;
}

/* Make sure header links never show default blue/purple */
.site-header a,
.site-header a:visited{
  color: var(--th-gold);
}

/* Remove any theme padding/background that may shove the header */
.site-header .wrap,
.site-header .container{
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: none !important;
}

/* ======================
   Main Navigation (CSS-based)
   ====================== */

/* Wrapper nav element inside header */
.main-nav {
  margin-left: auto;  /* push nav to right */
  display: flex;
  justify-content: flex-end;
}

/* Target ANY menu inside .main-nav */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

/* Top-level items */
.main-nav ul > li {
  position: relative;
}

/* Links */
.main-nav ul > li > a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e9d7a2;
  padding-bottom: 0.2rem;
  position: relative;
  text-shadow: 0 1px 0 rgba(0,0,0,0.8);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

/* Underline hover/active effect */
.main-nav ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--th-amber), var(--th-gold));
  transition: width 0.2s ease;
}

/* Hover + current page states */
.main-nav ul > li > a:hover,
.main-nav ul > li.current-menu-item > a,
.main-nav ul > li.current_page_parent > a,
.main-nav ul > li.current-menu-ancestor > a {
  color: var(--th-text);
  transform: translateY(-1px);
}

.main-nav ul > li > a:hover::after,
.main-nav ul > li.current-menu-item > a::after,
.main-nav ul > li.current_page_parent > a::after,
.main-nav ul > li.current-menu-ancestor > a::after {
  width: 100%;
}

/* Dropdown base styling (for when you add children) */
.main-nav ul li ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #141414;
  border: 1px solid rgba(0,0,0,0.6);
  box-shadow: 0 10px 30px rgba(0,0,0,0.65);
  display: none;
  z-index: 1001;
}

.main-nav ul li:hover > ul {
  display: block;
}

.main-nav ul li ul li a {
  display: block;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: none;
  color: #e0dde0;
}

.main-nav ul li ul li a:hover {
  background: rgba(255,255,255,0.04);
  color: var(--th-gold);
}

/* ======================
   Content & Cards
   ====================== */
.content {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
}

.post-card {
  border-bottom: 1px solid #3c3322;
  padding-bottom: 30px;
  margin-bottom: 40px;
}

.post-card h2 a {
  color: #e3c57c;
  text-decoration: none;
}

.post-card h2 a:hover {
  text-decoration: underline;
}

/* Home section layout */
.home-feature {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.home-intro {
  text-align: center;
  margin-bottom: 40px;
}

.home-intro h2 {
  font-size: 2.4rem;
  color: var(--th-gold);
}

.home-intro p {
  font-size: 1.15rem;
  opacity: 0.95;
}

/* Teaser cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.teaser-card {
  background: #12100e;
  border: 1px solid #3c3322;
  border-radius: 10px;
  overflow: hidden;
  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

.teaser-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.teaser-card img {
  width: 100%;
  height: auto;
  display: block;
}

.teaser-card h3 {
  margin: 12px 14px 6px;
  color: var(--th-gold);
  font-size: 1.15rem;
}

.teaser-card p {
  margin: 0 14px 14px;
  color: #dbcaa1;
}

/* ======================
   Buttons
   ====================== */
.btn {
  display: inline-block;
  padding: 12px 20px;
  margin: 8px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .5px;
}

.btn-gold {
  background: linear-gradient(180deg, var(--th-gold), var(--th-bronze));
  color: #1a1206;
  box-shadow: 0 0 12px rgba(233,209,132,0.4);
}

.btn-gold:hover {
  filter: brightness(1.06);
}

.btn-outline {
  border: 2px solid var(--th-gold);
  color: var(--th-gold);
}

.btn-outline:hover {
  background: rgba(233,209,132,0.1);
}

/* ======================
   Utility
   ====================== */
.crest-glow {
  width: 90px;
  filter:
    drop-shadow(0 0 5px var(--th-gold))
    drop-shadow(0 0 15px rgba(233,209,132,0.5));
  transition: filter 0.3s ease;
}

.crest-glow:hover {
  filter:
    drop-shadow(0 0 20px var(--th-gold))
    drop-shadow(0 0 35px rgba(233,209,132,0.6));
}

/* ======================
   Responsive tweaks
   ====================== */

/* Header + nav layout on smaller screens */
@media (max-width: 768px){
  .header-inner{
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0.75rem 20px;
    height: auto;
    min-height: auto;
    gap: 0.5rem;
  }

  .main-nav{
    width: 100%;
  }

  .main-nav ul{
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }

  .main-nav ul > li > a{
    font-size: 0.9rem;
  }
}
/* ==========================================
   Tharendell Elegant Fantasy Ledger Tables
   ========================================== */

/* Base Table */
.page-content table,
.thar-3col-widgets table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: linear-gradient(
      180deg,
      rgba(255, 240, 210, 0.03),
      rgba(255, 240, 210, 0.01)
  );
  border: 1px solid #cbb67c;
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(1px);
  box-shadow:
      0 0 8px rgba(0, 0, 0, 0.35),
      inset 0 0 12px rgba(203, 182, 124, 0.08);
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
}

/* Header Row */
.page-content table thead th,
.thar-3col-widgets table thead th {
  background: rgba(20, 15, 10, 0.9);
  color: #f4e5b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 16px;
  border-bottom: 1px solid #cbb67c;
  font-weight: 600;
  text-shadow: 0 0 4px rgba(0,0,0,0.4);
  position: relative;
}

/* Elegant corner flourishes for header cells */
.page-content table thead th:before,
.page-content table thead th:after,
.thar-3col-widgets table thead th:before,
.thar-3col-widgets table thead th:after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-top: 1px solid #cbb67c;
  border-left: 1px solid #cbb67c;
  opacity: 0.35;
}

.page-content table thead th:before,
.thar-3col-widgets table thead th:before {
  top: 4px;
  left: 4px;
}

.page-content table thead th:after,
.thar-3col-widgets table thead th:after {
  bottom: 4px;
  right: 4px;
  transform: rotate(180deg);
}

/* Body Cells */
.page-content table td,
.thar-3col-widgets table td {
  padding: 10px 14px;
  border: 1px solid rgba(203, 182, 124, 0.25);
  background: rgba(255, 240, 210, 0.03);
  color: #e8d7a2;
  text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* Ledger striping */
.page-content table tbody tr:nth-child(even),
.thar-3col-widgets table tbody tr:nth-child(even) {
  background: rgba(203, 182, 124, 0.045);
}

/* Hover highlight */
.page-content table tbody tr:hover,
.thar-3col-widgets table tbody tr:hover {
  background: rgba(255, 240, 210, 0.08);
  box-shadow: inset 0 0 8px rgba(203, 182, 124, 0.15);
}

/* Header height tweaks by viewport width */
@media (min-width: 1440px){
  :root{ --th-header-h: 140px; }
}

@media (max-width: 900px){
  :root{ --th-header-h: 110px; }
}

@media (max-width: 600px){
  :root{ --th-header-h: 96px; }
}
