/* ============================================
   MAHJORA — Shared Stylesheet
   Used by: index.html / rules.html / story.html
   ============================================ */

/* ---------- Base ---------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:#f5f1e8;
  color:#26342f;
  font-family:Arial,"Helvetica Neue",sans-serif;
}

/* ---------- Navigation ---------- */
nav{
  min-height:68px;
  padding:10px 7%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
  background:#fffdf8;
  border-bottom:1px solid #e5ded1;
  position:sticky;
  top:0;
  z-index:5;
}
.logo{display:flex;align-items:center}
.logo a{display:block;line-height:0}
.logo img{height:40px;width:auto;display:block;object-fit:contain}
.nav{display:flex;align-items:center;flex-wrap:wrap}
.nav a{
  margin-left:28px;
  color:#26342f;
  text-decoration:none;
  font-size:14px;
  padding:4px 0;
  border-bottom:2px solid transparent;
  transition:color .2s,border-color .2s;
}
.nav a:hover{color:#887556}
.nav a[aria-current="page"]{color:#887556;border-bottom-color:#26342f}

/* ---------- Home: split story hero ---------- */
.hero-split{
  min-height:calc(100vh - 68px);
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,.62fr);
  align-items:stretch;
}
.story-text{
  padding:90px clamp(28px,7%,96px);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.headline{
  font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  font-size:clamp(42px,4.8vw,66px);
  font-weight:600;
  line-height:1.12;
  letter-spacing:.5px;
  color:#26342f;
  margin:0 0 28px;
}
/* Artistic brand word inside the headline */
.brand-mark{
  display:inline-block;
  font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  font-style:italic;
  font-weight:700;
  font-size:1.3em;
  letter-spacing:.06em;
  line-height:1;
  color:#8a6a35; /* fallback for browsers without background-clip:text */
  position:relative;
  padding:0 .08em;
  filter:drop-shadow(0 3px 4px rgba(122,96,58,.18));
}
@supports((-webkit-background-clip:text) or (background-clip:text)){
  .brand-mark{
    background:linear-gradient(112deg,#8a6a35 0%,#a9843f 38%,#96703c 72%,#a98a4e 100%);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
    -webkit-text-fill-color:transparent;
  }
}
/* gold underline swash beneath the brand word */
.brand-mark::after{
  content:"";
  position:absolute;
  left:.05em;
  right:.05em;
  bottom:-.12em;
  height:.06em;
  border-radius:999px;
  background:linear-gradient(90deg,transparent,#a9843f 12%,#b89a5e 50%,#a9843f 88%,transparent);
  opacity:.85;
}
.rule{
  display:block;
  width:58px;
  height:2px;
  background:#26342f;
  margin:0 0 32px;
}
.story-text p{
  font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  font-size:19px;
  font-weight:600;
  line-height:1.9;
  color:#26342f;
  margin:0 0 18px;
  max-width:520px;
}
.story-text .tagline{
  font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  font-style:italic;
  font-weight:600;
  font-size:22px;
  line-height:1.4;
  color:#26342f;
  margin:14px 0 0;
}
/* Right-side image as a framed rectangular module (not full-bleed) */
.story-media{
  position:relative;
  min-height:300px;
  padding:52px 52px 52px 28px;
}
.story-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 50%;
  border-radius:18px;
  border:1px solid #e4dccf;
  box-shadow:0 18px 44px rgba(38,52,47,.12);
}

/* ---------- Sections ---------- */
section{padding:90px 7%}
.inner{max-width:1000px;margin:auto}
.section-title{margin-bottom:38px}
.section-title small{letter-spacing:3px;color:#887556}
.section-title h2{font-size:42px;margin:10px 0}

/* ---------- Rules page: 2026 hand card ---------- */
.intro{font-size:17px;line-height:1.9;color:#5f6a64;max-width:780px;margin:0 0 8px}

.intro-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:26px;
  margin:0 0 8px;
}
.intro-row .intro{margin:0;flex:1}

/* PDF download button (beside the card intro) */
.btn-pdf{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex:none;
  background:#26342f;
  color:#fffdf8;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  letter-spacing:.5px;
  padding:13px 24px;
  border-radius:999px;
  transition:transform .2s,background .2s,box-shadow .2s;
}
.btn-pdf:hover{background:#3a4b44;transform:translateY(-2px);box-shadow:0 8px 20px rgba(38,52,47,.18)}
.btn-pdf svg{width:16px;height:16px;fill:currentColor;flex:none}

.hand-category{margin-top:46px}
.hand-category:first-of-type{margin-top:0}
.hand-category h3{
  font-size:17px;
  font-weight:800;
  letter-spacing:3px;
  margin:0 0 16px;
  padding-bottom:10px;
  border-bottom:2px solid #e4dccf;
}

.table-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  background:#fffdf8;
  border:1px solid #e4dccf;
  border-radius:20px;
}
.hands-table{width:100%;min-width:620px;border-collapse:collapse;font-size:14px}
.hands-table th{
  text-align:left;
  font-size:11px;
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
  color:#887556;
  padding:16px 22px 10px;
  border-bottom:1px solid #e5ded1;
  white-space:nowrap;
}
.hands-table td{padding:13px 22px;border-bottom:1px solid #efe9dc;vertical-align:top}
.hands-table tbody tr:last-child td{border-bottom:none}
.hands-table tbody tr:hover{background:#f7f3ea}
.hand{
  font-family:"Courier New",Courier,monospace;
  font-weight:700;
  letter-spacing:.5px;
  color:#26342f;
}
.hand .or{
  font-family:Arial,"Helvetica Neue",sans-serif;
  font-weight:400;
  font-size:11px;
  color:#a39a86;
  margin:0 8px;
  letter-spacing:0;
}
.cond{color:#5f6a64;line-height:1.6}
.val{white-space:nowrap;text-align:right}
.val span{
  display:inline-block;
  min-width:46px;
  text-align:center;
  padding:3px 11px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.5px;
}
.val-x{background:#26342f;color:#fffdf8}
.val-c{background:#7d6238;color:#fffdf8}
.legend{margin-top:40px;font-size:13px;color:#8b918d;line-height:1.9}
.legend strong{color:#5f6a64}

/* ---------- Story page ---------- */
/* ---------- Blog (Journal listing) ---------- */
.blog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:28px}
.post-card{
  display:flex;
  flex-direction:column;
  background:#fffdf8;
  border:1px solid #e4dccf;
  border-radius:20px;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  transition:transform .2s,box-shadow .2s;
}
.post-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(38,52,47,.10)}
.cover-1{border-top:4px solid #33453d}
.cover-2{border-top:4px solid #2f4239}
.cover-3{border-top:4px solid #1f2c27}
.post-body{padding:24px 26px 28px;display:flex;flex-direction:column;flex:1}
.post-meta{font-size:12px;letter-spacing:2px;color:#887556;text-transform:uppercase}
.post-card h3{
  font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  font-size:23px;font-weight:600;line-height:1.2;
  margin:10px 0 12px;color:#26342f;
}
.post-excerpt{font-size:15px;line-height:1.8;color:#5f6a64;margin:0 0 18px}
.post-more{margin-top:auto;font-weight:700;font-size:14px;color:#26342f}
.post-card:hover .post-more{color:#887556}

/* ---------- Blog post (article) ---------- */
.article-wrap{padding-bottom:24px}
.back-link{display:inline-block;margin:8px 0 26px;color:#887556;font-size:14px;text-decoration:none;font-weight:600}
.back-link:hover{color:#26342f}
.article{max-width:760px;margin:0 auto}
.article-meta{font-size:12px;letter-spacing:2px;color:#887556;text-transform:uppercase}
.article h1{
  font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  font-size:clamp(34px,5vw,52px);font-weight:600;line-height:1.12;
  color:#26342f;margin:12px 0 26px;
}
.article-body p{font-size:17px;line-height:1.95;color:#4f5a54;margin:0 0 20px}
.article-body h3{
  font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  font-size:26px;font-weight:600;color:#26342f;margin:32px 0 14px;
}
.article-body ul{margin:0 0 20px;padding-left:22px;color:#4f5a54;font-size:17px;line-height:1.9}
.article-body li{margin-bottom:8px}
.article-body a{color:#26342f;font-weight:600}
.article-body strong{color:#26342f}

/* ---------- Footer ---------- */
footer{text-align:center;padding:30px;color:#8b918d;font-size:12px}

/* ---------- Responsive ---------- */
@media(max-width:650px){
  .section-title h2{font-size:34px}
  .nav a{margin-left:10px;font-size:12px}
  .intro-row{flex-direction:column;align-items:flex-start;gap:18px}
  .btn-pdf{padding:11px 20px;font-size:13px}
  section{padding:64px 6%}
  .hand-category{margin-top:36px}
  .hands-table{font-size:13px;min-width:560px}
  .hands-table th{padding:13px 14px 8px}
  .hands-table td{padding:11px 14px}
}

/* Home hero stacks on tablet/mobile */
@media(max-width:900px){
  .hero-split{grid-template-columns:1fr;min-height:0}
  .story-text{padding:64px 7% 52px}
  .story-media{height:64vw;max-height:440px;min-height:240px;padding:0 7% 56px}
}
