/* Meow Me Rescue
   Brand: ink #111111, orange #F28F3B, white. Angular shapes, notched "ear-tip" corners. */

:root {
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --orange: #F28F3B;
  --orange-soft: #FCE3CC;
  --cream: #FAF5EE;
  --paper: #FFFFFF;
  --muted: #595550;
  --line: #E6DDD0;

  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --notch: 14px;
  --tip: 30px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--orange); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.75rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.02em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
}
.skip-link:focus { top: 16px; }

/* Eyebrow label: echoes the thin, wide-tracked wordmark */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 12px; height: 12px; background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.55; color: var(--ink-soft); max-width: 38em; }
.accent { color: var(--orange); }
.mark-underline { background: linear-gradient(transparent 68%, var(--orange) 68%, var(--orange) 90%, transparent 90%); }

/* ---------- Buttons: notched top-right corner ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 12px 28px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 1rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 0; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%);
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:hover { --btn-bg: var(--orange); --btn-fg: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--btn-fg); outline-offset: -7px; }
.btn-orange { --btn-bg: var(--orange); --btn-fg: var(--ink); }
.btn-orange:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); }
.btn-light { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn-sm { min-height: 42px; padding: 10px 20px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }

.text-link {
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem;
  text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px;
}
.text-link:hover { color: var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { width: 190px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-size: .88rem;
  text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { border-bottom-color: var(--orange); }
.site-nav ul a[aria-current="page"] { border-bottom-color: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .brand img { width: 160px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 0; background: var(--ink); cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--paper); position: relative; transition: transform .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .site-nav ul a[aria-current="page"] { border-bottom-color: var(--line); color: var(--orange); }
  .site-nav .btn { margin-top: 20px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-cream { background: var(--cream); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink .lede { color: #d8d3cc; }
.section-orange { background: var(--orange); color: var(--ink); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Hero ---------- */
.hero { background: var(--cream); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px);
}
.hero h1 { margin-bottom: .35em; }
.hero-art { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.hero-art::before {
  content: ""; position: absolute; inset: 6% 0 0 10%;
  background: var(--orange);
  clip-path: polygon(0 0, calc(100% - 22%) 0, 100% 22%, 100% 100%, 0 100%);
}
.hero-art::after {
  content: ""; position: absolute; inset: 0 10% 6% 0;
  border: 2px solid var(--ink);
  clip-path: polygon(0 0, calc(100% - 22%) 0, 100% 22%, 100% 100%, 0 100%);
}
.hero-art-card {
  position: relative; z-index: 1; width: 78%;
  background: var(--paper); padding: 13% 11%;
  clip-path: polygon(0 0, calc(100% - 18%) 0, 100% 18%, 100% 100%, 0 100%);
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 2.25rem; padding: 0; list-style: none; }
.hero-stats li {
  font-size: .82rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-stats li::before { content: ""; width: 8px; height: 8px; background: var(--ink); transform: rotate(45deg); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; width: 100%; margin: 0 auto; order: -1; }
}

/* Page hero for inner pages */
.page-hero { background: var(--cream); padding: clamp(56px, 8vw, 100px) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero h1 { max-width: 14em; }
.page-hero::after {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: clamp(160px, 22vw, 300px); aspect-ratio: 636 / 480;
  background: url("/vector/meow-me_mark_black.svg") center / contain no-repeat;
  opacity: .06; pointer-events: none;
}

/* ---------- Cards (with orange ear-tip corner) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--paper); padding: clamp(28px, 3vw, 40px);
  border: 2px solid var(--ink);
  display: flex; flex-direction: column;
}
.card::after {
  content: ""; position: absolute; top: -2px; right: -2px; width: var(--tip); height: var(--tip);
  background: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.card h3 { margin-top: .25rem; }
.card p { color: var(--ink-soft); }
.card .text-link { margin-top: auto; align-self: flex-start; }
.card-num {
  font-size: .8rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
}
.card-icon { width: 54px; height: 54px; margin-bottom: 18px; }
.section-ink .card { background: var(--ink-soft); border-color: #3a3a3a; }
.section-ink .card p { color: #d8d3cc; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 72px 1fr; gap: 20px;
  padding: 26px 0; border-top: 2px solid var(--ink);
}
.steps li:last-child { border-bottom: 2px solid var(--ink); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 2rem; font-weight: 300; letter-spacing: .02em; line-height: 1; color: var(--orange);
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.check-list li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); }
.section-ink .check-list li { border-bottom-color: #333; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 17px; width: 16px; height: 16px;
  background: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* ---------- Cats ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.cat-card { position: relative; background: var(--paper); border: 2px solid var(--ink); display: flex; flex-direction: column; }
.cat-photo { aspect-ratio: 4 / 5; background: var(--cream); overflow: hidden; }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; }
.cat-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-body h3 { margin: 0; font-size: 1.5rem; }
.cat-meta { font-size: .8rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cat-body p { color: var(--ink-soft); margin: 4px 0 12px; }
.cat-body .text-link { margin-top: auto; align-self: flex-start; }
.cat-status {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: var(--ink); color: var(--paper);
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: 6px 10px;
}
.cat-status.is-pending { background: var(--orange); color: var(--ink); }

.empty-state {
  position: relative; border: 2px dashed var(--ink); padding: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 40px); align-items: center;
  background: var(--paper);
}
.empty-state img { width: clamp(80px, 12vw, 130px); }
.empty-state h3 { font-size: 1.6rem; }
.empty-state p { color: var(--ink-soft); }
@media (max-width: 600px) { .empty-state { grid-template-columns: 1fr; } }

/* ---------- Instagram band ---------- */
.ig-band { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; }
.ig-band h2 { margin: 0; }
@media (max-width: 720px) { .ig-band { grid-template-columns: 1fr; } }

/* ---------- Quote ---------- */
.quote {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 300; line-height: 1.3; letter-spacing: -.01em;
  margin: 0; max-width: 24em;
}
.quote strong { font-weight: 600; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block; margin-bottom: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 0;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.field-hint { font-size: .9rem; color: var(--muted); margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 18px 22px; border-left: 6px solid var(--ink); background: var(--cream); margin-bottom: 24px; }
.notice-success { border-left-color: var(--orange); }
.notice-error { border-left-color: #B3261E; background: #FBEAEA; }
.notice p { margin: 0; }

.info-block { border-top: 2px solid var(--ink); padding-top: 20px; margin-bottom: 32px; }
.info-block h3 { font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Donate ---------- */
.amounts { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; padding: 0; list-style: none; }
.amounts li {
  border: 2px solid var(--ink); padding: 14px 18px; min-width: 150px;
  display: flex; flex-direction: column; gap: 2px;
}
.amounts strong { font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.amounts span { font-size: .95rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d8d3cc; padding: clamp(56px, 7vw, 88px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand img { width: 190px; margin-left: -18px; }
.footer-heading {
  color: var(--paper); font-size: .82rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 18px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--orange); }
.footer-cta p { margin-bottom: 20px; }
.footer-base {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid #2e2e2e;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .9rem; color: #9b958d;
}
.footer-base p { margin: 0; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-cta { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Color overrides for orange sections ---------- */
.section-orange .eyebrow::before { background: var(--ink); }
.section-orange .btn:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.section-ink .eyebrow { color: var(--paper); }
.section-ink .btn-light:hover { --btn-bg: var(--orange); --btn-fg: var(--ink); }
