/* Comic-hero theme for every page that isn't a home page: About, Services, the service pages,
   the thank-you page and the 404 page, plus the form section shared by every page.
   Same look as the home pages (test-lp.css): thick ink lines, hard shadows, halftone dots that fade
   behind the text, cut-out photos of Chris with a white sticker edge, and speech bubbles. */

:root {
  --line: 3px solid var(--ink);
  --pop: 8px 8px 0 var(--ink);
  --dots-ink: radial-gradient(rgba(26, 23, 16, .16) 1.3px, transparent 1.6px) 0 0 / 12px 12px;
  --dots-light: radial-gradient(rgba(255, 255, 255, .26) 1.6px, transparent 1.9px) 0 0 / 14px 14px;
  /* Dots faint behind the text (left / top), stronger toward the photos */
  --fade-x: linear-gradient(90deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .12) 42%, rgba(0, 0, 0, .85) 72%, #000 100%);
  --fade-y: linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .15) 38%, rgba(0, 0, 0, .7) 70%, #000 100%);
}

/* ---------- Dotted backgrounds ---------- */
.page-hero, .section--tint, .request { position: relative; isolation: isolate; }
.page-hero::before, .section--tint::before, .request::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--dots-ink);
  -webkit-mask-image: var(--fade-x); mask-image: var(--fade-x);
}
.page-hero { background: var(--paper); }
.section--tint { background: #f6edd8; border-block: 0; }
.section--tint::before { -webkit-mask-image: var(--fade-y); mask-image: var(--fade-y); }
.request { border-top: 4px solid var(--ink); }
.request::before { background: var(--dots-light); }
@media (max-width: 900px) {
  .page-hero::before, .request::before { -webkit-mask-image: var(--fade-y); mask-image: var(--fade-y); }
}

/* ---------- Headings ---------- */
.page-hero h1, .page-hero .page-hero__display { font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); max-width: none; margin-block: 0 2rem; }
.page-hero .page-hero__display { font-size: clamp(2.3rem, 4.4vw, 3.8rem); margin: 0 0 1.4rem; max-width: none; }
.page-hero .page-hero__h1 { font-weight: 800; margin-block: 0 1.4rem; }
.section h2:not(.example__title), .request h2 { font-weight: 800; letter-spacing: -0.045em; line-height: 1.04; }
.section h2:not(.example__title) { font-size: clamp(2rem, 3.8vw, 3rem); }
.request h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.page-hero .tlp-caption a { color: #fff; text-underline-offset: 3px; }
.page-hero .tlp-caption span { margin-inline: .4rem; opacity: .7; }

/* ---------- Cards ---------- */
.panel, .work__card, .service, .need, .principles .need {
  background: #fff; border: var(--line); border-radius: 14px; box-shadow: var(--pop);
}
.need, .principles .need { padding: 1.4rem; gap: .5rem; }
.need h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.principles { gap: 1.5rem; }
.principles .need:nth-child(even) { box-shadow: 8px 8px 0 var(--teal); }
.panel { box-shadow: 8px 8px 0 var(--teal); }
.panel__title { font-weight: 800; letter-spacing: -0.02em; }
.services { gap: 1.5rem; }
.service { background: #fff; }
.service h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.service:nth-child(4n+2), .service:nth-child(4n+3) { box-shadow: 8px 8px 0 var(--magenta); }
.service--link:hover { box-shadow: 12px 12px 0 var(--ink); transform: translate(-3px, -3px); }
.work__card { box-shadow: 10px 10px 0 var(--ink); }
.example--illustration { border-style: dashed; background: #fffdf7; box-shadow: 10px 10px 0 #cfc6b4; }
.example__title { font-weight: 800; letter-spacing: -0.03em; }

/* Price card: the dark "Free" box in the page top */
.price-card, .feature {
  border: 4px solid var(--ink); border-radius: 16px; box-shadow: 12px 12px 0 var(--magenta);
}
.price-card .price-card__amount--text { font-weight: 800; }
.feature__title { font-weight: 800; letter-spacing: -0.035em; }

/* Testimonial as a speech bubble */
.quote-card {
  background: #ffe6f0; color: var(--ink); border: var(--line); border-radius: 22px;
  box-shadow: 8px 8px 0 var(--ink); transform: rotate(-1deg); margin-bottom: 1.5rem;
}
.quote-card::after {
  content: ""; position: absolute; left: 2.2rem; bottom: -15px; width: 26px; height: 26px;
  background: #ffe6f0; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg);
}
.quote-card blockquote p { color: var(--ink); font-weight: 700; }
.quote-card figcaption { border-top-color: #e6b8cc; }
.quote-card figcaption b { color: var(--ink); }
.quote-card figcaption span { color: var(--teal); }

/* Skills band on About */
.skills-band { border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--magenta); }

/* Pull quotes */
.pull { font-weight: 700 !important; border-left-width: 6px; }

/* FAQs: each question in its own box */
.faq details, .faq details:first-of-type {
  background: #fff; border: var(--line); border-radius: 12px; box-shadow: 5px 5px 0 var(--ink);
  margin-bottom: 1rem; padding-inline: 1.25rem;
}
.faq details[open] { box-shadow: 5px 5px 0 var(--magenta); }
.faq summary { font-weight: 700; }

/* ---------- Photos of Chris ---------- */
/* Cut-out peeking over the top of the "Free" card in a page top */
.card-pop { position: relative; margin-top: clamp(150px, 15vw, 190px); }
.card-pop > .price-card, .card-pop > .feature { position: relative; top: 0; z-index: 1; }
.card-pop__img {
  position: absolute; z-index: 0; right: 6%; bottom: calc(100% - 70px);
  height: clamp(220px, 21vw, 270px); width: auto; max-width: none;
}
.card-pop__bubble { position: absolute; z-index: 2; left: 0; top: -140px; transform: rotate(-3deg); font-size: 1rem; max-width: 13rem; }

/* Framed photo with a hard shadow (next to text) */
.photo-frame { margin: 0; position: relative; max-width: 320px; }
.photo-frame img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 4px solid var(--ink); border-radius: 16px; box-shadow: 12px 12px 0 var(--magenta); transform: rotate(-2deg); display: block; }
.photo-frame--teal img { box-shadow: 12px 12px 0 var(--teal); transform: rotate(2deg); }
.photo-frame .tlp-bubble { position: absolute; right: -12%; bottom: -8%; transform: rotate(2deg); font-size: .95rem; max-width: 13rem; }

/* Cut-out standing at the bottom of a text column */
.side-cutout { margin: 1.5rem 0 0; position: relative; max-width: 300px; }
.side-cutout img { width: 100%; height: auto; display: block; }
.side-cutout .tlp-bubble { position: absolute; left: 72%; top: 2%; transform: rotate(3deg); font-size: .95rem; max-width: 12rem; }

/* Form section: Chris below the intro text */
.request__photo { position: relative; margin: 2rem 0 0; max-width: 260px; }
.request__photo img { width: 100%; height: auto; display: block; }
.request__photo .tlp-bubble { position: absolute; left: 88%; top: -4%; transform: rotate(3deg); font-size: .95rem; width: 11rem; }
.form-card { border: 4px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); }

/* ---------- About page ---------- */
.about-hero .tlp-hero__art { aspect-ratio: 1 / .95; }
.about-hero .tlp-hero__cutout { width: 80%; }
.name-burger { margin-top: 1.25rem; }

/* ---------- Thank-you page ---------- */
.thanks h1 { font-weight: 800; letter-spacing: -0.04em; }
.thanks__art { position: relative; margin: 0; aspect-ratio: 1 / .9; }
.thanks__art .tlp-burst-panel { inset: 18% 4% 6% 4%; }
.thanks__art .tlp-hero__cutout { width: 100%; bottom: 8%; }

@media (max-width: 900px) {
  .card-pop__bubble { left: 0; }
  .photo-frame .tlp-bubble { right: 0; }
}
@media (max-width: 760px) {
  .request__photo { display: none; }
  .side-cutout { max-width: 230px; }
}

/* ---------- Page-specific placement ---------- */
.hero.about-hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
.story-photo { margin-top: 2rem; max-width: 300px; }
.why-photo { max-width: 360px; justify-self: center; }
.why-photo img { aspect-ratio: 1; }
.section .tlp-head { margin-bottom: 2rem; }
.section .tlp-head__img { height: clamp(170px, 16vw, 220px); }
.section .tlp-head h2 { margin: 0; }
.lost .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 2rem; align-items: center; }
.lost__text { display: grid; gap: 1.25rem; }
.lost__photo { justify-self: center; }
.lost__photo .tlp-bubble { left: -10%; top: -4%; }
@media (max-width: 900px) {
  .hero.about-hero .wrap, .lost .wrap { grid-template-columns: 1fr; }
}
.story-photo img { aspect-ratio: 1; }
.page-hero .tlp-bubble, .section .tlp-bubble, .request .tlp-bubble { color: var(--ink) !important; }
.thanks .thanks__sub { letter-spacing: -0.01em; line-height: 1.2; margin-top: 1.1rem; font-weight: 800; }
@media (max-width: 640px) {
  .card-pop__bubble { display: none; }
  .card-pop { margin-top: 170px; }
  .card-pop__img { right: 8%; }
  .photo-frame { max-width: 230px; }
  .photo-frame .tlp-bubble { right: -30%; }
  .story-photo { max-width: 230px; }
}
.side-cutout .tlp-bubble { width: 11rem; }
@media (max-width: 640px) { .side-cutout .tlp-bubble { left: 58%; width: 9.5rem; } }

/* ---------- V3: "how it's counted" steps, checklist under body text, the number on each service card ---------- */
.prose .points-title { margin: 1.75rem 0 .9rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.section .tlp-steps h3 a { color: inherit; text-decoration-color: var(--magenta); text-underline-offset: 3px; }
.count .section__after { max-width: 70ch; }
.service__number { display: grid; gap: .15rem; margin-top: auto; padding-top: .9rem; border-top: 2px solid var(--ink); }
.service__number b { font-size: .8125rem; color: var(--teal); }
.service__number span { font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.page-hero h1 + .page-hero__h1 { margin-top: -.3rem; }
.service__number + .service__meta { margin-top: 0; }
a.tlp-cover { display: flex; flex-direction: column; gap: .6rem; color: inherit; text-decoration: none; }
a.tlp-cover:hover { transform: translate(-3px, -3px); }
.tlp-cover__number { display: grid; gap: .1rem; margin-top: auto; padding-top: .8rem; border-top: 2px solid var(--ink); }
.tlp-cover__number b { font-size: .8125rem; color: var(--teal); }
.tlp-cover__number span { font-weight: 800; color: var(--ink); }
