/* The Can't Be @rsed Books.
   Palette and type are lifted from the two covers: the navy title ink and
   Baskerville of the cookbook, the blue-grey wall, leather settee, green
   t-shirt and orange @ of the fitness book. */

@font-face {
    font-family: 'Libre Baskerville';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/libre-baskerville-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Libre Baskerville';
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/libre-baskerville-italic-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url('/fonts/source-sans-3-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'Source Sans 3';
    font-style: italic;
    font-weight: 200 900;
    font-display: swap;
    src: url('/fonts/source-sans-3-italic-latin.woff2') format('woff2');
}

:root {
    /* Cover colours */
    --ink: #1e2b3a;
    --ink-soft: #4a5663;
    --paper: #f7f1e6;
    --paper-deep: #efe5d3;
    --card: #fffdf8;
    --line: rgba(30, 43, 58, 0.14);
    --leather: #6b3a22;
    --leather-deep: #432313;
    --wall: #6b7a84;
    --wall-deep: #3f515e;
    --wall-pale: #e4eaee;
    --skirting: #eaedef;
    --floor: #c9ae8a;
    --at: #f07c1e;
    --at-bright: #ff9838;
    --at-strong: #d9630a;
    --at-ink: #a8480a;
    --tee: #3b8a54;
    --tee-ink: #2a6a40;

    /* Effort and resistance scale, 1 (easy) to 6 (settee) */
    --scale-1: #3b8a54;
    --scale-2: #7fa650;
    --scale-3: #d9a441;
    --scale-4: #f07c1e;
    --scale-5: #b5542a;
    --scale-6: #6b3a22;

    /* Type */
    --font-display: 'Libre Baskerville', baskerville, 'Times New Roman', serif;
    --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

    /* Layout */
    --max: 70rem;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --radius: 12px;
    --shadow: 0 14px 34px -20px rgba(67, 35, 19, 0.55);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

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

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    max-width: 68ch;
}

a {
    color: var(--at-ink);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--ink);
}

a:focus-visible,
summary:focus-visible,
input:focus-visible {
    outline: 3px solid var(--at);
    outline-offset: 3px;
    border-radius: 2px;
}

.at {
    color: var(--at);
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--at-ink);
    margin-bottom: 0.6rem;
}

.strapline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    padding: 0.6rem 1rem;
    background: var(--paper);
    color: var(--ink);
    font-weight: 700;
    border-radius: 0 0 8px 8px;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Title lockup: "<Lead> / for the / can't be @rsed", as set on both covers */
.lockup {
    display: grid;
    justify-items: start;
    gap: 0.14em;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.015em;
}

.lockup-lead {
    font-size: 1.5em;
}

.lockup-for {
    display: flex;
    align-items: center;
    gap: 0.55em;
    font-size: 0.6em;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
}

.lockup-for::before,
.lockup-for::after {
    content: '';
    width: 1.7em;
    height: 1px;
    background: currentcolor;
    opacity: 0.45;
}

h1.lockup {
    font-size: clamp(2.1rem, 5.4vw, 3.5rem);
}

.lockup-small {
    font-size: 1.4rem;
}

/* Buttons */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.btn-primary {
    background: var(--paper);
    color: var(--ink);
}

.btn-primary:hover {
    background: var(--at-bright);
    color: var(--ink);
}

.btn-secondary {
    border-color: currentcolor;
    color: var(--ink);
}

.btn-secondary:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.btn-amazon {
    background: var(--at);
    color: var(--ink);
}

.btn-amazon::after {
    content: '\2192';
}

.btn-amazon:hover {
    background: var(--at-bright);
    color: var(--ink);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ink);
    color: var(--paper);
    padding: 0.7rem var(--gutter);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    max-width: var(--max);
    margin: 0 auto;
}

.brand {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--paper);
    text-decoration: none;
    white-space: nowrap;
}

.brand:hover {
    color: var(--paper);
}

.brand-for {
    font-style: italic;
    font-weight: 400;
    font-size: 0.85em;
    opacity: 0.8;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.4rem;
    list-style: none;
}

.site-nav ul a {
    color: var(--paper);
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.site-nav ul a:hover,
.site-nav ul a[aria-current='page'] {
    border-bottom-color: var(--at);
}

.site-nav ul .btn-nav {
    padding: 0.4rem 0.95rem;
    border: 0;
    border-radius: 999px;
    background: var(--at);
    color: var(--ink);
    font-weight: 700;
}

.site-nav ul .btn-nav:hover {
    background: var(--at-bright);
}

/* Home hero: the settee, with both books propped on it.
   The stage is the photo at a fixed 2:1 shape so the books stay on the seat. */
.room {
    --stage-w: clamp(1000px, 100vw, 1600px);
    --stage-h: calc(var(--stage-w) / 2);

    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) calc(var(--stage-h) * 0.76);
    color: var(--paper);
    background:
        linear-gradient(to top, var(--floor) calc(var(--stage-h) * 0.223), var(--skirting) calc(var(--stage-h) * 0.223), var(--skirting) calc(var(--stage-h) * 0.299), transparent calc(var(--stage-h) * 0.299)),
        linear-gradient(to top, var(--wall) calc(var(--stage-h) * 0.62), var(--wall-deep) calc(var(--stage-h) * 0.92)),
        var(--wall-deep);
}

.room-copy {
    max-width: var(--max);
    margin: 0 auto;
}

.room .eyebrow {
    color: var(--at-bright);
}

.room .at {
    color: var(--at-bright);
}

.room-summary {
    margin: 1.25rem 0 1.5rem;
    max-width: 34rem;
    font-size: 1.2rem;
}

.room-stage {
    position: absolute;
    z-index: -1;
    left: 50%;
    bottom: calc(var(--stage-h) * -0.08);
    width: var(--stage-w);
    height: var(--stage-h);
    transform: translateX(-50%);
}

.room-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--wall-deep) 0%, rgba(63, 81, 94, 0.8) 10%, rgba(63, 81, 94, 0) 30%);
    pointer-events: none;
}

.room-photo {
    display: block;
    width: 100%;
    height: 100%;
}

.prop-book {
    position: absolute;
    z-index: 1;
    top: 19.9%;
    width: 13%;
    transform-origin: 50% 100%;
    filter: drop-shadow(0 1.2vw 0.9vw rgba(20, 10, 5, 0.5));
    transition: transform 250ms ease;
}

.prop-book::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px 5px 5px 2px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(255, 255, 255, 0.2) 3%, rgba(0, 0, 0, 0) 8%);
    pointer-events: none;
}

.prop-book img {
    display: block;
    width: 100%;
    border-radius: 2px 5px 5px 2px;
}

.prop-book-1 {
    left: 32.1%;
    transform: rotate(-4deg);
}

.prop-book-2 {
    left: 48.2%;
    transform: rotate(3deg);
}

.prop-book:hover,
.prop-book:focus-visible {
    transform: rotate(0deg) translateY(-3%) scale(1.05);
}

/* Book page hero: the cover stands on a strip of worktop or floor */
.book-hero {
    --hero-bg: var(--paper);
    --hero-fg: var(--ink);
    --hero-floor: var(--paper-deep);

    padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 0;
    background: var(--hero-bg);
    color: var(--hero-fg);
}

.book-hero::after {
    content: '';
    display: block;
    height: 4rem;
    margin: 0 calc(var(--gutter) * -1);
    background: var(--hero-floor);
}

.book-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 320px);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: end;
    max-width: var(--max);
    margin: 0 auto;
}

.book-hero-copy {
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.book-hero .strapline {
    margin-top: 1rem;
}

.book-hero-summary {
    max-width: 36rem;
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
}

.book-hero-cover {
    position: relative;
    z-index: 1;
    margin-bottom: -1.75rem;
}

.book-hero-cover img {
    display: block;
    width: 100%;
    border-radius: 3px 7px 7px 3px;
    box-shadow: 0 26px 30px -18px rgba(20, 10, 5, 0.7), 0 2px 6px rgba(20, 10, 5, 0.25);
    transform: rotate(-2.5deg);
    transform-origin: 20% 100%;
}

/* Kitchen: the cookbook's white tiles and worktop */
.theme-kitchen .book-hero {
    --hero-bg:
        linear-gradient(rgba(30, 43, 58, 0.06) 2px, transparent 2px) 0 0 / 7.5rem 3.75rem,
        linear-gradient(90deg, rgba(30, 43, 58, 0.06) 2px, transparent 2px) 0 0 / 7.5rem 3.75rem,
        #f4efe6;
    --hero-floor: linear-gradient(#ffffff, #ddd6ca);
}

/* Lounge: the fitness book's wall, skirting board and floor */
.theme-lounge .book-hero {
    --hero-bg: linear-gradient(to bottom, var(--wall-deep), #556774);
    --hero-fg: var(--paper);
    --hero-floor: linear-gradient(var(--skirting) 1.4rem, var(--floor) 1.4rem);
}

.theme-lounge .book-hero .eyebrow,
.theme-lounge .book-hero .at {
    color: var(--at-bright);
}

.theme-lounge .book-hero .lockup-lead {
    font-family: var(--font-body);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--at-bright);
}

.theme-lounge .book-hero .btn-secondary,
.room .btn-secondary {
    color: var(--paper);
}

.theme-lounge .book-hero .btn-secondary:hover,
.room .btn-secondary:hover {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
}

/* Trust strip */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 0;
}

.trust-item {
    padding: 0.25rem 1.25rem;
    border-left: 1px solid var(--line);
}

.trust-item:first-child {
    padding-left: 0;
    border-left: 0;
}

.trust-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.6vw, 1.75rem);
    line-height: 1.2;
}

.trust-item span {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* Sections */
.section {
    padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
}

.section > * {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}

.section-tint {
    background: var(--paper-deep);
}

.section-title {
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.section-title h2 {
    max-width: 24ch;
}

.section-title p:last-child {
    margin: 0.75rem 0 0;
    color: var(--ink-soft);
    font-size: 1.15rem;
}

.section-action {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.section-note {
    margin-top: 2rem;
    max-width: none;
    font-family: var(--font-display);
    font-style: italic;
    text-align: center;
    color: var(--ink-soft);
}

/* Cards */
.card {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p:last-child {
    margin-bottom: 0;
}

.feature-grid,
.inside-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.inside-list-thirds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.prose-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 4rem);
}

.prose-columns h3 {
    margin-bottom: 1rem;
}

.inside-card h3 {
    display: grid;
    justify-items: start;
    gap: 0.6rem;
}

.chapter-badge,
.badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.chapter-badge {
    background: var(--ink);
    color: var(--paper);
}

.badge-easy {
    background: #dcebdd;
    color: #1f5433;
}

.badge-medium {
    background: #fbe3c8;
    color: #86390a;
}

/* Tick and cross lists */
.tick-list,
.cross-list {
    display: grid;
    gap: 0.5rem;
    list-style: none;
}

.tick-list li,
.cross-list li {
    position: relative;
    padding-left: 1.75rem;
}

.tick-list li::before,
.cross-list li::before {
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
}

.tick-list li::before {
    content: '\2713';
    color: var(--tee-ink);
}

.cross-list li::before {
    content: '\2715';
    color: var(--at-ink);
}

/* @rsed-o-meter */
.meter {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(1.25rem, 3.5vw, 2.75rem);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.meter:not(.is-live) {
    grid-template-columns: minmax(0, 1fr);
}

.meter:not(.is-live) .meter-panel {
    display: none;
}

.meter-readouts {
    display: grid;
    gap: 2.5rem;
}

/* Live: all six readouts share one cell, so the panel is as tall as the longest and never jumps */
.meter.is-live .readout {
    grid-area: 1 / 1;
    visibility: hidden;
}

.meter.is-live .readout.is-active {
    visibility: visible;
}

.meter-dial {
    display: block;
    width: 100%;
    height: auto;
}

.dial-seg {
    fill: none;
    stroke-width: 32;
}

.dial-seg-1 { stroke: var(--scale-1); }
.dial-seg-2 { stroke: var(--scale-2); }
.dial-seg-3 { stroke: var(--scale-3); }
.dial-seg-4 { stroke: var(--scale-4); }
.dial-seg-5 { stroke: var(--scale-5); }
.dial-seg-6 { stroke: var(--scale-6); }

.dial-nums text {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 800;
    text-anchor: middle;
    fill: var(--ink);
}

.dial-nums text:nth-child(1),
.dial-nums text:nth-child(5),
.dial-nums text:nth-child(6) {
    fill: #ffffff;
}

.dial-needle {
    transform-box: view-box;
    transform-origin: 160px 160px;
    transform: rotate(calc((var(--level) - 3.5) * 30deg));
    transition: transform 450ms cubic-bezier(0.3, 1.5, 0.5, 1);
}

.dial-needle path,
.dial-hub {
    fill: var(--ink);
}

.dial-hub {
    stroke: var(--card);
    stroke-width: 4;
}

.meter-control label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-align: center;
    text-transform: uppercase;
}

.meter-control input {
    display: block;
    width: 100%;
    height: 2rem;
    accent-color: var(--at-strong);
    cursor: pointer;
}

.meter-ends {
    display: flex;
    justify-content: space-between;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.readout-level {
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--at-ink);
}

.readout h3 {
    margin-bottom: 0.6rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.readout-forecast {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.08rem;
    color: var(--ink-soft);
}

.readout-advice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.advice {
    padding-top: 0.8rem;
    border-top: 4px solid var(--at);
}

.advice-move {
    border-top-color: var(--tee);
}

.advice h4 {
    margin-bottom: 0.3rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.advice p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.advice a {
    font-weight: 700;
}

/* Home: the two books */
.book-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
}

.book-panel {
    display: grid;
    grid-template-columns: minmax(110px, 170px) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 1.5rem 1.75rem;
    align-items: center;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-top: 6px solid var(--ink);
    border-radius: var(--radius);
    background: var(--card);
}

.book-panel-more {
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
    align-self: stretch;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.book-panel-more .actions {
    margin-top: auto;
}

.book-panel-getfit {
    border-top-color: var(--wall);
}

.book-panel-cover img {
    display: block;
    border-radius: 2px 5px 5px 2px;
    box-shadow: 0 18px 24px -14px rgba(20, 10, 5, 0.65);
    transform: rotate(-2deg);
    transition: transform 250ms ease;
}

.book-panel-getfit .book-panel-cover img {
    transform: rotate(2deg);
}

.book-panel-cover:hover img {
    transform: rotate(0deg);
}

.book-panel-getfit .lockup-lead {
    font-family: var(--font-body);
    font-weight: 800;
    color: var(--at-strong);
}

.book-panel .strapline {
    margin: 0.6rem 0 0.75rem;
    color: var(--ink-soft);
}

.book-panel-copy p:last-child {
    margin-bottom: 0;
}

.book-panel .tick-list {
    margin-bottom: 1.5rem;
}

/* The can't be @rsed truth */
.truths {
    padding: clamp(3rem, 7vw, 5rem) var(--gutter);
    background: var(--ink);
    color: var(--paper);
}

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

.truths-title {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
}

.truths .at {
    color: var(--at-bright);
}

.truths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.truth {
    padding-top: 1.25rem;
    border-top: 3px solid var(--at);
}

.truth blockquote p {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.1vw, 1.5rem);
    font-weight: 700;
    line-height: 1.35;
    text-wrap: balance;
}

.truth figcaption {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.75;
}

/* Samples: recipes and days from the 30-day challenge */
.sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    align-items: start;
}

.sample-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
}

.sample-image {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--paper-deep);
}

.sample-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sample-header {
    padding: 1.25rem 1.5rem 0;
}

.sample-title {
    margin: 0.7rem 0 0.4rem;
    font-size: 1.35rem;
}

.sample-intro {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.98rem;
    color: var(--ink-soft);
}

.sample-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.sample-section {
    margin-bottom: 1rem;
}

.sample-section h4,
.ultra-lazy h5 {
    margin-bottom: 0.4rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--at-ink);
}

.ingredient-list,
.method-list {
    list-style: none;
}

.ingredient-list li,
.method-list li {
    position: relative;
    margin-bottom: 0.3rem;
}

.ingredient-list li {
    padding-left: 1.1rem;
}

.ingredient-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--at);
}

.method-list {
    counter-reset: step;
}

.method-list li {
    counter-increment: step;
    padding-left: 2rem;
}

.method-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.12em;
    display: grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.78rem;
    font-weight: 700;
}

.tip-box {
    padding: 0.8rem 1rem;
    border-left: 4px solid var(--at);
    border-radius: 0 8px 8px 0;
    background: #fff1dc;
}

.tip-box::before {
    content: "Can't be @rsed tip";
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--at-ink);
}

.tip-box p,
.ultra-lazy p {
    margin: 0;
    font-size: 0.98rem;
}

.ultra-lazy {
    margin-top: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: var(--wall-pale);
}

.ultra-lazy h5 {
    color: var(--wall-deep);
}

.nutrition {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px dashed var(--line);
    list-style: none;
}

.nutrition-item {
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    background: var(--paper-deep);
    font-size: 0.85rem;
    font-weight: 600;
}

/* The full 30-day list */
.challenge {
    margin-top: 3rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.challenge > h3 {
    margin-bottom: 1.25rem;
}

.challenge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem 2rem;
}

.challenge-group h4 {
    margin-bottom: 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 3px solid var(--wall);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.challenge-group ol {
    padding-left: 1.75rem;
    font-size: 0.98rem;
}

.challenge-group li::marker {
    font-weight: 700;
    color: var(--at-ink);
}

/* Effort scale and resistance forecast */
.scale {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    list-style: none;
}

.scale-item {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0.7rem;
    padding: 1.25rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    text-align: center;
}

.scale-number {
    display: grid;
    place-items: center;
    flex: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
}

.scale-1 { background: var(--scale-1); color: #ffffff; }
.scale-2 { background: var(--scale-2); }
.scale-3 { background: var(--scale-3); }
.scale-4 { background: var(--scale-4); }
.scale-5 { background: var(--scale-5); color: #ffffff; }
.scale-6 { background: var(--scale-6); color: #ffffff; }

.scale-label {
    font-weight: 600;
    line-height: 1.35;
}

.forecast-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    list-style: none;
}

.forecast-item {
    display: flex;
    gap: 1.1rem;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.forecast-item h3 {
    margin-bottom: 0.3rem;
}

.forecast-item p {
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.98rem;
    color: var(--ink-soft);
}

.forecast-item .forecast-move {
    margin-bottom: 0;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 1rem;
    color: var(--ink);
}

/* Won't / will */
.promise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.promise {
    padding: 1.75rem;
    border-radius: var(--radius);
}

.promise h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.promise-wont {
    border: 2px dashed var(--line);
}

.promise-will {
    background: var(--ink);
    color: var(--paper);
}

.promise-will .tick-list li::before {
    color: var(--at-bright);
}

/* It all counts */
.counts-list {
    display: grid;
    gap: 0;
    list-style: none;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    line-height: 1.35;
}

.counts-list li {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
}

.counts-list strong {
    color: var(--tee-ink);
}

/* Author */
.author-section {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: clamp(1.5rem, 5vw, 3.5rem);
    align-items: start;
    max-width: calc(var(--max) + 2 * var(--gutter));
    margin: 0 auto;
}

.author-section h2 {
    margin-bottom: 1rem;
}

.author-section .btn {
    margin-top: 0.5rem;
}

.author-image {
    display: block;
    width: 180px;
    height: auto;
    border-radius: 50%;
}

.author-image-float {
    float: right;
    width: 170px;
    margin: 0 0 1rem 1.5rem;
    shape-outside: circle();
}

.cover-float {
    float: right;
    width: 130px;
    margin: 0.25rem 0 1rem 1.75rem;
    border-radius: 2px 5px 5px 2px;
    box-shadow: 0 16px 22px -14px rgba(20, 10, 5, 0.65);
    transform: rotate(2deg);
}

/* Reviews */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
}

.review-card {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.review-stars {
    margin-bottom: 0.6rem;
    color: var(--at-strong);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
}

.review-title {
    margin-bottom: 0.4rem;
    font-family: var(--font-display);
    font-weight: 700;
}

.review-text {
    margin-bottom: 0.9rem;
}

.review-author {
    margin: 0;
    font-weight: 700;
}

.review-date {
    margin-left: 0.4rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 400;
}

/* FAQ */
.faq-list {
    border-top: 1px solid var(--line);
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    position: relative;
    padding: 1.1rem 2.5rem 1.1rem 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--at-ink);
}

.faq-list details[open] summary::after {
    content: '\2212';
}

.faq-list details p {
    padding-bottom: 1.25rem;
    margin: 0;
}

/* Final call to action */
.final-cta {
    padding: clamp(3rem, 7vw, 5rem) var(--gutter);
    background: var(--leather);
    color: var(--paper);
    text-align: center;
}

.final-cta h2 {
    max-width: none;
    margin-bottom: 0.75rem;
}

.final-cta p {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.15rem;
}

.final-cta .actions {
    justify-content: center;
    margin-top: 1.5rem;
}

.final-cta-note {
    margin-top: 1.75rem;
    margin-bottom: 0;
}

.final-cta a:not(.btn) {
    color: var(--paper);
}

.final-cta-settee {
    padding-bottom: 0;
    background: linear-gradient(to bottom, var(--wall-deep), var(--wall));
}

.final-cta-photo {
    display: block;
    width: calc(100% + 2 * var(--gutter));
    max-width: none;
    height: clamp(220px, 36vw, 520px);
    margin: 1rem calc(var(--gutter) * -1) 0;
    object-fit: cover;
    object-position: 50% 82%;
    mask-image: linear-gradient(to bottom, transparent, #000000 30%);
}

/* About and reviews pages */
.single {
    max-width: 52rem;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
}

.single-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--line);
}

.single-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

.single-description {
    margin: 0.9rem 0 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink-soft);
}

.content h2 {
    margin: 2.75rem 0 1rem;
    clear: both;
}

.content h3 {
    margin: 2rem 0 0.75rem;
}

.content ul,
.content ol {
    margin: 0 0 1.25rem 1.25rem;
}

.content li {
    margin-bottom: 0.4rem;
}

.content .review-grid,
.content .btn {
    margin: 0.5rem 0 1.5rem;
}

/* Footer */
.site-footer {
    padding: 3rem var(--gutter) 2rem;
    background: var(--ink);
    color: var(--paper);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem 3rem;
    max-width: var(--max);
    margin: 0 auto 2rem;
}

.footer-brand {
    margin-bottom: 0.3rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-tagline {
    margin: 0;
    font-style: italic;
    opacity: 0.8;
}

.footer-links {
    display: grid;
    gap: 0.4rem;
    align-content: start;
    list-style: none;
}

.site-footer a {
    color: var(--paper);
}

.site-footer a:hover {
    color: var(--at-bright);
}

.copyright-notice,
.footer-note {
    max-width: var(--max);
    margin: 0 auto;
    padding-top: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.copyright-notice {
    border-top: 1px solid rgba(247, 241, 230, 0.2);
    padding-top: 1.5rem;
}

/* Wide screens: the settee photo stops growing, so fade its edges into the room */
@media (min-width: 1601px) {
    .room-stage {
        mask-image: linear-gradient(90deg, transparent, #000000 7%, #000000 93%, transparent);
    }
}

@media (max-width: 900px) {
    .book-panels,
    .forecast-list,
    .prose-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .inside-list-thirds {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }

    .scale {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .meter {
        grid-template-columns: minmax(0, 1fr);
    }

    .meter-panel {
        max-width: 380px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 700px) {
    .site-header {
        position: static;
    }

    .site-nav {
        justify-content: center;
    }

    .site-nav ul {
        justify-content: center;
        gap: 0.3rem 1.1rem;
    }

    .book-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .book-hero-cover {
        max-width: 230px;
        margin-left: auto;
        margin-right: auto;
    }

    .trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem 0;
    }

    .trust-item:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .promise-grid,
    .readout-advice {
        grid-template-columns: minmax(0, 1fr);
    }

    .author-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .author-image {
        width: 130px;
    }

    .author-image-float {
        width: 110px;
        margin-left: 1rem;
    }
}

@media (max-width: 480px) {
    .site-nav ul .btn-nav {
        display: none;
    }

    .book-panel {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .cover-float {
        width: 96px;
        margin-left: 1rem;
    }

    .scale {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .forecast-item {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none !important;
    }
}
