/* Points Reviews — design tokens & base styles.
   A bright, beachy travel-review look: sky-to-sea gradients, wave edges,
   sand-colored bands, coral and sun-yellow accents. Fraunces (soft serif)
   for headings, Inter for body. Image kit: design/ (rendered by
   design/render.ps1), palette notes: docs/image-notes.md. */

:root {
  --paper:    #FFFDF8;  /* page */
  --sand:     #FBF3E2;  /* bands, footer, blockquotes */
  --sand-2:   #F3E3BF;
  --navy:     #0A3047;  /* headings, brand */
  --ink:      #25424F;  /* body text */
  --muted:    #5E7884;  /* secondary text */
  --line:     #EBE0C9;  /* dividers, card borders */
  --ocean:    #0B6E83;  /* links, buttons */
  --ocean-2:  #095A6B;  /* hover */
  --sea:      #19A7B8;
  --foam:     #E4F5F4;  /* pills, panels */
  --foam-2:   #CBEBE9;
  --coral:    #E8553E;  /* accent */
  --coral-bg: #FFE9E3;
  --coral-ink:#B23A25;
  --sun:      #FFC857;

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius:    20px;
  --radius-sm: 14px;
  --shadow:    0 8px 22px rgba(10, 48, 71, .08);
}

* { box-sizing: border-box; }

html { font-size: 17px; }

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

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  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: 700;
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 .5rem;
  letter-spacing: -.015em;
}

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

.wrap {
  max-width: 1080px;
  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: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -.02em;
  color: var(--navy);
  white-space: nowrap;
}

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

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

nav.main-nav a {
  white-space: nowrap;
  padding: .35rem 0;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}

nav.main-nav a:hover { color: var(--ocean); }
nav.main-nav a[aria-current="page"] { color: var(--ocean); border-bottom-color: var(--coral); }

/* ---------- Hero & page heads (sky, sun, waves) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #A5DDE7 0%, #D9F1F0 58%, #FFF3D9 100%);
  padding: 3.6rem 0 6.6rem;
}

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

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

.hero .kicker {
  display: inline-block;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ocean-2);
  background: rgba(255, 255, 255, .7);
  border-radius: 999px;
  padding: .25rem .85rem;
  margin: 0 0 1rem;
}

.hero h1 { font-size: 3rem; line-height: 1.08; max-width: 14em; margin-bottom: 1rem; }
.hero .lede { font-size: 1.12rem; max-width: 33em; margin: 0 0 1.5rem; color: var(--ink); }
.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;
}

/* Smaller version for category / About / Contact pages */
.hero.hero-small { padding: 2.2rem 0 5rem; }
.hero.hero-small .sun { width: 96px; height: 96px; top: 1.6rem; box-shadow: 0 0 0 16px rgba(255, 200, 87, .28), 0 0 0 36px rgba(255, 200, 87, .15); }
.hero.hero-small h1 { font-size: 2.4rem; 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(--foam);
  color: var(--ocean-2);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .15rem .7rem;
}

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

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

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--ocean);
  cursor: pointer;
  background: var(--ocean);
  color: #fff;
  transition: background .15s, border-color .15s, color .15s;
}

.btn:hover { background: var(--ocean-2); border-color: var(--ocean-2); }

.btn-ghost { background: rgba(255, 255, 255, .85); color: var(--ocean-2); }
.btn-ghost:hover { background: #fff; color: var(--navy); }

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

.breadcrumb a { color: var(--ocean); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* the one quiet YouTube mention */
.video-note {
  display: flex;
  gap: .9rem;
  align-items: center;
  margin: 2.5rem 0 3rem;
  padding: 1.1rem 1.3rem;
  border: 2px dashed var(--sand-2);
  background: var(--sand);
  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;
}

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

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

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

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

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

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

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

/* Sand-colored band with a wave along its top edge (home: Tips) */
.band {
  position: relative;
  background: var(--sand);
  margin-top: 4rem;
  padding: 1.2rem 0 3.2rem;
}

.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='%23FBF3E2'/%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(-4px); box-shadow: 0 14px 28px rgba(10, 48, 71, .13); }

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

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

.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(6, 40, 60, .35)); }

.card-body { padding: 1.05rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.28rem; line-height: 1.22; margin: 0 0 .5rem; }
.card h3 a:hover { color: var(--ocean); }
.card p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.55; }

.empty-state {
  padding: 2.2rem;
  border: 2px dashed var(--sand-2);
  background: var(--sand);
  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.6rem; line-height: 1.12; margin: .35rem 0 .9rem; }

.article-featured-image,
.article-video {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--foam);
  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.7rem; 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(--ocean); 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(--navy); }

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

.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(--foam);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
}

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

.article-body code {
  background: var(--foam);
  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.7rem; 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(--ocean); text-decoration: underline; text-underline-offset: 3px; }
.page-body strong { color: var(--navy); }

/* ---------- 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(--foam);
  color: var(--ocean-2);
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-card {
  background: var(--sand);
  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: 600; font-size: .9rem; margin-bottom: .35rem; display: block; color: var(--navy); }

.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: .75rem .95rem;
  border: 1.5px solid var(--sand-2);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s;
}

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

.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(--sand);
  margin-top: 5rem;
  padding: 2.2rem 0 2.6rem;
  font-size: .86rem;
  color: var(--muted);
}

.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='%23FBF3E2'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}

.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1.5rem; }
.site-footer strong { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-weight: 600; }
.site-footer a:hover { color: var(--ocean); }

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

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  .site-header .wrap { padding-top: .6rem; padding-bottom: .5rem; }
  .brand { font-size: 1.25rem; }
  nav.main-nav { gap: .1rem 1.2rem; font-size: .88rem; }
  .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, 200, 87, .28), 0 0 0 20px rgba(255, 200, 87, .15); }
  .hero.hero-small .sun { width: 44px; height: 44px; top: .8rem; box-shadow: 0 0 0 7px rgba(255, 200, 87, .28), 0 0 0 16px rgba(255, 200, 87, .15); }
  .hero h1 { font-size: 2.05rem; }
  .hero.hero-small h1 { font-size: 1.9rem; }
  .hero-waves { height: 56px; }
  .section-head h2 { font-size: 1.6rem; }
  .article-title { font-size: 1.95rem; }
  .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; }
}
