/* mariagutierrez.co.uk
   Layout: full-width colour blocks stacked flush (charcoal, white, stone, plum), each
   holding a 1120px column. Heavy Inter Tight headlines, photography set into the
   dark hero as a split. Follows the Codex website concepts and the design system. */

@font-face { font-family: "Inter"; src: url("fonts/Inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("fonts/InterTight-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* Brand colours, exact */
  --plum: #493043;
  --plum-deep: #3e2738;
  --stone: #eeecea;
  --charcoal: #171719;
  --slate: #626166;
  --white: #ffffff;
  /* Roles */
  --ink: var(--charcoal);
  --ink-muted: var(--slate);
  --rule: rgba(98, 97, 102, .3);
  --rule-on-dark: rgba(238, 236, 234, .24);
  --on-dark: var(--white);
  --on-dark-muted: var(--stone);

  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --content-max: 1120px;
  --gutter: clamp(16px, 4.5vw, 48px);
  --edge: max(var(--gutter), calc((100cqw - var(--content-max)) / 2));  /* left edge of the column, for split blocks; cqw of the hero, so a scrollbar never shifts it */
  --block: clamp(44px, 5.5vw, 68px);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 27px; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
::selection { background: var(--plum); color: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--charcoal); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--charcoal); color: var(--white); padding: 8px 16px; font-size: 15px; z-index: 10; text-decoration: none; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: calc(var(--content-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Blocks ---------- */
.block { padding-block: var(--block); }
.white { background: var(--white); color: var(--ink); }
.stone { background: var(--stone); color: var(--ink); }
.plum { background: var(--plum-deep); color: var(--on-dark); }
.charcoal { background: var(--charcoal); color: var(--on-dark); }

.label { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.dark .label, .plum .label, .charcoal .label { color: var(--on-dark-muted); }
.lead { font-size: 19px; line-height: 30px; }
.dark .lead, .plum .lead { color: var(--on-dark-muted); }

.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; font: 700 16px/1 var(--font-display); letter-spacing: -0.01em; text-decoration: none; border: 1px solid var(--charcoal); background: var(--charcoal); color: var(--white); transition: background-color .2s ease, border-color .2s ease, color .2s ease; white-space: nowrap; }
.button:hover { background: var(--plum); border-color: var(--plum); }
.button--light { background: var(--white); border-color: var(--white); color: var(--charcoal); }
.button--light:hover { background: var(--stone); border-color: var(--stone); }
.button--plum { background: var(--plum); border-color: var(--plum); }
.button--plum:hover { background: var(--charcoal); border-color: var(--charcoal); }

.arrow-link { display: inline-flex; align-items: center; gap: .5em; font: 700 17px/1.2 var(--font-display); letter-spacing: -0.01em; text-decoration: none; }
.arrow-link span { display: inline-block; font-size: 1.4em; line-height: 1; transition: transform .2s ease; }
.arrow-link:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { background: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.wordmark { display: inline-flex; flex-direction: column; align-items: stretch; gap: 5px; text-decoration: none; width: max-content; }
.wordmark__name { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 28px; letter-spacing: -0.03em; }
/* The tagline is spread to the exact width of the name: words and dots are flex items */
.wordmark__desc { display: flex; justify-content: space-between; font-size: 10.5px; line-height: 13px; letter-spacing: .04em; color: var(--ink); }
.wordmark__desc > span:last-child { margin-right: -.04em; }
.nav { display: flex; gap: clamp(18px, 3vw, 36px); font-size: 15px; line-height: 22px; font-weight: 500; }
.nav a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .25s ease; padding-block: 3px; }
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 1.5px; }

/* ---------- Split hero: text on charcoal, photograph set into the right half ---------- */
.hero { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); min-height: clamp(460px, 44vw, 600px); }
.hero__text { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 64px) clamp(48px, 6vw, 80px) var(--edge); }
.hero h1 { font-size: clamp(44px, 4.9vw, 70px); line-height: .96; letter-spacing: -0.042em; max-width: 9.5em; }
.hero .lead { max-width: 30ch; }
.hero .button { align-self: flex-start; margin-top: 8px; }
.hero__photo { position: relative; margin: 0; overflow: hidden; background: var(--plum); }
/* The photo meets the charcoal at a hard edge: no photo fades (brand rule) */
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Experience strip ---------- */
.experience h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.02; }
.employers { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; font: 700 clamp(17px, 1.6vw, 21px)/1.3 var(--font-display); letter-spacing: -0.015em; color: var(--ink-muted); }

/* ---------- Services on stone ---------- */
.services-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: 32px; }
.services-head h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.02; }
.services-head p { max-width: 44ch; color: var(--ink-muted); }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service { min-width: 0; padding: 4px 24px 0; border-left: 1px solid var(--rule); }
.service:first-child { padding-left: 0; border-left: 0; }
.service:last-child { padding-right: 0; }
.service .label { display: block; min-height: 16px; margin-bottom: 10px; color: var(--plum); }
.service h3 { font-size: 22px; line-height: 1.1; letter-spacing: -0.024em; }
.service p { margin-top: 10px; font-size: 15.5px; line-height: 24px; color: var(--ink-muted); }

/* ---------- Plum feature: two ideas side by side ---------- */
.plum-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.idea { min-width: 0; padding-right: 40px; }
.idea + .idea { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--rule-on-dark); }
.idea h3 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.04; letter-spacing: -0.032em; }
.idea p { margin-top: 12px; color: var(--on-dark-muted); max-width: 40ch; }
.plum .arrow-link { color: var(--white); }

/* ---------- Big statement band (plum) ---------- */
.statement .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.statement h2 { font-size: clamp(32px, 4.4vw, 58px); line-height: .98; letter-spacing: -0.04em; }
.statement p { margin-top: 14px; color: var(--on-dark-muted); }
.statement .round { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--rule-on-dark); border-radius: 50%; text-decoration: none; font-size: 28px; color: var(--white); transition: background-color .2s ease, border-color .2s ease; }
.statement .round:hover { background: var(--white); color: var(--plum-deep); border-color: var(--white); }

/* ---------- CTA row ---------- */
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; }
.cta h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1; letter-spacing: -0.038em; }
.cta__side { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta__email { font-size: 17px; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; overflow-wrap: anywhere; }
.cta__email:hover { color: var(--plum); }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--rule); }
.site-footer .wrap { padding-block: 28px; display: grid; gap: 18px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.site-footer .wordmark__name { font-size: 22px; line-height: 22px; }
.site-footer .wordmark__desc { font-size: 11px; line-height: 14px; color: var(--ink-muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; font-weight: 500; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal { font-size: 12.5px; line-height: 19px; color: var(--ink-muted); max-width: 90ch; }

/* ---------- About ---------- */
.intro-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.intro-split > * { min-width: 0; }
.intro-split h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: .98; letter-spacing: -0.04em; }
.intro-split .lead { margin-top: 18px; }
.intro-split .aside { padding-left: 32px; border-left: 1px solid var(--rule); font-size: 16px; line-height: 26px; color: var(--ink-muted); }
.intro-split .aside p + p { margin-top: 14px; }

.chapters { display: grid; gap: 40px; }
.chapter { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px 48px; }
.chapter > * { min-width: 0; }
.chapter h2 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.04; letter-spacing: -0.03em; }
.chapter__body { max-width: 66ch; }
.chapter__body p + p { margin-top: 14px; }
.chapter + .chapter { padding-top: 40px; border-top: 1px solid var(--rule); }

.career-block { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 16px 48px; }
.career-block > * { min-width: 0; }
.career-block h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1; }
.career { width: 100%; border-collapse: collapse; }
.career td { padding: 13px 24px 13px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 15.5px; line-height: 23px; }
.career tr:first-child td { padding-top: 0; }
.career td:first-child { font: 800 19px/23px var(--font-display); letter-spacing: -0.02em; white-space: nowrap; width: 32%; }
.career td:last-child { padding-right: 0; color: var(--ink); }
.career-note { margin-top: 14px; font-size: 14.5px; color: var(--ink-muted); }

.approach h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: .98; letter-spacing: -0.04em; margin-top: 10px; }
.steps { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { min-width: 0; padding-right: 28px; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--rule-on-dark); }
.step:last-child { padding-right: 0; }
.step h3 { font-size: 24px; line-height: 1.1; letter-spacing: -0.026em; }
.step p { margin-top: 8px; font-size: 15.5px; line-height: 24px; color: var(--on-dark-muted); }

/* ---------- Speaking page ---------- */
.page-hero h1 { font-size: clamp(40px, 5.4vw, 74px); line-height: .96; letter-spacing: -0.042em; margin-top: 14px; }
.page-hero .lead { margin-top: 20px; max-width: 46ch; }
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.topic { min-width: 0; padding-right: 28px; }
.topic + .topic { padding-left: 28px; border-left: 1px solid var(--rule); }
.topic:last-child { padding-right: 0; }
.topic h3 { font-size: 24px; line-height: 1.08; letter-spacing: -0.026em; }
.topic p { margin-top: 10px; font-size: 15.5px; line-height: 24px; color: var(--ink-muted); }
.section-title { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.02; margin-bottom: 28px; }
.formats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.formats li { min-width: 0; border-top: 2px solid var(--charcoal); padding-top: 14px; }
.formats b { display: block; font: 800 20px/1.15 var(--font-display); letter-spacing: -0.022em; }
.formats span { display: block; margin-top: 6px; font-size: 15.5px; line-height: 24px; color: var(--ink-muted); }
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.channel { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-width: 0; padding: 22px 24px; background: var(--white); text-decoration: none; border: 1px solid var(--rule); transition: border-color .2s ease; }
.channel:hover { border-color: var(--charcoal); }
.channel h3 { font-size: 24px; line-height: 1.1; }
.channel p { margin-top: 4px; font-size: 15px; line-height: 23px; color: var(--ink-muted); }
.channel > span { font-size: 26px; transition: transform .2s ease; }
.channel:hover > span { transform: translate(2px, -2px); }


/* ---------- Experience: headline left, roles in a ruled grid right ---------- */
.exp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
.exp > * { min-width: 0; }
.exp h2 { font-size: clamp(30px, 3.3vw, 44px); line-height: 1; letter-spacing: -0.038em; margin-top: 12px; }
.exp__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.exp__grid li { min-width: 0; padding: 18px 20px 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; align-content: start; gap: 4px; }
.exp__grid b { font: 800 20px/1.15 var(--font-display); letter-spacing: -0.024em; }
.exp__grid span { font-size: 13.5px; line-height: 19px; color: var(--ink-muted); }

/* ---------- How I help: one feature panel, three supporting rows ---------- */
.help { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 clamp(32px, 4vw, 56px); }
.help > * { min-width: 0; }
.help__head h2 { font-size: clamp(30px, 3.3vw, 44px); line-height: 1; letter-spacing: -0.038em; margin-top: 12px; }
.help__lead { align-self: end; color: var(--ink-muted); padding-bottom: 4px; }
.help__main { grid-column: 1; margin-top: 32px; background: var(--white); padding: clamp(28px, 3.4vw, 44px); display: grid; align-content: start; gap: 14px; }
.help__main .label { color: var(--plum); }
.help__main h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.02; letter-spacing: -0.034em; }
.help__main > p:not(.label) { max-width: 52ch; }
.help__main .checklist { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--rule); }
.help__list { grid-column: 2; margin-top: 32px; border-top: 2px solid var(--charcoal); display: grid; align-content: start; }
.help__item { padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
.help__item h3 { font-size: 21px; line-height: 1.12; letter-spacing: -0.024em; }
.help__item p { margin-top: 8px; font-size: 15.5px; line-height: 24px; color: var(--ink-muted); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15.5px; line-height: 24px; }
.checklist li { display: grid; grid-template-columns: 24px minmax(0, 1fr); }
.checklist li::before { content: ""; width: 12px; height: 2px; margin-top: 11px; background: var(--plum); }

/* ---------- Hero variant for the conference photo: full bleed, text over a charcoal wash ---------- */
.hero--stage { position: relative; isolation: isolate; grid-template-columns: minmax(0, 1fr); }
.hero--stage .hero__photo { position: absolute; inset: 0; z-index: -2; }
.hero--stage .hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 23, 25, .86) 0%, rgba(23, 23, 25, .6) 48%, rgba(23, 23, 25, .1) 100%); }
.hero--stage .hero__text { max-width: calc(var(--edge) + 640px); }

@media (max-width: 900px) {
  .exp, .help { grid-template-columns: minmax(0, 1fr); }
  .help__lead { margin-top: 12px; }
  .help__main, .help__list { grid-column: 1; }
  .help__list { margin-top: 24px; }
}
@media (max-width: 560px) {
  .exp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exp__grid li { padding: 14px 14px 16px; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .service:nth-child(3) { padding-left: 0; border-left: 0; }
  .service:nth-child(2) { padding-right: 0; }
}
@media (max-width: 760px) {
  .hero { min-height: 420px; }
  .hero__text { padding: 40px 24px 44px var(--gutter); }
  .employers { justify-content: flex-start; gap: 4px 22px; }
  .services, .ideas, .steps, .topics, .formats, .channels, .intro-split, .chapter, .career-block { grid-template-columns: minmax(0, 1fr); }
  .service, .service:nth-child(3), .idea, .idea + .idea, .step, .step + .step, .topic, .topic + .topic { padding: 22px 0 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--rule); }
  .services { row-gap: 22px; }
  .idea + .idea, .step + .step { border-top: 1px solid var(--rule-on-dark); margin-top: 22px; }
  .topic + .topic { border-top: 1px solid var(--rule); margin-top: 22px; }
  .intro-split .aside { padding-left: 0; border-left: 0; padding-top: 20px; border-top: 1px solid var(--rule); }
  .chapter { gap: 10px; }
  .statement .round { width: 52px; height: 52px; font-size: 22px; }
  .service .label:empty { display: none; }
  .plum-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 560px) {
  /* Phones: wording first, photo below it */
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__text { padding: 36px var(--gutter) 28px; }
  .hero__photo { aspect-ratio: 4 / 3; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 14px; }
  .lead { font-size: 18px; line-height: 28px; }
  .statement .wrap { align-items: flex-end; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
}
