/* PassPoli - friendly cartoonish v2.
   White base, thick rounded ink outlines, hard offset shadows,
   cheerful palette, Baloo 2 display type. Playful but credible.
   No gradients. */

:root {
  --ink: #1c1c1c;
  --ink-soft: #333333;
  --muted: #6f6f6f;
  --paper: #ffffff;
  --wash: #fafafa;
  --sky: #4aa8ff;
  --sun: #ffd23c;
  --coral: #ff6b5e;
  --leaf: #3fbf6f;
  --sun-tint: #fff6d8;
  --blue-tint: #e8f3ff;
  --line-w: 3px;
  --radius-card: 22px;
  --radius-pill: 999px;
  --shadow-pop: 4px 4px 0 var(--ink);
  --shadow-pop-lg: 6px 6px 0 var(--ink);
  --font-display: "Baloo 2", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 22px;
}

a { color: var(--ink); }
a:hover { color: #1a6fd4; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: var(--line-w) solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-emoji {
  font-size: 84px;
  line-height: 1;
  filter: drop-shadow(0 8px 0 rgba(28, 28, 28, 0.10));
  flex: none;
  transition: transform 0.2s ease;
}
.brand:hover .brand-emoji { transform: rotate(-6deg) scale(1.05); }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand-stack { display: flex; flex-direction: column; line-height: 1.2; }

/* Nav pills */
.main-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 2.5px solid var(--ink);
  background: var(--paper);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { background: var(--sun); color: var(--ink); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.main-nav a.active { background: var(--ink); color: #fff; box-shadow: var(--shadow-pop); }
.main-nav a.active:hover { background: var(--ink); color: #fff; transform: none; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 52px 18px 40px;
  margin: 0 -22px 10px;
}
.hero-mountain {
  width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 6px;
  filter: drop-shadow(0 10px 0 rgba(28, 28, 28, 0.08));
}
.hero-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.2rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 20px;
}
.hero .btn {
  font-size: 1.15rem;
  padding: 14px 46px;
}

/* ---------- Subscribe ---------- */
.subscribe-card {
  background: var(--paper);
  border: var(--line-w) solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-pop);
  padding: 34px 30px;
  margin: 48px 0 12px;
  text-align: center;
}
.subscribe-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  margin: 0 0 8px;
}
.subscribe-card > p {
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.subscribe-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}
.subscribe-form input[type="email"] {
  flex: 1 1 240px;
  max-width: 360px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Sections ---------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 44px 0 4px;
  padding-bottom: 12px;
  border-bottom: var(--line-w) solid var(--ink);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-head h2::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 18px 0 0 var(--sky), 36px 0 0 var(--sun);
  flex: none;
  margin-right: 32px;
}
.section-head a {
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 2.5px solid var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.section-head a:hover { background: var(--sky); color: var(--ink); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }

/* ---------- Post cards ---------- */
.post-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 22px; }
.post-list li {
  background: var(--paper);
  border: var(--line-w) solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-pop);
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-list li:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-pop-lg); }
.post-list h3 { margin: 0 0 6px; font-size: 1.35rem; font-family: var(--font-display); font-weight: 800; }
.post-list h3 a { text-decoration: none; color: var(--ink); }
.post-list h3 a:hover { color: #1a6fd4; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 3px; }
.meta { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.excerpt { margin: 8px 0 0; color: var(--ink-soft); }
.post-thumb {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 2.5px solid var(--ink);
  margin: 14px 0 4px;
  display: block;
}

/* ---------- News list ---------- */
.disclaimer {
  background: var(--sun-tint);
  border: var(--line-w) solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-pop);
  padding: 22px 24px;
  margin: 28px 0;
  font-size: 0.95rem;
}
.disclaimer strong {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  background: var(--coral);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 4px 16px;
}
.news-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.news-list li {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  padding: 16px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.news-list li:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-pop); }
.news-list .headline { font-size: 1.08rem; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.005em; }
.news-list .headline a { text-decoration: none; color: var(--ink); }
.news-list .headline a:hover { color: #1a6fd4; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 3px; }
.outlet {
  display: inline-block;
  background: var(--sun);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 3px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  margin-right: 10px;
}
.news-list li:nth-child(4n+2) .outlet { background: var(--sky); }
.news-list li:nth-child(4n+3) .outlet { background: var(--coral); }
.news-list li:nth-child(4n+4) .outlet { background: var(--leaf); }

/* ---------- Cheerful empty states ---------- */
.empty-note {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--wash);
  border: 2.5px dashed var(--ink);
  border-radius: var(--radius-card);
  padding: 26px;
  text-align: center;
  margin: 18px 0;
}

/* ---------- Article ---------- */
.article h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 30px 0 8px;
}
.article-body { margin-top: 18px; }
.article-body img { max-width: 100%; height: auto; border-radius: 16px; border: 2.5px solid var(--ink); }
.hashtags { margin-top: 20px; }
.hashtags a {
  display: inline-block;
  background: var(--blue-tint);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 2px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  margin: 0 6px 6px 0;
  color: var(--ink);
}
.hashtags a:hover { background: var(--sky); color: var(--ink); }

/* ---------- Comments ---------- */
.comments { margin-top: 48px; border-top: var(--line-w) solid var(--ink); padding-top: 12px; }
.comments > h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.comment {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  padding: 18px 22px;
  margin: 16px 0;
}
.comment .who { font-weight: 800; font-family: var(--font-display); font-size: 1.05rem; }
.comment .when { color: var(--muted); font-size: 0.82rem; margin-left: 10px; font-weight: 600; }
.comment p { margin: 8px 0 0; }
.comment-policy {
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--sun-tint);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-card);
  padding: 14px 20px;
}
.comment-form { margin-top: 20px; }
.form-row { margin-bottom: 14px; }
label { display: block; font-weight: 800; margin-bottom: 6px; font-size: 0.95rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 12px 18px;
  font-size: 1rem;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(74, 168, 255, 0.35);
}
textarea { min-height: 120px; resize: vertical; }

/* Chunky friendly buttons */
button, .btn {
  background: var(--sun);
  color: var(--ink);
  border: var(--line-w) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pop);
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-display);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
button:hover, .btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-pop-lg); color: var(--ink); }
button:active, .btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn-sky { background: var(--sky); }
.btn-leaf { background: var(--leaf); }
.btn-danger { background: var(--coral); }
.btn-small { padding: 8px 20px; font-size: 0.88rem; box-shadow: 3px 3px 0 var(--ink); }
.btn-small:hover { box-shadow: 5px 5px 0 var(--ink); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.notice {
  background: var(--paper);
  border: var(--line-w) solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-pop);
  padding: 14px 20px;
  margin: 16px 0;
  font-weight: 600;
}
.notice.warn { background: var(--sun-tint); }

/* ---------- Admin ---------- */
.login-box {
  max-width: 420px;
  margin: 48px auto;
  background: var(--paper);
  border: var(--line-w) solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow-pop-lg);
  padding: 36px 32px;
}
.login-box h1 { margin-top: 0; font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; }
.tabs { display: flex; gap: 10px; margin: 20px 0; flex-wrap: wrap; }
.tabs a {
  padding: 9px 22px;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  background: var(--paper);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tabs a:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); color: var(--ink); }
.tabs a.active { background: var(--ink); color: #fff; box-shadow: var(--shadow-pop); }
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0;
  font-size: 0.95rem;
  border: var(--line-w) solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--ink);
  vertical-align: top;
}
.admin-table tr:last-child th, .admin-table tr:last-child td { border-bottom: none; }
.admin-table th { background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 800; }
.admin-actions { white-space: nowrap; }

/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 28px 0; }
.pager a {
  text-decoration: none;
  font-weight: 800;
  font-family: var(--font-display);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 26px;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pop);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pager a:hover { background: var(--sun); color: var(--ink); transform: translate(-2px, -2px); box-shadow: var(--shadow-pop-lg); }
.pager:empty { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 64px;
  background: var(--ink);
  color: #fff;
  border-top: 4px solid var(--sun);
  border-radius: 32px 32px 0 0;
  padding: 42px 0 36px;
  font-size: 0.9rem;
}
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: #fff; margin: 0; }
.footer-sub {
  color: var(--sun);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 2px 0 12px;
}
.footer-note, .footer-copy { margin: 6px 0; color: #d9d9d9; }
.footer-note { max-width: 60ch; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand-emoji { font-size: 60px; }
  .brand-text { font-size: 1.5rem; }
  .hero { padding: 40px 16px 32px; }
  .hero-mountain { width: 160px; }
  .hero-word { font-size: 2.3rem; }
  .header-inner { gap: 10px; }
  .main-nav a { padding: 7px 16px; font-size: 0.88rem; }
  .post-list li { padding: 20px; }
  .article h1 { font-size: 1.8rem; }
  .admin-actions a, .admin-actions .btn { display: inline-block; margin: 3px 4px 3px 0; }
  .admin-table { font-size: 0.88rem; }
  :root { --shadow-pop: 3px 3px 0 var(--ink); --shadow-pop-lg: 5px 5px 0 var(--ink); }
}
