/*
Theme Name: MrKeating New Website
Theme URI: https://mrkeating.co.uk
Author: Mr Keating
Description: Editorial Astra child theme for the MrKeating personal brand.
Version: 7.0.0
Template: astra
Text Domain: mrkeating
*/

:root {
  --mk-ink: #17191a;
  --mk-paper: #f4f0e7;
  --mk-paper-2: #ebe5da;
  --mk-brass: #aa8650;
  --mk-navy: #162231;
  --mk-grey: #6b6e70;
  --mk-line: rgba(23, 25, 26, 0.18);
  --mk-white: #fffdf8;
  --mk-serif: Georgia, "Times New Roman", serif;
  --mk-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mk-max: 1240px;
  --mk-radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mk-paper);
  color: var(--mk-ink);
  font-family: var(--mk-sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.admin-bar .mk-site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--mk-brass); outline-offset: 4px; }
button, input, textarea, select { font: inherit; }

.ast-container, .site-content .ast-container { max-width: none; padding: 0; }
#primary { margin: 0; width: 100%; }
.ast-separate-container, .ast-plain-container { background: var(--mk-paper); }
.entry-content > * { max-width: none; }

.mk-skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 9999;
  background: var(--mk-white);
  padding: 10px 14px;
  border: 1px solid var(--mk-ink);
}
.mk-skip-link:focus { top: 16px; }

.mk-container {
  width: min(var(--mk-max), calc(100% - 48px));
  margin-inline: auto;
}
.mk-narrow { width: min(820px, calc(100% - 48px)); margin-inline: auto; }
.mk-section { padding: clamp(78px, 9vw, 140px) 0; border-top: 1px solid var(--mk-line); }
.mk-section--dark { background: var(--mk-ink); color: var(--mk-paper); }
.mk-section--navy { background: var(--mk-navy); color: var(--mk-paper); }
.mk-eyebrow {
  margin: 0 0 20px;
  color: var(--mk-brass);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.mk-display,
.mk-title,
.mk-section-title {
  margin: 0;
  font-family: var(--mk-serif);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.mk-display { font-size: clamp(3.5rem, 8.3vw, 8.6rem); }
.mk-title { font-size: clamp(3.2rem, 7vw, 7rem); }
.mk-section-title { font-size: clamp(2.7rem, 5.5vw, 5.5rem); }
.mk-lede { font-size: clamp(1.15rem, 2.1vw, 1.55rem); line-height: 1.5; max-width: 760px; }
.mk-muted { color: var(--mk-grey); }
.mk-section--dark .mk-muted, .mk-section--navy .mk-muted { color: #c5c0b7; }
.mk-rule { height: 1px; background: var(--mk-line); border: 0; margin: 36px 0; }

.mk-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--mk-paper) 94%, transparent);
  border-bottom: 1px solid var(--mk-line);
  backdrop-filter: blur(12px);
}
.mk-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.mk-logo { text-decoration: none; font-family: var(--mk-serif); font-size: 1.55rem; letter-spacing: -0.035em; }
.mk-logo span { color: var(--mk-brass); }
.mk-nav { display: flex; align-items: center; gap: 26px; }
.mk-nav a { text-decoration: none; font-size: 0.88rem; font-weight: 700; }
.mk-nav a:hover { color: var(--mk-brass); }
.mk-nav .mk-nav-cta { border: 1px solid var(--mk-ink); padding: 10px 14px; }
.mk-menu-toggle { display: none; border: 0; background: transparent; padding: 8px; font-weight: 800; }

.mk-hero { min-height: calc(100svh - 77px); display: grid; align-items: center; padding: clamp(72px, 10vw, 150px) 0; }
.mk-hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.mk-hero .mk-display span { display: block; }
.mk-hero-tagline { margin: 34px 0 0; font-family: var(--mk-serif); font-size: clamp(1.45rem, 2.7vw, 2.2rem); line-height: 1.2; max-width: 690px; }
.mk-hero-copy { margin: 24px 0 0; max-width: 660px; color: #44484a; }
.mk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.mk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 19px;
  border: 1px solid var(--mk-ink);
  border-radius: var(--mk-radius);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.mk-button:hover { transform: translateY(-2px); }
.mk-button--solid { background: var(--mk-ink); color: var(--mk-white); }
.mk-button--light { background: var(--mk-paper); color: var(--mk-ink); border-color: var(--mk-paper); }
.mk-button--ghost-light { color: var(--mk-paper); border-color: rgba(244,240,231,.65); }

.mk-workbench {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  background: #252729;
  border: 1px solid #080909;
  box-shadow: 0 26px 70px rgba(23,25,26,.22);
  isolation: isolate;
}
.mk-workbench:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 34px 34px;
}
.mk-workbench:after {
  content: "";
  position: absolute;
  inset: 12% 8% 10% 20%;
  z-index: -1;
  border: 1px solid rgba(170,134,80,.65);
  transform: rotate(-2deg);
}
.mk-avatar { position: absolute; right: -3%; bottom: 0; width: 88%; filter: sepia(.2) saturate(.8) contrast(1.05); }
.mk-note { position: absolute; max-width: 185px; background: var(--mk-paper); color: var(--mk-ink); padding: 13px 15px; font-family: var(--mk-serif); font-size: 0.92rem; line-height: 1.25; box-shadow: 0 8px 24px rgba(0,0,0,.24); }
.mk-note--one { top: 8%; left: 7%; transform: rotate(-3deg); }
.mk-note--two { right: 7%; top: 30%; transform: rotate(2deg); }
.mk-drawing { position: absolute; left: 7%; bottom: 8%; color: #d0b98e; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.mk-drawing:before { content: "01  →  02  →  03"; display: block; border-bottom: 1px solid #d0b98e; padding-bottom: 8px; margin-bottom: 8px; }

.mk-manifesto-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(40px, 8vw, 120px); }
.mk-manifesto-copy p { margin: 0 0 16px; font-family: var(--mk-serif); font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.2; }
.mk-manifesto-copy p:last-child { color: var(--mk-brass); }

.mk-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--mk-line); border: 1px solid var(--mk-line); margin-top: 54px; }
.mk-principle { min-height: 300px; padding: 32px; background: var(--mk-paper); display: flex; flex-direction: column; }
.mk-principle-number { color: var(--mk-brass); font-size: .75rem; letter-spacing: .15em; font-weight: 800; }
.mk-principle h3 { margin: auto 0 16px; font-family: var(--mk-serif); font-size: 1.8rem; font-weight: 400; line-height: 1.05; }
.mk-principle p { margin: 0; color: #4d5051; }

.mk-process { margin-top: 54px; border-top: 1px solid rgba(244,240,231,.28); }
.mk-process-step { display: grid; grid-template-columns: 80px .72fr 1.28fr; gap: 32px; align-items: start; padding: 34px 0; border-bottom: 1px solid rgba(244,240,231,.28); }
.mk-process-step .mk-num { color: var(--mk-brass); font-weight: 800; }
.mk-process-step h3 { margin: 0; font-family: var(--mk-serif); font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 400; }
.mk-process-step p { margin: 0; color: #c9c5bd; }

.mk-section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 48px; }
.mk-section-heading p { margin: 0; max-width: 480px; color: var(--mk-grey); }
.mk-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mk-card { display: flex; flex-direction: column; min-height: 330px; padding: 28px; background: var(--mk-white); border: 1px solid var(--mk-line); text-decoration: none; }
.mk-card:hover { border-color: var(--mk-brass); }
.mk-card-type { color: var(--mk-brass); font-size: .72rem; letter-spacing: .15em; font-weight: 800; text-transform: uppercase; }
.mk-card h3 { margin: auto 0 16px; font-family: var(--mk-serif); font-size: 1.8rem; line-height: 1.08; font-weight: 400; }
.mk-card p { margin: 0; color: #55595a; }
.mk-card-link { margin-top: 24px; font-size: .82rem; font-weight: 800; }

.mk-case-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 48px; }
.mk-case { min-height: 430px; padding: 38px; display: flex; flex-direction: column; justify-content: end; background: #26292b; color: var(--mk-paper); border: 1px solid rgba(255,255,255,.12); }
.mk-case:nth-child(2) { background: var(--mk-paper-2); color: var(--mk-ink); }
.mk-case:nth-child(3) { grid-column: 1 / -1; min-height: 300px; background: #2c3540; }
.mk-case small { color: var(--mk-brass); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.mk-case h3 { margin: 12px 0; font-family: var(--mk-serif); font-weight: 400; font-size: clamp(2rem, 4vw, 4rem); line-height: 1; }
.mk-case p { max-width: 650px; margin: 0; }

.mk-reality { position: relative; overflow: hidden; }
.mk-reality:after { content: "?"; position: absolute; right: -2vw; bottom: -19vw; color: rgba(255,255,255,.035); font-family: var(--mk-serif); font-size: 45vw; line-height: 1; pointer-events: none; }
.mk-reality-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: end; }
.mk-checklist { margin: 32px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(244,240,231,.25); }
.mk-checklist li { padding: 14px 0; border-bottom: 1px solid rgba(244,240,231,.25); }

.mk-page-hero { padding: clamp(90px, 12vw, 180px) 0 clamp(70px, 9vw, 130px); }
.mk-page-hero .mk-lede { margin-top: 30px; }
.mk-page-grid { display: grid; grid-template-columns: .62fr 1.38fr; gap: clamp(40px, 8vw, 120px); }
.mk-page-copy h2 { margin: 0 0 22px; font-family: var(--mk-serif); font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 400; line-height: 1; }
.mk-page-copy h3 { margin: 42px 0 12px; font-family: var(--mk-serif); font-size: 1.7rem; font-weight: 400; }
.mk-page-copy p, .mk-page-copy li { color: #45494a; }
.mk-page-copy blockquote { margin: 48px 0; padding-left: 24px; border-left: 3px solid var(--mk-brass); font-family: var(--mk-serif); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.25; }
.mk-page-copy ul { padding-left: 1.1em; }

.mk-lab-list { margin-top: 44px; border-top: 1px solid var(--mk-line); }
.mk-lab-item { display: grid; grid-template-columns: 130px 1fr 180px; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--mk-line); }
.mk-lab-item h3 { margin: 0; font-family: var(--mk-serif); font-size: 1.65rem; font-weight: 400; }
.mk-lab-item p { margin: 0; color: var(--mk-grey); }
.mk-lab-status { text-align: right; color: var(--mk-brass); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }

.mk-post-list { display: grid; gap: 1px; background: var(--mk-line); border: 1px solid var(--mk-line); }
.mk-post-item { background: var(--mk-paper); padding: 28px; text-decoration: none; }
.mk-post-item h2 { margin: 12px 0; font-family: var(--mk-serif); font-weight: 400; font-size: 2rem; }
.mk-post-meta { color: var(--mk-brass); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.mk-site-footer { padding: 70px 0 32px; background: #111314; color: var(--mk-paper); }
.mk-footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; }
.mk-footer-statement { margin: 0; font-family: var(--mk-serif); font-size: clamp(2rem, 4.4vw, 4.4rem); line-height: 1; max-width: 760px; }
.mk-footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; align-content: start; }
.mk-footer-nav a { color: #d1cdc5; text-decoration: none; }
.mk-footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 70px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); color: #a6a29b; font-size: .8rem; }

@media (max-width: 980px) {
  .mk-hero-grid, .mk-manifesto-grid, .mk-reality-grid, .mk-page-grid { grid-template-columns: 1fr; }
  .mk-hero { min-height: auto; }
  .mk-workbench { min-height: 500px; }
  .mk-principles, .mk-card-grid { grid-template-columns: repeat(2, 1fr); }
  .mk-process-step { grid-template-columns: 60px 1fr; }
  .mk-process-step p { grid-column: 2; }
  .mk-case-grid { grid-template-columns: 1fr; }
  .mk-case:nth-child(3) { grid-column: auto; }
}

@media (max-width: 760px) {
  body.admin-bar .mk-site-header { top: 46px; }
  .mk-container, .mk-narrow { width: min(100% - 30px, var(--mk-max)); }
  .mk-header-inner { min-height: 66px; }
  .mk-menu-toggle { display: block; }
  .mk-nav { display: none; position: absolute; left: 0; right: 0; top: 66px; padding: 20px 15px 26px; background: var(--mk-paper); border-bottom: 1px solid var(--mk-line); flex-direction: column; align-items: stretch; gap: 0; }
  .mk-nav.is-open { display: flex; }
  .mk-nav a { padding: 12px 0; }
  .mk-nav .mk-nav-cta { margin-top: 8px; text-align: center; }
  .mk-display { font-size: clamp(3.2rem, 16vw, 5.8rem); }
  .mk-workbench { min-height: 430px; }
  .mk-note--two { display: none; }
  .mk-principles, .mk-card-grid { grid-template-columns: 1fr; }
  .mk-principle { min-height: 240px; }
  .mk-section-heading { display: block; }
  .mk-section-heading p { margin-top: 22px; }
  .mk-process-step { grid-template-columns: 42px 1fr; gap: 16px; }
  .mk-case { min-height: 330px; padding: 26px; }
  .mk-lab-item { grid-template-columns: 1fr; gap: 8px; }
  .mk-lab-status { text-align: left; }
  .mk-footer-grid { grid-template-columns: 1fr; }
  .mk-footer-bottom { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
