:root {
  --bg: #faf7f0;
  --bg-alt: #f3ecdc;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-muted: #7a7a7a;
  --accent: #d84315;
  --accent-dark: #b3361c;
  --paper: #ffffff;
  --line: #e4dccb;
  --line-dark: #c9bfa9;
  --highlight: #ffe9a8;
  --success: #2e7d32;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  background: var(--bg); color: var(--ink);
  line-height: 1.7; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

header {
  border-bottom: 1px solid var(--line-dark);
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px; font-weight: 800; color: var(--ink);
  text-decoration: none; letter-spacing: -0.02em;
}
.logo .dot { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 15px;
  font-family: 'Inter', system-ui, sans-serif; font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }
@media (max-width: 640px) { .nav-links { display: none; } }

.breadcrumb {
  padding: 16px 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--ink-muted);
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; }

.hero-article { padding: 24px 0 32px; text-align: left; }
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.015em; margin-bottom: 18px;
}
h1 .accent { color: var(--accent); font-style: italic; }
.lede {
  font-size: 19px; color: var(--ink-soft);
  max-width: 780px; margin-bottom: 20px;
}
.today-strip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line-dark);
  border-radius: 999px; padding: 8px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--ink-soft);
}
.today-strip strong { color: var(--ink); font-weight: 600; }
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.answer-hero {
  background: linear-gradient(135deg, #fff9ec 0%, #fff3d6 100%);
  border: 1.5px solid #e8d08a;
  border-radius: 16px;
  padding: 40px 36px;
  margin: 16px 0 48px;
  position: relative;
  overflow: hidden;
}
.answer-hero::before {
  content: attr(data-num); position: absolute;
  right: -20px; bottom: -50px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 240px; font-weight: 900;
  color: rgba(216, 67, 21, 0.06);
  line-height: 1; pointer-events: none;
}
.answer-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.answer-date {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 800; line-height: 1.05;
  color: var(--ink); margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.answer-sub {
  font-size: 18px; color: var(--ink-soft);
  font-style: italic; margin-bottom: 22px;
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  border: none; padding: 10px 20px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.copy-btn:hover { background: var(--accent); }
.copy-btn.copied { background: var(--success); }

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800; letter-spacing: -0.01em;
  margin: 48px 0 16px;
}
h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px; font-weight: 700;
  margin: 28px 0 10px;
}
p { margin-bottom: 16px; color: var(--ink-soft); }
p strong { color: var(--ink); font-weight: 600; }

.widget {
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 28px;
  margin: 24px 0;
}
.widget-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px; font-weight: 700;
  margin-bottom: 6px;
}
.widget-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--ink-muted);
  margin-bottom: 20px;
}

.formats-grid { display: grid; gap: 10px; }
.fmt-row {
  display: grid; grid-template-columns: 180px 1fr auto;
  align-items: center; gap: 14px;
  padding: 12px 14px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.fmt-country {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.fmt-flag { font-size: 18px; }
.fmt-value {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 15px; color: var(--ink);
  font-weight: 500;
}
.fmt-value .fmt-note { color: var(--ink-muted); font-size: 12px; margin-left: 6px; font-family: 'Inter', sans-serif; }
.fmt-copy {
  background: transparent; border: 1px solid var(--line-dark);
  padding: 6px 10px; border-radius: 6px;
  font-family: 'Inter', sans-serif; font-size: 12px;
  color: var(--ink-soft); cursor: pointer;
  transition: all 0.15s;
}
.fmt-copy:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.fmt-copy.copied { background: var(--success); color: #fff; border-color: var(--success); }
@media (max-width: 560px) {
  .fmt-row { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }
  .fmt-country { grid-column: 1 / -1; }
  .fmt-value { grid-column: 1; }
  .fmt-copy { grid-column: 2; grid-row: 2; }
}

.interval-picker {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.interval-picker label {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted);
}
.interval-picker select, .interval-picker input {
  padding: 10px 14px;
  border: 1.5px solid var(--line-dark);
  border-radius: 8px; background: var(--bg);
  font-family: 'Iowan Old Style', Georgia, serif;
  font-size: 16px; color: var(--ink);
}
.interval-picker input { width: 100px; }

.timeline {
  display: grid; gap: 2px;
  margin-top: 20px;
  border-radius: 10px; overflow: hidden;
}
.tl-row {
  display: grid; grid-template-columns: 1fr auto auto;
  padding: 14px 18px;
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  align-items: center; gap: 16px;
}
.tl-row.now { background: var(--ink); color: #fff; font-weight: 600; }
.tl-row.target {
  background: linear-gradient(90deg, #fff9ec, #fff3d6);
  border-left: 4px solid var(--accent);
  font-weight: 700;
}
.tl-label { font-weight: 600; }
.tl-date { font-family: 'Iowan Old Style', Georgia, serif; font-size: 16px; }
.tl-weekday { color: var(--ink-muted); font-size: 13px; font-style: italic; min-width: 90px; text-align: right; }
.tl-row.now .tl-weekday { color: rgba(255,255,255,0.7); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.stat .v {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px; font-weight: 800;
  color: var(--accent); line-height: 1;
  margin-bottom: 6px;
}
.stat .l {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted);
}

.related {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
  margin-top: 64px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.rel-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.15s;
}
.rel-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 16px -6px rgba(216, 67, 21, 0.2);
}
.rel-card .n {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px; font-weight: 800;
  color: var(--accent); display: block;
}
.rel-card .l {
  font-family: 'Inter', sans-serif;
  font-size: 11px; color: var(--ink-muted);
  font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.05em;
}

.faq-list { margin-top: 20px; }
.faq {
  border-bottom: 1px solid var(--line-dark);
  padding: 20px 0;
}
.faq summary {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px; font-weight: 700;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between;
  align-items: center; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 26px; color: var(--accent);
  font-weight: 300; transition: transform 0.2s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 10px; }

footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 32px;
}
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }
footer h4 {
  color: #fff; font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 14px;
}
footer a {
  color: rgba(255,255,255,0.65); text-decoration: none;
  display: block; padding: 4px 0;
}
footer a:hover { color: #fff; }
.foot-bot {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px; text-align: center;
  color: rgba(255,255,255,0.5);
}

/* INDEX-SPECIFIC */
.hero {
  padding: 72px 0 48px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(216, 67, 21, 0.06), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(216, 67, 21, 0.04), transparent 50%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero h1 { text-align: center; }
.hero .lede { max-width: 680px; margin: 0 auto 36px; text-align: center; font-size: 19px; }

.calc-card {
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  padding: 36px;
  margin: -24px auto 64px;
  max-width: 720px;
  box-shadow: 0 20px 60px -20px rgba(26, 20, 16, 0.15);
  position: relative;
  z-index: 2;
}
.calc-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px; font-weight: 700;
  margin-bottom: 20px; text-align: center;
}
.calc-row {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 14px; align-items: end; margin-bottom: 20px;
}
@media (max-width: 640px) { .calc-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 6px;
}
.field input, .field select {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--line-dark);
  border-radius: 8px; background: var(--bg);
  font-family: 'Iowan Old Style', Georgia, serif;
  font-size: 18px; color: var(--ink);
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--accent);
}
.calc-sep {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px; font-style: italic;
  color: var(--ink-muted); padding: 0 4px 14px;
  text-align: center;
}
.calc-result {
  background: linear-gradient(135deg, #fff9ec, #fff3d6);
  border: 1px solid #e8d08a;
  border-radius: 10px;
  padding: 24px; text-align: center;
  margin-top: 8px;
}
.calc-result .label {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 6px;
}
.calc-result .date-big {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800; line-height: 1.1;
  color: var(--ink); margin-bottom: 4px;
}
.calc-result .weekday {
  font-size: 16px; color: var(--ink-soft); font-style: italic;
}

section { padding: 64px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.pop-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 18px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.pop-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.25s;
}
.pop-card:hover {
  border-color: var(--line-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -10px rgba(0,0,0,0.12);
}
.pop-card:hover::before { transform: scaleY(1); }
.pop-card .num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px; font-weight: 800; line-height: 1;
  color: var(--accent); margin-bottom: 4px;
}
.pop-card .lbl {
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--ink-soft); font-weight: 500;
}
.pop-card .arrow {
  position: absolute; top: 18px; right: 18px;
  color: var(--ink-muted); font-size: 14px;
}

.all-days {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tabs {
  display: flex; gap: 8px; justify-content: center;
  margin-bottom: 30px; flex-wrap: wrap;
}
.tab {
  background: transparent;
  border: 1px solid var(--line-dark);
  padding: 8px 18px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft); cursor: pointer;
  transition: all 0.15s;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}
.day-link {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 500;
  transition: all 0.15s;
}
.day-link:hover {
  background: var(--ink); color: #fff;
  border-color: var(--ink);
  transform: translateY(-1px);
}
.day-link .n { font-weight: 700; }
.day-link .u {
  font-size: 11px; color: var(--ink-muted);
  margin-top: 2px; display: block;
}
.day-link:hover .u { color: rgba(255,255,255,0.7); }

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.how-card {
  padding: 28px;
  border-left: 3px solid var(--accent);
  background: var(--paper);
  border-radius: 0 10px 10px 0;
}
.how-card .step {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.how-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px; margin-bottom: 10px;
}
.how-card p { color: var(--ink-soft); font-size: 16px; }
