/*
Theme Name: Scrivener Superpowers
Theme URI: https://scrivenersuperpowers.com/
Author: Story Cartel
Author URI: https://storycartel.com/
Description: scrivenersuperpowers.com, from theme/starter. "The writer's desk", set from the book's cover: brick red, the mustard subtitle, and tall condensed capitals. The book comes first, then the free No Nonsense Novel Template.
Version: 0.1.4
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ssp
*/

/* ==========================================================================
   1. Tokens
   One color scheme (no dark toggle), from the cover: brick red #bb483f is
   the one colored band (the book), mustard #edcf68 its buttons. Bebas Neue
   for headings, Source Serif 4 for reading, Jost for labels and buttons.
   ========================================================================== */

:root {
	--paper: #f8f3ec;
	--paper-deep: #efe5d8;
	--ink: #231a19;
	--ink-soft: #66544f;
	--brick: #bb483f;
	--brick-deep: #93342c;
	--mustard: #edcf68;
	--mustard-soft: #f7e7b0;
	--display: "Bebas Neue", "League Gothic", Impact, sans-serif;
	--serif: "Source Serif 4", Georgia, serif;
	--label: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
	--radius: 0.35rem;
	color-scheme: light;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.15rem/1.65 var(--serif); overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
a:hover { color: var(--brick-deep); }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 0.98; margin: 0 0 1rem; letter-spacing: 0.01em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.8rem, 1.8rem + 3.6vw, 4.6rem); }
h2 { font-size: clamp(2.4rem, 1.5rem + 3vw, 3.8rem); }
h3 { font-size: 1.8rem; }
h4 { font: 600 1.15rem/1.3 var(--serif); margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.measure { max-width: 40rem; margin-inline: auto; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: var(--radius); font: 600 0.95rem var(--label); }
.skip-link:focus { top: 1rem; color: var(--paper); }

.label { font: 600 0.78rem/1.3 var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brick-deep); margin: 0 0 0.75rem; }
.lede { font-size: 1.3rem; color: var(--ink-soft); max-width: 34rem; }
.note { font: 400 0.9rem/1.45 var(--label); color: var(--ink-soft); margin: 0.8rem 0 0; }
.proof { font: 500 0.95rem var(--label); color: var(--ink-soft); margin: 1.25rem 0 0; }
.proof q { font: italic 400 1.1rem var(--serif); color: var(--ink); }

/* ==========================================================================
   3. Buttons
   ========================================================================== */

.btn,
.wp-block-button__link,
.entry a > button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 3.1rem; padding: 0.8rem 1.5rem;
	border-radius: var(--radius); border: 2px solid transparent;
	font: 600 1rem/1.2 var(--label); letter-spacing: 0.02em;
	text-decoration: none; cursor: pointer; text-align: center;
}
.btn--main, .wp-block-button__link, .entry a > button { background: var(--brick); color: #fff; }
.btn--main:hover, .wp-block-button__link:hover, .entry a > button:hover { background: var(--ink); color: #fff; }
.btn--line { border-color: currentColor; background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.buy { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.buy.center { justify-content: center; }
.stars { color: var(--brick); letter-spacing: 0.1em; margin-right: 0.35rem; }

/* ==========================================================================
   4. Header
   ========================================================================== */

.top { padding-block: 1.25rem; }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.top__name { font: 400 1.9rem/1 var(--display); text-decoration: none; letter-spacing: 0.02em; }
.top__name span { color: var(--brick); }
.top__name:hover { color: var(--ink); }
.top__nav { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; font: 500 0.95rem var(--label); }
.top__nav ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; list-style: none; margin: 0; padding: 0; }
.top__nav ul a { text-decoration: none; }
.top__nav ul a:hover { color: var(--brick); }
.top__nav .current-menu-item.menu-item-type-post_type > a { color: var(--brick-deep); }
.top__btn { min-height: 2.6rem; padding: 0.5rem 1.1rem; font-size: 0.9rem; }
@media (min-width: 46.01em) { .top__menu { display: none !important; } }
.top__menu { font: 600 0.9rem var(--label); background: none; border: 2px solid var(--ink); border-radius: var(--radius); color: var(--ink); padding: 0.45rem 0.9rem; min-height: 2.75rem; cursor: pointer; }

/* ==========================================================================
   5. Hero: the cover beside the pitch
   ========================================================================== */

.hero { padding-block: clamp(1.5rem, 1rem + 3vw, 4rem) clamp(3rem, 2rem + 4vw, 6rem); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 1rem + 5vw, 5.5rem); align-items: center; }
.hero h1 { font-size: clamp(3rem, 1.8rem + 4.4vw, 5.6rem); margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--brick); }
.rating { font: 500 0.95rem/1.45 var(--label); color: var(--ink-soft); margin: 0 0 1.1rem; }
.pull { margin: 1.5rem 0 1.75rem; padding-left: 1.25rem; border-left: 3px solid var(--mustard); }
.pull p { font: italic 400 1.3rem/1.45 var(--serif); margin: 0 0 0.4rem; }
.pull cite, .lead-quote cite { font: 500 0.9rem var(--label); font-style: normal; color: var(--ink-soft); }

.cover { position: relative; width: min(100%, 22rem); justify-self: center; }
.cover img { width: 100%; border-radius: 2px 5px 5px 2px; box-shadow: 0 1.8rem 2.6rem -1.2rem rgba(70, 20, 15, 0.55), 0 0.4rem 0.8rem rgba(70, 20, 15, 0.18); }
.cover::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 7%; background: linear-gradient(90deg, rgba(0,0,0,0.28), rgba(255,255,255,0.1) 55%, rgba(0,0,0,0)); pointer-events: none; }

/* ==========================================================================
   6. Sections and what's inside
   ========================================================================== */

.section { padding-block: clamp(3.5rem, 2rem + 5vw, 7rem); }
.section__head { text-align: center; max-width: 42rem; margin: 0 auto clamp(2rem, 1rem + 3vw, 3.5rem); }
.section__head .label { padding-left: 0.16em; }
.on-deep { background: var(--paper-deep); }

.contents { list-style: none; margin: 0 auto; padding: 0; max-width: 64rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 4rem; }
.contents li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; }
.contents .num { font: 400 3.4rem/0.8 var(--display); color: var(--brick); text-align: right; }
.contents h3 { margin-bottom: 0.25rem; }
.contents p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.contents-note { text-align: center; margin: 2.5rem 0 0; color: var(--ink-soft); }

/* ==========================================================================
   7. Readers, on brick red: the cover's own color, the one colored band
   ========================================================================== */

.bookband { background: var(--brick); color: #fff; }
.bookband .label { color: var(--mustard); }
.bookband h2 { color: #fff; }
.bookband p { color: #fbe9e4; }
.bookband blockquote { margin: 0; }
.bookband blockquote p { font: italic 400 1.3rem/1.45 var(--serif); color: #fff; margin: 0 0 0.4rem; }
.bookband cite { display: block; font: 500 0.9rem/1.4 var(--label); font-style: normal; color: var(--mustard-soft); }
.bookband .lead-quote { max-width: 46rem; margin: 0 auto 3.25rem; text-align: center; }
.bookband .lead-quote p { font: italic 400 clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem)/1.32 var(--serif); margin-bottom: 0.9rem; }
.bookband .lead-quote cite { color: var(--mustard-soft); }
.mini-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 2rem 2.5rem; }
.mini-quotes p, .bookband .mini-quotes blockquote p { font: italic 400 1.08rem/1.5 var(--serif); }
.after-quotes { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 3rem; }
.after-quotes .buy { justify-content: center; }
.bookband .btn--main { background: var(--mustard); color: var(--ink); }
.bookband .btn--main:hover { background: #fff; color: var(--ink); }
.bookband .btn--line { color: #fff; }
.bookband .btn--line:hover { background: #fff; color: var(--brick-deep); border-color: #fff; }
.more-link { margin: 1.25rem 0 0; font: 500 1rem var(--label); }
.bookband .more-link a { color: #fff; }
.bookband .more-link a:hover { color: var(--mustard); }

/* The reader reviews page: every quote, in columns. */
.bookband--page .section__head { margin-bottom: 2rem; }
.quotes-all { columns: 2 22rem; column-gap: 3.5rem; max-width: 64rem; margin: 0 auto 4rem; }
.quotes-all blockquote { break-inside: avoid; margin: 0 0 2.25rem; }
.quotes-all blockquote p { font-size: 1.15rem; line-height: 1.55; }
.page-intro { margin-top: 1rem; text-align: left; }

/* ==========================================================================
   8. The free template: the pitch beside Scrivener's binder
   ========================================================================== */

.tmpl { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2.5rem, 1rem + 5vw, 5.5rem); align-items: center; }
.tmpl h2 { font-size: clamp(2.4rem, 1.5rem + 3vw, 3.8rem); }

.binder { background: #fff; border-radius: 0.6rem; box-shadow: 0 2rem 3rem -1.6rem rgba(70,25,20,0.5), 0 0 0 1px rgba(70,25,20,0.08); overflow: hidden; font: 400 0.98rem/1.2 var(--label); }
.binder__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 0.9rem; background: #ece6dd; }
.binder__bar i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #d6cbbd; }
.binder__bar span { margin-left: 0.6rem; font: 500 0.82rem var(--label); color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.binder ul { list-style: none; margin: 0; padding: 0.75rem 0; }
.binder li { display: flex; align-items: center; gap: 0.6rem; padding: 0.42rem 1.1rem; }
.binder li.sub { padding-left: 2.6rem; color: var(--ink-soft); }
.binder li.on { background: var(--mustard-soft); }
.binder .ico { flex: none; width: 1.05rem; height: 0.85rem; border-radius: 2px; background: var(--brick); }
.binder .ico.doc { width: 0.8rem; height: 1rem; background: #fff; box-shadow: inset 0 0 0 1.5px #a99a8c; }
.binder .ico.gold { background: #d9a92b; }
.binder .ico.blue { background: #5f7f9e; }

/* Joe's Free Things: a button on the page, then the form in a popup. */
.joes-ft { margin-top: 1.25rem; }
.joes-ft__cta p { margin: 0; }
.joes-ft__open,
.joes-ft-form button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 3.1rem; padding: 0.8rem 1.6rem; border: 0; border-radius: var(--radius);
	background: var(--brick); color: #fff; font: 600 1rem/1.2 var(--label); letter-spacing: 0.02em; cursor: pointer;
}
.joes-ft__open:hover, .joes-ft-form button[type="submit"]:hover { background: var(--ink); }
.joes-ft-form button[type="submit"] { width: 100%; }
.joes-ft-form button[disabled] { opacity: 0.7; cursor: progress; }

.modal { border: 0; padding: 0; background: transparent; color: inherit; position: fixed; inset: 0; margin: auto; width: calc(100% - 2rem); max-width: 30rem; max-height: calc(100% - 2rem); overflow: auto; }
dialog:not([open]) { display: none !important; }
.modal::backdrop { background: rgba(35, 26, 25, 0.6); }
.modal__panel { position: relative; background: var(--paper); border-top: 6px solid var(--brick); border-radius: var(--radius); padding: 2rem 1.5rem 1.5rem; box-shadow: 0 18px 50px rgba(35, 26, 25, 0.3); }
.joes-ft__close { position: absolute; top: 0.75rem; right: 0.75rem; display: flex; background: none; border: 0; padding: 0.4rem; cursor: pointer; color: var(--ink-soft); line-height: 0; }
.joes-ft__close:hover { color: var(--ink); }
.joes-ft__title { font-size: 2.2rem; margin: 0 0 0.4rem; }
.joes-ft__text { color: var(--ink-soft); margin: 0 0 1.25rem; }
.joes-ft__dialog:not(:modal) { position: static; width: auto; max-width: 32rem; margin: 0; overflow: visible; }
.joes-ft[data-state="sent"] .joes-ft__text { display: none; }
.joes-ft-form { display: flex; flex-direction: column; gap: 0.75rem; }
.joes-ft-form__fields { display: grid; gap: 0.75rem; }
.joes-ft-form__field { display: flex; flex-direction: column; gap: 0.3rem; margin: 0; font: 500 0.95rem var(--label); }
.joes-ft-form__optional { font-weight: 400; color: var(--ink-soft); }
.joes-ft-form input[type="text"], .joes-ft-form input[type="email"] { min-height: 3rem; padding: 0.65rem 0.9rem; font: 400 1rem var(--label); border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
.joes-ft-form input[aria-invalid="true"] { border-color: #a3341c; outline: 1px solid #a3341c; }
.joes-ft-form__actions { margin: 0.25rem 0 0; }
.joes-ft-form__small, .joes-ft-form__status { font: 400 0.85rem/1.45 var(--label); color: var(--ink-soft); margin: 0; }
.joes-ft-form__status:empty { display: none; }
.joes-ft-form__status[data-state="sent"] { color: var(--ink); font-weight: 600; font-size: 1rem; }
.joes-ft-form__status[data-state]:not([data-state="sent"]) { color: #a3341c; }
.joes-ft-form[data-state="sent"] .joes-ft-form__fields,
.joes-ft-form[data-state="sent"] .joes-ft-form__actions,
.joes-ft-form[data-state="sent"] .joes-ft-form__check,
.joes-ft-form[data-state="sent"] .joes-ft-form__small { display: none; }
/* In a post (the template post), the button sits centered in the text. */
.entry .joes-ft { margin: 2rem 0; text-align: center; }
.entry .joes-ft__dialog:not(:modal) { margin-inline: auto; text-align: left; }

/* ==========================================================================
   9. Tutorials and interviews, and the last ask
   ========================================================================== */

.lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 3rem; max-width: 66rem; margin-inline: auto; }
.lists h3 { margin-bottom: 0.75rem; }
.lists ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.lists a { text-decoration: underline; text-decoration-color: rgba(187, 72, 63, 0.45); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.lists a:hover { color: var(--brick-deep); text-decoration-color: currentColor; }
.lists small { text-decoration: none; }
.lists small { display: block; font: 400 0.85rem var(--label); color: var(--ink-soft); }

.last { text-align: center; }
.last .cover.small { width: 10rem; margin: 0 auto 2rem; }
.last h2 { max-width: 38rem; margin-inline: auto; margin-bottom: 1.5rem; }

/* ==========================================================================
   10. Footer
   ========================================================================== */

.foot { background: var(--ink); color: #eadfd8; padding-block: 3rem; font: 400 0.95rem/1.6 var(--label); }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.foot a { color: var(--mustard-soft); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; align-content: start; }
.foot__name { font: 400 1.8rem/1 var(--display); color: #fff; margin-bottom: 0.6rem; }
.foot__legal { flex-basis: 100%; margin: 1rem 0 0; color: #c9b9b1; font-size: 0.85rem; }

/* The phone's buy bar: appears once the hero's buttons have scrolled away. */
.buybar { display: none; }

/* ==========================================================================
   11. Pages, posts and the editor's content
   ========================================================================== */

.page-header { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); text-align: center; }
.page-header h1 { max-width: 50rem; margin-inline: auto; }
.page-header .lede { font-size: 1.3rem; color: var(--ink-soft); }
.band { padding-block: 0 clamp(3.5rem, 2rem + 5vw, 6rem); }
.eyebrow { font: 600 0.78rem/1.3 var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.9rem; }
.eyebrow a { text-decoration: none; color: var(--brick-deep); }
.entry-meta { font: 400 0.9rem var(--label); color: var(--ink-soft); }

.entry { max-width: 42rem; margin-inline: auto; overflow-wrap: break-word; }
.entry h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.7rem); margin-top: 2.5rem; }
.entry h3 { font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2rem); margin-top: 2rem; }
.entry h3 strong, .entry h2 strong { font-weight: 400; }
.entry ul, .entry ol { padding-left: 1.4rem; margin: 0 0 1.25rem; }
.entry li { margin-bottom: 0.4rem; }
.entry a { color: var(--brick-deep); }
.entry a:hover { color: var(--ink); }
.entry blockquote { margin: 2rem 0; padding-left: 1.25rem; border-left: 3px solid var(--mustard); font-style: italic; font-size: 1.25rem; }
.entry blockquote p:last-child { margin-bottom: 0; }
.entry img { border-radius: 2px; }
.entry .alignright { float: right; margin: 0.3rem 0 1rem 1.5rem; max-width: 45%; }
.entry .alignleft { float: left; margin: 0.3rem 1.5rem 1rem 0; max-width: 45%; }
.entry .aligncenter { margin: 1.5rem auto; }
.entry figure { margin: 2rem 0; max-width: 100%; }
.entry figcaption, .wp-caption-text { font: 400 0.85rem var(--label); color: var(--ink-soft); margin-top: 0.5rem; }
.entry .wp-caption { max-width: 100%; }
.entry hr { border: 0; height: 3px; width: 4rem; background: var(--mustard); margin: 2.5rem auto; }
.entry::after { content: ""; display: table; clear: both; }
.entry table { width: 100%; border-collapse: collapse; font: 400 1rem var(--label); display: block; overflow-x: auto; }
.entry td, .entry th { padding: 0.4rem 0.6rem; vertical-align: top; }
.entry pre { overflow-x: auto; }
/* Videos keep 16:9 at any width; old fixed-size iframes shrink to fit. */
.entry iframe { max-width: 100%; }
.embed { position: relative; margin: 2rem 0; aspect-ratio: 16 / 9; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.entry .wp-block-embed__wrapper iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.special { background: var(--paper-deep); padding: 1.25rem 1.5rem; border-radius: var(--radius); margin: 2rem 0; }

/* A post */
.post-header { width: min(100% - 2rem, 48rem); margin-inline: auto; text-align: center; padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) 2rem; }
.post-header h1 { font-size: clamp(2.6rem, 1.8rem + 3vw, 4.2rem); }
.post-photo { width: min(100% - 2rem, 52rem); margin: 0 auto 2.5rem; }
.post-photo img { width: 100%; border-radius: 2px; }
.post-body { width: min(100% - 2rem, 42rem); padding-bottom: 3rem; }
.post-after { width: min(100% - 2rem, 42rem); margin-inline: auto; padding-block: 3rem; }
.post-nav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.post-nav a { text-decoration: none; display: block; }
.post-nav .nav-next { text-align: right; }
.post-nav__label { display: block; font: 600 0.75rem var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.post-nav__title { font-size: 1.15rem; }

/* The blog: posts apart, with space and type weight between them (no rules). */
.post-list { list-style: none; margin: 0 auto; padding: 0; max-width: 52rem; display: grid; gap: 3rem; }
.post-card { display: grid; gap: 0.4rem; }
.post-card--image { grid-template-columns: 16rem 1fr; gap: 1.75rem; align-items: start; }
.post-card__image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.post-card__date { font: 500 0.85rem var(--label); color: var(--ink-soft); margin: 0 0 0.3rem; }
.post-card__title { font-size: 2.1rem; margin: 0 0 0.5rem; }
.post-card__title a { text-decoration: none; }
.post-card__excerpt { color: var(--ink-soft); margin: 0; }
.pagination, .nav-links { font: 500 1rem var(--label); }
.pagination { margin-top: 3rem; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 0.4rem 0.7rem; text-decoration: none; }
.pagination .current { color: var(--brick-deep); font-weight: 600; }
.links-404 { list-style: none; padding: 0; display: grid; gap: 0.5rem; font: 500 1.05rem var(--label); }

/* Comments: apart by space, replies indented (no rules). */
.comments { margin-top: 3rem; }
.comments__title { font-size: 2.2rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.comment-list li { margin: 0 0 2rem; min-width: 0; overflow-wrap: anywhere; }
.comment-list .children { list-style: none; padding-left: 1.5rem; margin: 1.5rem 0 0; border-left: 3px solid var(--paper-deep); }
.comment-list .pingback, .comment-list .trackback { font: 400 0.95rem var(--label); color: var(--ink-soft); }
.comment-body { min-width: 0; }
.comment-body p { font-size: 1.05rem; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 0.2rem 0.75rem; align-items: baseline; margin-bottom: 0.4rem; }
.comment-meta, .comment-metadata { font: 400 0.85rem var(--label); color: var(--ink-soft); }
.comment-metadata a { text-decoration: none; }
.comment-author { font: 600 1rem var(--label); }
.comment-author .says { display: none; }
.comment-author .avatar { display: none; }
.reply { font: 500 0.9rem var(--label); }
.comment-form label { display: block; font: 500 0.9rem var(--label); margin-bottom: 0.25rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea, .form input[type="search"] {
	width: 100%; padding: 0.65rem 0.9rem; font: 400 1rem var(--label); border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.comment-form .comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form .submit, .form .button { min-height: 3rem; padding: 0.7rem 1.4rem; border: 0; border-radius: var(--radius); background: var(--brick); color: #fff; font: 600 1rem var(--label); cursor: pointer; }
.comment-form .submit:hover, .form .button:hover { background: var(--ink); }
form.form[role="search"] { display: flex; gap: 0.5rem; max-width: 30rem; margin-top: 1.5rem; }
form.form[role="search"] > div:first-child { flex: 1; }

/* ==========================================================================
   12. Phone, designed for the thumb (the mockup's phone layout): the label,
   headline, and stars, then the cover at 40%, the lede, two full-width
   buttons, and the buy bar follows you down the page.
   ========================================================================== */

@media (max-width: 46em) {
	body { font-size: 1.1rem; }

	.top { padding-block: 0.9rem; }
	.top__name { font-size: 1.6rem; }
	.has-menu-toggle .top__nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 0 0.5rem; }
	.has-menu-toggle.is-menu-open .top__nav { display: flex; }
	.has-menu-toggle .top__nav ul { flex-direction: column; gap: 0.2rem; font-size: 1.1rem; }
	.has-menu-toggle .top__nav ul a { display: block; padding: 0.55rem 0; }
	.top__btn { align-self: flex-start; }

	.hero { padding-top: 0.5rem; }
	.hero__inner { grid-template-columns: 1fr; gap: 0; }
	.hero__text { display: contents; }
	.hero .label { order: 1; text-align: center; padding-left: 0.16em; }
	.hero h1 { order: 2; text-align: center; font-size: 2.9rem; margin-bottom: 0.6rem; }
	.hero .rating { order: 3; text-align: center; font-size: 0.88rem; margin-bottom: 1.25rem; }
	.hero .cover { order: 4; width: 40%; margin-bottom: 1.5rem; }
	.hero .lede { order: 5; text-align: center; font-size: 1.15rem; }
	.hero [data-hero-buttons] { order: 6; }
	.hero .pull { order: 7; margin: 1.75rem 0 0; }
	.buy .btn { flex: 1 1 100%; }

	.contents { grid-template-columns: 1fr; gap: 1.6rem; }
	.contents li { grid-template-columns: 2.2rem 1fr; gap: 0.85rem; }
	.contents .num { font-size: 2.6rem; }
	.mini-quotes, .lists { grid-template-columns: 1fr; gap: 1.75rem; }
	.tmpl { grid-template-columns: 1fr; gap: 2.25rem; }
	.binder { font-size: 0.92rem; }
	.joes-ft__cta p, .joes-ft__open { width: 100%; }

	.post-card--image { grid-template-columns: 1fr; gap: 1rem; }
	.entry .alignright, .entry .alignleft { float: none; margin: 1.5rem auto; max-width: 100%; }
	.post-nav .nav-links { grid-template-columns: 1fr; }
	.post-nav .nav-next { text-align: left; }

	.buybar { display: flex; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; gap: 0.6rem; align-items: center; padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); transform: translateY(110%); transition: transform 0.25s ease; box-shadow: 0 -0.4rem 1.2rem rgba(0,0,0,0.18); }
	.buybar.is-on { transform: none; }
	.buybar img { width: 2.4rem; border-radius: 2px; }
	.buybar span { flex: 1; font: 400 1.2rem/1 var(--display); letter-spacing: 0.02em; }
	.buybar .btn { min-height: 2.6rem; padding: 0.5rem 1rem; font-size: 0.9rem; flex: none; background: var(--mustard); color: var(--ink); }
	body.has-buybar .foot { padding-bottom: 6rem; }
}

/* ==========================================================================
   13. The blog sorted (/blog/, the category pages) and a tutorial's extras
   ========================================================================== */

.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 1.5rem 0 0; }
.jump a { font: 500 0.95rem var(--label); text-decoration: none; padding: 0.45rem 1rem; border: 2px solid var(--ink); border-radius: 999px; }
.jump a:hover { background: var(--ink); color: var(--paper); }
.blog-part { scroll-margin-top: 1rem; }
.more-link.center { text-align: center; margin-top: 2.5rem; }
.more-link a { color: var(--brick-deep); }

.lessons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; max-width: 66rem; margin-inline: auto; }
.lessons h3 { font-size: 2.2rem; margin-bottom: 1.25rem; }
.lessons ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.lessons li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.9rem; align-items: start; }
.lessons .num { font: 400 2.8rem/0.85 var(--display); color: var(--brick); text-align: right; }
.lessons li { position: relative; }
/* The whole item is the link; the underlined title and "Read the tutorial" say so (Joe: they didn't look like links). */
.lesson { display: block; text-decoration: none; color: inherit; }
.lesson__title { font: 600 1.2rem/1.3 var(--serif); text-decoration: underline; text-decoration-color: rgba(187, 72, 63, 0.45); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.lesson__text { display: block; margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.lesson__more { display: inline-block; margin-top: 0.45rem; font: 600 0.9rem var(--label); color: var(--brick-deep); }
.lesson__more::after { content: " \203A"; }
.lesson:hover .lesson__title { color: var(--brick-deep); text-decoration-color: currentColor; }
.lesson:hover .lesson__more { text-decoration: underline; text-underline-offset: 0.2em; }
.lesson:focus-visible { outline: 3px solid var(--mustard); outline-offset: 4px; border-radius: 2px; }

.cards { list-style: none; margin: 0 auto; padding: 0; max-width: 66rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.cards a { display: block; height: 100%; background: #fff; border-radius: 0.5rem; border-top: 5px solid var(--brick); padding: 1.25rem 1.4rem 1.4rem; text-decoration: none; box-shadow: 0 1.2rem 2rem -1.4rem rgba(70,25,20,0.45), 0 0 0 1px rgba(70,25,20,0.06); }
.cards a:hover { color: var(--ink); box-shadow: 0 1.4rem 2.2rem -1.2rem rgba(70,25,20,0.55), 0 0 0 1px rgba(70,25,20,0.12); }
.cards__name { display: block; font: 400 1.9rem/1 var(--display); letter-spacing: 0.01em; margin-bottom: 0.4rem; }
.cards__topic { display: block; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.45; }

.title-list { list-style: none; margin: 0 auto; padding: 0; max-width: 46rem; display: grid; gap: 2rem; }
.title-list a { font: 400 2rem/1.05 var(--display); letter-spacing: 0.01em; text-decoration: none; }
.title-list a:hover { color: var(--brick-deep); }
.title-list p { margin: 0.4rem 0 0; color: var(--ink-soft); }

.post-after--tut { padding-block: 0 3rem; }
.tut-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
.tut-nav a { display: block; text-decoration: none; font: 400 1.1rem/1.35 var(--serif); }
.tut-nav a:hover .post-nav__title { color: var(--brick-deep); text-decoration: underline; }
.tut-nav__next { text-align: right; }
.bookbox { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.5rem; align-items: center; background: var(--paper-deep); border-radius: 0.5rem; padding: 1.5rem; }
.bookbox img { width: 100%; border-radius: 2px 4px 4px 2px; box-shadow: 0 0.8rem 1.2rem -0.6rem rgba(70,20,15,0.55); }
.bookbox__text { font-size: 1.05rem; margin-bottom: 1rem; }

@media (max-width: 46em) {
	.lessons, .cards { grid-template-columns: 1fr; }
	.tut-nav { grid-template-columns: 1fr; }
	.tut-nav__next { text-align: left; }
	.bookbox { grid-template-columns: 5rem 1fr; gap: 1rem; padding: 1.25rem; }
	.bookbox .btn { width: 100%; }
}

/* The template popup (popups/template.php): Joe's Popups draws the box, this is what's inside. */
.jp { --ground: var(--paper); }
.ssp-popup h2 { font-size: 2rem; line-height: 1; margin: 0 0 0.5rem; }
.ssp-popup p { margin: 0 0 1rem; font-size: 1rem; line-height: 1.45; color: var(--ink-soft); }
.ssp-popup .label { margin-bottom: 0.4rem; color: var(--brick-deep); }
.signup .joes-form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; }
.signup .joes-form__field { flex: 1 1 100%; margin: 0; }
.signup .joes-form__field > label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.signup .joes-form input[type="email"] { width: 100%; max-width: none; min-height: 3.1rem; padding: 0.7rem 1rem; font: 400 1rem var(--label); border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); }
.signup .joes-form__error { font: 400 0.9rem var(--label); margin-top: 0.3rem; }
.signup .joes-form__check { flex-basis: 100%; margin: 0; }
.signup .joes-form__actions { flex: 1 1 100%; margin: 0; }
.signup .joes-form button[type="submit"] { width: 100%; min-height: 3.1rem; padding: 0.8rem 1.5rem; border: 2px solid transparent; border-radius: var(--radius); background: var(--brick); color: #fff; font: 600 1rem/1.2 var(--label); cursor: pointer; }
.signup .joes-form button[type="submit"]:hover { background: var(--ink); }
.signup .joes-form button[disabled] { opacity: 0.7; }
.signup .joes-form__status { flex-basis: 100%; font: 400 1rem/1.5 var(--label); }
.signup .joes-form__status p { margin: 0; }
.signup .joes-form__status a { color: var(--brick-deep); font-weight: 600; }
.ssp-popup .label { padding-right: 2.25rem; }
