/* Points Reviews — design tokens & base styles.
   v2 (2026-10-06): bright, modern tropical. White page, aqua "pool water"
   headers with wave edges, coral→pink gradient buttons, sun-yellow touches,
   near-black ink and a dark footer. Plus Jakarta Sans headings, Inter body.
   (v1 used muted teal + tan + a serif — Paul: "feels very old person".)
   Image kit: design/ (rendered by design/render.ps1), palette notes:
   docs/image-notes.md. */

:root {
  --white:     #FFFFFF;
  --ink:       #0B1B2B;  /* headings, footer background */
  --text:      #1F2D3D;  /* body text */
  --muted:     #5B6B7B;  /* secondary text */
  --line:      #E5EDF2;  /* dividers, card borders */
  --aqua-50:   #ECFEFF;  /* bands, panels */
  --aqua-100:  #CFFAFE;  /* Tips pill, table headers */
  --aqua-300:  #67E8F9;
  --cyan:      #06B6D4;
  --teal:      #0E7490;  /* links, secondary buttons */
  --teal-2:    #155E75;  /* hover */
  --coral:     #FF5A5F;
  --pink:      #F43F7F;
  --pink-bg:   #FFE4EC;
  --pink-ink:  #BE185D;
  --sun:       #FFC93C;
  --grad-hot:  linear-gradient(135deg, #FF6B4A 0%, #F43F7F 100%);

  --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius:    22px;
  --radius-sm: 14px;
  --shadow:    0 10px 30px rgba(11, 27, 43, .08);
}

* { box-sizing: border-box; }

html { font-size: 17px; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5rem;
  letter-spacing: -.03em;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap-narrow { max-width: 780px; }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
  border-radius: 6px;
}

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

.site-header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.03em;
  color: var(--ink);
  white-space: nowrap;
}

.brand img { width: 38px; height: 38px; }

nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .4rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
}

nav.main-nav a {
  white-space: nowrap;
  padding: .45rem .85rem;
  border-radius: 999px;
  transition: background .15s, color .15s;
}

nav.main-nav a:hover { background: var(--aqua-50); color: var(--teal); }
nav.main-nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- Hero & page heads (pool-water gradient, sun, waves) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 38%),
    linear-gradient(160deg, #A5F3FC 0%, #67E8F9 40%, #5EEAD4 75%, #99F6E4 100%);
  padding: 3.8rem 0 6.8rem;
}

.hero .sun {
  position: absolute;
  right: 9%;
  top: 2.2rem;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FFE58A, var(--sun) 70%);
  box-shadow: 0 0 0 26px rgba(255, 255, 255, .4), 0 0 0 58px rgba(255, 255, 255, .2);
}

.hero .wrap { position: relative; z-index: 2; }

.hero .kicker {
  display: inline-block;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pink-ink);
  background: #fff;
  border-radius: 999px;
  padding: .3rem .9rem;
  margin: 0 0 1.1rem;
  box-shadow: 0 4px 14px rgba(11, 27, 43, .08);
}

.hero h1 { font-size: 3.3rem; line-height: 1.04; max-width: 13em; margin-bottom: 1.1rem; }
.hero .lede { font-size: 1.15rem; max-width: 32em; margin: 0 0 1.7rem; color: var(--text); }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 84px;
  display: block;
  z-index: 1;
}

/* Home hero: text on the left, Paul's character portrait on the right */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: center;
}

.portrait {
  display: block;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid #fff;
  box-shadow: 0 0 0 14px #FFD45C, 0 0 0 40px rgba(255, 255, 255, .35), 0 24px 48px rgba(11, 27, 43, .22);
  transition: transform .25s;
}

.portrait:hover { transform: rotate(-2deg) scale(1.02); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Smaller version for category / About / Contact pages */
.hero.hero-small { padding: 2.4rem 0 5rem; }
.hero.hero-small .sun { width: 96px; height: 96px; top: 1.6rem; box-shadow: 0 0 0 16px rgba(255, 255, 255, .4), 0 0 0 36px rgba(255, 255, 255, .2); }
.hero.hero-small h1 { font-size: 2.6rem; margin-bottom: .35rem; max-width: none; }
.hero.hero-small p { margin: 0; font-size: 1.1rem; max-width: 34em; }
.hero.hero-small .breadcrumb { margin-bottom: .7rem; }

/* ---------- Shared bits ---------- */

.pill {
  display: inline-block;
  background: var(--aqua-100);
  color: var(--teal-2);
  font-weight: 800;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .18rem .7rem;
}

.pill-latest { background: var(--pink-bg); color: var(--pink-ink); }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .5rem;
}

.text-link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .98rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: var(--grad-hot);
  color: #fff;
  box-shadow: 0 10px 24px rgba(244, 63, 127, .3);
  transition: transform .15s, box-shadow .15s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(244, 63, 127, .38); }

.btn-ghost { background: #fff; color: var(--ink); box-shadow: 0 8px 20px rgba(11, 27, 43, .1); }
.btn-ghost:hover { box-shadow: 0 12px 26px rgba(11, 27, 43, .16); }

.breadcrumb {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero .breadcrumb { color: var(--text); }
.breadcrumb a { color: var(--teal); font-weight: 700; }
.breadcrumb a:hover { text-decoration: underline; }

/* the one quiet YouTube mention */
.video-note {
  display: flex;
  gap: .9rem;
  align-items: center;
  margin: 2.8rem 0 3rem;
  padding: 1.1rem 1.3rem;
  background: var(--aqua-50);
  border: 1px solid var(--aqua-100);
  border-radius: 18px;
  font-size: .95rem;
  color: var(--muted);
}

.video-note .icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(11, 27, 43, .08);
}

.video-note .icon svg { width: 22px; height: 22px; }
.video-note a { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sections & card grid ---------- */

.section { padding-top: 3rem; padding-bottom: .5rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.section-head h2 { font-size: 2.1rem; margin: 0; }

.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 6px;
  margin-top: .5rem;
  border-radius: 6px;
  background: linear-gradient(90deg, #FF6B4A, #F43F7F, var(--sun));
}

.section-head .sub { margin: .55rem 0 0; color: var(--muted); font-size: .98rem; }
.section-head .see-all { font-size: .9rem; font-weight: 700; color: var(--teal); white-space: nowrap; }
.section-head .see-all:hover { text-decoration: underline; }

/* Light aqua band with a wave along its top edge (home: Tips) */
.band {
  position: relative;
  background: var(--aqua-50);
  margin-top: 4.2rem;
  padding: 1.4rem 0 3.4rem;
}

.band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -39px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C120 6 240 6 360 20s240 18 360 4 240-20 360-6 240 14 360 2v18z' fill='%23ECFEFF'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.7rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(11, 27, 43, .14); }

.card .thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--aqua-50);
}

.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .thumb img { transform: scale(1.05); }

.card .play { position: absolute; inset: 0; display: grid; place-items: center; }
.card .play svg { width: 44px; height: 44px; filter: drop-shadow(0 3px 8px rgba(11, 27, 43, .35)); }

.card-body { padding: 1.1rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.22rem; line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.02em; }
.card h3 a:hover { color: var(--teal); }
.card p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.55; }

.empty-state {
  padding: 2.2rem;
  border: 2px dashed var(--aqua-100);
  background: #fff;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-align: center;
  grid-column: 1 / -1;
}

/* ---------- Article page ---------- */

.article-detail { padding-top: 1.8rem; }

.article-title { font-size: 2.7rem; line-height: 1.1; margin: .4rem 0 .9rem; }

.article-featured-image,
.article-video {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--aqua-50);
  box-shadow: var(--shadow);
  margin: 1.5rem 0 2.2rem;
}

.article-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.article-video iframe { width: 100%; height: 100%; border: 0; }

.article-body { font-size: 1.06rem; line-height: 1.78; }

.article-body p { margin: 0 0 1.25rem; }
.article-body h2 { font-size: 1.65rem; margin-top: 2.4rem; }
.article-body h3 { font-size: 1.3rem; margin-top: 1.9rem; }
.article-body img { border-radius: var(--radius-sm); margin: 1.2rem 0; }
.article-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.4rem; padding: 0; }
.article-body li { margin-bottom: .45rem; }
.article-body strong { color: var(--ink); }

.article-body blockquote {
  margin: 1.6rem 0;
  padding: 1.1rem 1.4rem;
  background: var(--aqua-50);
  border-left: 5px solid var(--pink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
}

.article-body blockquote p:last-child { margin-bottom: 0; }

.article-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.2rem 0 1.8rem;
  font-size: .9rem;
  line-height: 1.45;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.article-body th,
.article-body td {
  text-align: left;
  vertical-align: top;
  padding: .7rem .85rem;
  border-bottom: 1px solid var(--line);
}

.article-body th {
  background: var(--aqua-100);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .88rem;
}

.article-body tbody tr:last-child td { border-bottom: 0; }

.article-body code {
  background: var(--aqua-50);
  padding: .1rem .4rem;
  border-radius: 6px;
  font-size: .92em;
}

.more-section { margin-top: 3rem; padding: 2.4rem 0 3rem; border-top: 1px solid var(--line); }
.more-heading { font-size: 1.8rem; margin: 0 0 1.4rem; }

/* ---------- About / pages ---------- */

.page-body { font-size: 1.06rem; line-height: 1.78; padding-top: 1.4rem; }
.page-body p { margin: 0 0 1.25rem; }
.page-body h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.page-body ul { margin: 0 0 1.25rem 1.4rem; padding: 0; }
.page-body li { margin-bottom: .5rem; }
.page-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.page-body strong { color: var(--ink); }

.about-intro {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  background: var(--aqua-50);
  border: 1px solid var(--aqua-100);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: .4rem 0 1.8rem;
}

.about-intro img {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 0 0 8px #FFD45C;
  object-fit: cover;
}

.about-intro h2 { margin-top: 0; font-size: 1.9rem; }
.about-intro p { margin: 0; }

/* "By Paul" under article titles */
.byline {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
}

.byline img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--sun); }
.byline:hover { color: var(--teal); }

/* ---------- Contact ---------- */

.contact-section { padding-top: 1.6rem; padding-bottom: 3.5rem; }
.contact-intro { color: var(--muted); margin: 0 0 1.5rem; }

.contact-flash {
  background: var(--aqua-100);
  color: var(--teal-2);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.8rem 2rem 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 620px;
}

.contact-form label { font-weight: 700; font-size: .9rem; margin-bottom: .35rem; display: block; color: var(--ink); }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .8rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  color: var(--text);
  transition: border-color .15s, background .15s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: #fff;
}

.contact-form .errorlist {
  list-style: none;
  color: #B42318;
  font-size: .85rem;
  margin: .3rem 0 0;
  padding: 0;
}

.contact-form .btn { align-self: flex-start; }

/* Honeypot — hidden from real visitors, but not via display:none/hidden
   (some bots skip those specifically). See core/forms.py. */
.contact-hp { position: absolute; left: -9999px; top: -9999px; }

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

.site-footer {
  position: relative;
  background: var(--ink);
  margin-top: 5rem;
  padding: 2.4rem 0 2.8rem;
  font-size: .88rem;
  color: #A9B6C3;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -39px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V20C120 4 240 8 360 22s240 14 360 0 240-18 360-4 240 12 360 0v22z' fill='%230B1B2B'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}

.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1.5rem; }
.site-footer strong { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; font-weight: 600; }
.site-footer a { color: #D7E1EA; }
.site-footer a:hover { color: var(--aqua-300); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.6rem; }
  .hero-grid { grid-template-columns: 1fr 210px; gap: 2rem; }
  .portrait { width: 210px; height: 210px; box-shadow: 0 0 0 10px #FFD45C, 0 0 0 28px rgba(255, 255, 255, .35), 0 18px 36px rgba(11, 27, 43, .2); }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  .site-header { position: static; }
  .site-header .wrap { padding-top: .6rem; padding-bottom: .5rem; }
  .brand { font-size: 1.2rem; }
  nav.main-nav { gap: .1rem .1rem; font-size: .86rem; margin-left: -.6rem; }
  nav.main-nav a { padding: .35rem .6rem; }
  .grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero { padding: 2.4rem 0 5.2rem; }
  .hero .sun { width: 56px; height: 56px; right: 9%; top: .9rem; box-shadow: 0 0 0 9px rgba(255, 255, 255, .4), 0 0 0 20px rgba(255, 255, 255, .2); }
  .hero.hero-small .sun { width: 44px; height: 44px; top: .8rem; box-shadow: 0 0 0 7px rgba(255, 255, 255, .4), 0 0 0 16px rgba(255, 255, 255, .2); }
  .hero h1 { font-size: 2.1rem; }
  .hero.hero-small h1 { font-size: 1.95rem; }
  .hero-waves { height: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-grid .portrait { order: -1; width: 120px; height: 120px; border-width: 5px; box-shadow: 0 0 0 7px #FFD45C, 0 0 0 18px rgba(255, 255, 255, .35), 0 10px 22px rgba(11, 27, 43, .2); margin-left: 10px; }
  .about-intro { flex-direction: column; text-align: center; gap: 1rem; padding: 1.3rem 1.1rem; }
  .about-intro img { width: 120px; height: 120px; }
  .section-head h2 { font-size: 1.7rem; }
  .article-title { font-size: 2rem; }
  .contact-card { padding: 1.3rem 1.2rem 1.5rem; }
  /* Wide tables scroll sideways inside themselves instead of widening the page. */
  .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article-body th, .article-body td { min-width: 130px; }
}
