/* Mistress Contacts: Aubergine Night (house brief, 1 Dec 2026)
   Marcellus headings, Karla body. Soft corners, cards on the surface colour.
   Signature: a vertical accent bar on the left of every content section,
   drawn as a strap hanging from a small O-ring (the logo's mark). */

@font-face {
  font-family: "Marcellus";
  src: url("/fonts/marcellus-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/fonts/karla-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("/fonts/karla-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #160d1c;
  --surface: #22152b;
  --surface-2: #2b1a36;
  --tint: #2a1735;
  --text: #f5efe9;
  --muted: #c8bdb5;
  --join: #ab33c8;        /* brief #9a27b6, lifted so the button clears 3:1 on the surface and tint */
  --join-deep: #9a27b6;   /* the brief's purple, used for hover */
  --link: #d7a1e6;
  --line: rgba(245, 239, 233, 0.12);
  --plum-glow: rgba(171, 51, 200, 0.16);
  --font-head: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "Karla", "Segoe UI", Arial, sans-serif;
  --r: 14px;
  --r-btn: 10px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 400;
  background: var(--join); color: #ffffff; padding: 10px 16px; text-decoration: none; border-radius: var(--r-btn);
}
.skip-link:focus { left: 12px; top: 12px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* ---------- Buttons (soft corners) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  max-width: 100%; text-align: center; text-decoration: none; white-space: nowrap;
  font-family: var(--font-body); font-weight: 700; letter-spacing: 0.02em;
  border: 2px solid transparent; border-radius: var(--r-btn); cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1.06rem; }
.btn-join { background: var(--join); color: #ffffff; border-color: var(--join); box-shadow: 0 6px 18px rgba(171, 51, 200, 0.28); }
.btn-join:hover, .btn-join:focus-visible { background: var(--join-deep); border-color: var(--join-deep); color: #ffffff; }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(245, 239, 233, 0.45); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--link); color: var(--text); }

/* ---------- Header: minimal bar, logo left, Log In and Join Now right ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(22, 13, 28, 0.97);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(171, 51, 200, 0) 0%, rgba(171, 51, 200, 0.7) 50%, rgba(171, 51, 200, 0) 100%);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; flex: 0 0 auto; }
.brand-logo { width: 188px; height: auto; display: block; }
.mainnav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.mainnav a {
  color: var(--muted); text-decoration: none; font-size: 0.97rem; font-weight: 700;
  padding: 8px 14px; border-radius: var(--r-btn); position: relative;
}
.mainnav a:hover { color: var(--text); }
.mainnav a.active { color: var(--text); }
.mainnav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--join);
}
.mainnav a.nav-login { display: none; }
.header-cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.menu-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; background: transparent;
  border: 1px solid rgba(245, 239, 233, 0.3); border-radius: var(--r-btn); cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); }

/* ---------- Hero: full-bleed photo, copy panel on the right (clear of the centre third) ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--bg);
  min-height: 540px; height: min(84vh, 760px);
  display: flex; align-items: center;
}
.hero-media { position: absolute; inset: 0; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(270deg, rgba(22, 13, 28, 0.85) 0%, rgba(22, 13, 28, 0.35) 30%, rgba(22, 13, 28, 0) 50%),
    linear-gradient(0deg, rgba(22, 13, 28, 0.6) 0%, rgba(22, 13, 28, 0) 28%);
}
.hero-panel-wrap {
  position: relative; z-index: 2; width: 100%;
  display: flex; justify-content: flex-end;
  padding: 0 clamp(16px, 3vw, 56px);
}
.hero-panel {
  position: relative;
  width: min(30vw, 430px); min-width: 300px;
  background: rgba(34, 21, 43, 0.92);
  border: 1px solid rgba(215, 161, 230, 0.22);
  border-radius: var(--r);
  padding: 34px 30px 30px 50px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
/* the signature strap, carried into the hero panel */
.hero-panel::before {
  content: ""; position: absolute; left: 24px; top: 52px; bottom: 30px; width: 4px; border-radius: 2px;
  background: linear-gradient(180deg, var(--join) 0%, rgba(215, 161, 230, 0.35) 100%);
}
.hero-panel::after {
  content: ""; position: absolute; left: 18px; top: 32px; width: 16px; height: 16px; border-radius: 50%;
  border: 3px solid var(--link);
}
.hero-heading {
  font-family: var(--font-head); font-weight: 400; color: var(--text);
  font-size: clamp(2rem, 2.8vw, 2.6rem); line-height: 1.12; margin: 0 0 14px;
}
.hero-strapline { color: var(--muted); font-size: 1.07rem; line-height: 1.55; margin: 0 0 24px; }
.hero-btn { width: 100%; }

/* ---------- Content ---------- */
.section { padding: 3.8rem 0 0.8rem; }
.section--first { padding-top: 4.4rem; }
.prose { max-width: 760px; }
.prose p { margin: 0 0 1.15em; }
.prose p.lead { font-size: 1.19rem; line-height: 1.7; }
.prose p, .prose li { color: var(--text); }

/* Signature: a strap hanging from a small O-ring on the left of every content section */
.bar { position: relative; padding-left: 40px; }
.bar::before {
  content: ""; position: absolute; left: 6px; top: 1.45em; bottom: 0.6em; width: 4px; border-radius: 2px;
  background: linear-gradient(180deg, var(--join) 0%, var(--join) 30%, rgba(215, 161, 230, 0.45) 75%, rgba(215, 161, 230, 0) 100%);
}
.bar::after {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 16px; height: 16px; border-radius: 50%;
  border: 3px solid var(--link);
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; color: var(--text); }
h1 { font-size: clamp(2.1rem, 3.9vw, 3.1rem); line-height: 1.12; margin: 0 0 0.6em; letter-spacing: 0.005em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.2; margin: 2.2em 0 0.55em; }
h3 { font-size: 1.32rem; line-height: 1.3; margin: 0 0 0.45em; }
.bar > h2:first-child, .bar > .prose:first-child > h2:first-child { margin-top: 0; }

/* links in content stay links; buttons keep their own colours */
.seo-content a:not(.btn) { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.seo-content a:not(.btn):hover { color: #ffffff; text-decoration-color: var(--link); }
strong { font-weight: 700; color: var(--text); }

/* ---------- Bands ---------- */
.band { padding: 4rem 0; margin: 3.4rem 0 0; position: relative; }
.band--tint {
  background:
    radial-gradient(ellipse at 88% 10%, var(--plum-glow), rgba(171, 51, 200, 0) 55%),
    var(--tint);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

/* Pull-quote band */
.band--quote {
  background: linear-gradient(90deg, var(--surface) 0%, var(--tint) 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center;
}
.pullquote { margin: 0 auto; max-width: 860px; position: relative; padding-top: 34px; }
.pullquote::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 18px; height: 18px; margin-left: -9px;
  border-radius: 50%; border: 3px solid var(--link);
}
.pullquote::after {
  content: ""; position: absolute; left: 50%; top: 18px; width: 64px; height: 2px; margin-left: -32px;
  background: linear-gradient(90deg, rgba(171, 51, 200, 0), var(--join), rgba(171, 51, 200, 0));
}
.pullquote blockquote { margin: 0; }
.pullquote p {
  font-family: var(--font-head); font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.35;
  color: var(--text); margin: 0.4em 0 0;
}

/* Three-feature row (home) */
.feature-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 1.4rem; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px 20px; position: relative;
}
.feature::before {
  content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--link); margin-bottom: 14px;
}
.feature p { color: var(--muted); margin: 0 0 0.6em; }

/* Eight orders (home centrepiece): numbered cards, no connecting line */
.orders {
  list-style: none; margin: 1.8rem 0 0; padding: 0; counter-reset: o;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.orders li {
  counter-increment: o; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 24px 20px 82px; color: var(--muted); line-height: 1.65;
}
.orders li::before {
  content: counter(o, decimal-leading-zero); position: absolute; left: 22px; top: 18px;
  font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--link);
}
.orders li::after {
  content: ""; position: absolute; left: 24px; top: 58px; width: 34px; height: 2px; border-radius: 2px; background: var(--join);
}
.orders li strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.22rem; line-height: 1.35; margin-bottom: 6px; color: var(--text); }

/* Message day / summons day pair (/uk/) */
.day-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; margin-top: 1.2rem; align-items: start; }
.day-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px 10px;
}
.day-card p { margin: 0 0 1em; }
.day-card--summons { border-left: 4px solid var(--join); }
.three-things { list-style: none; margin: 0 0 1.1em; padding: 0; counter-reset: t; display: grid; gap: 10px; }
.three-things li {
  counter-increment: t; position: relative; padding: 12px 16px 12px 52px;
  background: var(--surface-2); border-radius: 10px; color: var(--text); line-height: 1.55;
}
.three-things li::before {
  content: counter(t); position: absolute; left: 14px; top: 11px; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--link); color: var(--link); font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}

/* Rail-reach table (/uk/ centrepiece) */
.table-wrap {
  margin: 1.4rem 0 1rem; overflow-x: auto;
  background: var(--surface); border-radius: var(--r); border: 1px solid var(--line);
}
.rail { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.6; }
.rail th, .rail td { text-align: left; vertical-align: top; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.rail thead th {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2);
}
.rail tbody tr:last-child th, .rail tbody tr:last-child td { border-bottom: 0; }
.rail tbody th { font-family: var(--font-head); font-weight: 400; font-size: 1.15rem; color: var(--text); width: 30%; }
.rail td { color: var(--muted); }
.rail td.suits { color: var(--text); }
.small-note { color: var(--muted); font-size: 0.97rem; }

/* Four moves (/find-your-mistress/): numbered ring cards, 2 x 2, no connecting line */
.moves {
  list-style: none; margin: 1.4rem 0 0; padding: 0; counter-reset: m;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.moves li {
  counter-increment: m; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 76px 26px 22px; color: var(--muted);
}
.moves li::before {
  content: counter(m); position: absolute; left: 24px; top: 22px; width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--link); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.25rem;
}
.moves li::after {
  content: ""; position: absolute; left: 72px; right: 26px; top: 41px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--join), rgba(171, 51, 200, 0));
}
.moves li strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.25rem; line-height: 1.3; margin-bottom: 6px; color: var(--text); }

/* Appetite tiles (/find-your-mistress/) */
.appetites {
  list-style: none; margin: 0.4rem 0 1.4rem; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
  max-width: 900px;
}
.appetites li {
  background: var(--surface); border-radius: var(--r); padding: 18px 20px 18px 22px;
  color: var(--text); border-top: 3px solid var(--join); line-height: 1.6;
}
.appetites li:nth-child(2n) { border-top-color: var(--link); }
.callout-line {
  background: var(--tint); border-radius: var(--r); padding: 18px 22px;
  border-left: 4px solid var(--link); font-family: var(--font-head); font-size: 1.2rem; line-height: 1.5;
}

/* Final Join band */
.band--join { margin-top: 3.6rem; padding: 3.6rem 0 4.4rem; }
.join-card {
  border-radius: 20px; padding: 48px 52px;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(171, 51, 200, 0.2), rgba(171, 51, 200, 0) 55%),
    linear-gradient(135deg, #2e1739 0%, #22152b 55%, #1b1022 100%);
  border: 1px solid rgba(171, 51, 200, 0.45);
}
.join-card .prose { max-width: 820px; }
.join-card p { font-size: 1.12rem; }
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; padding-left: 40px; }

.notfound { padding-bottom: 4rem; }

/* ---------- Footer ---------- */
.footer { background: #0f0913; color: var(--muted); padding: 3.2rem 0 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .brand-logo { width: 196px; }
.footer-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin: 0 0 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 4px 0; }
.footer a:hover { color: var(--link); }
.footer .brand { text-decoration: none; padding: 0; color: var(--text); }
.footer-bottom { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.9rem; }

/* ---------- Cookie banner ---------- */
.cookie {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--surface); color: var(--text); border-top: 2px solid var(--join);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.45);
}
.cookie.show { display: block; }
.cookie-inner {
  max-width: 1160px; margin: 0 auto; padding: 12px 32px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 0.95rem; line-height: 1.4;
}
.cookie-inner a { color: var(--link); text-decoration: underline; }
.cookie-accept {
  flex: 0 0 auto; min-height: 40px; padding: 0 20px;
  background: var(--join); color: #ffffff; border: 0; border-radius: var(--r-btn);
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; cursor: pointer;
}
.cookie-accept:hover { background: var(--join-deep); }

/* ---------- Tablet ---------- */
@media (max-width: 1023.98px) {
  .feature-row { grid-template-columns: 1fr; }
  .day-pair { grid-template-columns: 1fr; }
}

/* ---------- Accordion nav ---------- */
@media (max-width: 899.98px) {
  :root { --header-h: 62px; }
  .header-inner { flex-wrap: wrap; gap: 0 10px; min-height: var(--header-h); padding-top: 8px; padding-bottom: 8px; }
  .brand { order: 1; }
  .brand img, .brand svg, .brand-logo { width: clamp(110px, 33vw, 240px); }
  .header-cta { order: 2; margin-left: auto; }
  .header-login { display: none; }
  .menu-toggle { display: inline-flex; }
  .mainnav { order: 3; width: 100%; display: none; margin: 8px 0 0; border-top: 1px solid var(--line); }
  .mainnav.open { display: block; }
  .mainnav a { display: block; padding: 13px 6px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; color: var(--text); }
  .mainnav a.active::after { display: none; }
  .mainnav a.active { box-shadow: inset 4px 0 0 var(--join); padding-left: 16px; }
  .mainnav a.nav-login { display: block; }
}

/* ---------- Phones: hero sized by svh, button pinned to the bottom ---------- */
@media (max-width: 767.98px) {
  body { font-size: 1.03rem; }
  .container { padding: 0 16px; }
  .btn-sm { min-height: 40px; padding: 0 14px; font-size: 0.92rem; }

  .hero {
    display: flex; flex-direction: column; align-items: stretch;
    height: calc(100vh - 62px - 64px);
    height: calc(100svh - 62px - 64px);
    min-height: 400px;
  }
  .hero-media { position: relative; inset: auto; flex: 1 1 auto; min-height: 100px; }
  .hero-media picture, .hero-media img { position: absolute; inset: 0; }
  .hero-media img { object-position: center 20%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(22, 13, 28, 0) 55%, rgba(22, 13, 28, 0.92) 100%); }
  .hero-panel-wrap { flex: 0 0 auto; padding: 0; display: block; }
  .hero-panel {
    width: 100%; min-width: 0; border: 0; border-radius: 0; box-shadow: none;
    background: var(--bg); padding: 12px 16px 16px 40px;
  }
  .hero-panel::before { left: 19px; top: 34px; bottom: 82px; width: 3px; }
  .hero-panel::after { left: 14px; top: 16px; width: 13px; height: 13px; border-width: 2.5px; }
  .hero-heading { font-size: clamp(1.55rem, 7vw, 2rem); line-height: 1.14; margin-bottom: 8px; }
  .hero-strapline { font-size: 0.97rem; line-height: 1.45; margin-bottom: 14px; }
  .hero-btn { min-height: 50px; margin-left: -24px; width: calc(100% + 24px); }

  .section { padding: 2.6rem 0 0.4rem; }
  .section--first { padding-top: 2.6rem; }
  .band { padding: 2.8rem 0; margin-top: 2.4rem; }
  .bar { padding-left: 28px; }
  .bar::before { left: 5px; width: 3px; }
  .bar::after { width: 13px; height: 13px; border-width: 2.5px; }
  h2 { margin-top: 1.8em; }
  .prose p.lead { font-size: 1.1rem; }

  .orders, .moves, .appetites { grid-template-columns: 1fr; }
  .orders li { padding: 20px 18px 18px 68px; }
  .orders li::before { left: 16px; font-size: 1.7rem; }
  .orders li::after { left: 18px; top: 52px; width: 28px; }
  .moves li { padding: 70px 18px 18px; }
  .moves li::before { left: 18px; }
  .moves li::after { left: 66px; right: 18px; }
  .day-card { padding: 22px 18px 6px; }
  .three-things li { padding-left: 48px; }
  .join-card { padding: 30px 18px; border-radius: 16px; }
  .join-actions { padding-left: 0; }
  .join-actions .btn { flex: 1 1 140px; }
  .pullquote p { font-size: 1.45rem; }

  .table-wrap { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .rail thead { display: none; }
  .rail, .rail tbody, .rail tr, .rail th, .rail td { display: block; width: 100%; }
  .rail tr { background: var(--surface); border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px; border: 1px solid var(--line); }
  .rail th, .rail td { border: 0; padding: 4px 0; }
  .rail tbody th { width: 100%; font-size: 1.2rem; }
  .rail td::before {
    content: attr(data-label); display: block; font-size: 0.76rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .cookie-inner { padding: 8px 12px; gap: 10px; font-size: 0.84rem; justify-content: space-between; }
  .cookie-accept { min-height: 36px; padding: 0 14px; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* hero focus (bulk runner v15) */
@media (min-width: 768px) {
  picture img { object-position: 50% 2% !important; }
}
@media (max-width: 767px) {
  picture img { object-position: 50% 50% !important; }
}
