/* hookupnow.com.au. One stylesheet, no web fonts. One script, /trail.js, draws the cursor's glitter trail.
   Palette: bright gold with a still white reflection across it, a pale glow at the top, black text and the
   logo's red.
   One scheme for light and dark devices. --rose is the logo red, --gold the deep red of links, --purple the black
   of the HUN lettering (names kept from earlier palettes). */
:root {
  color-scheme: light;
  --paper: #f6d658; --ink: #111111; --soft: #3a2f10; --rule: #b08d1f;
  --rose: #a80f1d; --gold: #6e0a14; --purple: #111111; --halo: #fffbe6; --focus: #111111;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.35) 40%, rgba(255,255,255,.95) 47%, rgba(255,255,255,.25) 53%, rgba(255,255,255,.6) 57%, rgba(255,255,255,0) 68%) 40% 0 / 260% 100% no-repeat, radial-gradient(ellipse 90% 520px at 50% 0, var(--halo), transparent 70%) no-repeat, linear-gradient(#fff0a0, #f8d95a 30%, #efc63a 62%, #fbe27a) var(--paper); min-height: 100vh; color: var(--ink); overflow-wrap: break-word; }
/* Glitter: two still layers of small white sparkles behind the content. No images or scripts. */
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before { opacity: .9; background:
  radial-gradient(circle, #fff 0 2.2px, transparent 3.4px) 13px 29px / 137px 149px,
  radial-gradient(circle, #fff 0 1.6px, transparent 2.6px) 47px 61px / 89px 97px,
  radial-gradient(circle, #fffbe0 0 3.4px, transparent 5px) 101px 17px / 211px 193px; }
body::after { opacity: .75; background:
  radial-gradient(circle, #fff 0 1.9px, transparent 3px) 71px 83px / 113px 127px,
  radial-gradient(circle, #fff 0 2.9px, transparent 4.4px) 151px 43px / 179px 163px,
  radial-gradient(circle, #fff6c2 0 1.4px, transparent 2.4px) 23px 109px / 67px 73px; }
a { color: var(--gold); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 1; }
.skip:focus { left: 16px; }
.skip:focus-visible { color: var(--ink); border: 2px solid var(--focus); }
a, button { touch-action: manipulation; }
h1, h2 { text-wrap: balance; }

/* "Open the HUN app" pages under /auth/ (no class on body) */
body:not(.site) > main { max-width: 32rem; margin: 20vh auto 0; padding: 0 16px; text-align: center; }
body:not(.site) > main h1 { font-family: var(--serif); font-weight: 400; letter-spacing: 0.3em; margin-right: -0.3em; }

/* Site chrome */
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--rule); border-image: linear-gradient(90deg, transparent, var(--ink), transparent) 1; }
header.site .wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 12px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.22em; }
.brand svg { width: 96px; height: 70px; flex: none; }
header.site nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
header.site nav a { color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; }
header.site nav a, footer.site nav a { display: inline-flex; align-items: center; min-height: 44px; }
header.site nav a:hover { text-decoration: underline; }
header.site nav a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }

/* Content pages */
main.page { padding-top: 40px; padding-bottom: 24px; }
main.page h1 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.15; margin: 0 0 12px; }
main.page h2 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.3; margin: 40px 0 8px; }
main.page h3 { font-size: 1.05rem; margin: 24px 0 4px; }
main.page p, main.page li { max-width: 38em; }
main.page li { margin-bottom: 6px; }
main.page .lead { font-size: 1.2rem; }
main.page h1, main.page h1 + .lead, main.page h1 + .meta { text-align: center; margin-left: auto; margin-right: auto; }
main.page .meta { color: var(--soft); font-size: 0.95rem; margin-top: 0; }
.note { border-left: 4px solid var(--rose); background: var(--halo); padding: 14px 18px; margin: 24px 0; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }
ol.steps { padding-left: 1.4em; }

/* Home */
main.hero { padding-top: 72px; padding-bottom: 72px; text-align: center; }
main.hero .mark { filter: drop-shadow(0 10px 22px rgba(70, 45, 0, 0.35)); width: min(280px, 64vw); height: auto; display: block; margin: 0 auto 28px; }
main.hero h1 { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--ink); font-size: clamp(2.4rem, 9vw, 4rem); line-height: 1.05; margin: 0 0 20px; letter-spacing: -0.01em; }
main.hero .lead { font-size: clamp(1.15rem, 3.6vw, 1.35rem); max-width: 32em; margin: 0 0 16px; }
.facts { display: grid; gap: 0; margin: 40px 0 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--soft); font-size: 0.95rem; }
.facts dd { margin: 0; }
@media (min-width: 560px) { .facts div { grid-template-columns: 11rem 1fr; gap: 16px; } }

/* Footer */
footer.site { margin-top: 56px; border-top: 1px solid var(--rule); border-image: linear-gradient(90deg, transparent, var(--ink), transparent) 1; color: var(--soft); font-size: 0.95rem; }
footer.site .wrap { padding-top: 20px; padding-bottom: 36px; text-align: center; }
footer.site nav ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
footer.site a { color: var(--ink); }
footer.site p { margin: 4px 0; }

@media print { header.site nav, footer.site nav, .skip { display: none; } }

/* Heart logo: two red swooshes meeting at the bottom point, HUN inside. Same shapes as /logo.svg. */
.mark-arc { fill: var(--rose); }
.mark-h { fill: var(--purple); }
/* Cursor glitter trail: /trail.js adds a .sparkle at the pointer; each drifts down and fades, then is removed. */
.sparkle { position: fixed; z-index: 10; pointer-events: none; background: radial-gradient(circle, #fff 0 30%, #fff3b0 60%, #f2c53a);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: sparkle .8s ease-out forwards; }
@keyframes sparkle { from { opacity: 1; transform: translate(0, 0) scale(1) rotate(0); } to { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 20px)) scale(.2) rotate(120deg); } }
@media (prefers-reduced-motion: no-preference) {
  main.hero .mark { animation: beat 1.6s ease-out 1 both; }
  @keyframes beat { 0% { transform: scale(.85); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
}
