/* Mila Royale - modern preview (?look=modern). Light ivory, ink and gold,
   photography-led, plain language. Self-hosted faces only. */

@font-face { font-family: "Spectral"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/spectral-300.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/spectral-400.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 300; font-display: swap; src: url("fonts/spectral-300-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/plexsans-500.woff2") format("woff2"); }

:root {
  --ground: #F5F1EA;
  --surface: #FBF9F5;
  --ink: #17140F;
  --ink-soft: #4A443C;
  --ink-faint: #857D71;
  --rule: #E1D9CC;
  --gold: #94723C;
  --gold-soft: #B08D55;
  --on-gold: #FBF9F5;
  --night: #15181C;
  --night-ink: #EEE9E0;
  --night-soft: #ADA699;
  --night-rule: #2C3036;
  --serif: "Spectral", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 5vw, 3.5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #111316; --surface: #171A1E; --ink: #ECE7DE; --ink-soft: #B6AEA2; --ink-faint: #81796E;
    --rule: #2A2E33; --gold: #C7A66C; --gold-soft: #D8BA85; --on-gold: #111316;
    --night: #0B0D10; --night-ink: #ECE7DE; --night-soft: #A49C90; --night-rule: #24282D;
  }
}
:root[data-theme="dark"] {
  --ground: #111316; --surface: #171A1E; --ink: #ECE7DE; --ink-soft: #B6AEA2; --ink-faint: #81796E;
  --rule: #2A2E33; --gold: #C7A66C; --gold-soft: #D8BA85; --on-gold: #111316;
  --night: #0B0D10; --night-ink: #ECE7DE; --night-soft: #A49C90; --night-rule: #24282D;
}

*, *::before, *::after { box-sizing: border-box; }
:where(body, h1, h2, h3, p, ul, ol, li, figure, blockquote) { margin: 0; padding: 0; }
:where(ul, ol) { list-style: none; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ground); color: var(--ink);
  font-family: var(--serif); font-weight: 400; font-size: 1.0625rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--gold); color: var(--on-gold); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 0.9rem;
}
.label::after { content: ""; width: 2.5rem; height: 1px; background: currentColor; opacity: 0.6; }

.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; padding: 1rem 1.6rem; border: 1px solid var(--gold);
  background: var(--gold); color: var(--on-gold); border-radius: 0; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--on-gold); }
.btn span[aria-hidden] { font-size: 0.95rem; letter-spacing: 0; }

/* Top bar */
.m-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
}
.m-bar__in {
  max-width: var(--wrap); margin: 0 auto; padding: 1.5rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.m-mark { text-decoration: none; color: var(--ink); line-height: 1.2; }
.m-mark__name { display: block; font-family: var(--serif); font-weight: 300; font-size: 1.35rem; letter-spacing: 0.22em; text-transform: uppercase; }
.m-mark__sub { display: block; margin-top: 0.3rem; font-family: var(--sans); font-size: 0.5625rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-faint); }
.m-nav { display: flex; align-items: center; gap: 2rem; }
.m-nav a:not(.btn) {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
}
.m-nav a:not(.btn):hover { color: var(--ink); }
.m-nav .btn { padding: 0.75rem 1.2rem; }

/* Hero */
.m-hero { position: relative; min-height: min(94vh, 52rem); display: flex; align-items: center; overflow: hidden; }
.m-hero__img { position: absolute; top: 0; right: 0; bottom: 0; width: 70%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.m-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--ground) 0%, var(--ground) 32%, transparent 62%);
}
.m-hero__in { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 8rem var(--gutter) 5rem; }
.m-hero__text { max-width: 31rem; }
.m-hero h1 {
  margin-top: 1.6rem; font-weight: 300; font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.08;
  letter-spacing: -0.02em; text-wrap: balance;
}
.m-hero__sub { margin-top: 1.6rem; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.65; max-width: 27rem; }
.m-hero__cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; }
.m-hero__meta { font-family: var(--sans); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }

/* Sections */
.m-sec { padding: clamp(4rem, 9vw, 7rem) 0; }
.m-sec--rule { border-top: 1px solid var(--rule); }
.m-sec h2 {
  margin-top: 1.4rem; font-weight: 300; font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.15;
  letter-spacing: -0.015em; text-wrap: balance;
}
.m-sec p { color: var(--ink-soft); }

.m-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
.m-split__col > * + * { margin-top: 1.4rem; }
.m-split__col--rule { border-left: 1px solid var(--rule); padding-left: clamp(2rem, 4vw, 4rem); }
.m-lines { font-weight: 300; font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.22; letter-spacing: -0.015em; margin-top: 1.4rem; }
.m-lines span { display: block; }
.m-lines .turn { font-style: italic; color: var(--gold); }
.m-lead { font-size: 1.25rem; line-height: 1.55; font-weight: 300; }
.m-split .m-lead { color: var(--ink); }

/* Numbered situations, no icons */
.m-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.m-grid li { padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--rule); display: flex; gap: 1.5rem; align-items: baseline; }
.m-grid li:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--rule); }
.m-num { font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.15em; color: var(--gold); flex: none; }
.m-grid p { color: var(--ink); font-size: 1.125rem; line-height: 1.5; }

/* Night band */
.m-night { background: var(--night); color: var(--night-ink); }
.m-night__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: stretch; }
.m-night__img { position: relative; min-height: 22rem; overflow: hidden; }
.m-night__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.m-night__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, var(--night) 100%); }
.m-night__body { padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter) clamp(3.5rem, 8vw, 6.5rem) clamp(2rem, 5vw, 4.5rem); max-width: 40rem; }
.m-night h2 { color: var(--night-ink); }
.m-night .label { color: var(--gold-soft); }
.m-steps { margin-top: 2.25rem; counter-reset: s; }
.m-steps li { position: relative; padding: 1.1rem 0 1.1rem 2.75rem; border-top: 1px solid var(--night-rule); color: var(--night-soft); line-height: 1.6; }
.m-steps li:last-child { border-bottom: 1px solid var(--night-rule); }
.m-steps li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1.35rem;
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.15em; color: var(--gold-soft);
}
.m-steps strong { color: var(--night-ink); font-weight: 400; }

/* Outcomes */
.m-outcomes { margin-top: 2.75rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); }
.m-outcomes li { border-top: 1px solid var(--gold); padding-top: 1.4rem; color: var(--ink); font-size: 1.125rem; line-height: 1.5; font-weight: 300; }

/* Background */
.m-cred { margin-top: 1.8rem; padding: 1.4rem 0 1.4rem 1.6rem; border-left: 1px solid var(--gold); font-style: italic; font-weight: 300; font-size: 1.3rem; line-height: 1.5; color: var(--ink) !important; }

/* Quotes */
.m-quotes { margin-top: 2.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.m-quotes blockquote { display: flex; flex-direction: column; gap: 1.1rem; }
.m-quotes blockquote p { color: var(--ink); font-weight: 300; font-size: 1.1875rem; line-height: 1.6; }
.m-attrib { font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint); }
.m-attrib strong { color: var(--ink-soft); font-weight: 500; }

/* Contact */
.m-contact { background: var(--surface); border-top: 1px solid var(--rule); }
.m-contact .m-split { align-items: start; }
.enquiry { display: flex; flex-direction: column; gap: 1.75rem; max-width: 28rem; }
.field { display: flex; flex-direction: column; gap: 0.6rem; }
.field label { font-family: var(--sans); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.field input {
  font-family: var(--serif); font-size: 1.0625rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--rule); padding: 0.55rem 0; border-radius: 0; transition: border-color 160ms ease;
}
.field input:hover { border-bottom-color: var(--ink-faint); }
.field input:focus { outline: none; border-bottom-color: var(--gold); }
.field input:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.enquiry .btn { align-self: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.confidence { font-style: italic; font-weight: 300; font-size: 0.9375rem; color: var(--ink-faint) !important; }
.notice { border-left: 1px solid var(--gold); padding: 0.9rem 0 0.9rem 1.25rem; color: var(--ink) !important; }
.notice--error { border-left-color: var(--ink-faint); }
.m-contact a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 0.2em; }

/* Footer from footer.php */
.site-footer {
  max-width: var(--wrap); margin: 0 auto; padding: 2.5rem var(--gutter) 3rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; align-items: baseline;
  font-family: var(--sans); font-size: 0.6875rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint);
  border-top: 1px solid var(--rule);
}
.site-footer a { color: var(--ink-faint); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--gold); color: var(--on-gold); font-family: var(--sans); font-size: 0.75rem; padding: 0.75rem 1.25rem; }
.skip-link:focus { left: 0; }

/* Entrance */
.js .rise { opacity: 0; transform: translateY(0.7rem); animation: rise 900ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }
.js .m-hero__text .rise:nth-child(2) { animation-delay: 120ms; }
.js .m-hero__text .rise:nth-child(3) { animation-delay: 240ms; }
.js .m-hero__text .rise:nth-child(4) { animation-delay: 360ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .rise { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* Tablet */
@media (max-width: 62rem) {
  .m-nav a:not(.btn) { display: none; }
  .m-hero__img { width: 85%; }
  .m-hero::before { background: linear-gradient(90deg, var(--ground) 0%, var(--ground) 38%, transparent 75%); }
}

/* Phone */
@media (max-width: 46rem) {
  .m-bar { position: static; }
  .m-bar__in { padding-top: 1.1rem; padding-bottom: 1.1rem; }
  .m-mark__name { font-size: 1.05rem; }
  .m-mark__sub { display: none; }
  .m-nav .btn { padding: 0.65rem 0.9rem; font-size: 0.625rem; letter-spacing: 0.16em; }
  .m-hero { display: block; min-height: 0; }
  .m-hero::before { display: none; }
  .m-hero__img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: 50% 50%; }
  .m-hero__in { padding-top: 2.25rem; padding-bottom: 3.5rem; }
  .m-split, .m-quotes, .m-night__grid { grid-template-columns: 1fr; }
  .m-split__col--rule { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 2.5rem; }
  .m-grid { grid-template-columns: 1fr; }
  .m-grid li, .m-grid li:nth-child(even) { padding: 1.5rem 0; border-left: 0; }
  .m-outcomes { grid-template-columns: 1fr; gap: 1.75rem; }
  .m-night__img { min-height: 13rem; }
  .m-night__img::after { background: linear-gradient(180deg, transparent 50%, var(--night) 100%); }
  .m-night__body { padding: 2.5rem var(--gutter) 3.5rem; }
}

/* Portrait beside the enquiry */
.m-portrait { width: min(100%, 20rem); aspect-ratio: 539 / 662; object-fit: cover; margin-top: 2.25rem; border: 1px solid var(--rule); outline: 1px solid var(--gold); outline-offset: 6px; }

/* Full-bleed hero photograph with the headline on it */
.m-hero__img { width: 100% !important; object-position: 50% 50% !important; }
.m-hero::before {
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--ground) 90%, transparent) 0%,
    color-mix(in srgb, var(--ground) 72%, transparent) 34%,
    color-mix(in srgb, var(--ground) 18%, transparent) 62%,
    transparent 80%) !important;
}
.m-hero__text { max-width: 36rem; }
.m-hero h1 { margin-top: 0; font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
.m-turn { font-style: italic; color: var(--gold) !important; font-size: 1.25rem; font-weight: 300; }
.m-night__p { margin-top: 1.4rem; color: var(--night-soft); }
.m-night__sub { margin-top: 2.5rem; }
.m-night .m-steps { margin-top: 1.2rem; }
@media (max-width: 62rem) {
  .m-hero::before { background: linear-gradient(90deg, color-mix(in srgb, var(--ground) 92%, transparent) 0%, color-mix(in srgb, var(--ground) 80%, transparent) 50%, color-mix(in srgb, var(--ground) 30%, transparent) 100%) !important; }
}
@media (max-width: 46rem) {
  .m-hero::before { display: none !important; }
  .m-hero__img { aspect-ratio: 4 / 3 !important; object-position: 45% 50% !important; }
}
/* Legibility over the photograph */
.m-bar { background: linear-gradient(180deg, color-mix(in srgb, var(--ground) 88%, transparent) 0%, color-mix(in srgb, var(--ground) 55%, transparent) 70%, transparent 100%); }
.m-nav a:not(.btn) { color: var(--ink) !important; }
.m-hero__sub { color: var(--ink) !important; }
@media (max-width: 46rem) { .m-bar { background: var(--ground); } }

/* Breathing room before the numbered situations */
.m-grid { margin-top: clamp(3.5rem, 7vw, 5.5rem) !important; }
.m-sec--situations { padding-bottom: clamp(5rem, 11vw, 8.5rem); }
/* Never let text run past its column */
.m-split__col, .m-night__body, .m-hero__text, .m-grid li { min-width: 0; overflow-wrap: break-word; }
.m-split__col p, .m-night__body p { max-width: 36rem; }

.m-hero__meta { color: var(--ink) !important; text-shadow: 0 0 10px var(--ground), 0 0 4px var(--ground), 0 0 2px var(--ground); }
@media (max-width: 46rem) { .m-hero__meta { text-shadow: none; } }


/* 10 Nov: outcomes set large; portrait beside the background */
.m-outcomes { grid-template-columns: 1fr; gap: 0; max-width: none; }\n.m-outcomes li { text-wrap: balance; }
.m-outcomes li { font-size: clamp(1.5rem, 2.9vw, 2.25rem); line-height: 1.25; letter-spacing: -0.015em; padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.m-outcomes li:first-child { border-top-color: var(--gold); }
.m-about { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.m-portrait--about { width: 100%; margin-top: 0.5rem; }
.m-about .m-lead { color: var(--ink); }
.m-words { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.m-words > div { border-top: 1px solid var(--rule); padding-top: 2.5rem; }
.m-words .m-quotes { margin-top: 1.6rem; }
@media (max-width: 62rem) {
  .m-about { grid-template-columns: 1fr; }
  .m-portrait--about { width: min(100%, 18rem); }
  .m-outcomes { gap: 0; }
}
