/* ============================================================
   Chad Currin — site.css
   The grown-up sibling of mrtwisty.com / mrtwistyassemblies.com.
   Same family palette, cream paper, Baby Monsta display.
   ============================================================ */

@font-face {
  font-family: "Baby Monsta";
  src: url("../fonts/BabyMonsta.otf") format("opentype");
  font-weight: normal;
  font-display: swap;
}

:root {
  /* Brand palette — borrowed from mrtwisty.com so the family DNA shows */
  --ink: #14182B;          /* deeper than mrtwisty's black for grown-up feel */
  --ink-soft: #3D3D42;
  --paper: #FAF7EE;        /* cream / shared with mrtwisty */
  --paper-deep: #F1ECDD;
  --white: #FFFFFF;

  --blue: #1F5BC7;
  --blue-deep: #154191;
  --blue-light: #5BC0EB;

  --red: #E84545;
  --yellow: #FFD83C;
  --green: #7CCC4C;
  --orange: #FF9F4A;
  --purple: #7B5EA7;

  --gray-200: #E2E2E2;
  --gray-400: #B6B6BB;
  --gray-500: #6B6B72;
  --gray-700: #3D3D42;

  /* Type */
  --display: "Baby Monsta", "Bangers", system-ui, sans-serif;
  --body: "Fredoka", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 6px rgba(20, 24, 43, 0.06);
  --shadow: 0 8px 28px rgba(20, 24, 43, 0.10);
  --shadow-lift: 0 16px 42px rgba(20, 24, 43, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--blue-deep); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: normal;
  letter-spacing: 0.5px;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.8vw, 3rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== Skip link ===== */
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 100; }

/* ===== Header ===== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--paper-deep);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(6px);
}
.site-header .row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.brand {
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--ink);
  letter-spacing: 1px;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); display: inline-block; }
nav.primary { display: flex; gap: 22px; align-items: center; }
nav.primary a { color: var(--ink); font-weight: 500; font-size: 0.98rem; }
nav.primary a:hover { color: var(--blue-deep); }
nav.primary .cta {
  background: var(--ink); color: var(--paper);
  padding: 9px 16px; border-radius: 999px; font-weight: 600;
}
nav.primary .cta:hover { background: var(--blue-deep); color: var(--white); }

/* mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }
@media (max-width: 880px) {
  nav.primary { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--paper-deep); box-shadow: var(--shadow); }
  nav.primary.open { display: flex; }
  nav.primary a { padding: 8px 0; }
  .nav-toggle { display: block; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--blue-deep); color: var(--white); }
.btn-red { background: var(--red); }
.btn-red:hover { background: #d83838; color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #f5cc28; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); padding: 12px 24px; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero .grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.hero h1 { margin-bottom: 14px; }
.hero h1 .accent { color: var(--red); display: inline-block; }
.hero .lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 560px; }
.hero .ctas { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .portrait {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  background: var(--paper-deep);
  aspect-ratio: 4/5;
  width: 100%;
  object-fit: cover;
  transform: rotate(1.5deg);
}
.hero .portrait-frame {
  position: relative;
}
.hero .portrait-frame::before {
  content: "";
  position: absolute; inset: -10px -10px 10px 10px;
  background: var(--yellow);
  border-radius: var(--radius-lg);
  z-index: -1;
  transform: rotate(-1.5deg);
}
@media (max-width: 880px) {
  .hero { padding: 50px 0 40px; }
  .hero .grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .portrait-frame { max-width: 380px; margin: 0 auto; }
}

/* ===== Sections ===== */
section { padding: 70px 0; }
section.tight { padding: 40px 0; }
section.cream { background: var(--paper-deep); }
section.ink { background: var(--ink); color: var(--paper); }
section.ink h1, section.ink h2, section.ink h3 { color: var(--paper); }

.eyebrow {
  font-family: var(--display);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--red);
  margin-bottom: 8px;
}

.lead { font-size: 1.18rem; line-height: 1.6; color: var(--ink-soft); max-width: 760px; }

/* ===== World cards (the hub grid) ===== */
.worlds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
@media (max-width: 980px) { .worlds { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .worlds { grid-template-columns: 1fr; } }

.world-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.world-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--ink); }
.world-card .tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink);
  margin-bottom: 14px;
  align-self: flex-start;
}
.world-card.t-blue .tag { background: var(--blue); color: var(--white); }
.world-card.t-red .tag { background: var(--red); color: var(--white); }
.world-card.t-yellow .tag { background: var(--yellow); color: var(--ink); }
.world-card.t-green .tag { background: var(--green); color: var(--ink); }
.world-card.t-purple .tag { background: var(--purple); color: var(--white); }
.world-card.t-orange .tag { background: var(--orange); color: var(--ink); }

.world-card h3 { margin-bottom: 8px; }
.world-card p { color: var(--ink-soft); margin-bottom: 18px; flex: 1; }
.world-card .more { font-weight: 600; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.world-card .more::after { content: "→"; transition: transform .15s ease; }
.world-card:hover .more::after { transform: translateX(4px); }
.world-card .ext { font-size: 0.85rem; color: var(--gray-500); margin-top: 6px; }

/* ===== Stats strip ===== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; padding: 36px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: 40px;
}
.stat .num { font-family: var(--display); font-size: 2.6rem; color: var(--blue-deep); line-height: 1; }
.stat .label { font-size: .9rem; color: var(--ink-soft); margin-top: 4px; letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600; }
@media (max-width: 740px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ===== Books grid ===== */
.books {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px; margin-top: 40px;
}
.book {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.book:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.book .cover {
  aspect-ratio: 2/3; background: var(--paper-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); color: var(--ink-soft); font-size: 1rem;
  text-align: center; padding: 12px;
  background-size: cover; background-position: center;
}
.book .body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.book h4 { font-family: var(--display); font-size: 1.15rem; margin: 0 0 6px; }
.book p { font-size: .92rem; color: var(--ink-soft); flex: 1; margin: 0 0 14px; line-height: 1.5; }
.book .buy {
  font-weight: 600; font-size: .9rem;
  display: inline-block; align-self: flex-start;
  padding: 8px 14px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
}
.book .buy:hover { background: var(--blue-deep); color: var(--white); }

/* ===== Two-up content rows ===== */
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.row-2.flip { direction: rtl; }
.row-2.flip > * { direction: ltr; }
.row-2 .pic { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--paper-deep); }
@media (max-width: 880px) { .row-2 { grid-template-columns: 1fr; gap: 30px; } .row-2.flip { direction: ltr; } }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink); color: var(--paper);
  padding: 60px 0 28px;
}
.site-footer h4 { font-family: var(--display); color: var(--paper); margin-bottom: 16px; font-size: 1.1rem; letter-spacing: 1.5px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer a { color: var(--paper); display: block; padding: 4px 0; font-size: .95rem; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .tagline { font-family: var(--display); font-size: 1.4rem; margin-bottom: 10px; line-height: 1.2; }
.site-footer .tag-sub { color: var(--gray-400); font-size: .95rem; }
.site-footer .legal { border-top: 1px solid #2a2e44; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: var(--gray-400); font-size: .88rem; }
@media (max-width: 880px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ===== Page header (interior pages) ===== */
.page-header {
  padding: 70px 0 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}
.page-header .eyebrow { display: inline-block; }
.page-header h1 { max-width: 880px; margin: 0 auto 14px; }
.page-header p { max-width: 680px; margin: 0 auto; color: var(--ink-soft); font-size: 1.1rem; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--white); padding: 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.contact-card h3 { color: var(--blue-deep); }
.contact-card .line { display: flex; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--paper-deep); }
.contact-card .line:last-child { border-bottom: 0; }
.contact-card .line .icon { width: 36px; height: 36px; border-radius: 50%; background: var(--paper-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.form label { display: block; font-weight: 600; font-size: .9rem; margin-top: 14px; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid var(--gray-200); font-family: inherit; font-size: 1rem;
  background: var(--white); color: var(--ink);
  transition: border-color .15s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); }
.form textarea { min-height: 140px; resize: vertical; }
.form .submit { margin-top: 22px; }

/* ===== Utility ===== */
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.kicker { font-family: var(--display); letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; color: var(--red); }
.tagline-big { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; }

/* show-only-on-this style helper */
.hide-mobile { display: initial; }
.show-mobile { display: none; }
@media (max-width: 740px) {
  .hide-mobile { display: none; }
  .show-mobile { display: initial; }
}

/* ===== Print ===== */
@media print {
  .site-header, .site-footer, nav { display: none; }
  body { background: white; color: black; }
}
