/* Orange Cat Studios — landing page
   Palette is sampled from the logo: tabby orange, cream belly, dark brown outline. */

:root {
  --white: #ffffff;
  --cream: #fff5ea;
  --peach: #ffe4cc;
  --orange: #fb8f3c;        /* fills: bands, buttons (always paired with ink text) */
  --orange-hover: #f47d24;
  --orange-strong: #e8650c; /* large display text on white */
  --orange-deep: #b8410a;   /* small text and links on white */
  --ink: #3a1505;           /* the logo's outline brown */
  --ink-soft: #6b4a3a;

  --font-display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-s: 14px;
  --radius-m: 24px;
  --radius-l: 40px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(72px, 11vw, 136px);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 8.2vw, 5.75rem); line-height: 0.98; }
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.005em; }

p { text-wrap: pretty; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--orange-hover); }

.btn--ghost { border-color: rgba(58, 21, 5, 0.18); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--cream); }

.btn--small { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 46px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  font-weight: 500;
  font-size: 0.9875rem;
}
.nav__links a:not(.btn) { text-decoration: none; }
.nav__links a:not(.btn):hover { color: var(--orange-deep); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(48px, 8vw, 96px);
  text-align: center;
  /* a warm glow behind the cat, like a patch of sun */
  background: radial-gradient(ellipse min(520px, 75vw) 420px at 50% 100%, var(--peach), rgba(255, 228, 204, 0));
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 { max-width: 15ch; margin-top: 20px; }
.hero h1 em { font-style: normal; color: var(--orange-strong); }

.lede {
  max-width: 34rem;
  margin-top: 26px;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
}

.hero .actions { justify-content: center; margin-top: 34px; }

/* The cat naps on the top edge of the orange band below. */
.hero__cat {
  --cat-w: min(430px, 74vw);
  position: relative;
  z-index: 2;
  width: var(--cat-w);
  margin: clamp(40px, 6vw, 64px) auto calc(var(--cat-w) * -0.03);
}
.hero__cat img { width: 100%; transform-origin: 50% 96%; }

@media (prefers-reduced-motion: no-preference) {
  .hero__cat img { animation: breathe 4.6s ease-in-out infinite; }
}
@keyframes breathe {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.012, 1.022); }
}

/* ---------- Approach (orange band) ---------- */

.approach {
  position: relative;
  z-index: 1;
  padding-block: var(--section);
  background: var(--orange);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
}

.section-head { max-width: 44rem; }
.section-head h2 { margin-top: 14px; }
.section-head p:last-child { margin-top: 18px; font-size: 1.1875rem; text-wrap: balance; }

.approach .eyebrow { color: var(--ink); opacity: 0.72; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(36px, 5vw, 56px);
}

.card {
  padding: 30px 28px 32px;
  background: var(--white);
  border-radius: var(--radius-m);
  box-shadow: 0 18px 36px -22px rgba(92, 34, 0, 0.55);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--peach);
  color: var(--orange-strong);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-top: 22px; }
.card p { margin-top: 10px; color: var(--ink-soft); }

/* ---------- Work ---------- */

.apps { padding-block: var(--section); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(32px, 6vw, 72px);
  background: var(--cream);
  border-radius: var(--radius-l);
}

.feature__copy > p:not(.eyebrow) {
  max-width: 30rem;
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--ink-soft);
}
.feature__copy .actions { align-items: center; margin-top: 30px; }

.project__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}
.project__icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  box-shadow: 0 10px 22px -10px rgba(58, 21, 5, 0.55);
}
.feature__copy .project__sub {
  margin-top: 4px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.feature__copy .project__meta { margin-top: 16px; font-size: 0.9375rem; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  background: var(--white);
  border: 1.5px solid var(--peach);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.ticks {
  display: grid;
  gap: 14px;
  padding: 28px 28px 28px 26px;
  background: var(--white);
  border-radius: var(--radius-m);
  font-weight: 500;
}
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- Contact ---------- */

.contact { padding-bottom: var(--section); }

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  background: var(--orange);
  border-radius: var(--radius-l);
  text-align: center;
}
.panel p { max-width: 30rem; margin-top: 16px; font-size: 1.1875rem; }
.panel .btn { margin-top: 30px; max-width: 100%; }

/* ---------- Footer ---------- */

.footer {
  padding-block: 28px 40px;
  border-top: 1px solid rgba(58, 21, 5, 0.1);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.brand--small { font-size: 1.0625rem; color: var(--ink); }
.brand--small img { width: 38px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --radius-l: 28px; }
  .nav__links a:not(.btn) { display: none; }
  .brand { font-size: 1.0625rem; }
  .brand img { width: 40px; }
  .hero .actions .btn { flex: 1 1 auto; }
  .panel .btn { font-size: 0.9375rem; padding: 0 18px; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
