/* Proof of Work — Duolingo-blog-tier theme (v4 redesign, 2026-10-15)
   White, bright, chunky, friendly. Rounded Nunito type, Duolingo palette,
   generous whitespace, zero dark-slop. Body text is dark ONLY (high contrast). */

:root {
  --white: #ffffff;
  --bg-soft: #f7f7f7;
  --text: #3c3c3c;
  --text-body: #4b4b4b;
  --muted: #777777;
  --faint: #afafaf;
  --border: #e5e5e5;
  --green: #58cc02;
  --green-dark: #58a700;
  --green-light: #e9fbd3;
  --blue: #1cb0f6;
  --blue-dark: #1899d6;
  --blue-light: #ddf4ff;
  --yellow: #ffc800;
  --coral: #ff9600;
  --radius: 16px;
  --font: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text-body);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-dark); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { color: var(--text); line-height: 1.25; font-weight: 900; letter-spacing: -0.3px; }
h1 { font-size: 2.6rem; margin: 0 0 1rem; }
h2 { font-size: 1.7rem; margin: 2.6rem 0 1rem; }
h3 { font-size: 1.2rem; font-weight: 800; }

.container { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.container.wide { max-width: 1140px; }

/* ---------- kicker / byline ---------- */
.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}
.byline { color: var(--muted); font-size: 0.92rem; font-weight: 600; margin: 0 0 0.4rem; }
.byline .author { color: var(--text); font-weight: 800; }
.dateline { color: var(--faint); font-size: 0.9rem; font-weight: 600; margin: 0 0 2rem; }

/* ---------- chunky buttons ---------- */
.btn-green {
  display: inline-block;
  background: var(--green);
  color: #fff !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--green-dark);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
  text-decoration: none !important;
}
.btn-green:hover { filter: brightness(1.06); transform: translateY(2px); box-shadow: 0 2px 0 var(--green-dark); }
.btn-green:active { transform: translateY(4px); box-shadow: 0 0 0 var(--green-dark); }

/* ---------- nav ---------- */
.site-nav { background: var(--white); border-bottom: 2px solid var(--border); }
.site-nav .container.wide { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { font-weight: 900; color: var(--text); font-size: 1.3rem; letter-spacing: -0.3px; text-decoration: none !important; }
.brand span { color: var(--green); }
.nav-links a { color: var(--muted); margin-left: 28px; font-size: 0.98rem; font-weight: 800; text-decoration: none !important; }
.nav-links a:hover { color: var(--green-dark); }

/* ---------- brand intro ---------- */
.brand-intro { padding: 64px 0 12px; max-width: 720px; }
.brand-intro .lede { font-size: 1.2rem; color: var(--text-body); font-weight: 600; margin: 0; }

/* ---------- editor's pick hero ---------- */
.editors-pick { padding: 36px 0 8px; }
.pick-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 2px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  text-decoration: none !important;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pick-card:hover { box-shadow: 0 16px 44px rgba(60, 60, 60, 0.10); transform: translateY(-3px); }
.pick-card img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; background: var(--bg-soft); }
.pick-body { padding: 44px 44px 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.pick-body h2 { font-size: 2.1rem; margin: 0 0 0.8rem; }
.pick-body .spoiler { color: var(--text-body); font-weight: 600; margin: 0 0 1.8rem; font-size: 1.05rem; }

/* ---------- section titles + card grid ---------- */
.section-title { font-size: 1.45rem; margin: 3.2rem 0 1.4rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; padding: 0 0 20px; }
.card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: 0 12px 32px rgba(60, 60, 60, 0.09); transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bg-soft); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.card-body .byline { margin: 0; font-size: 0.85rem; }
.card h3 { margin: 0; font-size: 1.25rem; }
.card h3 a { color: var(--text); text-decoration: none !important; }
.card h3 a:hover { color: var(--blue-dark); }
.card-body p { color: var(--text-body); font-size: 0.98rem; font-weight: 600; margin: 0; }
.pill {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--blue-dark); background: var(--blue-light);
  padding: 6px 14px; border-radius: 20px;
}
.pill.soon { color: var(--muted); background: var(--bg-soft); }

/* ---------- playful deal band ---------- */
.deal-band {
  background: var(--blue);
  border-radius: 24px;
  padding: 52px 48px;
  margin: 56px 0 72px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.deal-band::after {
  content: "✎";
  position: absolute; right: 36px; top: 18px;
  font-size: 5rem; opacity: 0.18; transform: rotate(12deg);
}
.deal-band h2 { color: #fff; margin: 0 0 0.8rem; font-size: 1.9rem; }
.deal-band p { margin: 0; font-size: 1.12rem; font-weight: 600; max-width: 640px; color: #fff; }
.deal-band strong { background: var(--yellow); color: var(--text); padding: 2px 10px; border-radius: 8px; }

/* ---------- article ---------- */
.article { padding: 56px 0 72px; }
.article .hero-art { width: 100%; border-radius: 20px; margin: 0 0 2.4rem; display: block; background: var(--bg-soft); }
.article p { margin: 0 0 1.35rem; }
.article ul, .article ol { margin: 0 0 1.35rem; padding-left: 1.5rem; }
.article li { margin-bottom: 0.6rem; }
.inline-art { margin: 2.6rem 0; }
.inline-art img { width: 100%; border-radius: var(--radius); display: block; background: var(--bg-soft); }

.answer-capsule {
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin: 0 0 1.5rem;
  font-size: 1.04rem;
  color: var(--text);
  font-weight: 600;
}
.answer-capsule strong { font-weight: 900; }

.table-wrap { border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: 0 0 1.6rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.96rem; margin: 0; }
th, td { text-align: left; padding: 12px 16px; }
th { background: var(--green); color: #fff; font-weight: 800; }
td { border-top: 2px solid var(--border); color: var(--text-body); font-weight: 600; }
tr:nth-child(even) td { background: var(--bg-soft); }

.callout {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 2.2rem 0;
  color: var(--text);
}
.callout strong { font-weight: 900; }
.callout ol { margin-bottom: 0; }

.faq {
  background: var(--bg-soft);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin: 2.4rem 0;
}
.faq h3 { margin: 0 0 1.2rem; font-size: 1.3rem; }
.faq p { font-size: 0.99rem; }
.faq p strong { color: var(--text); }

/* ---------- footer ---------- */
.site-footer { border-top: 2px solid var(--border); background: var(--white); padding: 40px 0; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--green-dark); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  body { font-size: 18px; }
  h1 { font-size: 2rem; }
  .pick-card { grid-template-columns: 1fr; }
  .pick-card img { min-height: 0; aspect-ratio: 16 / 9; }
  .pick-body { padding: 30px 28px 34px; }
  .pick-body h2 { font-size: 1.6rem; }
  .deal-band { padding: 36px 30px; margin: 44px 0 56px; }
  .brand-intro { padding: 44px 0 8px; }
}
