/*
Theme Name: Hudavora
Theme URI: https://hudavora.com/
Author: Hudavora
Author URI: https://hudavora.com/
Description: A personal index theme for Hudavora — outfit, hairstyle, fashion, footwear, home decor, health and gaming, organised as tabbed sections with a category-driven homepage and archive layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hudavora
*/

/* ============================================================
   HUDAVORA — "A Personal Index"
   Design tokens
   ============================================================ */

:root{
  --paper:      #F1E9DC;   /* warm sand page background */
  --ink:        #241019;   /* near-black plum ink */
  --ink-soft:   #5A4750;   /* muted plum-grey for body text */
  --plum:       #4B1F3D;   /* primary deep accent */
  --gold:       #B8912B;   /* antique gold */
  --line:       rgba(36,16,25,0.14);

  /* category accent hues */
  --c-outfit:    #B5495B;  /* warm rose */
  --c-hairstyle: #B8912B;  /* antique gold */
  --c-fashion:   #4B1F3D;  /* deep plum */
  --c-footwear:  #A6552C;  /* rust */
  --c-home-decor: #5F7A52;  /* sage */
  --c-health:    #2F6F63;  /* teal */
  --c-gaming:    #3B3470;  /* indigo */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
}

*,*::before,*::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------------- Header / Tab strip -----------------
   Signature element: the site is organised like the tabbed
   edge of a bound index/binder. Each category owns a coloured
   tab that recurs identically in the header of every page,
   so the reader always sees where the other six sections sit
   relative to the one they're reading. */

.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.masthead-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px clamp(20px, 4vw, 48px) 0;
}

.logo{
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.logo span{ color: var(--gold); }

.menu-toggle{
  display:none;
  background:none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  cursor:pointer;
  color: var(--ink);
}

.tab-strip{
  display:flex;
  gap: 2px;
  margin-top: 18px;
  overflow-x:auto;
  scrollbar-width: none;
}
.tab-strip::-webkit-scrollbar{ display:none; }

.tab{
  flex: 1 1 auto;
  white-space: nowrap;
  padding: 12px 16px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(36,16,25,0.05);
  border-top: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tab:hover{ background: rgba(36,16,25,0.09); }
.tab .tab-letter{ font-weight:700; margin-right:6px; }

.tab[data-cat="outfit"]{ border-top-color: var(--c-outfit); }
.tab[data-cat="hairstyle"]{ border-top-color: var(--c-hairstyle); }
.tab[data-cat="fashion"]{ border-top-color: var(--c-fashion); }
.tab[data-cat="footwear"]{ border-top-color: var(--c-footwear); }
.tab[data-cat="home-decor"]{ border-top-color: var(--c-home-decor); }
.tab[data-cat="health"]{ border-top-color: var(--c-health); }
.tab[data-cat="gaming"]{ border-top-color: var(--c-gaming); }

.tab.is-active{ background: var(--ink); color: var(--paper); }

@media (max-width: 760px){
  .menu-toggle{ display:inline-block; }
  .tab-strip{
    display:none;
    flex-direction: column;
    margin-top: 12px;
  }
  .tab-strip.is-open{ display:flex; }
  .tab{ border-top:none; border-left: 4px solid transparent; }
  .tab[data-cat="outfit"]{ border-left-color: var(--c-outfit); }
  .tab[data-cat="hairstyle"]{ border-left-color: var(--c-hairstyle); }
  .tab[data-cat="fashion"]{ border-left-color: var(--c-fashion); }
  .tab[data-cat="footwear"]{ border-left-color: var(--c-footwear); }
  .tab[data-cat="home-decor"]{ border-left-color: var(--c-home-decor); }
  .tab[data-cat="health"]{ border-left-color: var(--c-health); }
  .tab[data-cat="gaming"]{ border-left-color: var(--c-gaming); }
}

/* ---------------- Hero (home) ---------------- */

.hero{
  padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow{ margin-bottom: 18px; display:block; }
.hero h1{
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  max-width: 14ch;
}
.hero p.lede{
  margin-top: 22px;
  max-width: 56ch;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* ---------------- Category grid (home) ---------------- */

.index-grid{
  padding: clamp(32px, 6vw, 64px) 0 clamp(64px, 8vw, 96px);
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px){ .index-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .index-grid{ grid-template-columns: 1fr; } }

.tile{
  position:relative;
  background: var(--paper);
  padding: 32px 28px 36px;
  min-height: 220px;
  display:flex;
  flex-direction:column;
  justify-content: space-between;
  border-left: 6px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tile:hover{ transform: translateY(-3px); box-shadow: 0 10px 24px rgba(36,16,25,0.10); }

.tile[data-cat="outfit"]{ border-left-color: var(--c-outfit); }
.tile[data-cat="hairstyle"]{ border-left-color: var(--c-hairstyle); }
.tile[data-cat="fashion"]{ border-left-color: var(--c-fashion); }
.tile[data-cat="footwear"]{ border-left-color: var(--c-footwear); }
.tile[data-cat="home-decor"]{ border-left-color: var(--c-home-decor); }
.tile[data-cat="health"]{ border-left-color: var(--c-health); }
.tile[data-cat="gaming"]{ border-left-color: var(--c-gaming); }

.tile-letter{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.tile h3{ font-size: 1.6rem; margin-top: 14px; }
.tile p{ margin: 12px 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.tile .enter{
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tile .enter::after{ content: " →"; }

/* ---------------- Category page header ---------------- */

.cat-hero{
  padding: clamp(40px, 7vw, 72px) 0 clamp(24px, 5vw, 40px);
  border-bottom: 1px solid var(--line);
}
.cat-hero h1{ font-size: clamp(2.2rem, 6vw, 4rem); margin-top: 14px; }
.cat-hero p.lede{ margin-top: 18px; max-width: 52ch; color: var(--ink-soft); font-size: 1.05rem; }
.cat-hero .swatch{
  display:inline-block;
  width: 34px; height: 8px;
  margin-bottom: 14px;
  border-radius: 2px;
}

/* ---------------- Post placeholder grid ---------------- */

.post-grid{
  padding: clamp(40px, 6vw, 64px) 0 clamp(72px, 9vw, 100px);
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px){ .post-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .post-grid{ grid-template-columns: 1fr; } }

.post-card{
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow:hidden;
  background: rgba(255,255,255,0.35);
  display:flex;
  flex-direction:column;
}
.post-card .thumb{
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(135deg, rgba(36,16,25,0.06) 0 10px, rgba(36,16,25,0.02) 10px 20px);
  position:relative;
}
.post-card .thumb::after{
  content: "SLOT OPEN";
  position:absolute; inset:auto 0 12px 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.post-card .body{ padding: 18px 18px 22px; flex:1; display:flex; flex-direction:column; gap:8px; }
.post-card .status{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.post-card h4{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* ---------------- Footer ---------------- */

.site-footer{
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  background: var(--ink);
  color: var(--paper);
}
.site-footer .wrap{
  display:flex;
  flex-wrap:wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer .logo{ color: var(--paper); }
.site-footer .logo span{ color: var(--gold); }
.footer-cats{ display:flex; flex-wrap:wrap; gap: 8px 18px; }
.footer-cats a{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.footer-cats a:hover{ opacity: 1; text-decoration: underline; }
.footer-note{ font-size: 0.85rem; opacity: 0.7; max-width: 40ch; }

/* ---------------- Real post thumbnails / content (added for WordPress) ---------------- */

.post-card .thumb-link{ display:block; }
.post-card .thumb{ background-size: cover; background-position: center; }

.post-card h4 a{ color: inherit; }
.post-card h4 a:hover{ text-decoration: underline; }

/* Prose used on page.php / single.php for real WordPress content */
.prose{
  max-width: 720px;
  padding: 8px 0 64px;
}
.prose h2, .prose h3{ font-family: var(--font-display); margin-top: 1.4em; }
.prose p{ margin: 1em 0; color: var(--ink); }
.prose img{ border-radius: 6px; margin: 1.2em 0; }
.prose a{ text-decoration: underline; text-decoration-color: var(--gold); }
.prose ul, .prose ol{ padding-left: 1.4em; margin: 1em 0; }
.prose ul{ list-style: disc; }
.prose ol{ list-style: decimal; }
.prose blockquote{
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  margin: 1.4em 0;
  color: var(--ink-soft);
  font-style: italic;
}

.single-meta{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 14px;
}

.pagination-row{ padding: 0 0 64px; display:flex; gap:14px; }
.pagination-row a, .pagination-row span{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.pagination-row .current{ background: var(--ink); color: var(--paper); }
