/* australianjewels.com -- shared stylesheet (home, privacy, 404).
   One accent (champagne gold) on a warm near-black shell. Contrast notes beside
   each text colour are against --bg (#0b0a09). */

@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/inter-latin-ext-b6db4a06.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/inter-latin-6ab57b19.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/cormorant-garamond-latin-ext-26a769c8.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/cormorant-garamond-latin-abcaa8b4.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

:root {
  --bg: #0b0a09;
  --ink: #ece6dc;          /* body text, ~16:1 */
  --ink-strong: #fffaf2;
  --muted: #bdb5a8;        /* tagline, labels, ~9.5:1 */
  --dim: #948c80;          /* secondary copy, ~5.9:1 */
  --gold: #d6b97c;         /* accent, ~10.6:1 */
  --gold-light: #ead6a6;
  --gold-soft: rgba(214, 185, 124, 0.12);
  --gold-line: rgba(214, 185, 124, 0.34);
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.028);
  --field-bg: rgba(255, 255, 255, 0.035);
  --field-border: #726b61; /* 3.6:1, WCAG 1.4.11 */
  --err: #f4aca4;          /* ~9:1, always paired with a text cue */
  --serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s6: 3rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 24% -12%, rgba(214, 185, 124, 0.13), transparent 55%),
    radial-gradient(ellipse at 84% 112%, rgba(176, 141, 82, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  text-align: center;
  animation: fade-up 0.8s ease-out;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- Gem mark ----- */
.badge { width: 78px; height: 78px; overflow: visible; }
.badge .gem { fill: var(--gold-soft); stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; }
.badge .facet { fill: none; stroke: var(--gold); stroke-width: 1.1; stroke-linejoin: round; opacity: 0.75; }
.badge .spark { fill: var(--gold-light); transform-origin: 52px 12px; animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.7); }
  50%      { opacity: 1;    transform: scale(1.1); }
}

/* ----- Pill ----- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.4rem 0.95rem;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(214, 185, 124, 0.7);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.25); }
}

/* ----- Wordmark ----- */
.wordmark {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 10vw, 5.2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.02;
  color: var(--ink-strong);
  margin: 0;
}
.w2 { color: var(--gold); font-style: normal; }

.tagline {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.4vw, 1.7rem);
  font-weight: 500;
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
}
.tagline strong { color: var(--ink-strong); font-weight: 600; }

.desc {
  font-size: 1rem;
  color: var(--dim);
  max-width: 560px;
  margin: 0;
  line-height: 1.7;
}

/* ----- Features ----- */
.features {
  list-style: none;
  margin: var(--s1) 0 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.15rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.feat svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat-title { font-size: 0.95rem; font-weight: 600; color: var(--ink-strong); }
.feat-text { font-size: 0.86rem; color: var(--dim); line-height: 1.55; }
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .feat { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; column-gap: 0.75rem; }
  .feat-text { flex-basis: 100%; padding-left: calc(24px + 0.75rem); }
}

/* ----- Find me a stone ----- */
.find {
  width: 100%;
  max-width: 600px;
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  text-align: left;
  scroll-margin-top: var(--s3);
}
.find-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink-strong);
  margin: 0 0 0.5rem;
  text-align: center;
}
.find-lede {
  font-size: 0.95rem;
  color: var(--dim);
  line-height: 1.65;
  margin: 0 auto 1.6rem;
  max-width: 520px;
  text-align: center;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.field .opt { font-weight: 400; color: var(--dim); }
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.field select option { background: #1a1815; color: var(--ink); }
.field input::placeholder { color: #8a8378; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
  background-color: rgba(255, 255, 255, 0.05);
}
.hint { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--dim); }
.field .err { display: none; margin: 0.4rem 0 0; font-size: 0.82rem; font-weight: 600; color: var(--err); }
.field.err-shown input,
.field.err-shown textarea { border-color: var(--err); border-width: 2px; }
.field.err-shown .err { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit {
  width: 100%;
  min-height: 52px;
  margin-top: 0.35rem;
  padding: 0.9rem 1.6rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #17130c;              /* dark ink on gold, ~10:1 */
  background: var(--gold);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.submit:hover:not(:disabled) { background: var(--gold-light); box-shadow: 0 0 28px rgba(214, 185, 124, 0.3); }
.submit:focus-visible { outline: 2px solid var(--ink-strong); outline-offset: 3px; }
.submit:disabled { opacity: 0.65; cursor: progress; }
.status { min-height: 1.4em; margin: 0.85rem 0 0; font-size: 0.92rem; text-align: center; color: var(--ink); }
.status.bad { color: var(--err); font-weight: 600; }
.status.good { color: var(--gold-light); font-weight: 600; }
.privacy { margin: 0.6rem 0 0; font-size: 0.8rem; line-height: 1.55; color: var(--dim); text-align: center; }
.privacy a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.privacy a:hover { color: var(--ink-strong); }

/* ----- Footer ----- */
footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 1.75rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--dim);
}
footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(236, 230, 220, 0.2);
  transition: color 0.2s ease, border-color 0.2s ease;
}
footer a:hover { color: var(--ink-strong); border-color: rgba(236, 230, 220, 0.5); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ----- Text pages (privacy, 404) ----- */
.page-header { position: relative; z-index: 1; max-width: 760px; width: 100%; margin: 0 auto; padding: 1.6rem 1.5rem 0; }
.page-header .mark {
  display: inline-block;
  padding: 0.6rem 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--ink-strong);
  text-decoration: none;
}
.doc { align-items: stretch; text-align: left; max-width: 760px; padding-top: 1.5rem; gap: 0; animation: none; }
.doc h1 { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 2.8rem); font-weight: 500; line-height: 1.15; color: var(--ink-strong); margin: 0.5rem 0 0.4rem; }
.doc .meta { margin: 0 0 2rem; font-size: 0.92rem; color: var(--dim); }
.doc h2 { font-size: 1.3rem; font-weight: 600; color: var(--ink-strong); line-height: 1.3; margin: 2.4rem 0 0.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.doc h3 { font-size: 1.05rem; font-weight: 600; color: var(--ink-strong); margin: 1.6rem 0 0.4rem; }
.doc p, .doc li { margin: 0 0 0.8rem; color: var(--muted); line-height: 1.7; }
.doc ul { padding-left: 1.3rem; margin: 0 0 0.9rem; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--gold-light); }
.doc .card { background: var(--card); border: 1px solid var(--gold-line); border-radius: 14px; padding: 1rem 1.2rem; margin: 0 0 1.5rem; }
.doc .card p:last-child { margin: 0; }
.notfound { justify-content: center; }
.notfound .btn {
  display: inline-block;
  margin-top: var(--s2);
  padding: 0.8rem 1.5rem;
  min-height: 48px;
  border-radius: 12px;
  background: var(--gold);
  color: #17130c;
  font-weight: 700;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main, .pill::before, .badge .spark { animation: none; }
  .submit, footer a, .field input, .field textarea, .field select { transition: none; }
}
