/* themiddlechildmarket.com.au
   Palette and type from TMC Design Framework.md (Lime, Coral, Mint & Rose v3), with
   the two contrast corrections from app/src/constants/theme.ts. Rose is the only
   colour on anything interactive. The four tints are decoration only. */

:root {
  --rose: #E55E99;
  --rose-text: #C63272;
  --ink: #332A30;
  --secondary: #78696F;
  --white: #FFFFFF;
  --off-white: #F8F5F6;
  --coral: #FFBBBA;
  --mint: #C3EDD9;
  --lavender: #EBB9DF;
  --lime: #DDEE57;

  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px;
  --r-card: 12px; --r-button: 8px; --r-pill: 999px;
  --measure: 800px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.45;
  overflow-x: hidden;
}

/* ── Type scale: 34 / 22 / 20 / 17 / 13 ── */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 var(--s3); letter-spacing: -0.01em; }
h1 { font-size: 34px; }
h2 { font-size: 22px; margin-top: var(--s5); }
h3 { font-size: 20px; margin-top: var(--s4); }
p, ul, ol { margin: 0 0 var(--s3); }
ul, ol { padding-left: 22px; }
li { margin-bottom: var(--s2); }
li > p { margin-bottom: var(--s2); }
strong { font-weight: 700; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.92em; background: var(--off-white); padding: 1px 4px; border-radius: 4px; overflow-wrap: anywhere; }
hr { border: 0; border-top: 1px solid var(--off-white); margin: var(--s5) 0; }

a { color: var(--rose-text); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--rose); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: var(--s2); background: var(--white); padding: var(--s2) var(--s3); z-index: 10; }
.skip:focus { left: var(--s2); }

/* ── Frame ── */
.masthead, main, .site-footer {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--s4);
  padding-right: var(--s4);
}
.masthead { padding-top: var(--s4); padding-bottom: var(--s3); text-align: center; }
.logo { display: block; width: min(340px, 78vw); height: auto; margin: 0 auto; }
.logo.small { width: min(220px, 60vw); }
.home { display: inline-block; }

main { padding-bottom: var(--s5); }

/* ── Landing ── */
.hero {
  background: var(--rose);
  color: var(--white);
  border-radius: var(--r-card);
  padding: var(--s5) var(--s4);
  margin: var(--s2) 0 var(--s4);
}
.hero h1 { color: var(--white); margin-bottom: var(--s2); }
.hero p { font-size: 20px; line-height: 1.4; margin: 0; opacity: 0.94; }

.section { padding: var(--s3) 0; }
.section h2 { margin-top: var(--s2); }

/* Tinted step blocks — decoration behind the numbered steps, never a control.
   Coral, mint, lavender for buyers; the same three again for sellers. */
.steps p { background: var(--off-white); border-radius: var(--r-card); padding: var(--s3); margin-bottom: var(--s2); }
.steps p:nth-of-type(3n + 1) { background: var(--coral); }
.steps p:nth-of-type(3n + 2) { background: var(--mint); }
.steps p:nth-of-type(3n + 3) { background: var(--lavender); }
.steps h2 + p { margin-top: var(--s1); }
.steps p + h2 { margin-top: var(--s5); }

.callout {
  background: var(--off-white);
  border-radius: var(--r-card);
  padding: var(--s3) var(--s4) var(--s2);
  margin-top: var(--s3);
}
.callout-label {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); background: var(--white); border-radius: var(--r-pill);
  padding: 5px 12px 5px 8px; margin: 0 0 var(--s2);
}
.callout h3 { margin-top: var(--s1); }

.contact .cta { margin: var(--s4) 0 var(--s2); }
.button {
  display: block; width: 100%;
  min-height: 52px; padding: 14px var(--s4);
  background: var(--rose); color: var(--white);
  font-weight: 700; font-size: 18px; text-align: center; text-decoration: none;
  border-radius: var(--r-button);
  overflow-wrap: anywhere;
}
.button:hover { color: var(--white); filter: brightness(0.96); }

/* ── Policy pages ── */
.doc-masthead { text-align: left; }
.doc h1 { margin-top: var(--s2); }
.doc h2 { padding-top: var(--s2); }

.table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 var(--s3); border-radius: var(--r-card); border: 1px solid var(--off-white); }
table { border-collapse: collapse; width: 100%; min-width: 320px; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--off-white); }
th { background: var(--off-white); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--off-white);
  padding-top: var(--s4); padding-bottom: calc(var(--s5) + env(safe-area-inset-bottom));
  color: var(--secondary); font-size: 14px; line-height: 1.5;
}
.site-footer p { margin-bottom: var(--s2); }
.site-footer a { padding: var(--s2) 0; display: inline-block; }

@media (min-width: 600px) {
  .hero { padding: 40px var(--s5); }
  .button { display: inline-block; width: auto; min-width: 320px; }
}
