
/*
Theme Name: Kris Splash Theme
Theme URI: https://kris-splash.co.uk
Author: Kris Splash
Author URI: https://kris-splash.co.uk
Description: Custom theme for Kris Splash — swimming teacher and children’s author. Includes custom Home, Books, and basic templates.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kris-splash
*/

:root{
  --brand-blue:#0f6fbf;
  --brand-teal:#0ea5a3;
  --ink:#10243a;
  --bg:#f7fbff;
  --radius:18px;
  --shadow:0 8px 24px rgba(0,0,0,.08);
}

/* Base */
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink)}
body{font-family:'Alegreya', Georgia, serif; line-height:1.45}
a{color:var(--brand-blue); text-decoration:none}
.wrap{max-width:1100px;margin:0 auto;padding:0 20px}

/* Header/Nav */
header.site{position:sticky;top:0;background:#fff;border-bottom:1px solid #e6eef6;z-index:50}
.nav{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.brand{font-family:'Nunito',system-ui,sans-serif;font-weight:800;font-size:1.25rem}
.menu a{font-family:'Nunito',system-ui,sans-serif;font-weight:700;margin-left:14px}

/* Sections */
.hero{background:linear-gradient(180deg,#ffffff,#ebf7ff 60%,#e6fbff); padding:36px 0}
.hero h1{font-size:clamp(1.8rem,2rem + 1.5vw,2.6rem); margin:.3rem 0}
.eyebrow{font-family:'Nunito',system-ui,sans-serif;font-weight:800;letter-spacing:.06em;color:var(--brand-teal);text-transform:uppercase}
.tag{max-width:52ch;font-size:1.1rem}
.section{padding:36px 0}

/* Cards/grid */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}
.card{background:#fff;border:1px solid #e6eef6;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
.card img{width:100%;aspect-ratio:4/5;object-fit:cover;display:block}
.card h3{margin:10px 12px 14px 12px;font-size:1.05rem}
.card p{margin:0 12px 14px 12px}

/* Why grid */
.why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:14px}
.why{background:#fff;border:1px solid #e6eef6;border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}

/* Footer */
footer.site{background:#0b2b44;color:#e1f3ff;margin-top:48px}
footer.site .wrap{padding:22px 0}

/* Buttons */
.btn{display:inline-block;margin-top:12px;background:var(--brand-blue);color:#fff;padding:12px 16px;border-radius:14px;font-family:'Nunito',system-ui,sans-serif;font-weight:800}
.btn.secondary{background:#fff;color:#0f2c4d;border:2px solid #d9e9f8}
