/* devguide.padevgroup.com, draft 2. One flush-left grid from top to bottom. The guide's Patreon face
   (Barlow Semi Condensed, self-hosted, SIL Open Font License) for display only; the reader's system sans for
   reading. Teal #20767F and cream #F0EEDF are the cover's. Light by default (theme.js); the toggle gives dark. */

@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap;
             src: url("/fonts/BarlowSemiCondensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 800; font-style: normal; font-display: swap;
             src: url("/fonts/BarlowSemiCondensed-800.woff2") format("woff2"); }

:root {
    --paper: #fdfcfa;
    --ink: #1c1d21;
    --muted: #5b5f6b;
    --rule: #dcd9d2;
    --teal: #20767f;
    --head: #1a5f66;
    --link: #1a5f66;
    --cream: #f0eedf;
    --band: #20767f;
}
:root[data-theme="dark"] {
    --paper: #15171c; --ink: #e7e5e0; --muted: #a3a7b3; --rule: #343843;
    --head: #8fd3da; --link: #8fd3da; --band: #165a61;
}

* { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (min-width: 1100px) { html { font-size: 118.75%; } }
body {
    margin: 0; background: var(--paper); color: var(--ink);
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
}
button { font: inherit; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }
.display, h1, h2, .n, dt, .button, .tagline, .group {
    font-family: "Barlow Semi Condensed", "Segoe UI", system-ui, sans-serif;
}

/* Top bar: sits on the teal band, so the band runs from the top edge into the hero without a seam. */
.top { background: var(--band); color: var(--cream); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.top a { color: var(--cream); }
.top .home { text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.top-nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.9rem; }
.top-nav a { text-decoration: none; }
.top-nav a:hover { text-decoration: underline; }
.theme-toggle { flex: none; width: 34px; height: 34px; padding: 0; border-radius: 50%; display: flex; align-items: center;
                justify-content: center; background: none; border: 1px solid rgba(240, 238, 223, 0.5); color: var(--cream); cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: inline; }
:root[data-theme="dark"] .theme-icon-light { display: none; }

/* The hero: the cover's type, flush left. */
.hero { background: var(--band); color: var(--cream); padding: 2.5rem 0 3.5rem; }
.hero h1 { font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 8.5vw, 5.4rem); line-height: 0.95;
           margin: 0 0 0 -0.04em; letter-spacing: 0; }
.hero .tagline { font-weight: 600; text-transform: uppercase; font-size: 1.35rem; letter-spacing: 0.02em; line-height: 1.15; margin: 1.4rem 0 1.25rem;
                 padding-top: 1.1rem; border-top: 4px solid var(--cream); max-width: 34rem; }
.hero .lead { max-width: 34rem; margin: 0 0 1.75rem; }
.hero a { color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin: 0; }
.button { display: inline-block; padding: 0.6rem 1.2rem; font-weight: 600; font-size: 1.15rem; text-decoration: none;
          background: var(--cream); color: #1a5f66 !important; border-radius: 3px; }
.button:hover { background: #ffffff; }
.sec .button { background: var(--teal); color: var(--cream) !important; }
.sec .button:hover { background: #1a5f66; }

/* The question, in display type across the grid, and his answer at reading size in the reading column. */
.why { padding: 3.5rem 0 1rem; }
.question { font-weight: 800; text-transform: uppercase; color: var(--head); font-size: clamp(1.9rem, 5vw, 3rem);
            line-height: 1; margin: 0 0 1.75rem; max-width: 18em; }
.answer, .grid .body { max-width: 36rem; }
.answer { margin-left: 15.5rem; }
.answer .intro { color: var(--muted); }
blockquote { margin: 0 0 1.5rem; padding: 0 0 0 1.25rem; border-left: 4px solid var(--teal); font-size: 1.1rem; }
blockquote p { margin: 0 0 0.6rem; }
blockquote footer { font-size: 0.85rem; color: var(--muted); }

/* Every other section: heading in the left column, content in the right, a rule across the top. */
.sec .grid { display: grid; grid-template-columns: 13rem minmax(0, 36rem); column-gap: 2.5rem; border-top: 1px solid var(--rule);
             padding-top: 1.75rem; padding-bottom: 2.25rem; }
.sec h2 { font-weight: 800; text-transform: uppercase; color: var(--head); font-size: 1.5rem; line-height: 1.05; margin: 0.15rem 0 1rem; }
p { margin: 0 0 1.1rem; }

.steps { margin: 0; padding-left: 1.4rem; }
.steps li { margin-bottom: 0.7rem; padding-left: 0.3rem; }
.steps li::marker { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 800; color: var(--head); }

.group { font-weight: 600; text-transform: uppercase; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--muted);
         margin: 1.75rem 0 0.5rem; }
.toc { list-style: none; margin: 0; padding: 0; }
.toc li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0.6rem; padding: 0.55rem 0; border-top: 1px solid var(--rule); }
.toc .n { font-weight: 800; color: var(--head); font-size: 1.25rem; line-height: 1.3; }
.toc h3 { font-size: 1rem; margin: 0 0 0.1rem; line-height: 1.35; }
.toc p { font-size: 0.88rem; color: var(--muted); margin: 0; line-height: 1.5; }
.toc-live li { padding: 0.9rem 0 1rem; }
.toc-live .n { font-size: 2rem; line-height: 1; }
.toc-live h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.toc-live p { color: var(--ink); font-size: 0.95rem; margin-bottom: 0.4rem; }
.toc-live .ex { color: var(--muted); }
.toc-live .read { margin: 0.5rem 0 0; font-weight: 700; }

.tiers { margin: 0 0 1.5rem; }
.tiers div { padding: 0.8rem 0; border-top: 1px solid var(--rule); }
.tiers div:first-child { border-top: 0; padding-top: 0; }
dt { font-weight: 800; text-transform: uppercase; color: var(--head); font-size: 1.3rem; line-height: 1.2; }
dt .price { font-family: "Segoe UI", system-ui, -apple-system, sans-serif; font-weight: 400; text-transform: none;
            font-size: 0.9rem; color: var(--muted); margin-left: 0.5rem; }
dd { margin: 0.25rem 0 0; }

.more { list-style: none; margin: 0; padding: 0; }
.more li { margin-bottom: 1rem; }
.more a { font-weight: 700; }
.more p { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.95rem; }

.foot { border-top: 1px solid var(--rule); padding: 1.75rem 0 2.5rem; color: var(--muted); font-size: 0.88rem; }
.foot p { margin: 0 0 0.6rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }

@media (max-width: 52rem) {
    .answer { margin-left: 0; }
    .sec .grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 30rem) {
    .top-nav a:not(.to-patreon) { display: none; }
    .hero { padding-top: 1.75rem; }
    .hero .tagline { font-size: 1.02rem; }
    .toc-live .n { font-size: 1.6rem; }
}
