/* ============================================================
   สล็อต BLOG — style.css
   Design: Classic Magazine · Palette: Deep Navy + Gold Brass + Warm Ivory
   Fonts: Playfair Display (headings) + Source Serif 4 (body)
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --c-bg:          #F8F5EF;        /* warm ivory page ground */
  --c-surface:     #FFFFFF;
  --c-navy:        #1A2744;        /* deep navy — authority */
  --c-gold:        #B8882A;        /* brass gold — accent */
  --c-gold-light:  #D4A843;        /* hover/highlight gold */
  --c-red:         #9B2335;        /* editorial red — category badges */
  --c-text:        #22201C;        /* near-black body text */
  --c-muted:       #6B6560;        /* secondary text */
  --c-rule:        #CFC8BD;        /* hairline dividers */
  --c-upcoming:    #EDE9E3;        /* placeholder card bg */

  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Source Serif 4', 'Times New Roman', serif;

  --radius-sm:     4px;
  --radius-md:     8px;
  --shadow-card:   0 2px 12px rgba(26,39,68,.08);
  --shadow-lift:   0 6px 24px rgba(26,39,68,.14);

  --max-w:         1160px;
  --gap:           28px;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-navy); text-decoration: none; }
a:hover { color: var(--c-gold); }
ul { list-style: none; }

/* ── UTILITY ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.btn-primary {
  display: inline-block;
  background: var(--c-navy);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--c-navy);
  transition: background .22s, color .22s, border-color .22s;
}
.btn-primary:hover {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: #fff;
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--c-gold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--c-gold);
  transition: background .22s, color .22s;
}
.btn-secondary:hover {
  background: var(--c-gold);
  color: #fff;
}

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  background: var(--c-navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.brand-link {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--c-gold-light);
  letter-spacing: .02em;
}
.brand-sub {
  font-size: .7rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}
.site-nav a {
  color: rgba(255,255,255,.8);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--c-gold-light);
  border-bottom-color: var(--c-gold-light);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--c-gold-light);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: var(--c-navy);
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(184,136,42,.18) 0%, transparent 65%),
    linear-gradient(160deg, #1A2744 60%, #0E1A36 100%);
  padding: 80px 0 88px;
  border-bottom: 3px solid var(--c-gold);
}
.hero-inner { max-width: 740px; }
.hero-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold-light);
  border: 1px solid var(--c-gold);
  padding: .2rem .75rem;
  border-radius: 2px;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.hero-body {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  line-height: 1.8;
  margin-bottom: 34px;
  max-width: 600px;
}

/* ── SECTION RULE ────────────────────────────────────────── */
.section-rule {
  background: var(--c-bg);
  padding: 32px 0 0;
}
.section-rule .container {
  border-top: 3px double var(--c-navy);
  padding-top: 20px;
}
.rule-label {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-navy);
  letter-spacing: .01em;
}

/* ── MAIN / ARTICLE GRID ─────────────────────────────────── */
.main-content { padding: 36px 0 60px; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

/* Featured card: full width top */
.card-featured {
  grid-column: 1 / -1;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-top: 4px solid var(--c-navy);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .22s;
}
.card-featured:hover { box-shadow: var(--shadow-lift); }

/* Placeholder cards: 2 per row on desktop */
.card-upcoming {
  grid-column: span 6;
  background: var(--c-upcoming);
  border: 1px dashed var(--c-rule);
  border-radius: var(--radius-md);
  padding: 28px 30px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: .78rem;
  color: var(--c-muted);
  letter-spacing: .04em;
}
.card-category {
  background: var(--c-red);
  color: #fff;
  font-weight: 700;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .18rem .65rem;
  border-radius: 2px;
}
.upcoming-tag {
  background: var(--c-muted);
}
.card-title {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.3;
  margin-bottom: 14px;
}
.card-title a {
  color: inherit;
  transition: color .2s;
}
.card-title a:hover { color: var(--c-gold); }
.card-title.muted { color: var(--c-muted); font-size: 1.15rem; }

.card-excerpt { font-size: .95rem; color: var(--c-text); line-height: 1.7; margin-bottom: 22px; }
.card-excerpt.muted { color: var(--c-muted); }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--c-rule);
  font-size: .82rem;
}
.author-chip {
  color: var(--c-muted);
  font-style: italic;
}
.read-more {
  color: var(--c-gold);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  transition: color .2s;
}
.read-more:hover { color: var(--c-navy); }
.coming-soon-badge {
  color: var(--c-muted);
  font-style: italic;
  font-size: .82rem;
}

/* ── ABOUT STRIP ─────────────────────────────────────────── */
.about-strip {
  background: var(--c-navy);
  padding: 56px 0;
}
.about-strip-inner { max-width: 680px; }
.about-strip h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--c-gold-light);
  margin-bottom: 14px;
}
.about-strip p {
  color: rgba(255,255,255,.78);
  line-height: 1.8;
  margin-bottom: 26px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: #0E1A36;
  padding: 36px 0 28px;
  border-top: 3px solid var(--c-gold);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-gold-light);
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer-nav a {
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  letter-spacing: .04em;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--c-gold-light); }
.footer-copy { color: rgba(255,255,255,.35); font-size: .78rem; max-width: 520px; }

/* ── ARTICLE PAGE ────────────────────────────────────────── */
.article-header {
  background: var(--c-navy);
  padding: 60px 0 56px;
  border-bottom: 3px solid var(--c-gold);
}
.article-header-inner { max-width: 800px; }
.article-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .06em;
}
.article-cat-badge {
  background: var(--c-red);
  color: #fff;
  font-weight: 700;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .18rem .65rem;
  border-radius: 2px;
}
.article-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.article-byline {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  font-style: italic;
}

.article-body-wrap {
  display: grid;
  grid-template-columns: 1fr min(740px, 100%) 1fr;
  padding: 52px 24px 72px;
}
.article-body-wrap > * { grid-column: 2; }

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-navy);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-rule);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--c-navy);
  margin-top: 30px;
  margin-bottom: 10px;
}
.article-body p {
  margin-bottom: 1.3rem;
  font-size: 1.05rem;
  line-height: 1.82;
}
.article-body a {
  color: var(--c-gold);
  border-bottom: 1px solid var(--c-gold);
  transition: color .2s, border-color .2s;
}
.article-body a:hover {
  color: var(--c-navy);
  border-color: var(--c-navy);
}
.article-body strong { color: var(--c-navy); font-weight: 700; }
.article-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.3rem;
}
.article-body ul li { margin-bottom: .5rem; font-size: 1.05rem; line-height: 1.75; }

.article-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 32px 0;
  box-shadow: var(--shadow-card);
}

/* Pull quote */
.pullquote {
  margin: 40px 0;
  padding: 24px 32px;
  border-left: 5px solid var(--c-gold);
  background: rgba(184,136,42,.07);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--c-navy);
  line-height: 1.55;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Callout box */
.callout {
  background: #EAF0FB;
  border: 1px solid #B8C8E8;
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 32px 0;
  font-size: .97rem;
}
.callout strong { color: var(--c-navy); }

/* Article tag list */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--c-rule);
}
.tag {
  background: var(--c-upcoming);
  color: var(--c-muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: 20px;
  border: 1px solid var(--c-rule);
}

/* ── SIMPLE PAGE (about / contact / privacy / 404) ───────── */
.simple-page-header {
  background: var(--c-navy);
  padding: 52px 0 48px;
  border-bottom: 3px solid var(--c-gold);
}
.simple-page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #fff;
}
.simple-page-body {
  max-width: 720px;
  margin: 56px auto;
  padding: 0 24px;
}
.simple-page-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-navy);
  margin-top: 36px;
  margin-bottom: 12px;
}
.simple-page-body p,
.simple-page-body li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.simple-page-body ul {
  list-style: disc;
  padding-left: 1.5rem;
}
.simple-page-body a { color: var(--c-gold); border-bottom: 1px solid var(--c-gold); }
.simple-page-body a:hover { color: var(--c-navy); border-color: var(--c-navy); }

.not-found-center {
  text-align: center;
  padding: 80px 24px;
}
.not-found-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 900;
  color: var(--c-rule);
  line-height: 1;
}
.not-found-center h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--c-navy);
  margin-bottom: 16px;
}
.not-found-center p { color: var(--c-muted); margin-bottom: 30px; font-size: 1.05rem; }

/* Articles index page */
.articles-index { padding: 48px 0 72px; }
.articles-index h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--c-muted);
  font-weight: 400;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-rule);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .card-upcoming { grid-column: span 12; }
  .card-featured { padding: 28px 26px; }
  .article-body-wrap { padding: 36px 0 56px; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-navy);
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    gap: 16px;
  }
  .hero { padding: 50px 0 56px; }
  .article-grid { gap: 20px; }
  .card-upcoming { grid-column: span 12; }
  .card-featured { grid-column: span 12; padding: 22px 20px; }
  .pullquote { padding: 18px 20px; }
  .site-header { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
