/* ============================================================
   M.A. Knights — "Fantasy Tavern" homepage
   Self-contained stylesheet for index.html only. Other pages keep
   using /assets/css/style.css until they get the same treatment.
   ============================================================ */

:root{
  --wood:#241a10;
  --wood-2:#2f2214;
  --parchment:#f5ead6;
  --paper:#fbf3e4;
  --ink:#1a1108;
  --muted:#6b5744;
  --amber:#c17f24;
  --amber-bright:#e7a53f;
  --green:#2a5c38;
  --burgundy:#6b2737;
  --line:rgba(245,234,214,.16);
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper) url('/assets/img/parchment-texture.jpg') 0 0/380px repeat;
  color:var(--ink);
  font-family:'Lora', Georgia, serif;
  overflow-x:hidden;
}
a{ color:var(--amber-bright); text-decoration:none; }
a:hover{ color:#ffcf85; }
.skip-link{
  position:absolute; left:-999px; top:auto; background:var(--wood); color:var(--parchment);
  padding:10px 16px; border-radius:0 0 6px 0; z-index:20;
}
.skip-link:focus{ left:0; top:0; }
.fine-print{ font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); font-weight:600; }

/* ---------- NAV ---------- */
.nav{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  padding:18px 56px; position:relative; z-index:5;
  background:linear-gradient(rgba(10,7,4,.62),rgba(10,7,4,.62)), url('/assets/img/wood-texture.jpg') 0 0/220px repeat;
  border-bottom:1px solid rgba(245,234,214,.1);
}
.nav-brand{ display:flex; align-items:center; gap:12px; color:inherit; }
.nav-brand img{ width:40px; height:40px; border-radius:50%; object-fit:cover; border:2px solid var(--amber); }
.nav-brand span{ font-family:'Playfair Display', Georgia, serif; font-weight:800; color:var(--parchment); font-size:19px; letter-spacing:.02em; }
.nav-links{ display:flex; gap:10px; }
.plaque{
  font-family:'Lora', Georgia, serif; font-size:13px; font-weight:600; color:var(--parchment);
  padding:9px 16px; border-radius:3px; background:linear-gradient(180deg,#3a2b19,#2c2013);
  border:1px solid rgba(245,234,214,.12); box-shadow:0 3px 0 rgba(0,0,0,.35), 0 6px 10px rgba(0,0,0,.3);
}
.plaque:hover{ color:var(--parchment); filter:brightness(1.15); }
.plaque.active{ color:var(--wood); background:linear-gradient(180deg,var(--amber-bright),var(--amber)); border-color:transparent; }
.nav-cta{
  font-weight:700; font-size:13px; color:var(--wood); background:var(--amber-bright);
  padding:10px 18px; border-radius:999px; box-shadow:0 4px 14px rgba(199,140,50,.35);
}
.nav-cta:hover{ color:var(--wood); filter:brightness(1.06); }

/* Mobile hamburger + dropdown panel */
.nav-toggle{ display:none; background:none; border:none; padding:8px; cursor:pointer; }
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--parchment); margin:5px 0; border-radius:2px; }
.nav-panel{
  display:none; flex-direction:column; gap:8px; width:100%;
  margin-top:14px; padding-top:14px; border-top:1px solid rgba(245,234,214,.12);
}
.nav-panel.open{ display:flex; }
.nav-panel a{
  font-family:'Lora', Georgia, serif; font-size:14px; font-weight:600; color:var(--parchment);
  padding:10px 14px; border-radius:3px; background:linear-gradient(180deg,#3a2b19,#2c2013);
  border:1px solid rgba(245,234,214,.12);
}
.nav-panel a.active{ color:var(--wood); background:linear-gradient(180deg,var(--amber-bright),var(--amber)); border-color:transparent; }

/* ---------- HERO ---------- */
.hero{ position:relative; background:var(--wood); overflow:hidden; }
.hero-photo{
  position:absolute; inset:0;
  background:url('/assets/img/hero-tavern.jpg') center 38% / cover no-repeat;
}
.hero-photo::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(10,8,14,.88) 0%, rgba(10,8,14,.62) 28%, rgba(10,8,14,.18) 52%, transparent 68%);
}
.hero-content{ position:relative; z-index:2; padding:88px 56px 110px; }
.hero-grid{ display:flex; gap:56px; align-items:center; max-width:1320px; margin:0 auto; }
.hero-copy{ flex:1.05; }
.kicker{ color:var(--amber-bright); font-size:13px; letter-spacing:.16em; text-transform:uppercase; font-weight:700; margin-bottom:18px; }
.tagline-strange{
  font-family:'Playfair Display', Georgia, serif; font-style:italic; color:var(--amber-bright);
  font-weight:700; line-height:1.2; margin:0;
}
.hero p.lede{ color:rgba(245,234,214,.78); font-size:18px; line-height:1.7; max-width:46ch; margin:0 0 30px; }
.hanging-sign{
  width:100%; max-width:480px; height:auto; display:block; margin:-12px 0 22px -6px;
  filter:drop-shadow(0 22px 26px rgba(0,0,0,.55));
  position:relative; top:-118px;
}
.hero-ctas{ display:flex; gap:14px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:15px;
  padding:14px 26px; border-radius:8px; cursor:pointer; font-family:'Lora',serif;
}
.btn-primary{ background:linear-gradient(180deg,var(--amber-bright),var(--amber)); color:var(--wood); box-shadow:0 10px 24px rgba(193,127,36,.4), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover{ color:var(--wood); filter:brightness(1.05); }
.btn-ghost{ background:transparent; color:var(--parchment); border:1.5px solid rgba(245,234,214,.4); }
.btn-ghost:hover{ color:var(--parchment); border-color:rgba(245,234,214,.7); }
.hero-note{ margin-top:18px; color:rgba(245,234,214,.5); font-size:13px; }

/* ---------- SHELF OF PORTRAITS ---------- */
.shelf-wrap{ flex:.95; position:relative; height:480px; }
.frame{
  position:absolute; background:var(--paper); padding:9px 9px 22px; border-radius:3px;
  box-shadow:0 28px 50px rgba(0,0,0,.6), 0 0 0 3px rgba(193,127,36,.55), 0 0 0 4px rgba(0,0,0,.3);
  width:190px;
}
.frame::before{
  content:""; position:absolute; inset:-30px; z-index:-1; border-radius:50%;
  background:radial-gradient(circle, rgba(231,165,63,.35), transparent 68%); filter:blur(6px);
}
.frame img{ width:100%; height:200px; object-fit:cover; display:block; border:1px solid rgba(0,0,0,.15); }
.frame .nameplate{
  margin-top:10px; text-align:center; font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  font-weight:700; color:var(--wood);
}
.frame.f1{ top:0; left:40px; transform:rotate(-4deg); z-index:3; }
.frame.f2{ top:70px; left:230px; transform:rotate(3deg); z-index:2; width:175px; }
.frame.f3{ top:230px; left:60px; transform:rotate(2deg); z-index:1; width:170px; }

/* ---------- TORN DIVIDER ---------- */
.torn{
  display:block; width:100%; height:auto;
  position:relative; margin-top:-84px; z-index:2;
  -webkit-mask-image:linear-gradient(to bottom, black 0%, black 78%, transparent 100%);
  mask-image:linear-gradient(to bottom, black 0%, black 78%, transparent 100%);
}

/* ---------- MEET ME IN PERSON (events) ---------- */
.notice{ padding:90px 56px 20px; }
.notice-inner{ max-width:1320px; margin:0 auto; }
.notice-grid{ display:flex; gap:56px; align-items:center; }
.notice-copy{ flex:1.1; }
.notice-copy p{ color:var(--muted); font-size:16px; line-height:1.75; max-width:52ch; margin:0 0 28px; }
.btn-ghost-dark{ background:transparent; color:var(--wood); border:1.5px solid rgba(26,17,8,.25); }
.btn-ghost-dark:hover{ color:var(--wood); border-color:rgba(26,17,8,.45); }
.notice-board{ flex:.9; }
.notice-board-inner{
  position:relative;
  background:linear-gradient(rgba(0,0,0,.28),rgba(0,0,0,.28)), url('/assets/img/wood-texture.jpg') 0 0/160px repeat;
  border-radius:14px; padding:40px 30px 30px; box-shadow:0 30px 60px rgba(26,17,8,.3);
}
.notice-board-inner::before{
  content:""; position:absolute; top:14px; left:50%; transform:translateX(-50%);
  width:14px; height:14px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #e7a53f, #8a5a1c 70%);
  box-shadow:0 3px 6px rgba(0,0,0,.5);
}
.city-tags{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; }
.city-tag{
  font-family:'Lora', Georgia, serif; font-size:13px; font-weight:600; color:var(--parchment);
  padding:9px 14px; border-radius:3px; background:linear-gradient(180deg,#3a2b19,#2c2013);
  border:1px solid rgba(245,234,214,.12); box-shadow:0 3px 0 rgba(0,0,0,.35), 0 6px 10px rgba(0,0,0,.3);
}
.city-tag:nth-child(odd){ transform:rotate(-1.5deg); }
.city-tag:nth-child(even){ transform:rotate(1.2deg); }

/* ---------- THE SNUG (free story) ---------- */
.snug{ padding:80px 56px; }
.snug-inner{ max-width:1320px; margin:0 auto; }
.board-frame{
  padding:12px;
  background:linear-gradient(rgba(0,0,0,.3),rgba(0,0,0,.3)), url('/assets/img/wood-texture.jpg') 0 0/160px repeat;
  border-radius:16px; box-shadow:0 30px 60px rgba(26,17,8,.3);
}
.board{
  background:linear-gradient(180deg,#211a12,#160f0a); border-radius:10px; padding:52px 60px;
  position:relative;
}
.board::before{
  content:"Today's special"; position:absolute; top:-16px; left:48px; background:var(--burgundy); color:var(--parchment);
  font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:7px 16px; border-radius:999px;
  box-shadow:0 6px 14px rgba(0,0,0,.35);
}
.board h2{
  font-family:'Playfair Display', Georgia, serif; color:var(--parchment); font-size:36px; margin:10px 0 14px; font-weight:700;
}
.board p{ color:rgba(245,234,214,.72); font-size:16px; line-height:1.75; max-width:60ch; margin:0 0 24px; }
.board .btn-primary{ box-shadow:0 10px 24px rgba(193,127,36,.35); }

/* ---------- THE SHELF (series) ---------- */
.shelf{ padding:20px 56px 90px; }
.shelf-inner{ max-width:1320px; margin:0 auto; }
.section-kicker{ color:var(--amber); font-size:13px; letter-spacing:.14em; text-transform:uppercase; font-weight:700; margin-bottom:8px; }
.section-title{ font-family:'Playfair Display', Georgia, serif; font-size:32px; font-weight:800; color:var(--ink); margin:0 0 36px; }
.books-row{ display:flex; gap:40px; }
.book-slot{ flex:1; text-align:center; display:block; color:inherit; }
.book-slot:hover .book-cover{ box-shadow:0 34px 52px rgba(26,17,8,.42), 0 2px 0 rgba(0,0,0,.15); }
.book-cover{
  width:100%; max-width:280px; margin:0 auto; border-radius:6px; box-shadow:0 30px 46px rgba(26,17,8,.35), 0 2px 0 rgba(0,0,0,.15);
  display:block; border:1px solid rgba(0,0,0,.1);
}
.book-ledge{ height:18px; max-width:280px; margin:0 auto; background:linear-gradient(rgba(0,0,0,.15),rgba(0,0,0,.35)), url('/assets/img/wood-texture.jpg') 0 0/140px repeat; border-radius:0 0 4px 4px; box-shadow:0 10px 18px rgba(0,0,0,.25); }
.book-slot h3{ font-family:'Playfair Display', Georgia, serif; font-size:21px; margin:22px 0 8px; color:var(--ink); }
.book-slot p{ color:var(--muted); font-size:14px; line-height:1.6; max-width:32ch; margin:0 auto 16px; }
.tag-pill{
  display:inline-block; font-size:11px; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  padding:5px 12px; border-radius:999px; margin-bottom:14px;
}
.tag-warm{ background:color-mix(in srgb, var(--amber) 15%, var(--paper)); color:var(--amber); border:1px solid color-mix(in srgb, var(--amber) 40%, transparent); }
.tag-dark{ background:color-mix(in srgb, var(--green) 14%, var(--paper)); color:var(--green); border:1px solid color-mix(in srgb, var(--green) 40%, transparent); }

/* ---------- MORE FROM THE TAVERN (Goodboy / Sidequest) ---------- */
.tavern-more{ padding:20px 56px 90px; }
.tavern-more-inner{ max-width:1320px; margin:0 auto; }
.quest-row{ display:flex; gap:32px; }
.quest-card{
  position:relative; flex:1; background:var(--parchment); border:1px solid rgba(26,17,8,.1);
  border-radius:4px; padding:36px 34px; box-shadow:0 22px 40px rgba(26,17,8,.22);
}
.quest-card::before{
  content:""; position:absolute; top:-10px; right:30px; width:26px; height:26px; border-radius:50%;
  box-shadow:0 4px 8px rgba(0,0,0,.35);
}
.quest-card.seal-warm::before{ background:radial-gradient(circle at 35% 30%, #e7a53f, var(--amber) 60%, #8a5a1c 100%); }
.quest-card.seal-dark::before{ background:radial-gradient(circle at 35% 30%, #4a8a5c, var(--green) 60%, #163d22 100%); }
.quest-card h3{ font-family:'Playfair Display', Georgia, serif; font-size:24px; margin:6px 0 12px; color:var(--ink); }
.quest-card p{ color:var(--muted); font-size:15px; line-height:1.7; margin:0 0 22px; }
.btn-support{ background:linear-gradient(180deg,#7d3245,var(--burgundy)); color:var(--parchment); box-shadow:0 10px 22px rgba(107,39,55,.35); }
.btn-support:hover{ color:var(--parchment); filter:brightness(1.08); }

/* ---------- KICKSTARTER INSIDER CALLOUT ---------- */
.kickstarter-callout{ padding:0 56px 100px; }
.kc-inner{ max-width:1320px; margin:0 auto; }
.kc-card{
  position:relative; background:var(--parchment); border:1px solid rgba(26,17,8,.1); border-radius:14px;
  padding:56px 64px; box-shadow:0 26px 50px rgba(26,17,8,.2); max-width:860px; margin:0 auto; text-align:center;
}
.kc-ribbon{
  position:absolute; top:-16px; left:50%; transform:translateX(-50%); background:var(--burgundy); color:var(--parchment);
  font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:7px 18px;
  border-radius:999px; box-shadow:0 6px 14px rgba(0,0,0,.25);
}
.kc-card h2{ font-family:'Playfair Display', Georgia, serif; font-size:32px; margin:14px 0 18px; color:var(--ink); }
.kc-card p{ color:var(--muted); font-size:16px; line-height:1.75; max-width:60ch; margin:0 auto 20px; }
.kc-card .hero-ctas{ justify-content:center; }

/* ---------- FOOTER STRIP ---------- */
.foot{
  padding:56px 56px 28px; text-align:left;
  background:linear-gradient(rgba(10,7,4,.72),rgba(10,7,4,.72)), url('/assets/img/wood-texture.jpg') 0 0/220px repeat;
}
.foot-inner{
  max-width:1320px; margin:0 auto; display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap;
  border-bottom:1px solid rgba(245,234,214,.12); padding-bottom:34px; margin-bottom:22px;
}
.foot .tagline-strange{ font-size:22px; margin:0 0 10px; }
.foot-tag{ color:rgba(245,234,214,.55); font-size:13px; margin:0 0 14px; }
.foot-social{ display:flex; gap:16px; flex-wrap:wrap; font-size:13px; }
.foot-social a{ color:rgba(245,234,214,.7); }
.foot-social a:hover{ color:var(--amber-bright); }
.foot-social .foot-patreon{ color:var(--amber-bright); font-weight:700; }
.foot-links{ display:flex; gap:20px; flex-wrap:wrap; align-items:flex-start; }
.foot-links a{ color:rgba(245,234,214,.7); font-size:14px; font-weight:600; }
.foot-links a:hover{ color:var(--amber-bright); }
.foot-copy{ max-width:1320px; margin:0 auto; color:rgba(245,234,214,.4); font-size:12px; text-align:center; }

@media (max-width: 860px){
  .nav{ padding:14px 20px; }
  .nav-links{ display:none; }
  .nav-toggle{ display:block; }
  .hero-photo{ position:relative; inset:auto; height:190px; }
  .hero-photo::after{ background:linear-gradient(180deg, rgba(10,8,14,.05) 45%, rgba(10,8,14,.92) 97%); }
  .hero-content{ padding:0 20px 60px; position:relative; }
  .hero-grid{ flex-direction:column; gap:44px; }
  .hero-copy{ text-align:center; padding-top:18px; }
  .hanging-sign{
    position:absolute; top:-205px; left:12px; max-width:190px; margin:0; z-index:3;
  }
  .hero p.lede{ font-size:16px; margin-left:auto; margin-right:auto; }
  .hero-ctas{ justify-content:center; }
  /* shelf-wrap's children are all position:absolute (no in-flow content),
     and the base rule's flex:.95 sets flex-basis:0 for the desktop ROW
     layout. In this column layout that same flex-basis collapses the
     item's height to 0 regardless of the explicit height below — flex:none
     makes the explicit height apply for real. */
  .shelf-wrap{ flex:none; width:100%; height:460px; margin:0 auto; max-width:320px; }
  .frame{ width:150px; }
  .frame img{ height:155px; }
  .frame.f1{ left:0; top:0; }
  .frame.f2{ left:130px; top:75px; width:140px; }
  .frame.f3{ left:20px; top:200px; width:140px; }
  .torn{ margin-top:-23px; }
  .snug{ padding:50px 20px; }
  .board{ padding:36px 24px; }
  .board h2{ font-size:26px; }
  .shelf{ padding:10px 20px 60px; }
  .books-row{ flex-direction:column; gap:48px; }
  .section-title{ font-size:26px; }
  .notice{ padding:50px 20px 10px; }
  .notice-grid{ flex-direction:column; gap:36px; }
  .notice-copy p{ margin-left:auto; margin-right:auto; }
  .notice-board{ width:100%; }
  .tavern-more{ padding:10px 20px 60px; }
  .quest-row{ flex-direction:column; gap:28px; }
  .kickstarter-callout{ padding:0 20px 70px; }
  .kc-card{ padding:40px 26px; }
  .kc-card h2{ font-size:26px; }
  .foot{ padding:44px 20px 24px; }
  .foot-inner{ flex-direction:column; gap:26px; }
}
