/* Table Mahjong blog + release-notes chrome
   Cream / jade / gold / warm wood — editorial feel, not a raw SEO stub. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --cream: #f7eddd;
  --cream-paper: #fffaf0;
  --ink: #3a2a18;
  --ink-soft: #5a3a18;
  --muted: #7a5c38;
  --muted-2: #9a7a58;
  --gold: #e8c87a;
  --gold-deep: #c8843a;
  --gold-line: #d4b888;
  --jade: #1f5a44;
  --jade-soft: #eef4ef;
  --jade-mid: #9cbfae;
  --terracotta: #8a3f32;
  --wood: #3a2a18;
  --wood-mid: #5a3a18;
  --card-border: #ead4a8;
  --shadow: 0 10px 28px rgba(58, 42, 24, 0.12);
  --shadow-sm: 0 2px 10px rgba(58, 42, 24, 0.14);
  --radius: 14px;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
}

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

body {
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(232, 200, 122, 0.18), transparent 55%),
    linear-gradient(180deg, #f3e6d0 0%, var(--cream) 28%, #f4e8d4 100%);
  color: var(--ink);
  font-family: var(--font-serif);
  line-height: 1.7;
  padding: 0 16px;
  min-height: 100vh;
}

/* —— Site header: warm wood bar —— */
.site-header {
  background:
    linear-gradient(180deg, rgba(255, 236, 190, 0.08), transparent 40%),
    linear-gradient(90deg, #2e2114 0%, var(--wood) 40%, #4a3420 70%, var(--wood) 100%);
  color: var(--cream);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 -16px;
  gap: 14px;
  border-bottom: 2px solid rgba(232, 200, 122, 0.35);
  box-shadow: 0 4px 18px rgba(30, 18, 8, 0.28);
}
.site-header > a {
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  align-items: center;
}
.site-header nav a {
  color: #c8a85a;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 14px;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { color: var(--gold); }
.site-header nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold-deep);
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 0 72px;
}

.breadcrumbs {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--terracotta); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* —— Masthead —— */
.masthead {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 8px;
}
.masthead img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(232, 200, 122, 0.35);
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.55rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.subtitle {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 28px;
  max-width: 38em;
}
.subtitle a { color: var(--terracotta); font-weight: 600; }

h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 32px 0 12px;
  border-left: 4px solid var(--gold-deep);
  padding-left: 12px;
}
p { margin-bottom: 14px; }
ul { margin: 0 0 14px 24px; }
li { margin-bottom: 8px; }
a { color: var(--terracotta); }

article > h1 {
  margin-top: 10px;
  margin-bottom: 8px;
}

/* —— Category chips —— */
.chip {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ead4a8;
  color: var(--ink-soft);
  border: 1px solid var(--gold-line);
  text-decoration: none;
}
.chip[data-category="community"] { background: var(--jade); color: var(--cream); border-color: var(--jade); }
.chip[data-category="rules"] { background: var(--wood-mid); color: var(--cream); border-color: var(--wood-mid); }
.chip[data-category="strategy"] { background: var(--terracotta); color: var(--cream); border-color: var(--terracotta); }
.chip[data-category="product"] { background: var(--gold-deep); color: #fff; border-color: var(--gold-deep); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 4px 0;
}
.filters button {
  font: inherit;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: var(--cream-paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.filters button:hover { border-color: var(--gold-deep); transform: translateY(-1px); }
.filters button[aria-pressed="true"] {
  background: var(--wood);
  color: var(--gold);
  border-color: var(--wood);
}

/* —— Post cards with covers —— */
.post-list { list-style: none; margin: 0; display: grid; gap: 18px; }
.post-card {
  background: var(--cream-paper);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: grid;
  grid-template-columns: 1fr;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #dcc28e;
}
.post-card > a.card-cover {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, #2a3d34 0%, #1f5a44 45%, #3a2a18 100%);
  text-decoration: none;
}
.post-card > a.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.post-card:hover > a.card-cover img { transform: scale(1.03); }
.post-card .card-body {
  padding: 18px 22px 20px;
}
.post-card .chip { margin-bottom: 2px; }
.post-card h2 {
  border: 0;
  padding: 0;
  margin: 10px 0 6px;
  font-size: 1.35rem;
  line-height: 1.25;
}
.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
}
.post-card h2 a:hover { color: var(--terracotta); }
.post-card .card-excerpt {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.5;
}
.post-meta {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.empty-state {
  color: var(--muted);
  font-style: italic;
  font-family: var(--font-body);
}

@media (min-width: 640px) {
  .post-card {
    grid-template-columns: 220px 1fr;
    align-items: stretch;
  }
  .post-card > a.card-cover {
    aspect-ratio: auto;
    min-height: 100%;
  }
  .post-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* —— Post hero —— */
.post-hero {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 10px 0 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 184, 136, 0.55);
}

/* —— CTA —— */
.cta-box {
  background:
    linear-gradient(165deg, #4a3420 0%, var(--wood) 55%, #2a1e12 100%);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  margin: 36px 0;
  border: 1px solid rgba(232, 200, 122, 0.28);
  box-shadow: var(--shadow);
}
.cta-box p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--cream);
}
.cta-btn {
  display: inline-block;
  background: var(--gold-deep);
  color: #fff;
  padding: 13px 32px;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin: 4px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
  transition: background 0.15s ease, transform 0.12s ease;
}
.cta-btn:hover { background: #b87530; transform: translateY(-1px); }
.cta-btn.secondary {
  background: var(--jade);
}
.cta-btn.secondary:hover { background: #174836; }

.updates-callout {
  background: var(--jade-soft);
  border: 1px solid var(--jade-mid);
  border-left: 5px solid var(--jade);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 24px 0;
  font-family: var(--font-body);
}
.updates-callout strong { color: var(--jade); }

.release {
  background: var(--cream-paper);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 18px 0;
  box-shadow: var(--shadow-sm);
}
.release h2 { margin-top: 0; }
code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.9em;
  background: #ead4a8;
  padding: 1px 5px;
  border-radius: 4px;
}

.links {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--gold-line);
}
.links h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.links a {
  color: var(--terracotta);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  margin-right: 16px;
  font-size: 0.95rem;
}
.links a:hover { text-decoration: underline; }

footer {
  margin-top: 52px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--gold-line);
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--muted-2);
  text-align: center;
}
footer a { color: var(--muted-2); text-decoration: none; }
footer a:hover { color: var(--terracotta); text-decoration: underline; }

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
}
.footer-social-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(200, 160, 90, 0.45);
  background: rgba(255, 250, 240, 0.55);
  color: var(--wood-mid);
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.footer-social-btn:hover,
.footer-social-btn:focus-visible {
  color: var(--terracotta);
  border-color: rgba(200, 132, 58, 0.7);
  background: rgba(255, 250, 240, 0.9);
  text-decoration: none;
  outline: none;
}
.footer-social-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(232, 200, 122, 0.45);
}
.footer-social-btn:active { transform: scale(0.96); }
.footer-social-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 560px) {
  .site-header { padding: 12px 16px; }
  .site-header nav a { margin-left: 10px; font-size: 0.75rem; }
  .container { padding-top: 28px; }
  .masthead img { width: 56px; height: 56px; border-radius: 12px; }
  h1 { font-size: 1.85rem; }
}
