/*
  KiwiHookups.co.nz — design notes
  Subject: independent NZ hookup/casual-dating noticeboard, not a dating-app clone.
  Concept: newspaper personals column / corkboard noticeboard, not "app UI".
  No classes added to templates — every rule below targets bare tags,
  structural position, or attributes Hugo already emits (rel="sponsored").
*/

:root {
  --ink: #1c1a1f;
  --bg: #ffffff;
  --panel: #f4f1ea;
  --paper: #fbf8f2;
  --kowhai: #8a5c12;
  --pohutukawa: #e14f2a;
  --line: #ddd8ca;

  --display: "Arial Narrow", "Helvetica Neue Condensed", "Liberation Sans Narrow", sans-serif;
  --body: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* Icons: Lucide (ISC license, lucide.dev), inlined as CSS masks — no external
     request, no icon font. Default is --icon-sparkle; specific headings (matched
     by their auto-generated id) get a topic-matched icon further down. */
  --icon-sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z'/%3E%3C/svg%3E");
  --icon-badge-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z'/%3E%3Cpath d='m16 9-5.5 5.5L8 12'/%3E%3C/svg%3E");
  --icon-list-checks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 5h8'/%3E%3Cpath d='M13 12h8'/%3E%3Cpath d='M13 19h8'/%3E%3Cpath d='m3 17 2 2 4-4'/%3E%3Cpath d='m3 7 2 2 4-4'/%3E%3C/svg%3E");
  --icon-flame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4'/%3E%3C/svg%3E");
  --icon-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5'/%3E%3C/svg%3E");
  --icon-users: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Cpath d='M16 3.128a4 4 0 0 1 0 7.744'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3C/svg%3E");
  --icon-message-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719'/%3E%3C/svg%3E");
  --icon-link-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 17H7A5 5 0 0 1 7 7h2'/%3E%3Cpath d='M15 7h2a5 5 0 1 1 0 10h-2'/%3E%3C/svg%3E");
  --icon-circle-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 9-6 6'/%3E%3Cpath d='m9 9 6 6'/%3E%3C/svg%3E");
  --icon-shield-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  --icon-trophy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2'/%3E%3Cpath d='M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2'/%3E%3Cpath d='M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3'/%3E%3Cpath d='M4 22h16'/%3E%3Cpath d='M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z'/%3E%3Cpath d='M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3'/%3E%3C/svg%3E");
  --icon-compass: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z'/%3E%3C/svg%3E");
}

html {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- masthead ---- */

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

header > a:first-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: condensed;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

header > a:first-child img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
}

header .menu {
  position: relative;
}

header .menu summary {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kowhai);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.4rem 0.7rem;
}

header .menu summary::-webkit-details-marker {
  display: none;
}

header .menu summary::marker {
  content: "";
}

header .menu .menu-icon {
  font-size: 1rem;
  line-height: 1;
}

header .menu nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 14rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

header .menu .menu-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

header .menu .menu-label {
  margin: 0 0 0.15rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}

header nav a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kowhai);
  text-decoration: none;
  padding-bottom: 0.15rem;
  background-image: linear-gradient(var(--kowhai), var(--kowhai));
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: left bottom;
  transition: background-size 0.15s ease-out;
}

header nav a:hover,
header nav a:focus-visible {
  background-size: 100% 1px;
}

/* ---- main column ---- */

main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

main > article {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-content h1 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
}

/* ---- hero (H1/tagline/CTA + compact image side by side — CTA visible without scrolling,
   homepage: h1 inside .hero-content; articles: h1 stays outside, hero row sits just below it) ---- */

.hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 0 2.25rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.hero-tagline {
  font-size: 1.1875rem;
  color: color-mix(in srgb, var(--ink) 75%, var(--kowhai) 25%);
  max-width: 34rem;
  margin: 0;
}

.hero-note {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
  margin: 0;
}

.hero-image {
  margin: 0;
  align-self: center;
}

.hero-image a[rel~="sponsored"] {
  all: unset;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  cursor: pointer;
  border-radius: 1px;
  overflow: hidden;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.16);
}

.hero-image img {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: sepia(0.12) contrast(1.03);
}

@media (min-width: 40rem) {
  .hero {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }

  .hero-content {
    flex: 1.3;
  }

  .hero-image {
    flex: 1;
  }

  .hero-image img {
    width: 340px;
  }
}

/* ---- hero band + profile preview band (full-bleed wrappers, cf. milfdating.at) ---- */

.hero-band {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.hero-band-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.hero-band .hero {
  margin: 0;
}

.profile-preview-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.profile-preview-band-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.profile-preview {
  margin: 0;
}

.profile-preview h2 {
  font-family: var(--display);
  font-stretch: condensed;
  font-size: 1.375rem;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

/* footer conversion band reuses the same wrapper, tighter and no border-bottom (sits right above <footer>) */
.profile-preview-band.profile-footer {
  border-bottom: none;
  border-top: 1px solid var(--line);
}

.profile-preview-band.profile-footer .profile-preview-band-inner {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.profile-preview-band.profile-footer .profile-grid {
  margin: 0 0 1.5rem;
}

/* ---- how it works (3-step numbered list) ---- */

.how-it-works {
  margin: 2.5rem 0 0;
}

.how-it-works h2 {
  font-family: var(--display);
  font-stretch: condensed;
  font-size: 1.375rem;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.how-it-works ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 40rem) {
  .how-it-works ol {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-it-works li {
  position: relative;
  padding-left: 2.75rem;
}

.how-it-works .step-number {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: var(--pohutukawa);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9375rem;
}

.how-it-works strong {
  display: block;
  font-family: var(--display);
  font-stretch: condensed;
  color: var(--kowhai);
  margin-bottom: 0.25rem;
}

.how-it-works p {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--ink) 75%, transparent);
  margin: 0;
}

/* ---- points-forts (safety tips trust box) ---- */

.points-forts {
  margin: 2.5rem 0 0;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.points-forts h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-stretch: condensed;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--kowhai);
}

.points-forts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.points-forts li {
  padding-left: 1.25rem;
  position: relative;
}

.points-forts li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--kowhai);
}

/* ---- inline CTA paragraphs (mid/bottom, between homepage sections) ---- */

.cta-inline {
  text-align: center;
  margin: 2.5rem 0 0;
}

/* ---- home FAQ ---- */

.home-faq {
  margin: 2.5rem 0 0;
}

.home-faq h2 {
  font-family: var(--display);
  font-stretch: condensed;
  font-size: 1.375rem;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.home-faq p {
  margin: 0 0 0.5rem;
}

.home-faq p:has(strong) {
  margin: 1.25rem 0 0.25rem;
}

.home-faq p:has(strong):first-child {
  margin-top: 0;
}

/* ---- homepage profile grid — ported verbatim from rencontre-cougar-gratuit.fr's .profile-grid,
   isolated from the "homepage noticeboard" generic main>ul / main>ul>li rules above
   (which is what broke this earlier) via explicit resets ---- */

.profile-grid {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.profile-grid li {
  position: static;
  margin: 0;
  min-width: 0;
  background: none;
  background-image: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.profile-grid li::before {
  content: none;
}

.profile-grid a[rel~="sponsored"] {
  all: unset;
  display: block;
  cursor: pointer;
}

.profile-grid a[rel~="sponsored"]::after {
  content: none;
}

.profile-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  filter: sepia(0.12) contrast(1.03);
}

.profile-grid figcaption {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  opacity: 0.7;
}

/* last 2 cards stay locked — teases more profiles, pushes the CTA (same mechanic as rencontre-cougar) */
.profile-grid--gated li:nth-last-child(-n+2) a[rel~="sponsored"] {
  position: relative;
}

.profile-grid--gated li:nth-last-child(-n+2) img {
  filter: sepia(0.12) contrast(1.03) blur(6px);
}

.profile-grid--gated li:nth-last-child(-n+2) figcaption {
  filter: blur(3px);
}

.profile-grid--gated li:nth-last-child(-n+2) a[rel~="sponsored"]::after {
  content: "🔒 Unlock";
  position: absolute;
  inset: 0 0 1.4rem 0;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-align: center;
  background: rgba(28, 26, 31, 0.5);
  border-radius: 8px;
}

/* ---- article photo teaser (light version of the homepage board, end of article) ---- */

main > ul.photo-teaser {
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 24rem;
  margin: 0 auto 2rem;
  padding: 0.5rem 0.25rem 1.25rem;
}

main > ul.photo-teaser li {
  position: relative;
  min-width: 0;
  background: var(--paper);
  padding: 0.4rem 0.4rem 0.6rem;
  border-radius: 1px;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.16);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

main > ul.photo-teaser li:nth-child(1) { --tilt: -2deg; }
main > ul.photo-teaser li:nth-child(2) { --tilt: 2deg; }

main > ul.photo-teaser li:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

main > ul.photo-teaser li::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--pohutukawa), #8f2c14);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
}

main > ul.photo-teaser li img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: sepia(0.12) contrast(1.03);
}

main > ul.photo-teaser a[rel~="sponsored"] {
  all: unset;
  display: block;
  cursor: pointer;
}

main > ul.photo-teaser a[rel~="sponsored"]:hover,
main > ul.photo-teaser a[rel~="sponsored"]:focus-visible {
  transform: none;
  box-shadow: none;
}

main > ul.photo-teaser figcaption {
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink);
  opacity: 0.7;
}

/* ---- homepage noticeboard ---- */

main > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

main > ul > li {
  position: relative;
  border-radius: 2px;
  background: var(--panel);
  background-image: repeating-linear-gradient(
    to bottom,
    var(--line) 0 6px,
    transparent 6px 13px
  );
  background-size: 3px 100%;
  background-repeat: no-repeat;
  background-position: left top;
}

main > ul > li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--pohutukawa), #8f2c14);
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px var(--bg);
}

main > ul > li a {
  position: relative;
  display: block;
  padding: 1.1rem 2.75rem 1.1rem 2rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.0625rem;
}

main > ul > li a strong {
  display: block;
}

main > ul > li a span {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--body);
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
}

main > ul > li a::after {
  content: "\2192";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--kowhai);
}

main > ul > li:hover,
main > ul > li:has(a:focus-visible) {
  background-color: color-mix(in srgb, var(--panel) 80%, var(--kowhai) 20%);
}

main > p.bottom-cta,
main > p.mid-cta {
  margin: 2.5rem 0 0;
  text-align: center;
}

/* ---- article card grid (replaces flat text list) ---- */

.content-cards {
  margin: 2.5rem 0 0;
}

.content-cards h2 {
  font-family: var(--display);
  font-stretch: condensed;
  font-size: 1.375rem;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  display: block;
  padding: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}

.card:hover {
  border-color: var(--kowhai);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-stretch: condensed;
  font-size: 1.0625rem;
  color: var(--kowhai);
}

.card p {
  margin: 0;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--ink) 75%, transparent);
}

/* ---- alt-offer: visually separate secondary offer callout ---- */

.alt-offer {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.alt-offer h2 {
  font-family: var(--display);
  font-stretch: condensed;
  font-size: 1.0625rem;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}

.alt-offer p {
  margin: 0 0 1rem;
}

.alt-offer p:last-child {
  margin-bottom: 0;
}

/* ---- article body ---- */

article h1 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: condensed;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.1;
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}

.byline {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
  margin: -1rem 0 1.5rem;
}

article h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: condensed;
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--kowhai);
  margin: 2.75rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--line);
}

article h2::before {
  content: "";
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  background-color: var(--pohutukawa);
  -webkit-mask-image: var(--icon-sparkle);
  mask-image: var(--icon-sparkle);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Topic-matched icons on best-hookup-sites-nz, keyed to Hugo's auto-generated
   heading ids — no template/markup changes needed. #staying-safe is shared
   with other articles, so the shield icon applies there too. */
article h2#what-actually-free-means-on-this-page::before { --icon: var(--icon-badge-check); }
article h2#the-5-options-that-are-actually-free::before { --icon: var(--icon-list-checks); }
article h2#fuckfinder--the-broadest-free-hookup-pool-in-nz::before { --icon: var(--icon-flame); }
article h2#milffinder--the-same-network-focused-on-older-women::before { --icon: var(--icon-heart); }
article h2#tinder--free-huge-but-casual-isnt-the-default::before { --icon: var(--icon-users); }
article h2#bumble--free-but-women-message-first::before { --icon: var(--icon-message-circle); }
article h2#hinge--free-but-built-for-relationships-not-hookups::before { --icon: var(--icon-link-2); }
article h2#sites-we-left-out-and-why-they-dont-count-as-actually-free::before { --icon: var(--icon-circle-x); }
article h2#staying-safe::before { --icon: var(--icon-shield-check); }
article h2#which-is-genuinely-the-best-free-hookup-site-in-nz::before { --icon: var(--icon-trophy); }
article h2#looking-for-something-specific::before { --icon: var(--icon-compass); }

article h2[id]::before {
  -webkit-mask-image: var(--icon, var(--icon-sparkle));
  mask-image: var(--icon, var(--icon-sparkle));
}

article p {
  margin: 0 0 1.25rem;
}

article > p:first-of-type {
  font-size: 1.1875rem;
}

article a:not([rel~="sponsored"]) {
  color: var(--kowhai);
  text-decoration-color: color-mix(in srgb, var(--kowhai) 50%, transparent);
  text-underline-offset: 0.2em;
}

article strong {
  color: var(--ink);
}

/* ---- article photo (render-image.html hook wraps markdown images) ---- */

article figure.pinned-photo {
  position: relative;
  width: 100%;
  max-width: 20rem;
  margin: 0 auto 2.25rem;
  padding: 0.4rem 0.4rem 0.6rem;
  background: var(--paper);
  border-radius: 1px;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.16);
  transform: rotate(-2deg);
}

article figure.pinned-photo:nth-of-type(2n) {
  transform: rotate(2deg);
}

article figure.pinned-photo--straight,
article figure.pinned-photo--straight:nth-of-type(2n) {
  transform: none;
}

article figure.pinned-photo::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--pohutukawa), #8f2c14);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%);
}

article figure.pinned-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: sepia(0.12) contrast(1.03);
}

/* ---- sponsored CTA (Hugo's rel="sponsored" render-hook, no class needed) ---- */

a[rel~="sponsored"] {
  display: inline-block;
  margin: 0.5rem 0 0.4rem;
  padding: 0.85rem 1.5rem;
  background: var(--pohutukawa);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 2px 0 #8f2c14;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

a[rel~="sponsored"]:hover,
a[rel~="sponsored"]:focus-visible {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #8f2c14;
}

article p:has(> a[rel~="sponsored"]) {
  margin-bottom: 1.75rem;
}

/* ---- comparison table (plain markdown table, e.g. best-hookup-sites-nz) ---- */

article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 2rem;
  font-size: 0.9375rem;
}

article th,
article td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

article th {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--kowhai);
}

article em {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
}

/* pinned-photo figures double as CTAs when wrapped in a sponsored link */
figure.pinned-photo:has(> a) {
  cursor: pointer;
}

figure.pinned-photo a {
  display: block;
}

/* ---- footer ---- */

footer {
  padding: 2rem 1.5rem;
  background: var(--panel);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}

footer p {
  max-width: 42rem;
  margin: 0 auto 0.75rem;
}

footer nav {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

footer nav a,
footer p a {
  color: var(--kowhai);
}

/* ---- focus + motion ---- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--kowhai);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  header nav a,
  a[rel~="sponsored"] {
    transition: none;
  }
}

@media (max-width: 30rem) {
  header {
    padding: 1rem;
  }

  main {
    padding: 1.75rem 1rem 3rem;
  }

  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- sticky mobile CTA (id, not class -- one instance per page) ---- */

#sticky-cta {
  display: none;
}

@media (max-width: 30rem) {
  #sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--panel);
    border-top: 1px solid var(--line);
    text-align: center;
  }

  #sticky-cta a[rel~="sponsored"] {
    display: block;
    width: 100%;
    margin: 0;
  }

  main {
    padding-bottom: 5.5rem;
  }

  /* redundant once the sticky bar is showing at the bottom of the screen */
  .final-cta {
    display: none;
  }
}

/* click-to-play YouTube facade — no iframe/JS loaded until the visitor clicks */
.video-embed {
  position: relative;
  max-width: 40rem;
  margin: 2rem auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--ink);
}

.video-embed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-embed__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.video-embed__icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.5rem;
  height: 4.5rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--pohutukawa);
}

.video-embed__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.85rem 0 0.85rem 1.4rem;
  border-color: transparent transparent transparent #fff;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
