/* podrumjanko.com — The Traditionalist
   Burgundy · Antique gold · Cream · Serif scholarly voice */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,700&family=Noto+Serif+Thai:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --burgundy: #7d1e2e;
  --burgundy-dark: #5a1520;
  --burgundy-soft: #f0e0e2;
  --gold: #b8973d;
  --gold-dark: #8a6f26;
  --gold-soft: #f5ebd0;
  --cream: #f8f2e5;
  --cream-warm: #f2ead4;
  --paper: #fbf6ea;
  --ink: #2a1810;
  --ink-soft: #4a3628;
  --muted: #8a7358;
  --line: #d8ccae;
  --card: #fdfaf1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Serif Thai', 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Noto Serif Thai', serif;
  color: var(--burgundy);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: 2.75rem; margin-bottom: 1rem; font-weight: 700; letter-spacing: -0.005em; }
h2 {
  font-size: 1.8rem;
  margin: 3rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
  position: relative;
  font-style: italic;
  font-weight: 700;
}
h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--burgundy);
}
h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
  color: var(--burgundy-dark);
  font-weight: 600;
}
h4 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--burgundy-dark);
  font-weight: 600;
  font-style: italic;
}
p { margin-bottom: 1.15rem; }
strong { color: var(--burgundy-dark); font-weight: 600; }
em { font-style: italic; color: var(--ink-soft); }

/* Drop cap for first paragraph after h1 */
article > p:first-of-type::first-letter,
article > .lede + p::first-letter,
.dropcap::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--burgundy);
  float: left;
  line-height: 0.85;
  margin: 0.35rem 0.75rem 0 0;
  padding: 0;
}

a {
  color: var(--burgundy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold);
  transition: color 0.15s;
}
a:hover {
  color: var(--gold-dark);
  text-decoration-color: var(--burgundy);
}

/* Masthead */
.masthead {
  background: var(--card);
  border-bottom: 3px double var(--gold);
}
.masthead-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.25rem;
  text-align: center;
}
.masthead-top {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Playfair Display', serif;
}
.masthead-top-right { font-style: italic; text-transform: none; letter-spacing: normal; font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; }
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--burgundy);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-block;
  border: none;
}
.logo-ornament {
  color: var(--gold);
  margin: 0 0.5rem;
  font-size: 1.5rem;
  vertical-align: middle;
}
.logo-tagline {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
  font-style: italic;
  margin-top: 0.25rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

nav {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.15rem;
  border-bottom: 2px solid transparent;
}
nav a:hover {
  color: var(--burgundy);
  border-bottom-color: var(--gold);
}
nav a[aria-current] {
  color: var(--burgundy);
  border-bottom-color: var(--burgundy);
}

/* Hero */
.hero {
  background: var(--cream);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}
.hero-kicker {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: var(--gold-dark);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.hero-kicker::before,
.hero-kicker::after {
  content: '❦';
  color: var(--gold);
  margin: 0 0.75rem;
  font-size: 1rem;
}
.hero h1 {
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero-lede {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 720px;
  font-style: italic;
}
.hero img {
  max-width: 100%;
  height: auto;
  margin-top: 2rem;
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(122, 30, 46, 0.12);
}

/* Layout */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.layout {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 3.5rem;
  align-items: start;
}
article { min-width: 0; }

/* Breadcrumbs */
.crumbs {
  font-family: 'Playfair Display', serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--burgundy); }
.crumbs span[aria-current] { color: var(--burgundy); font-style: italic; }

/* Ornamental divider */
.ornament {
  text-align: center;
  color: var(--gold);
  font-size: 1.4rem;
  margin: 2.5rem 0;
  letter-spacing: 1rem;
}
.ornament::before { content: '❦ ❧ ❦'; }

/* TOC */
.toc {
  background: var(--cream-warm);
  border: 1px solid var(--gold);
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
  position: relative;
}
.toc::before,
.toc::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid var(--gold);
}
.toc::before { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.toc::after { bottom: 6px; right: 6px; border-left: none; border-top: none; }
.toc-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--burgundy);
  margin-bottom: 1.25rem;
  text-align: center;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.toc-title::before,
.toc-title::after {
  content: '·';
  margin: 0 0.85rem;
  color: var(--gold);
  font-size: 1.5rem;
  vertical-align: middle;
}
.toc ol {
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 2.5rem;
  column-rule: 1px solid var(--line);
}
.toc li {
  counter-increment: toc;
  padding: 0.35rem 0 0.35rem 2rem;
  position: relative;
  break-inside: avoid;
  font-size: 0.95rem;
  font-family: 'Cormorant Garamond', serif;
}
.toc li::before {
  content: counter(toc, upper-roman);
  position: absolute;
  left: 0;
  top: 0.35rem;
  color: var(--gold-dark);
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 0.82rem;
  font-style: italic;
  min-width: 1.75rem;
}
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--burgundy); }

/* Pull quote */
.pullquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--burgundy);
  border-left: 4px solid var(--gold);
  padding: 1rem 0 1rem 2rem;
  margin: 2rem 0;
  position: relative;
}
.pullquote::before {
  content: '"';
  position: absolute;
  left: -0.75rem;
  top: -1.5rem;
  font-size: 5rem;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}

/* Callout */
.callout {
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.65;
}
.callout-label {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--burgundy);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-style: normal;
}

.warning-box {
  background: var(--burgundy-soft);
  border-left: 4px solid var(--burgundy);
  padding: 1.35rem 1.6rem;
  margin: 1.75rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
}
.warning-box-label {
  color: var(--burgundy-dark);
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: block;
  font-style: normal;
}

/* Sidebar */
aside.sidebar {
  position: sticky;
  top: 2rem;
  font-family: 'Cormorant Garamond', serif;
}
.sidebar-block {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}
.sidebar-block h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 1rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.15em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.65rem;
  margin-top: 0;
}
.sidebar-block ul { list-style: none; }
.sidebar-block li {
  padding: 0.35rem 0;
  font-size: 0.98rem;
  border-bottom: 1px dotted var(--line);
}
.sidebar-block li:last-child { border-bottom: none; }
.sidebar-block a { color: var(--ink); text-decoration: none; }
.sidebar-block a:hover { color: var(--burgundy); }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.98rem;
  font-family: 'Cormorant Garamond', 'Noto Serif Thai', serif;
}
th, td { padding: 0.9rem 1.15rem; text-align: left; border-bottom: 1px solid var(--line); }
th {
  background: var(--burgundy);
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--gold);
}
tbody tr:nth-child(even) { background: var(--cream); }

/* Lists */
ul.body-list, ol.body-list { margin: 1rem 0 1.5rem 1.75rem; }
ul.body-list li, ol.body-list li { margin-bottom: 0.6rem; padding-left: 0.5rem; }
ul.body-list li::marker { color: var(--gold-dark); }
ol.body-list li::marker { color: var(--burgundy); font-weight: 600; font-family: 'Playfair Display', serif; }

/* Enumerated section (roman numeral list) */
.enum {
  list-style: none;
  counter-reset: enum;
  margin: 2rem 0;
}
.enum li {
  counter-increment: enum;
  padding: 1rem 0 1rem 4rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
}
.enum li:last-child { border-bottom: none; }
.enum li::before {
  content: counter(enum, upper-roman) '.';
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold-dark);
  font-size: 1.4rem;
  font-weight: 600;
  min-width: 3rem;
}
.enum li strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--burgundy);
  font-size: 1.08rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

/* Hero image on secondaries */
.article-hero {
  width: 100%;
  height: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(122, 30, 46, 0.1);
}

/* FAQ */
.faq { margin: 2.5rem 0; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0;
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  padding: 1.15rem 3rem 1.15rem 0;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--burgundy);
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold-dark);
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq details > *:not(summary) {
  padding: 0.15rem 0 1.15rem;
  font-family: 'Cormorant Garamond', 'Noto Serif Thai', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* Author bio */
.author-bio {
  background: var(--cream);
  border-top: 3px double var(--gold);
  border-bottom: 3px double var(--gold);
  padding: 2.25rem 2rem;
  margin: 3.5rem 0 2rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: center;
}
.author-bio img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 3px solid var(--gold);
  padding: 3px;
  background: var(--paper);
}
.author-label {
  font-family: 'Playfair Display', serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--gold-dark);
  letter-spacing: 0.2em;
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.author-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--burgundy);
  font-weight: 700;
  margin-bottom: 0.2rem;
  font-style: italic;
}
.author-role {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
  font-style: italic;
}
.author-bio p { font-family: 'Cormorant Garamond', 'Noto Serif Thai', serif; font-size: 1.05rem; margin-bottom: 0; line-height: 1.7; }

/* Related */
.related {
  background: var(--cream-warm);
  padding: 2.25rem 2rem;
  margin: 3rem 0 1rem;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.related h3 {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--gold-dark);
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
  font-weight: 500;
  text-align: center;
  margin-top: 0;
}
.related h3::before,
.related h3::after { content: '❦'; color: var(--gold); margin: 0 1rem; font-size: 1rem; }
.related ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.related li {
  border-left: 2px solid var(--gold);
  padding-left: 1.15rem;
}
.related a {
  font-family: 'Playfair Display', serif;
  color: var(--burgundy);
  font-weight: 600;
  font-style: italic;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.4rem;
  text-decoration: none;
}
.related a:hover { color: var(--gold-dark); }
.related-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Disclaimer */
.disclaimer {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--burgundy);
  padding: 1.75rem 2rem;
  margin: 3rem 0 1.5rem;
  font-family: 'Cormorant Garamond', 'Noto Serif Thai', serif;
  font-size: 1rem;
  line-height: 1.75;
}
.disclaimer-label {
  color: var(--burgundy);
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
  display: block;
}
.disclaimer strong { color: var(--ink); }
.disclaimer a { color: var(--burgundy); text-decoration-color: var(--gold); }

/* Footer */
footer {
  background: var(--burgundy);
  color: var(--cream);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: 4rem;
  border-top: 4px double var(--gold);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
footer h5 {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  font-weight: 500;
}
footer p, footer li {
  font-family: 'Cormorant Garamond', 'Noto Serif Thai', serif;
  font-size: 1rem;
  color: rgba(248, 242, 229, 0.85);
}
footer ul { list-style: none; }
footer li { margin-bottom: 0.4rem; }
footer a { color: rgba(248, 242, 229, 0.85); text-decoration: none; border-bottom: 1px solid transparent; }
footer a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.footer-legal {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184, 151, 61, 0.3);
  font-family: 'Playfair Display', serif;
  font-size: 0.78rem;
  color: rgba(248, 242, 229, 0.55);
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-style: italic;
}

/* Responsive */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  aside.sidebar { position: static; }
  .toc ol { columns: 1; column-rule: none; }
  .hero h1 { font-size: 2.35rem; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }
  article > p:first-of-type::first-letter,
  .dropcap::first-letter { font-size: 3.5rem; }
}
@media (max-width: 768px) {
  main { padding: 2rem 1rem; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .masthead-inner { padding: 1rem; }
  .masthead-top { flex-direction: column; gap: 0.35rem; }
  .logo { font-size: 1.9rem; }
  nav ul { gap: 1rem; }
  nav a { font-size: 0.82rem; }
  .author-bio { grid-template-columns: 1fr; text-align: center; }
  .author-bio img { margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-lede { font-size: 1.15rem; }
}
