/*
Theme Name: Secret Magic Stuff
Theme URI: https://secretmagicstuff.com/
Author: Jason Messina
Description: Retro-playful block theme for Secret Magic Stuff — book tests and curated props. Chunky slab type, flat colour bands, novelty yellow accents.
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: secret-magic-stuff
Tags: blog, portfolio, one-column, block-patterns, full-site-editing
*/

/* Reset the editor's default constraints so the full-bleed bands work. */
#sms-home .alignfull, #sms-home .alignwide { max-width: none; }
.wp-site-blocks > #sms-home, .editor-styles-wrapper #sms-home { margin: 0; }

/* =========================================================================
   SECRET MAGIC STUFF — homepage (direction 1a)
   Scoped under #sms-home so it cannot affect the rest of your theme.
   ========================================================================= */

/* =========================================================================
   SECRET MAGIC STUFF — homepage (direction 1a)
   Scoped under #sms-home so it cannot affect the rest of your theme.
   ========================================================================= */

#sms-home, #sms-home * { box-sizing: border-box; }
#sms-home {
  --blue: #1d3f8f;
  --ink: #10121c;
  --cream: #f4efe3;
  --red: #ff5a3c;
  --yellow: #ffc93f;
  --paleblue: #cdd8f2;
  /* side gutter: content caps at 1180px, backgrounds stay full-bleed */
  --gut: max(24px, calc((100% - 1180px) / 2));
  font-family: Karla, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--cream);
  background: var(--blue);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}
#sms-home h1, #sms-home h2, #sms-home h3, #sms-home h4 { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; margin: 0; }
#sms-home p { margin: 0; }
#sms-home a { color: inherit; text-decoration: none; }
#sms-home a:hover { text-decoration: underline; }
#sms-home img { display: block; width: 100%; height: auto; }
#sms-home ul { margin: 0; padding: 0; list-style: none; }
.sms-mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }

/* image placeholders — swap each for a real <img> */
#sms-home .sms-ph {
  background: repeating-linear-gradient(135deg, #dcd4c2 0 8px, #e8e1d1 8px 16px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .1em; color: #4a4436;
  padding: 12px;
}
#sms-home .sms-ph--blue { background: repeating-linear-gradient(135deg, #2a4fa5 0 10px, #24469a 10px 20px); color: var(--paleblue); }
#sms-home .sms-ph--dark { background: repeating-linear-gradient(135deg, #1b1d29 0 8px, #22242f 8px 16px); color: #9aa0b8; }
#sms-home .sms-ph--yellow { background: repeating-linear-gradient(135deg, #e0b336 0 8px, #ecc03b 8px 16px); color: #5c4a12; }

/* ---- header ---- */
#sms-home .sms-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 16px var(--gut); background: var(--ink); }
#sms-home .sms-logo { font-family: "Alfa Slab One", Georgia, serif; font-size: 20px; color: var(--yellow); }
#sms-home .sms-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#sms-home .sms-navcta { background: var(--red); color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 10px 14px; border: 2px solid var(--cream); }

/* ---- buttons ---- */
#sms-home .sms-btn { display: inline-block; background: var(--red); color: var(--ink); font-family: "Alfa Slab One", Georgia, serif; font-size: 19px; padding: 15px 24px; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
#sms-home .sms-btn:hover { text-decoration: none; transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
#sms-home .sms-btn--dark { background: var(--ink); color: var(--yellow); border: 0; box-shadow: none; font-size: 17px; padding: 14px 20px; }
#sms-home .sms-link { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; color: var(--blue); border-bottom: 2px solid var(--blue); padding-bottom: 2px; align-self: flex-start; }
#sms-home .sms-link--light { color: var(--cream); border-color: var(--yellow); font-size: 15px; }

/* ---- hero ---- */
#sms-home .sms-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 44px; padding: 56px var(--gut) 48px; align-items: center; }
#sms-home .sms-hero-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
#sms-home .sms-kicker { background: var(--yellow); color: var(--ink); font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .16em; padding: 6px 10px; }
#sms-home .sms-hero h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: .98; text-wrap: pretty; }
#sms-home .sms-lede { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; max-width: 44ch; color: #e4ddcb; }
#sms-home .sms-note { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--paleblue); max-width: 52ch; }
#sms-home .sms-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
#sms-home .sms-hero-media { position: relative; width: 100%; max-width: 520px; margin-left: auto; }
#sms-home .sms-badge { position: absolute; top: -18px; right: -8px; z-index: 2; width: 100px; height: 100px; background: var(--yellow); border: 3px solid var(--ink); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(9deg); }
#sms-home .sms-badge b { font-family: "Alfa Slab One", Georgia, serif; font-size: 25px; color: var(--ink); line-height: 1; font-weight: 400; }
#sms-home .sms-badge span { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .12em; color: var(--ink); }
#sms-home .sms-hero-media .sms-ph, #sms-home .sms-hero-media img { aspect-ratio: 4 / 3; object-fit: cover; border: 3px solid var(--ink); }

/* ---- shelf (two books) ---- */
#sms-home .sms-shelf { background: var(--cream); color: var(--ink); padding: 44px var(--gut); border-top: 3px solid var(--ink); }
#sms-home .sms-secthead { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
#sms-home .sms-secthead h2 { font-size: clamp(24px, 2.8vw, 34px); }
#sms-home .sms-secthead .sms-mono { font-size: 13px; color: #5c574a; }
#sms-home .sms-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; max-width: 900px; }
#sms-home .sms-card { border: 3px solid var(--ink); background: #fff; display: flex; flex-direction: column; }
#sms-home .sms-card .sms-ph, #sms-home .sms-card img { aspect-ratio: 3 / 4; object-fit: cover; border-bottom: 3px solid var(--ink); }
#sms-home .sms-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
#sms-home .sms-card-body h3 { font-size: 23px; line-height: 1.1; }
#sms-home .sms-card-body p { font-size: 16px; line-height: 1.5; color: #35322a; }

/* ---- weekly pick ---- */
#sms-home .sms-weekly { background: var(--yellow); color: var(--ink); border-top: 3px solid var(--ink); padding: 36px var(--gut); display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 28px; align-items: center; }
#sms-home .sms-weekly .sms-ph, #sms-home .sms-weekly img { aspect-ratio: 1; object-fit: cover; border: 3px solid var(--ink); }
#sms-home .sms-weekly-copy { display: flex; flex-direction: column; gap: 10px; }
#sms-home .sms-weekly-copy h3 { font-size: clamp(22px, 2.6vw, 31px); line-height: 1.08; }
#sms-home .sms-weekly-copy p { font-size: 17px; line-height: 1.5; max-width: 58ch; }
#sms-home .sms-eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .16em; }

/* ---- free book ---- */
#sms-home .sms-free { background: var(--ink); color: var(--cream); padding: 48px var(--gut); display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 44px; align-items: center; }
#sms-home .sms-free-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
#sms-home .sms-free-copy h2 { font-size: clamp(27px, 3.4vw, 38px); line-height: 1.06; }
#sms-home .sms-free-copy p { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; max-width: 54ch; color: #ddd6c6; }
#sms-home .sms-blink { color: var(--yellow); animation: sms-blink 1.6s steps(1) infinite; }
@keyframes sms-blink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: .25 } }
#sms-home .sms-signup { display: flex; width: 100%; max-width: 460px; border: 3px solid var(--cream); }
#sms-home .sms-signup input { flex: 1; min-width: 0; background: var(--cream); border: 0; padding: 14px 16px; font-family: "IBM Plex Mono", monospace; font-size: 15px; color: var(--ink); }
#sms-home .sms-signup button { background: var(--red); color: var(--ink); border: 0; border-left: 3px solid var(--ink); font-family: "Alfa Slab One", Georgia, serif; font-size: 17px; padding: 0 22px; cursor: pointer; }
#sms-home .sms-free-cover { width: 100%; max-width: 230px; }
#sms-home .sms-free-cover .sms-ph, #sms-home .sms-free-cover img { aspect-ratio: 3 / 4; object-fit: cover; border: 3px solid var(--cream); transform: rotate(-4deg); }

/* ---- notebook + coming soon ---- */
#sms-home .sms-notebook { background: var(--cream); color: var(--ink); padding: 44px var(--gut); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; border-top: 3px solid var(--ink); }
#sms-home .sms-col { display: flex; flex-direction: column; gap: 16px; }
#sms-home .sms-post { border: 3px solid var(--ink); background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
#sms-home .sms-post h3 { font-size: clamp(21px, 2.3vw, 28px); line-height: 1.12; }
#sms-home .sms-post p { font-size: 16px; line-height: 1.55; color: #35322a; }
#sms-home .sms-post .sms-mono { font-size: 12px; color: var(--blue); }
#sms-home .sms-morelinks { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; color: #35322a; }
#sms-home .sms-morelinks a { border-bottom: 1px solid #b9b3a5; padding-bottom: 2px; }
#sms-home .sms-soon { background: var(--blue); color: var(--cream); border: 3px solid var(--ink); padding: 24px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
#sms-home .sms-soon h3 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.12; }
#sms-home .sms-soon .sms-eyebrow { color: var(--yellow); }
#sms-home .sms-soon ul { display: flex; flex-direction: column; gap: 10px; font-family: "IBM Plex Mono", monospace; font-size: 14px; color: var(--paleblue); }

/* ---- faq ---- */
#sms-home .sms-faq { background: var(--blue); color: var(--cream); padding: 44px var(--gut); border-top: 3px solid var(--ink); }
#sms-home .sms-faq h2 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 18px; }
#sms-home .sms-faq-list { border-top: 2px solid #6c86c9; max-width: 900px; }
#sms-home .sms-faq details { border-bottom: 2px solid #6c86c9; padding: 15px 0; }
#sms-home .sms-faq summary { font-family: "Alfa Slab One", Georgia, serif; font-size: 18px; cursor: pointer; list-style: none; display: block; }
#sms-home .sms-faq summary::-webkit-details-marker { display: none; }
#sms-home .sms-faq p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: #dbe2f4; max-width: 72ch; }

/* ---- footer ---- */
#sms-home .sms-foot { background: var(--ink); color: #8e95ad; padding: 26px var(--gut); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; font-family: "IBM Plex Mono", monospace; font-size: 13px; }
#sms-home .sms-foot-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* =========================== TABLET =========================== */
@media (max-width: 1000px) {
  #sms-home { --gut: 28px; }
  #sms-home .sms-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
  #sms-home .sms-hero-media { max-width: 460px; margin-left: 0; }
  #sms-home .sms-badge { top: -14px; right: -6px; }
  #sms-home .sms-free { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
  #sms-home .sms-free-cover { order: -1; max-width: 200px; }
  #sms-home .sms-notebook { grid-template-columns: 1fr; }
  #sms-home .sms-weekly { grid-template-columns: 190px minmax(0, 1fr); }
  #sms-home .sms-weekly .sms-btn--dark { grid-column: 2; justify-self: start; }
}

/* =========================== MOBILE =========================== */
@media (max-width: 680px) {
  #sms-home { --gut: 18px; }
  #sms-home .sms-bar { justify-content: flex-start; gap: 14px 18px; padding-top: 14px; padding-bottom: 14px; }
  #sms-home .sms-logo { font-size: 17px; width: 100%; }
  #sms-home .sms-nav { gap: 12px 16px; font-size: 12px; }
  #sms-home .sms-navcta { font-size: 12px; padding: 9px 12px; }
  #sms-home .sms-hero { padding-top: 36px; padding-bottom: 36px; gap: 26px; }
  #sms-home .sms-hero h1 { font-size: clamp(32px, 9.5vw, 44px); }
  #sms-home .sms-hero-media { max-width: 100%; }
  #sms-home .sms-badge { width: 78px; height: 78px; top: -12px; right: -4px; }
  #sms-home .sms-badge b { font-size: 20px; }
  #sms-home .sms-btn { font-size: 17px; padding: 14px 18px; }
  #sms-home .sms-shelf, #sms-home .sms-weekly, #sms-home .sms-free, #sms-home .sms-notebook, #sms-home .sms-faq { padding-top: 34px; padding-bottom: 34px; }
  #sms-home .sms-cards { gap: 20px; }
  #sms-home .sms-weekly { grid-template-columns: 1fr; gap: 20px; }
  #sms-home .sms-weekly .sms-ph, #sms-home .sms-weekly img { max-width: 200px; }
  #sms-home .sms-weekly .sms-btn--dark { grid-column: auto; }
  #sms-home .sms-free { grid-template-columns: 1fr; gap: 24px; }
  #sms-home .sms-free-cover { max-width: 170px; }
  #sms-home .sms-free-cover .sms-ph, #sms-home .sms-free-cover img { transform: none; }
  #sms-home .sms-signup { flex-direction: column; }
  #sms-home .sms-signup button { padding: 15px 22px; border-left: 0; border-top: 3px solid var(--ink); }
  #sms-home .sms-post { padding: 18px; }
  #sms-home .sms-foot { font-size: 12px; }
}

/* =====================================================================
   INNER PAGES — shared pieces used by shop, product, about, notebook,
   contact, free-book and the weekly-pick pages.
   ===================================================================== */

/* colour bands */
#sms-home .sms-band { padding: 48px var(--gut); border-top: 3px solid var(--ink); }
#sms-home .sms-band--blue { background: var(--blue); color: var(--cream); }
#sms-home .sms-band--cream { background: var(--cream); color: var(--ink); }
#sms-home .sms-band--ink { background: var(--ink); color: var(--cream); }
#sms-home .sms-band--yellow { background: var(--yellow); color: var(--ink); }
#sms-home .sms-band--cream p, #sms-home .sms-band--yellow p { color: #35322a; }

/* page header */
#sms-home .sms-pagehead { padding: 52px var(--gut) 44px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
#sms-home .sms-pagehead h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1; max-width: 22ch; }
#sms-home .sms-pagehead p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; max-width: 56ch; color: #e4ddcb; }
#sms-home .sms-band--cream .sms-pagehead p { color: #35322a; }

/* generic section heading */
#sms-home .sms-h2 { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; font-size: clamp(23px, 2.7vw, 32px); line-height: 1.1; margin: 0; }
#sms-home .sms-h3 { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.15; margin: 0; }
#sms-home .sms-stack { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
#sms-home .sms-stack--wide p { max-width: 62ch; }

/* product layout */
#sms-home .sms-prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; padding: 48px var(--gut); align-items: start; }
#sms-home .sms-prod-media { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
#sms-home .sms-prod-media .sms-cover .sms-ph, #sms-home .sms-prod-media .sms-cover img { aspect-ratio: 3 / 4; object-fit: cover; border: 3px solid var(--ink); }
#sms-home .sms-video .sms-ph, #sms-home .sms-video img { aspect-ratio: 16 / 9; border: 3px solid var(--ink); }
#sms-home .sms-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 3px solid var(--ink); }
#sms-home .sms-prod-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
#sms-home .sms-prod-copy h1 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.02; }
#sms-home .sms-price { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
#sms-home .sms-price b { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; font-size: 34px; color: var(--yellow); }
#sms-home .sms-band--cream .sms-price b { color: var(--blue); }

/* bullet / spec lists */
#sms-home .sms-list { display: flex; flex-direction: column; gap: 12px; max-width: 60ch; }
#sms-home .sms-list li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; }
#sms-home .sms-list li::before { content: "→"; position: absolute; left: 0; top: 0; font-family: "IBM Plex Mono", monospace; }
#sms-home .sms-spec { border-top: 2px solid currentColor; max-width: 64ch; }
#sms-home .sms-spec div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(127, 127, 127, .4); }
#sms-home .sms-spec dt, #sms-home .sms-spec .sms-spec-k { font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
#sms-home .sms-spec .sms-spec-v { font-size: 16px; line-height: 1.5; }

/* shop / archive grids */
#sms-home .sms-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; max-width: 1180px; }
#sms-home .sms-card--price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#sms-home .sms-card--price b { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; font-size: 22px; color: var(--blue); }
#sms-home .sms-tag { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .14em; background: var(--ink); color: var(--yellow); padding: 5px 8px; align-self: flex-start; }

/* post list */
#sms-home .sms-postlist { display: flex; flex-direction: column; max-width: 900px; border-top: 2px solid currentColor; }
#sms-home .sms-postrow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid rgba(127, 127, 127, .4); align-items: baseline; }
#sms-home .sms-postrow .sms-mono { font-size: 12px; letter-spacing: .08em; opacity: .8; }
#sms-home .sms-postrow h3 { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; font-size: clamp(19px, 2vw, 24px); line-height: 1.15; margin: 0 0 8px; }
#sms-home .sms-postrow p { font-size: 16px; line-height: 1.5; }

/* article (single post) */
#sms-home .sms-article { padding: 48px var(--gut) 56px; max-width: 860px; }
#sms-home .sms-article h1 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.02; margin-bottom: 18px; }
#sms-home .sms-article .sms-meta { font-family: "IBM Plex Mono", monospace; font-size: 13px; letter-spacing: .08em; opacity: .8; margin-bottom: 30px; display: block; }
#sms-home .sms-prose { display: flex; flex-direction: column; gap: 20px; }
#sms-home .sms-prose p, #sms-home .sms-prose li { font-size: 18px; line-height: 1.62; max-width: 68ch; }
#sms-home .sms-prose h2 { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; margin: 14px 0 0; }
#sms-home .sms-prose blockquote { margin: 8px 0; padding: 18px 22px; border-left: 5px solid var(--yellow); background: rgba(255, 255, 255, .06); font-size: 19px; line-height: 1.5; max-width: 62ch; }
#sms-home .sms-band--cream .sms-prose blockquote { background: rgba(16, 18, 28, .05); border-left-color: var(--blue); }
#sms-home .sms-prose ul { display: flex; flex-direction: column; gap: 10px; padding-left: 0; }
#sms-home .sms-prose ul li { position: relative; padding-left: 30px; }
#sms-home .sms-prose ul li::before { content: "—"; position: absolute; left: 0; top: 0; }

/* contact */
#sms-home .sms-two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 44px; padding: 48px var(--gut); align-items: start; }
#sms-home .sms-form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
#sms-home .sms-form label { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
#sms-home .sms-form input, #sms-home .sms-form textarea, #sms-home .sms-form select {
  font-family: Karla, Arial, sans-serif; font-size: 16px; padding: 13px 14px;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); width: 100%;
}
#sms-home .sms-form textarea { min-height: 150px; resize: vertical; }
#sms-home .sms-form button { align-self: flex-start; }
#sms-home .sms-field { display: flex; flex-direction: column; gap: 6px; }

/* about portrait */
#sms-home .sms-portrait { width: 100%; max-width: 300px; }
#sms-home .sms-portrait .sms-ph, #sms-home .sms-portrait img { aspect-ratio: 4 / 5; object-fit: cover; border: 3px solid var(--ink); }

/* free-book landing */
#sms-home .sms-lead { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding: 56px var(--gut); align-items: center; }
#sms-home .sms-lead-cover { width: 100%; max-width: 280px; }
#sms-home .sms-lead-cover .sms-ph, #sms-home .sms-lead-cover img { aspect-ratio: 3 / 4; object-fit: cover; border: 3px solid var(--cream); }
#sms-home .sms-lead h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.02; }

/* breadcrumb / back link */
#sms-home .sms-crumb { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }

@media (max-width: 1000px) {
  #sms-home .sms-prod, #sms-home .sms-two, #sms-home .sms-lead { grid-template-columns: 1fr; gap: 30px; }
  #sms-home .sms-lead-cover { max-width: 220px; }
  #sms-home .sms-spec div { grid-template-columns: 150px minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 680px) {
  #sms-home .sms-band, #sms-home .sms-prod, #sms-home .sms-two, #sms-home .sms-lead, #sms-home .sms-article { padding-top: 34px; padding-bottom: 34px; }
  #sms-home .sms-pagehead { padding-top: 34px; padding-bottom: 30px; }
  #sms-home .sms-spec div { grid-template-columns: 1fr; gap: 4px; }
  #sms-home .sms-postrow { grid-template-columns: 1fr; gap: 8px; }
  #sms-home .sms-prose p, #sms-home .sms-prose li { font-size: 17px; }
  #sms-home .sms-price b { font-size: 28px; }
}

/* =====================================================================
   THEME CLEANUP — hides your theme's header, footer and page padding on
   any page containing #sms-home. Independent of theme class names.
   ===================================================================== */
body:has(#sms-home) *:not(:has(#sms-home)):not(#sms-home):not(#sms-home *):not(#wpadminbar):not(#wpadminbar *) {
  display: none !important;
}
body:has(#sms-home) :has(#sms-home) {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: auto !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  float: none !important;
}
body:has(#sms-home) {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  background: #1d3f8f;
}

/* free-book cover image — real photo, never cropped */
#sms-home .sms-bookimg,
#sms-home .sms-free-cover .sms-bookimg,
#sms-home .sms-portrait .sms-bookimg,
#sms-home .sms-lead-cover .sms-bookimg {
  display: block; width: 100%; height: auto;
  aspect-ratio: 820 / 1236; object-fit: contain;
  border: 0; box-shadow: none; background: transparent;
}
#sms-home .sms-free-cover .sms-bookimg { max-width: 300px; }
#sms-home .sms-portrait .sms-bookimg { max-width: 200px; }
#sms-home .sms-lead-cover .sms-bookimg { max-width: 340px; }

/* free-book blade reused mid-page */
#sms-home .sms-lead + .sms-band, #sms-home .sms-lead { border-top: 3px solid #101220; }
#sms-home .sms-lead .sms-h2 { color: #fff; }

/* The Shelf "coming soon" placeholder image */
#sms-home .sms-shelfph, #sms-home .sms-portrait .sms-shelfph, #sms-home .sms-weekly .sms-shelfph {
  display: block; width: 100%; height: auto;
  aspect-ratio: 800 / 1000; object-fit: contain;
  border: 3px solid #101220; box-shadow: none; background: #1d3f8f;
}

/* bundle photo (both books) */
#sms-home .sms-bundleimg, #sms-home .sms-hero-media img.sms-bundleimg,
#sms-home .sms-card img.sms-bundleimg, #sms-home .sms-cover img.sms-bundleimg,
#sms-home .sms-two .sms-cover img.sms-bundleimg {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: contain;
  border: 0; box-shadow: none; background: #1d3f8f;
}
#sms-home img.sms-bundleimg--tall, #sms-home .sms-card img.sms-bundleimg--tall,
#sms-home .sms-cover img.sms-bundleimg--tall, #sms-home .sms-two .sms-cover img.sms-bundleimg--tall {
  aspect-ratio: 3 / 4; object-fit: contain;
}
#sms-home .sms-hero-media { position: relative; }
#sms-home .sms-hero-media .sms-badge { z-index: 2; background: var(--red); }
#sms-home .sms-hero-media img.sms-bundleimg {
  aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--yellow); border: 3px solid var(--ink); box-shadow: none;
}


/* =========================================================================
   Native block markup — keep core wrappers from fighting the design.
   ========================================================================= */

/* Core adds its own wrappers; strip the margins they bring. */
#sms-home .wp-block-group,
#sms-home .wp-block-columns,
#sms-home .wp-block-column { margin-block: 0; }
#sms-home p, #sms-home h1, #sms-home h2, #sms-home h3, #sms-home ul { margin-block: 0; }
#sms-home .wp-block-heading { margin-block: 0; }

/* Buttons: our .sms-btn owns the look, core only supplies the wrapper. */
#sms-home .wp-block-buttons { gap: 14px; margin-block: 0; }
#sms-home .wp-block-button { margin: 0; }
/* core fills every button dark grey by default — our classes own the look */
#sms-home .wp-block-button > .wp-block-button__link { background: none; background-color: transparent; border-radius: 0; box-shadow: none; text-decoration: none; }
#sms-home .wp-block-button > .wp-block-button__link.sms-btn {
  display: inline-block; background-color: var(--red); color: var(--ink);
  font-family: "Alfa Slab One", Georgia, serif; font-size: 19px; padding: 15px 24px;
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
}
#sms-home .wp-block-button > .wp-block-button__link.sms-btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
#sms-home .wp-block-button > .wp-block-button__link.sms-btn--dark {
  background-color: var(--ink); color: var(--yellow); border: 0; box-shadow: none;
  font-size: 17px; padding: 14px 20px;
}

/* The Shelf band: the query wrapper must not break the three-column grid */
#sms-home .wp-block-query > .wp-block-post-template { display: block; }
#sms-home .wp-block-post-template > li > .sms-weekly { margin: 0; }
#sms-home .sms-weekly > .wp-block-buttons { align-self: center; }
#sms-home .sms-weekly .wp-block-post-featured-image img { aspect-ratio: 1; object-fit: cover; border: 3px solid var(--ink); }

/* Query loops that stand in for the old hand-written rows. */
#sms-home .wp-block-post-template { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
#sms-home .wp-block-post-title { margin: 0; }
#sms-home .wp-block-post-title a { color: inherit; }
#sms-home .wp-block-post-date { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--blue); margin: 0; }
#sms-home .sms-band--ink .wp-block-post-date,
#sms-home .sms-band--blue .wp-block-post-date { color: var(--yellow); }
#sms-home .wp-block-post-excerpt__excerpt { margin: 0; }
#sms-home .wp-block-post-excerpt__more-link { display: none; }
#sms-home .wp-block-query-pagination { margin-top: 26px; font-family: "IBM Plex Mono", monospace; font-size: 13px; }
#sms-home .wp-block-post-featured-image { margin: 0; }
#sms-home .wp-block-post-featured-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 3px solid var(--ink); }

/* The shelf grid, driven by a query loop instead of hand-written cards. */
#sms-home .sms-shelfgrid .wp-block-post-template {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}
#sms-home .sms-shelfgrid .wp-block-post-template > li {
  background: #fff; color: var(--ink); border: 3px solid var(--ink);
  display: flex; flex-direction: column; gap: 12px; padding: 0 0 22px;
}
#sms-home .sms-shelfgrid .wp-block-post-template > li > *:not(.wp-block-post-featured-image) { padding-inline: 22px; }
#sms-home .sms-shelfgrid .wp-block-post-template > li .wp-block-post-featured-image img { aspect-ratio: 4 / 3; border: 0; border-bottom: 3px solid var(--ink); }
#sms-home .sms-shelfgrid .wp-block-post-title { font-family: "Alfa Slab One", Georgia, serif; font-size: 21px; line-height: 1.12; padding-top: 18px; }
#sms-home .sms-shelfgrid .wp-block-post-excerpt__excerpt { font-size: 15px; line-height: 1.5; color: #35322a; }

/* real covers in the product media + cross-sell slots */
#sms-home .sms-cover > img { display: block; width: 100%; height: auto; aspect-ratio: 838 / 1236; object-fit: contain; border: 3px solid var(--ink); background: #fff; }
#sms-home .sms-portrait > img { display: block; width: 100%; height: auto; aspect-ratio: 838 / 1236; object-fit: contain; border: 3px solid var(--ink); background: #fff; }

/* cover art inside shop cards */
#sms-home .sms-card > .sms-cardimg { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; border-bottom: 3px solid var(--ink); }

/* Coming soon box: sit at the top of its column instead of stretching */
#sms-home .sms-notebook > .sms-soon { align-self: start; justify-content: flex-start; padding: 26px; gap: 14px; width: 100%; }
#sms-home .sms-notebook > .sms-soon h3 { font-size: clamp(19px, 1.6vw, 22px); text-wrap: balance; }
#sms-home .sms-notebook > .sms-soon ul { gap: 6px; }
#sms-home .sms-notebook > .sms-soon li { font-size: 14px; }

/* tag labels are paragraphs now, so the band's body-text colour was winning */
#sms-home .sms-band--cream p.sms-tag,
#sms-home .sms-band--yellow p.sms-tag,
#sms-home .sms-card p.sms-tag { color: var(--yellow); }
#sms-home p.sms-tag { display: inline-block; align-self: flex-start; }

/* product cards: price + See it pinned to the bottom, whatever the copy length */
#sms-home .sms-grid3 > .sms-card { display: flex; flex-direction: column; height: 100%; }
#sms-home .sms-card > .sms-card-body { flex: 1; display: flex; flex-direction: column; }
#sms-home .sms-card .sms-card--price { margin-top: auto; padding-top: 16px; }

/* cross-sell band: the $50 was yellow-on-yellow, and the column was too wide */
#sms-home .sms-band--yellow .sms-price b { color: var(--blue); }
#sms-home .sms-band--yellow .sms-two { grid-template-columns: minmax(0, 1fr) 190px; align-items: center; gap: 32px; }
#sms-home .sms-band--yellow .sms-two .sms-portrait { max-width: 190px; }
#sms-home .sms-band--yellow .sms-two .sms-stack { gap: 12px; }
@media (max-width: 680px) {
  #sms-home .sms-band--yellow .sms-two { grid-template-columns: 1fr; }
}

/* photographs fill their frame; only book covers get letterboxed */
#sms-home .sms-portrait > img.sms-photo { aspect-ratio: 4 / 5; object-fit: cover; background: none; }

/* menus are Navigation blocks now — keep the original look */
#sms-home .sms-bar .wp-block-navigation { flex: 1; }
#sms-home .wp-block-navigation.sms-nav .wp-block-navigation__container { gap: 20px; }
#sms-home .wp-block-navigation.sms-nav .wp-block-navigation-item__content {
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream); text-decoration: none;
}
#sms-home .wp-block-navigation.sms-nav .current-menu-item .wp-block-navigation-item__content { border-bottom: 2px solid var(--yellow); }
#sms-home .wp-block-navigation.sms-nav .wp-block-navigation-item__content:hover { color: var(--yellow); }
#sms-home .wp-block-navigation.sms-foot-links .wp-block-navigation__container { gap: 18px; }
#sms-home .wp-block-navigation.sms-foot-links .wp-block-navigation-item__content {
  font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--cream); text-decoration: none;
}
#sms-home .wp-block-navigation.sms-foot-links .wp-block-navigation-item__content:hover { color: var(--yellow); }
#sms-home .sms-foot > p { margin: 0; }
#sms-home .wp-block-navigation__responsive-container-open,
#sms-home .wp-block-navigation__responsive-container-close { color: var(--cream); }
#sms-home .wp-block-navigation__responsive-container.is-menu-open { background: var(--ink); padding: 32px; }
#sms-home .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 20px; }

/* page headers on light bands: ink text, not the cream used on dark bands */
#sms-home .sms-band--yellow.sms-pagehead p,
#sms-home .sms-band--yellow .sms-pagehead p,
#sms-home .sms-band--cream.sms-pagehead p,
#sms-home .sms-band--cream .sms-pagehead p { color: #35322a; }
#sms-home .sms-band--yellow.sms-pagehead .sms-eyebrow,
#sms-home .sms-band--yellow .sms-pagehead .sms-eyebrow,
#sms-home .sms-band--cream.sms-pagehead .sms-eyebrow,
#sms-home .sms-band--cream .sms-pagehead .sms-eyebrow { color: var(--blue); }
#sms-home .sms-band--yellow.sms-pagehead h1,
#sms-home .sms-band--cream.sms-pagehead h1 { color: var(--ink); }

/* overscroll bounce shows the page background — match the footer so it blends */
html, body { background-color: #10121c; }

/* header: give the menu its own space between logo and Free Book button */
#sms-home .sms-bar { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
#sms-home .sms-bar .sms-logo { flex: 0 0 auto; }
#sms-home .sms-bar .wp-block-navigation { flex: 1 1 auto; justify-content: center; }
#sms-home .wp-block-navigation.sms-nav .wp-block-navigation__container { justify-content: center; gap: 26px; }
#sms-home .sms-bar .sms-navcta { flex: 0 0 auto; }
@media (max-width: 1000px) {
  #sms-home .sms-bar { gap: 20px; flex-wrap: wrap; }
  #sms-home .sms-bar .wp-block-navigation { justify-content: flex-start; }
  #sms-home .wp-block-navigation.sms-nav .wp-block-navigation__container { justify-content: flex-start; gap: 18px; }
}

/* =========================================================================
   WPForms, styled to match the hand-built forms
   ========================================================================= */
#sms-home .sms-formwrap .wpforms-container { margin: 0; max-width: 560px; }
#sms-home .sms-formwrap .wpforms-form { display: flex; flex-direction: column; gap: 18px; }
#sms-home .sms-formwrap .wpforms-field { padding: 0; }
#sms-home .sms-formwrap .wpforms-field-label {
  font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink); font-weight: 500; margin-bottom: 8px;
}
#sms-home .sms-formwrap .wpforms-required-label { color: var(--red); }
#sms-home .sms-formwrap input[type="text"],
#sms-home .sms-formwrap input[type="email"],
#sms-home .sms-formwrap input[type="tel"],
#sms-home .sms-formwrap select,
#sms-home .sms-formwrap textarea {
  font-family: Karla, Arial, sans-serif; font-size: 16px; padding: 13px 14px;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink);
  border-radius: 0; width: 100%; max-width: 100%; box-shadow: none;
}
#sms-home .sms-formwrap textarea { min-height: 150px; resize: vertical; }
#sms-home .sms-formwrap input:focus,
#sms-home .sms-formwrap select:focus,
#sms-home .sms-formwrap textarea:focus { outline: 3px solid var(--blue); outline-offset: 2px; }
#sms-home .sms-formwrap .wpforms-submit-container { padding: 0; }
#sms-home .sms-formwrap button.wpforms-submit {
  background: var(--red); color: var(--ink);
  font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; font-size: 19px;
  padding: 15px 24px; border: 3px solid var(--ink); border-radius: 0;
  box-shadow: 5px 5px 0 var(--ink); cursor: pointer;
}
#sms-home .sms-formwrap button.wpforms-submit:hover {
  background: var(--red); transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink);
}
#sms-home .sms-formwrap .wpforms-error { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: #a32b12; }
#sms-home .sms-formwrap .wpforms-confirmation-container-full {
  background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); padding: 20px; margin: 0;
}
