/*
Theme Name: MR KCAL CAT ART
Theme URI: https://mrkcalcutecat.com/
Author: Mr Kcal & Cherry
Description: A lightweight editorial WordPress theme for handmade cat life-story art and private commission enquiries.
Version: 1.2.1
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: mrkcalcutecat
*/

:root {
  --ivory: #f4efe7;
  --paper: #fbf8f2;
  --sand: #d8c8b5;
  --charcoal: #282624;
  --orange: #b96f3d;
  --olive: #515347;
  --white: #fffdf8;
  --line: rgba(40, 38, 36, .16);
  --shadow: 0 24px 70px rgba(59, 44, 33, .09);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --measure: 75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: .25rem;
  z-index: 1000;
  background: linear-gradient(90deg, var(--orange), #d5a273 48%, var(--olive));
}
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--orange); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: .18rem solid var(--orange); outline-offset: .2rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: .75rem; left: .75rem; z-index: 9999; width: auto; height: auto; clip: auto; padding: .65rem 1rem; background: var(--charcoal); color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 231, .94);
  backdrop-filter: blur(16px);
}
.header-inner { max-width: var(--measure); margin: auto; min-height: 5.25rem; padding: .8rem 1.5rem; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; flex-direction: column; gap: .1rem; margin-right: auto; text-decoration: none; }
.brand-mark { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; letter-spacing: .05em; }
.brand-note { color: var(--olive); font-size: .67rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 1.35rem; }
.primary-nav ul { display: flex; align-items: center; gap: 1.35rem; margin: 0; padding: 0; list-style: none; }
.primary-nav a { font-size: .88rem; font-weight: 700; text-decoration: none; }
.primary-nav .current-menu-item > a, .primary-nav a:hover { color: var(--orange); }
.menu-toggle { display: none; border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: .55rem .85rem; color: var(--charcoal); font-weight: 750; }
.header-cta, .button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  padding: .7rem 1.2rem;
  background: var(--charcoal);
  color: var(--white);
  font-size: .87rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover, .header-cta:hover { transform: translateY(-2px); background: var(--orange); border-color: var(--orange); color: #fff; }
.button.secondary { background: transparent; color: var(--charcoal); }
.button.secondary:hover { background: var(--charcoal); color: #fff; }
.button.light { background: var(--white); color: var(--charcoal); border-color: var(--white); }

.hero { max-width: var(--measure); margin: auto; padding: clamp(3.5rem, 8vw, 8rem) 1.5rem 4rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(20rem, .94fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.eyebrow { margin: 0 0 1rem; color: var(--orange); font-size: .75rem; font-weight: 850; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; text-wrap: balance; }
h1 { margin: 0 0 1.35rem; font-size: clamp(3.45rem, 8.4vw, 7.6rem); letter-spacing: -.055em; }
h2 { margin: 0 0 1.25rem; font-size: clamp(2.2rem, 5vw, 4.6rem); letter-spacing: -.035em; }
h3 { margin: 0 0 .75rem; font-size: clamp(1.35rem, 2.2vw, 2rem); }
p { margin: 0 0 1.2rem; }
.hero-copy { max-width: 42rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.2rem; }
.microcopy { color: var(--olive); font-size: .83rem; }
.hero-art {
  position: relative;
  min-height: clamp(30rem, 54vw, 43rem);
  overflow: hidden;
  border-radius: 50% 50% 1.5rem 1.5rem;
  background: linear-gradient(145deg, #c59267, #a85e31 52%, #79543b);
  box-shadow: var(--shadow);
}
.hero-art::before { content: ''; position: absolute; inset: 8% 13%; border: 1px solid rgba(255,255,255,.45); border-radius: 50% 50% 1rem 1rem; }
.hero-art::after { content: 'DH'; position: absolute; right: 5%; bottom: -8%; color: rgba(255,255,255,.1); font-family: var(--serif); font-size: 16rem; line-height: 1; }
.media-note { position: absolute; left: 2rem; right: 2rem; bottom: 2rem; z-index: 2; border-top: 1px solid rgba(255,255,255,.5); padding-top: 1rem; color: #fff; }
.media-note strong { display: block; margin-bottom: .25rem; font-family: var(--serif); font-size: 1.5rem; }
.media-note span { font-size: .78rem; letter-spacing: .05em; }

.trust-strip { border-block: 1px solid var(--line); }
.trust-inner { max-width: var(--measure); margin: auto; padding: 1rem 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; color: var(--olive); font-size: .75rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.content-section, .page-content > * { max-width: var(--measure); margin-inline: auto; }
.page-content > .alignwide { max-width: var(--measure); }
.page-content > p, .page-content > h2, .page-content > h3, .page-content > ul, .page-content > ol, .page-content > blockquote { max-width: 48rem; padding-inline: 1.5rem; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 1.5rem; }
.section.paper { background: var(--paper); }
.section.dark { background: var(--charcoal); color: var(--white); }
.section.orange { background: var(--orange); color: #fff; }
.section-head { max-width: 54rem; margin-bottom: clamp(2.25rem, 5vw, 4.5rem); }
.lede { max-width: 48rem; color: var(--olive); font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
.dark .lede, .orange .lede { color: rgba(255,255,255,.78); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-height: 100%; border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1.35rem, 3vw, 2.2rem); background: rgba(255,255,255,.32); }
.card-number { display: block; margin-bottom: 2.5rem; color: var(--orange); font-size: .72rem; font-weight: 850; letter-spacing: .18em; }
.dark .card { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.04); }
.pathways { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.path { border-radius: 1rem; padding: 2rem; background: var(--sand); }
.path:last-child { background: var(--olive); color: #fff; }
.quote { margin: 3rem 0 0; border-left: .25rem solid var(--orange); padding: .75rem 0 .75rem 1.5rem; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1.25; }
.placeholder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.placeholder {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 1rem;
  padding: 1.4rem;
  color: #fff;
  background: linear-gradient(160deg, #997961, #51473f);
}
.placeholder:nth-child(2) { background: linear-gradient(160deg, #827b68, #44463e); }
.placeholder:nth-child(3) { background: linear-gradient(160deg, #c28a5e, #775035); }
.placeholder small { opacity: .8; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.status { display: inline-flex; width: fit-content; margin-bottom: auto; border: 1px solid rgba(255,255,255,.65); border-radius: 999px; padding: .35rem .7rem; font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { counter-increment: step; min-height: 17rem; padding: 2rem; background: var(--paper); }
.step::before { content: '0' counter(step); display: block; margin-bottom: 3rem; color: var(--orange); font-size: .75rem; font-weight: 850; letter-spacing: .18em; }
.social-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.social-card { flex: 1 1 16rem; border-bottom: 1px solid var(--line); padding: 1.5rem 0; text-decoration: none; }
.social-card strong { display: block; font-family: var(--serif); font-size: 1.7rem; }
.callout { max-width: var(--measure); margin: 0 auto clamp(4rem, 8vw, 7rem); border-radius: 1.25rem; padding: clamp(2rem, 6vw, 5rem); background: var(--charcoal); color: #fff; }

.page-hero { max-width: var(--measure); margin: auto; padding: clamp(4rem, 9vw, 8rem) 1.5rem 3.5rem; }
.page-hero h1 { max-width: 60rem; font-size: clamp(3rem, 7vw, 6.5rem); }
.page-hero .lede { max-width: 46rem; }
.breadcrumbs { margin-bottom: 2rem; color: var(--olive); font-size: .76rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumbs a { text-decoration: none; }
.article-shell { max-width: 52rem; margin: auto; padding: 0 1.5rem clamp(5rem, 10vw, 9rem); }
.article-shell h2 { margin-top: 3.5rem; }
.article-shell h3 { margin-top: 2.5rem; }
.article-shell ul, .article-shell ol { padding-left: 1.4rem; }
.policy-note { border-left: .25rem solid var(--orange); padding-left: 1.25rem; color: var(--olive); }
.timeline { border-left: 1px solid var(--sand); padding-left: 2rem; }
.timeline > * { position: relative; margin-bottom: 2.5rem; }
.timeline > *::before { content: ''; position: absolute; left: -2.4rem; top: .55rem; width: .75rem; height: .75rem; border-radius: 50%; background: var(--orange); }

.commission-wrap { max-width: 66rem; margin: auto; padding: 0 1.5rem clamp(5rem, 10vw, 9rem); }
.commission-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem 1.5rem; border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1.25rem, 4vw, 3.5rem); background: var(--paper); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label, .fieldset-label { font-size: .82rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #9a9188; border-radius: .45rem; padding: .78rem .85rem; background: #fff; color: var(--charcoal); }
.field textarea { min-height: 8rem; resize: vertical; }
.field-help { color: var(--olive); font-size: .75rem; }
.checks { display: grid; gap: .7rem; }
.check { display: grid; grid-template-columns: 1.2rem 1fr; align-items: start; gap: .55rem; font-size: .86rem; }
.check input { margin-top: .35rem; }
.form-notice { grid-column: 1 / -1; border-radius: .5rem; padding: 1rem 1.1rem; }
.form-notice.success { background: #e4eee5; color: #28452e; }
.form-notice.error { background: #f5e2dc; color: #6c2e1d; }
.hp-field { position: absolute !important; left: -9999px !important; }

.journal-grid { max-width: var(--measure); margin: auto; padding: 0 1.5rem clamp(5rem, 10vw, 9rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.post-card { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; }
.post-card a { text-decoration: none; }
.post-meta { margin-bottom: .75rem; color: var(--olive); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.site-footer { background: var(--charcoal); color: var(--white); }
.footer-inner { max-width: var(--measure); margin: auto; padding: clamp(3rem, 7vw, 6rem) 1.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-bottom: 4rem; }
.footer-brand { max-width: 28rem; }
.footer-brand strong { display: block; margin-bottom: 1rem; font-family: var(--serif); font-size: 2rem; }
.footer-nav { display: grid; gap: .55rem; }
.footer-nav a, .footer-consent-link { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-nav a:hover, .footer-consent-link:hover { color: #fff; }
.footer-consent-link { width: fit-content; border: 0; padding: 0; background: transparent; font: inherit; cursor: pointer; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.5rem; color: rgba(255,255,255,.6); font-size: .75rem; }
.footer-bottom a { color: inherit; }

.analytics-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  max-width: 70rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
  background: var(--paper);
  color: var(--charcoal);
  box-shadow: 0 1rem 4rem rgba(36, 31, 27, .2);
}
.analytics-consent[hidden] { display: none; }
.analytics-consent strong { display: block; margin-bottom: .35rem; font-family: var(--serif); font-size: 1.25rem; }
.analytics-consent p { margin: 0; font-size: .9rem; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.analytics-consent .button { white-space: nowrap; }

@media (max-width: 720px) {
  .analytics-consent { grid-template-columns: 1fr; }
  .analytics-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .analytics-consent .button { padding-inline: .8rem; }
}

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .primary-nav { position: absolute; inset: 100% 0 auto; display: none; border-bottom: 1px solid var(--line); padding: 1.2rem 1.5rem 1.5rem; background: var(--ivory); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a { display: block; padding: .8rem 0; }
  .primary-nav li:last-child { border: 0; padding-top: .8rem; }
  .primary-nav li:last-child a { border-radius: 999px; padding: .75rem 1rem; background: var(--orange); color: #fff; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 30rem; }
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .header-inner { min-height: 4.5rem; padding-inline: 1rem; }
  .brand-note { display: none; }
  .hero { padding-inline: 1rem; }
  .hero-grid { gap: 2.5rem; }
  h1 { font-size: clamp(3.1rem, 16vw, 5rem); }
  .hero-art { min-height: 26rem; }
  .trust-inner, .section, .page-hero { padding-inline: 1rem; }
  .cards, .cards.four, .placeholder-grid, .pathways, .split, .steps, .journal-grid, .footer-grid { grid-template-columns: 1fr; }
  .commission-form { grid-template-columns: 1fr; padding: 1.1rem; }
  .field { grid-column: 1 / -1; }
  .step { min-height: 0; }
  .step::before { margin-bottom: 1.5rem; }
  .actions .button { width: 100%; }
  .footer-grid { gap: 2rem; }
}

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