/*
 * LessonPorch's own stylesheet: the kitchen-table notebook (sites/fleet/designs/lessonporch/, T-20261102-344).
 *
 * Square corners, ruled paper with a red margin line, manila folders with tabs, an index card, a checklist with drawn
 * boxes, plum ink and a pencil's gold. Nothing here is shared with another site's design (the owner, 2026-11-02:
 * "each should get his unique design adn template"). The colours and fonts come from the theme's theme.json presets
 * (sites/fleet/sites/lessonporch.mjs); gold is never text on white or paper. Copied to assets/css/site.css by
 * sites/fleet/build.mjs: edit it here.
 */

:root {
  --lp-paper: var(--wp--preset--color--surface);
  --lp-manila: var(--wp--preset--color--surface-alt);
  --lp-ink: var(--wp--preset--color--ink);
  --lp-muted: var(--wp--preset--color--muted);
  --lp-plum: var(--wp--preset--color--primary);
  --lp-plum-dk: var(--wp--preset--color--primary-dark);
  --lp-gold: var(--wp--preset--color--accent);
  --lp-line: var(--wp--preset--color--line);
  --lp-folder-2: #F4E6C8;
  --lp-margin: rgba(176, 58, 48, .5);
  --lp-ruled: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(106, 46, 92, .09) 31px, rgba(106, 46, 92, .09) 32px);
  --lp-head: var(--wp--preset--font-family--heading);
  --lp-body: var(--wp--preset--font-family--body);
}

/* ── The page frame: no gaps between the header, the sections and the footer ── */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
#chq-main { margin: 0; }
#chq-main > * { margin-block: 0; }
.lp-wrap { box-sizing: border-box; max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
.lp-wrap { display: block; }
img { max-width: 100%; height: auto; }

:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--lp-plum); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.lp-skip { position: absolute; left: -9999px; top: .75rem; z-index: 1000; padding: .6rem 1rem; background: #fff; color: var(--lp-plum-dk); font-weight: 700; }
.lp-skip:focus { left: .75rem; }

/* ── Small parts used across the site ── */
.lp-label {
  display: inline-block; margin: 0; padding: .22rem .6rem; background: var(--lp-gold); color: var(--lp-ink);
  font-family: var(--lp-body); font-size: .76rem; font-weight: 700; letter-spacing: .09em; line-height: 1.4;
  text-transform: uppercase; text-decoration: none; transform: rotate(-1deg);
}
a.lp-label:hover { background: #EDC06A; color: var(--lp-ink); }
.lp-h2 { margin: 0 0 .5rem; font-family: var(--lp-head); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 600; line-height: 1.15; color: var(--lp-ink); }
.lp-sub { margin: 0 0 2.25rem; color: var(--lp-muted); max-width: 40rem; }
.lp-btn {
  display: inline-block; padding: .85rem 1.35rem; background: var(--lp-plum); color: #fff; border-radius: 0;
  font-weight: 700; line-height: 1.25; text-decoration: none; box-shadow: 4px 4px 0 var(--lp-gold);
  transition: transform .12s ease, box-shadow .12s ease;
}
.lp-btn:hover, .lp-btn:focus-visible { background: var(--lp-plum-dk); color: #fff; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--lp-gold); }
.lp-link { color: var(--lp-plum-dk); font-weight: 700; text-decoration: underline; text-decoration-color: var(--lp-gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lp-link:hover { color: var(--lp-plum); }
@media (prefers-reduced-motion: reduce) { .lp-btn { transition: none; } .lp-btn:hover { transform: none; } }

/* ── Header: the tagline on a plum strip, the logo, and the nav drawn as folder tabs on a plum rule ── */
.lp-header { background: #fff; }
.lp-header__strip { margin: 0; padding: .4rem 0; background: var(--lp-plum); color: #fff; font-size: .82rem; line-height: 1.4; letter-spacing: .01em; }
.lp-header__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-top: .9rem; border-bottom: 2px solid var(--lp-plum); }
.lp-wrap.lp-header__bar { max-width: none; padding-inline: max(1.25rem, calc((100% - 69.5rem) / 2)); }
.lp-logo { display: block; flex: 0 0 auto; padding-bottom: .7rem; line-height: 0; }
.lp-logo img { display: block; width: auto; height: 32px; }
.lp-tabs { display: flex; gap: .35rem; }
.lp-tabs a {
  display: block; margin-bottom: -2px; padding: .5rem .8rem .45rem; background: var(--lp-paper);
  border: 2px solid var(--lp-plum); border-bottom-color: var(--lp-plum); border-radius: 5px 5px 0 0;
  color: var(--lp-plum-dk); font-family: var(--lp-head); font-size: .98rem; font-weight: 600; line-height: 1.3; text-decoration: none;
}
.lp-tabs a:hover { background: var(--lp-manila); }
.lp-tabs a[aria-current="page"] { background: #fff; border-bottom-color: #fff; color: var(--lp-ink); }
@media (min-width: 760px) {
  .lp-logo img { height: 46px; }
  .lp-tabs { gap: .5rem; }
  .lp-tabs a { padding: .6rem 1.25rem .55rem; font-size: 1.05rem; }
}

/* ── Home: the hero on ruled paper, with the margin line and an index card ── */
.lp-hero { position: relative; padding: 2.5rem 0 3rem; background: var(--lp-ruled), var(--lp-paper); }
.lp-hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: .85rem; width: 2px; background: var(--lp-margin); }
.lp-hero .lp-wrap { padding-left: 2.25rem; }
.lp-hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.lp-hero h1 { margin: 1rem 0 1rem; font-family: var(--lp-head); font-size: clamp(2.05rem, 1.35rem + 3vw, 3.45rem); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; color: var(--lp-ink); }
.lp-hero__lead { margin: 0; max-width: 38rem; font-size: 1.08rem; color: var(--lp-muted); }
.lp-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin: 1.8rem 0 0; }
.lp-card { position: relative; margin: 0; padding: 1.25rem 1.4rem 1rem; background: #fff; border: 1px solid var(--lp-line); box-shadow: 0 1px 2px rgba(35, 26, 39, .08), 0 14px 26px -18px rgba(35, 26, 39, .45); }
.lp-card__title { margin: 0 0 .5rem; padding-bottom: .55rem; border-bottom: 2px solid var(--lp-margin); font-family: var(--lp-head); font-size: 1.2rem; font-weight: 600; color: var(--lp-plum-dk); }
.lp-card ul { margin: 0; padding: 0; list-style: none; }
.lp-card li { padding: .6rem 0 .55rem; border-bottom: 1px solid rgba(106, 46, 92, .14); font-size: 1rem; line-height: 1.45; }
.lp-card li:last-child { border-bottom: 0; }
@media (min-width: 900px) {
  .lp-hero { padding: 4rem 0 4.5rem; }
  .lp-hero__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3.5rem; }
  .lp-card { transform: rotate(.7deg); }
}
@media (min-width: 1280px) {
  .lp-hero::before { left: calc(50% - 36rem - 1rem); }
  .lp-hero .lp-wrap { padding-left: 1.25rem; }
}

/* The email box (Dash's capture engine puts it right under the hero): a dashed coupon on a manila band */
#chq-main > .chq-sp-homewrap { max-width: none; margin: 0; padding: 2.5rem 1.25rem; background: var(--lp-manila); }
#chq-main > .chq-sp-homewrap > .chq-sp { max-width: 44rem; margin: 0 auto; }
#chq-main .chq-sp { border-radius: 0; border: 2px dashed var(--lp-plum); background: #fff; font-family: var(--lp-body); }
#chq-main .chq-sp .chq-sp-h { font-family: var(--lp-head); }
#chq-main .chq-sp .chq-sp-f input.chq-sp-em, #chq-main .chq-sp .chq-sp-f button, #chq-main .chq-sp a.chq-sp-gift { border-radius: 2px; }

/* The five subjects as manila folders with numbered tabs */
.lp-topics { padding: 3.5rem 0 4rem; background: #fff; }
.lp-folders { display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); gap: 2.6rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.lp-folder { position: relative; margin: 1.15rem 0 0; padding: 1.5rem 1.15rem 1.25rem; background: var(--lp-manila); border-radius: 0 4px 4px 4px; }
.lp-folder:nth-child(even), .lp-folder:nth-child(even) .lp-folder__tab { background: var(--lp-folder-2); }
.lp-folder__tab { position: absolute; top: -1.7rem; left: 0; padding: .3rem 1rem .25rem; background: var(--lp-manila); border-radius: 6px 6px 0 0; color: var(--lp-plum-dk); font-family: var(--lp-head); font-size: .95rem; font-weight: 600; line-height: 1.5; }
.lp-folder h3 { margin: 0 0 .45rem; font-family: var(--lp-head); font-size: 1.2rem; font-weight: 600; line-height: 1.25; color: var(--lp-ink); }
.lp-folder p { margin: 0; font-size: .97rem; line-height: 1.55; color: var(--lp-muted); }

/* The method as a checklist on one notebook page */
.lp-method { padding: 3.5rem 0 4rem; background: var(--lp-paper); }
.lp-method__page {
  max-width: 52rem; margin: 0 auto; padding: 2.25rem 1.25rem 1.5rem 3rem;
  background: linear-gradient(to right, transparent 2rem, var(--lp-margin) 2rem, var(--lp-margin) calc(2rem + 2px), transparent calc(2rem + 2px)), #fff;
  box-shadow: 0 0 0 1px var(--lp-line), 6px 6px 0 0 var(--lp-manila);
}
.lp-checklist { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.lp-checklist li { position: relative; margin: 0 0 1.4rem; padding-left: 2.5rem; }
.lp-checklist li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.4rem; height: 1.4rem; box-sizing: border-box; border: 2px solid var(--lp-plum); background: #fff; }
.lp-checklist li::after { content: ""; position: absolute; left: .5rem; top: .22rem; width: .42rem; height: .9rem; border: solid var(--lp-gold); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.lp-checklist h3 { margin: 0 0 .25rem; font-family: var(--lp-head); font-size: 1.18rem; font-weight: 600; line-height: 1.3; }
.lp-checklist p { margin: 0; color: var(--lp-muted); }
@media (min-width: 760px) { .lp-method__page { padding: 2.75rem 3rem 2rem 4.25rem; background: linear-gradient(to right, transparent 3rem, var(--lp-margin) 3rem, var(--lp-margin) calc(3rem + 2px), transparent calc(3rem + 2px)), #fff; } }

/* The house rules on a dashed note, taped on */
.lp-rules { padding: 4rem 0 4.5rem; background: #fff; }
.lp-rules__card { position: relative; max-width: 52rem; margin: 0 auto; padding: 2rem 1.4rem 1.5rem; border: 2px dashed var(--lp-plum); background: #fff; }
.lp-rules__card::before { content: ""; position: absolute; top: -.8rem; left: 50%; width: 6.5rem; height: 1.5rem; background: rgba(226, 169, 59, .7); transform: translateX(-50%) rotate(-2deg); }
.lp-rules ul { display: grid; gap: .7rem 2rem; margin: 1.1rem 0 1.4rem; padding: 0; list-style: none; }
.lp-rules li { position: relative; padding-left: 1.5rem; font-weight: 700; }
.lp-rules li::before { content: ""; position: absolute; left: .15rem; top: .6em; width: .55rem; height: .55rem; background: var(--lp-plum); }
.lp-rules__note { margin: 0; padding-top: 1rem; border-top: 1px solid var(--lp-line); color: var(--lp-muted); font-size: .97rem; }
.lp-rules__note a { color: var(--lp-plum-dk); text-decoration-color: var(--lp-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (min-width: 700px) { .lp-rules ul { grid-template-columns: 1fr 1fr; } .lp-rules__card { padding: 2.5rem 2.5rem 1.75rem; } }

/* ── A page, a post or a list: the title on ruled paper, the words on a white sheet on the desk ── */
.lp-pagehead { padding: 2.25rem 0 1.9rem; background: var(--lp-ruled), var(--lp-paper); border-bottom: 2px solid var(--lp-plum); }
.lp-pagehead h1 { margin: .7rem 0 0; max-width: 48rem; font-family: var(--lp-head); font-size: clamp(2rem, 1.5rem + 2vw, 2.85rem); font-weight: 600; line-height: 1.12; color: var(--lp-ink); }
.lp-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.2rem; margin: 1.1rem 0 0; color: var(--lp-muted); font-size: .95rem; }
.lp-initials { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; background: var(--lp-plum); color: #fff; font-family: var(--lp-head); font-weight: 600; font-size: .9rem; }
.lp-byline strong { color: var(--lp-ink); }

.lp-desk { padding: 2.25rem 1rem 3.5rem; background: var(--lp-paper); }
.wp-block-group.lp-sheet {
  box-sizing: border-box; max-width: 48rem; margin: 0 auto; padding: 1.9rem 1.15rem 1.5rem;
  background: #fff; box-shadow: 0 0 0 1px var(--lp-line), 0 1px 2px rgba(35, 26, 39, .08);
}
@media (min-width: 760px) {
  .lp-desk { padding: 3rem 1.25rem 4.5rem; }
  .wp-block-group.lp-sheet {
    padding: 2.75rem 3rem 2.25rem 4.25rem;
    background: linear-gradient(to right, transparent 3rem, var(--lp-margin) 3rem, var(--lp-margin) calc(3rem + 2px), transparent calc(3rem + 2px)), #fff;
  }
}
.lp-sheet > :first-child, .lp-sheet .wp-block-post-content > :first-child { margin-top: 0; }
.lp-sheet h2 { margin: 2.1rem 0 .7rem; font-family: var(--lp-head); font-size: 1.6rem; font-weight: 600; line-height: 1.2; }
.lp-sheet h3 { margin: 1.7rem 0 .5rem; font-family: var(--lp-head); font-size: 1.25rem; font-weight: 600; }
.lp-sheet a { color: var(--lp-plum-dk); text-decoration: underline; text-decoration-color: var(--lp-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lp-sheet a:hover { color: var(--lp-plum); }
.lp-sheet ul, .lp-sheet ol { padding-left: 1.3rem; }
.lp-sheet li { margin: .35rem 0; }
.lp-sheet li::marker { color: var(--lp-plum); }
.lp-sheet blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.1rem; border-left: 4px solid var(--lp-gold); font-family: var(--lp-head); }
.lp-cover { max-width: 48rem; margin: 0 auto 1.5rem; }
.lp-cover img { display: block; width: 100%; border: 1px solid var(--lp-line); }

/* The post furniture the engine adds (contents, tables, callouts) */
.chq-toc { margin: 0 0 1.8rem; padding: 1rem 1.2rem; background: var(--lp-paper); border-left: 4px solid var(--lp-plum); }
.chq-toc__title { margin: 0 0 .4rem; font-family: var(--lp-head); font-weight: 600; }
.chq-toc ol { margin: 0; padding-left: 1.2rem; }
.chq-tablewrap { overflow-x: auto; margin: 1.5rem 0; }
.chq-tablewrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.chq-tablewrap th, .chq-tablewrap td { padding: .55rem .7rem; border: 1px solid var(--lp-line); text-align: left; vertical-align: top; }
.chq-tablewrap th { background: var(--lp-manila); }
.chq-callout { margin: 1.6rem 0; padding: 1rem 1.2rem; background: var(--lp-folder-2); border: 2px dashed var(--lp-plum); }
.chq-callout__title { display: block; margin-bottom: .3rem; font-family: var(--lp-head); font-weight: 600; }
.chq-callout p:empty, .chq-book-inline:empty { display: none; }

/* The name on the guide, as an index card */
.lp-author { max-width: 48rem; margin: 2rem auto 0; padding: 1.25rem 1.4rem; box-sizing: border-box; background: #fff; border-top: 3px solid var(--lp-margin); box-shadow: 0 0 0 1px var(--lp-line); }
.lp-author__label { margin: 0; color: var(--lp-muted); font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.lp-author__name { margin: .25rem 0 .6rem; font-family: var(--lp-head); font-size: 1.35rem; font-weight: 600; }
.lp-author p:not([class]) { margin: 0 0 .7rem; color: var(--lp-muted); font-size: .97rem; }

/* Keep reading */
.lp-related { max-width: 72rem; margin: 3rem auto 0; }
.chq-related__head { margin: 0 0 1.1rem; font-family: var(--lp-head); font-size: 1.5rem; font-weight: 600; }
.chq-grid.chq-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.chq-card { background: #fff; box-shadow: 0 0 0 1px var(--lp-line); }
.chq-card__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.chq-card__body { padding: 1rem 1.1rem 1.15rem; }
.chq-card__title { margin: 0; font-family: var(--lp-head); font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.chq-card__title a { color: var(--lp-ink); text-decoration: none; }
.chq-card__title a:hover { text-decoration: underline; text-decoration-color: var(--lp-gold); }

/* A list of guides: index cards with a plum top edge */
.lp-list { max-width: 72rem; margin: 0 auto; }
.lp-cards { margin: 0; padding: 0; list-style: none; gap: 1.25rem; }
.lp-cards > li { padding: 1.25rem 1.3rem 1.1rem; background: #fff; border-top: 4px solid var(--lp-plum); box-shadow: 0 0 0 1px var(--lp-line); }
.lp-cards__cat a { display: inline-block; padding: .15rem .5rem; background: var(--lp-gold); color: var(--lp-ink); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.lp-cards__title { margin: .6rem 0 .45rem; font-family: var(--lp-head); font-size: 1.32rem; font-weight: 600; line-height: 1.25; }
.lp-cards__title a { color: var(--lp-ink); text-decoration: none; }
.lp-cards__title a:hover { text-decoration: underline; text-decoration-color: var(--lp-gold); text-decoration-thickness: 2px; }
.lp-cards__excerpt { margin: 0; color: var(--lp-muted); font-size: .97rem; }
.lp-cards__excerpt p { margin: 0; }
.lp-cards__date { margin-top: .6rem; color: var(--lp-muted); font-size: .85rem; }
.lp-pages { margin-top: 2rem; gap: .4rem; }
.lp-pages a, .lp-pages .page-numbers { display: inline-block; padding: .4rem .75rem; background: #fff; box-shadow: 0 0 0 1px var(--lp-line); color: var(--lp-plum-dk); text-decoration: none; }
.lp-pages .page-numbers.current { background: var(--lp-plum); color: #fff; }
.lp-empty { max-width: 42rem; margin: 0 auto; padding: 1.5rem; background: #fff; border: 2px dashed var(--lp-plum); }
.lp-empty a { color: var(--lp-plum-dk); font-weight: 700; }

/* ── 404: a folder tab with nothing in it ── */
.lp-404 { position: relative; padding: 4rem 0 4.5rem; background: var(--lp-ruled), var(--lp-paper); }
.lp-404 .lp-wrap { max-width: 48rem; }
.lp-404__tab { display: inline-block; margin: 0; padding: .35rem 1.1rem .3rem; background: var(--lp-plum); border-radius: 6px 6px 0 0; color: #fff; font-family: var(--lp-head); font-size: 1.15rem; font-weight: 600; letter-spacing: .05em; }
.lp-404 h1 { margin: 0; padding-top: 1rem; border-top: 2px solid var(--lp-plum); font-family: var(--lp-head); font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); font-weight: 600; line-height: 1.12; }
.lp-404__lead { margin: 1rem 0 0; color: var(--lp-muted); font-size: 1.06rem; }

/* ── Footer: the notebook's manila back cover ── */
.lp-footer { padding: 3rem 0 1.4rem; background: var(--lp-manila); border-top: 6px solid var(--lp-plum); color: var(--lp-ink); }
.lp-footer__grid { display: grid; gap: 2rem; }
.lp-footer__brand img { display: block; width: auto; height: 38px; }
.lp-footer__brand p { max-width: 30rem; margin: .9rem 0 0; color: var(--lp-muted); font-size: .93rem; line-height: 1.6; }
.lp-footer__h { margin: 0 0 .7rem; font-family: var(--lp-body); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-muted); }
.lp-footer__col ul { margin: 0; padding: 0; list-style: none; }
.lp-footer__col li { margin: .45rem 0; }
.lp-footer__col a { color: var(--lp-ink); font-weight: 700; text-decoration: none; }
.lp-footer__col a:hover { color: var(--lp-plum-dk); text-decoration: underline; text-decoration-color: var(--lp-gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lp-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(106, 46, 92, .22); }
.lp-footer__base p { margin: 0; color: var(--lp-muted); font-size: .88rem; }
@media (min-width: 760px) { .lp-footer__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; } }
