/*
Theme Name: Life With Points
Theme URI: https://lifewithpoints.com
Author: Bryce Sutton
Description: Editorial theme for award travel deals, card referrals, and trip notes. Mobile and laptop.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Text Domain: lifewithpoints
*/

:root {
  --ink: #1c1916;
  --ink-soft: #3a342c;
  --muted: #5e564c;
  --line: #e4dccf;
  --paper: #f6f1e8;
  --paper-2: #fffdf8;
  --bronze: #9f8050;
  --bronze-deep: #5e4930;
  --green: #519033;
  --green-deep: #2c5618;
  --header: #161310;
  --danger: #8c2f24;
  --shadow: 0 20px 50px rgba(28, 25, 22, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -40px; background: #fff; color: var(--ink);
  padding: 8px 12px; z-index: 10000;
}
.skip-link:focus { top: 12px; }

.site-header {
  background: var(--header);
  color: #f6f1e8;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid var(--green);
}
.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: flex; align-items: center; text-decoration: none; color: inherit; }
.brand img { height: 42px; width: auto; display: block; }
.brand-text { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.03em; color: #f6f1e8; text-decoration: none; }
.brand-text span { color: #8fce73; }
.nav-toggle {
  margin-left: auto;
  display: none;
  background: transparent;
  color: #f6f1e8;
  border: 1px solid rgba(246,241,232,0.35);
  border-radius: 999px;
  padding: 8px 14px;
  font: 600 0.92rem/1 var(--sans);
  min-height: 44px;
}
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 8px 18px; }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: #f3eadf; text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: #fff; }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff !important; text-decoration: none;
  border-radius: 999px; padding: 10px 16px; font-weight: 600; min-height: 44px;
}
.nav-cta:hover { background: var(--green-deep); color: #fff !important; }

.notice {
  background: #efe4cf;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.notice p { max-width: var(--wrap); margin: 0 auto; padding: 12px 20px; }
.notice.is-bad { background: #f8e4e0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.hero { padding: 72px 0 36px; }
.kicker {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bronze-deep); font-weight: 600; margin: 0 0 12px;
}
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.12; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); margin: 0 0 16px; max-width: 16ch; }
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 42rem; margin: 0 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 18px; border-radius: 999px;
  text-decoration: none; font-weight: 600; border: 1px solid transparent;
}
.btn-green { background: var(--green-deep); color: #fff; }
.btn-green:hover { background: #214214; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cbbfae; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.route {
  height: 2px; border: 0; margin: 8px 0 0;
  background: linear-gradient(90deg, var(--bronze), var(--green) 70%, transparent);
}

.section { padding: 28px 0 10px; }
.section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 22px; max-width: 40rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; align-items: start; }
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin: 0 0 8px; font-size: 1.55rem; }
.card p { margin: 0 0 12px; color: var(--ink-soft); }
.card a.more { font-weight: 600; text-decoration: none; }
.post-card h2 { font-size: 1.45rem; margin: 8px 0; }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover { color: var(--green-deep); }
.meta { color: var(--muted); font-size: 0.92rem; margin: 0; }

.band {
  margin: 36px 0;
  background: var(--header);
  color: #f6f1e8;
  border-radius: 24px;
  padding: 28px;
}
.band h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.band p { color: #e6dccf; }
.band a { color: #b7e39a; }

.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.signup input[type="email"] {
  flex: 1 1 220px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid #d9d0c3;
  padding: 12px 16px;
  font: 1rem/1.2 var(--sans);
  background: #fff;
  color: var(--ink);
}
.band .signup input[type="email"] { border: 0; }
.signup button, button.btn {
  font: 600 1rem/1 var(--sans);
  cursor: pointer;
}
.hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }

.page-hero, .entry-header { padding: 48px 0 10px; }
.page-hero h1, .entry-header h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); margin: 0 0 10px; max-width: 18ch; }
.prose { max-width: 760px; padding-bottom: 40px; }
.prose.wide { max-width: var(--wrap); }
.prose h2 { font-size: 1.8rem; margin: 1.4em 0 0.4em; }
.prose h3 { font-size: 1.3rem; margin: 1.2em 0 0.3em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 0.3em 0; }
.disclosure {
  background: #efe4cf;
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.posts { display: grid; gap: 16px; padding-bottom: 30px; }
.pager { display: flex; gap: 12px; padding-bottom: 40px; }
.pager a, .pager span { text-decoration: none; font-weight: 600; }

.entry-content { max-width: 760px; padding-bottom: 10px; }
.entry-content h2 { font-size: 1.7rem; }
.entry-content img, .entry-content figure { border-radius: 16px; }
.comments-wrap { max-width: 760px; padding: 10px 0 50px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 10px 0; }
.comment-form input, .comment-form textarea, .prose input, .prose textarea {
  width: 100%; max-width: 100%; border: 1px solid #d9d0c3; border-radius: 12px; padding: 12px; font: 1rem var(--sans); background: #fff;
}
.comment-form input[type="submit"], .prose button {
  background: var(--green-deep); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; min-height: 48px; font-weight: 600;
}

.site-footer { background: var(--header); color: #e7dccf; margin-top: 20px; padding: 36px 0 28px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: start; }
.site-footer a { color: #f3eadf; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.fine { color: #b7aa9b; font-size: 0.92rem; max-width: 46rem; }
.copy { color: #b7aa9b; font-size: 0.88rem; margin-top: 18px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; width: 100%; margin: 0; padding-bottom: 8px; }
  .primary-nav.is-open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .primary-nav ul { flex-direction: column; gap: 4px; }
  .primary-nav a { display: inline-flex; min-height: 44px; align-items: center; }
  .nav-cta { margin: 8px 0 12px; }
  .grid, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 42px; }
  .brand img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
