/*
Theme Name: TOOTCAT
Theme URI: https://tootcat.co.uk
Author: TOOTCAT LTD
Author URI: https://tootcat.co.uk
Description: Editorial one-page company site for TOOTCAT LTD — a UK studio building curious AI agents in software and hardware. GitOps-managed via ConfigMap.
Version: 1.0.0
License: MIT
License URI: https://opensource.org/licenses/MIT
Text Domain: tootcat
*/

/* ---------------------------------------------------------------------------
   Design tokens
--------------------------------------------------------------------------- */
:root {
  --paper:      #f7f6f2;
  --paper-2:    #ffffff;
  --ink:        #15151a;
  --ink-soft:   #3a3a44;
  --muted:      #6b6b76;
  --line:       #e4e2da;
  --line-soft:  #eeede7;
  --accent:     #4f46e5;
  --accent-ink: #3a31c4;
  --accent-wash:#eef0ff;

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gut: 24px;
}

/* ---------------------------------------------------------------------------
   Reset / base
--------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

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

/* Shared eyebrow / kicker */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
  padding: 0.85em 1.4em; border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent); color: #fff;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 1px 0 rgba(20,20,30,.04);
}
.btn:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn--ghost:hover { background: var(--paper-2); border-color: var(--ink); }
.btn--quiet { padding: 0; border: 0; background: none; color: var(--accent-ink); border-radius: 0; }
.btn--quiet:hover { background: none; color: var(--ink); transform: none; }

/* ---------------------------------------------------------------------------
   Header
--------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.brand__dot { color: var(--accent); }
.site-nav { display: flex; gap: 2rem; }
.site-nav a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
  transition: color .15s ease;
}
.site-nav a:hover { color: var(--ink); }

/* ---------------------------------------------------------------------------
   Section scaffolding (editorial hairline grid)
--------------------------------------------------------------------------- */
.section { border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.section__inner { padding: clamp(3.5rem, 8vw, 7rem) var(--gut); }
.section__head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__title { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.08; }
.section__lead { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.12rem; max-width: 56ch; }

/* ---------------------------------------------------------------------------
   Hero
--------------------------------------------------------------------------- */
.hero { border-bottom: 1px solid var(--line); }
.hero__inner { padding: clamp(4rem, 11vw, 9rem) var(--gut) clamp(3.5rem, 9vw, 7rem); }
.hero__title {
  font-size: clamp(2.7rem, 7.5vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.hero__title em { font-style: italic; color: var(--accent-ink); }
.hero__lead {
  margin-top: 1.6rem; font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--ink-soft); max-width: 58ch; line-height: 1.55;
}
.hero__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__meta {
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--muted);
}
.hero__pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------------------------------------------------------------------------
   Products
--------------------------------------------------------------------------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.product {
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  display: flex; flex-direction: column;
}
.product + .product { border-left: 1px solid var(--line); }
.product__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.product__kicker { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.34em 0.7em; border-radius: 999px;
}
.badge--live { background: var(--accent-wash); color: var(--accent-ink); }
.badge--soon { background: #f0efe9; color: var(--muted); }
.product__title { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.1; }
.product__desc { margin-top: 0.9rem; color: var(--ink-soft); }
.product__list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; }
.product__list li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); font-size: 0.97rem; }
.product__list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
.product__foot { margin-top: auto; padding-top: 1.7rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.product__note { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

/* ---------------------------------------------------------------------------
   Vision
--------------------------------------------------------------------------- */
.vision { background: var(--ink); color: #f3f2ee; }
.vision .eyebrow { color: #aab0ff; }
.vision__quote {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.25; letter-spacing: -0.015em;
  max-width: 20ch; max-width: min(20ch, 100%);
}
.vision__quote em { font-style: italic; color: #b9beff; }
.vision__body { margin-top: 1.6rem; max-width: 60ch; color: #c7c6c0; font-size: 1.08rem; }
.principles { margin-top: clamp(2.5rem, 5vw, 3.8rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: 2.2rem; }
.principle h3 { font-size: 1.15rem; color: #fff; margin-bottom: 0.4rem; }
.principle p { color: #b6b5af; font-size: 0.96rem; }

/* ---------------------------------------------------------------------------
   About
--------------------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about__body p + p { margin-top: 1.1rem; color: var(--ink-soft); }
.about__card { border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; background: var(--paper-2); }
.about__who { display: flex; align-items: center; gap: 1rem; }
.about__avatar {
  width: 54px; height: 54px; border-radius: 50%;
  flex: none; display: block; object-fit: cover;
  background: var(--accent);
}
.about__name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.about__role { color: var(--muted); font-size: 0.9rem; }
.about__card p { margin-top: 1.2rem; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------------------------------------------------------------------------
   Contact
--------------------------------------------------------------------------- */
.contact { background: var(--accent-wash); border-top: 1px solid var(--line); }
.contact__inner { text-align: center; }
.contact__title { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; max-width: 18ch; margin: 0 auto; }
.contact__lead { margin: 1.2rem auto 2.2rem; color: var(--ink-soft); max-width: 46ch; font-size: 1.1rem; }
.contact__actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); }
.site-footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-top: 3rem; padding-bottom: 1.6rem; }
.site-footer__brand .muted { margin-top: 0.5rem; max-width: 40ch; }
.site-footer__nav { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: flex-start; }
.site-footer__nav a { font-size: 0.9rem; color: var(--muted); }
.site-footer__nav a:hover { color: var(--ink); }
.site-footer__legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 2.6rem; font-size: 0.82rem; border-top: 1px solid var(--line-soft); padding-top: 1.4rem; }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------------------
   Generic content pages (index.php fallback)
--------------------------------------------------------------------------- */
.content-page { padding-top: 3.5rem; padding-bottom: 5rem; max-width: 760px; }
.entry__title { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; margin-bottom: 1.4rem; }
.entry__content { color: var(--ink-soft); }
.entry__content p { margin-bottom: 1.1rem; }
.entry__content a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */
@media (max-width: 820px) {
  .products { grid-template-columns: 1fr; }
  .product + .product { border-left: 0; border-top: 1px solid var(--line); }
  .principles { grid-template-columns: 1fr; gap: 1.4rem; }
  .about__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-nav { display: none; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
