/* ==========================================================================
   Information on Jhatka — stylesheet
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-elevated: #f4f6f4;
  --bg-inset: #eef1ee;
  --green: #5c755e;
  --green-dark: #384a3a;
  --green-darker: #243125;
  --text: #1c1e1c;
  --text-muted: #565f56;
  --text-faint: #8a928a;
  --line: #e0e4e0;
  --line-strong: #c7cec7;
  --accent-soft: rgba(92, 117, 94, 0.08);
  --max-w: 760px;
  --wide-w: 980px;
  --radius: 3px;
  --serif: "Source Serif 4", "Georgia", "Iowan Old Style", serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", sans-serif;
  --label: "Source Sans 3", sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a {
  color: var(--green-dark);
  text-decoration-color: rgba(92, 117, 94, 0.45);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--green-dark); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: #ffffff;
  padding: 0.6em 1em;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------------------------------- Header ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--green-darker);
}
.brand-mark em {
  color: var(--green);
  font-style: italic;
}
.brand-tag {
  font-family: var(--label);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: none;
}
@media (min-width: 560px) {
  .brand-tag { display: inline; }
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover { color: var(--green-darker); }
.main-nav a[aria-current="page"] {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.5rem 0.7rem;
  font-family: var(--label);
  font-size: 0.8rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-block; }
  .main-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
  }
  .main-nav li { border-top: 1px solid var(--line); }
  .main-nav li:first-child { border-top: none; }
  .main-nav a { display: block; padding: 0.85rem 0.1rem; border-bottom: none; }
}

/* ---------------------------------- Layout ---------------------------------- */

main { display: block; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap--wide {
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 3.5rem 0; }

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}
.hero-eyebrow {
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 1.25rem;
  color: var(--green-darker);
}
.hero-lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  max-width: 42em;
  line-height: 1.55;
  margin: 0 0 1.75rem;
}
.hero-lede strong {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 700;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--label);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--green);
  color: #ffffff;
  background: var(--green);
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:hover { background: var(--green-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--green-darker);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green-dark); background: transparent; }

/* ---------------------------------- Article typography ---------------------------------- */

.article h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 2.9rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 3rem 0 1rem;
  color: var(--green-darker);
}
.article .kicker {
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 3rem 0 0.75rem;
}
.article .lede {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.7;
}
.article h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.75rem 0 1rem;
  color: var(--green-darker);
}
.article p { margin: 0 0 1.15rem; color: var(--text); }
.article p.muted { color: var(--text-muted); }
.article strong { color: var(--green-darker); font-weight: 700; }
.article em { color: var(--green-dark); font-style: italic; }
.article ol, .article ul {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
}
.article li { margin-bottom: 0.5rem; }

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.75rem 0;
}

.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--green-darker);
  border-left: 2px solid var(--green);
  padding: 0.2rem 0 0.2rem 1.35rem;
  margin: 2rem 0;
  line-height: 1.5;
}

.footnote {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------------------------------- Table ---------------------------------- */

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
table.compare {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.94rem;
}
table.compare caption {
  text-align: left;
  font-family: var(--label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0.85rem 1rem 0;
}
table.compare th, table.compare td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
table.compare thead th {
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line-strong);
}
table.compare tbody th {
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
table.compare td.jhatka-col, table.compare th.jhatka-col {
  color: var(--green-darker);
  background: var(--accent-soft);
  font-weight: 700;
}
table.compare tbody tr:last-child td,
table.compare tbody tr:last-child th { border-bottom: none; }

/* ---------------------------------- FAQ accordion ---------------------------------- */

.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0.1rem;
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--green-darker);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .idx {
  font-family: var(--label);
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-right: 0.75rem;
}
.faq-item summary .plus {
  font-family: var(--label);
  color: var(--green);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-answer {
  margin: 0 0 1.5rem;
  padding-right: 2rem;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 56em;
}
.faq-item.short summary { font-size: 1.05rem; }

/* ---------------------------------- Callouts ---------------------------------- */

.callout {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 1.75rem 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}
.callout strong { color: var(--text); }

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 2.75rem 0 3.5rem;
}
.site-footer .wrap { color: var(--text-faint); font-size: 0.85rem; line-height: 1.65; }
.site-footer p { margin: 0 0 0.9rem; max-width: 62em; }
.site-footer a { color: var(--text-muted); }
.footer-copy { color: var(--text-faint); font-family: var(--label); font-size: 0.78rem; }
