/*
Theme Name: JP Tax Guide Theme
Theme URI: https://jptaxguide.com
Author: JP Tax Guide Editorial Team
Version: 1.8.0
Description: Pure Minimalist Editorial Theme for JP Tax Guide - Clear & Simple Guides to Japan Taxes, Pension Refunds & Departure.
*/

/* Reset & Global Reading Standards with Seamless 200px Grid */
body {
  background-color: #fafafa;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.045) 1px, transparent 1px);
  background-size: 200px 200px;
  background-attachment: fixed;
  color: #1a202c;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Seamless Header */
header {
  background-color: rgba(250, 250, 250, 0.85) !important;
  backdrop-filter: blur(8px);
}

/* Crisp Editorial Typography Directly on Grid */
.entry-content {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #2d3748;
}

.entry-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

.entry-content h2 {
  font-size: 1.625rem;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  line-height: 1.35;
}

.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1e293b;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content a {
  color: #8c7b28;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.entry-content a:hover {
  color: #b3a243;
}

.entry-content ul {
  list-style-type: disc;
  padding-left: 1.75rem;
  margin-bottom: 1.5rem;
}

.entry-content ol {
  list-style-type: decimal;
  padding-left: 1.75rem;
  margin-bottom: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content strong {
  color: #0f172a;
  font-weight: 700;
}

.entry-content hr {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 3rem 0;
}

/* Callout Box without Heavy Cards */
.entry-content blockquote {
  padding: 1.125rem 1.375rem;
  margin: 2rem 0;
  background-color: rgba(250, 249, 245, 0.85);
  border: 1px solid rgba(179, 162, 67, 0.35);
  border-radius: 4px;
  color: #334155;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.entry-content blockquote p {
  margin-bottom: 0;
}

/* Seamless Tables */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.7);
}

.entry-content th {
  background-color: rgba(248, 250, 252, 0.9);
  color: #0f172a;
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.entry-content td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #334155;
}

.entry-content pre {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #334155;
  margin: 1.75rem 0;
}
