/* Blog pages. Same tokens, header and footer as the rest of madefromme.com. */
:root{--wrap:1180px;--pad:clamp(20px,5vw,48px)}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:1.0625rem;line-height:1.6;
  background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);
  background-size:48px 48px;background-position:-1px -1px}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
p,ul,ol{margin:0 0 1em}
h1,h2,h3{font-family:var(--display);font-weight:700;letter-spacing:-.03em;margin:0}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 var(--pad)}
.skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:var(--paper);padding:10px 14px;border-radius:8px;z-index:20}
.skip:focus{left:8px}
:focus-visible{outline:3px solid var(--orange);outline-offset:3px;border-radius:4px}
.top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:22px;padding-bottom:22px}
.logo{display:block;flex:none;line-height:0;text-decoration:none}
.logo img{display:block;height:28px;width:auto}
@media (max-width:599px){.logo img{height:22px}}
/* Header links sit in one group. When the logo and links do not fit on one row (small phones,
   long link text such as "Free Opportunity Vehicle Screen"), the group drops under the logo instead of overflowing. */
.top{flex-wrap:wrap;row-gap:12px}
.top-nav{display:flex;align-items:center;gap:16px}
@media (min-width:600px){.top-nav{gap:28px}}
@media (max-width:400px){.top-nav{gap:10px}}
.top-link{font-family:var(--display);font-weight:600;font-size:.98rem;text-decoration:none;border-bottom:2px solid var(--orange);padding-bottom:2px}
.top-link:hover{color:var(--orange)}
.logo{margin-right:auto}
.nav-link{font-family:var(--display);font-weight:600;font-size:.98rem;text-decoration:none;padding-bottom:2px;border-bottom:2px solid transparent}
.nav-link:hover,.nav-link[aria-current]{border-bottom-color:var(--ink)}
@media (min-width:600px){.top{gap:28px}}
@media (max-width:400px){.top{gap:10px}.nav-link,.top-link{font-size:.85rem}}
.nav-link,.top-link{white-space:nowrap}
.tl-short{display:none}
@media (max-width:400px){.tl-long{display:none}.tl-short{display:inline}}

.page{padding:clamp(24px,5vw,56px) 0 clamp(56px,8vw,96px)}
.card{background:var(--paper);border:2px solid var(--ink);border-radius:22px;padding:clamp(22px,5vw,48px);max-width:820px}

/* Blog index */
.blog-head h1{font-size:clamp(2.4rem,6vw,3.6rem);line-height:1}
.blog-head p{font-size:1.15rem;max-width:52ch;margin:16px 0 0}
.posts{list-style:none;margin:32px 0 0;padding:0;display:grid;gap:16px;grid-template-columns:1fr}
@media (min-width:720px){.posts{grid-template-columns:repeat(2,1fr);gap:20px}}
@media (min-width:1040px){.posts{grid-template-columns:repeat(3,1fr)}}
.post-item{display:flex}
.post-item a{flex:1;display:flex;flex-direction:column;text-decoration:none;background:var(--paper);border:2px solid var(--ink);border-radius:18px;padding:20px 22px}
.post-item a:hover{border-color:var(--orange)}
.post-item h2{font-size:clamp(1.3rem,3vw,1.6rem);line-height:1.15}
.post-item p{margin:8px 0 0}
.meta{color:var(--green);font-size:.95rem}
.empty{margin:32px 0 0;color:var(--green)}

/* Post: the article column sits centred on wide screens */
.post-wrap{max-width:calc(820px + 2 * var(--pad))}
.post h1{font-size:clamp(2.1rem,5.5vw,3.2rem);line-height:1.05}
.post .meta{margin:14px 0 28px}
.post-body{max-width:66ch}
.post-body h2{font-size:clamp(1.35rem,3vw,1.75rem);line-height:1.15;margin:36px 0 12px}
.post-body h3{font-size:1.25rem;line-height:1.2;margin:28px 0 10px}
.post-body ul,.post-body ol{padding-left:1.2em}
.post-body li{margin:0 0 .45em}
.post-body blockquote{margin:24px 0;padding:14px 18px;border-left:4px solid var(--orange);font-family:var(--display);font-weight:500;font-size:1.2rem;line-height:1.35}
.post-body img{border-radius:14px;margin:24px 0}
.post-body a{text-decoration-color:var(--orange);text-underline-offset:2px}
.post-body blockquote p{margin:0}
.tbl-wrap{overflow-x:auto;margin:20px 0 24px;-webkit-overflow-scrolling:touch}
.post-body table{border-collapse:collapse;width:100%;font-size:.95rem;line-height:1.45}
.post-body th,.post-body td{text-align:left;vertical-align:top;padding:10px 12px;border-bottom:1px solid var(--grid)}
.post-body th{font-family:var(--display);font-weight:700;border-bottom:2px solid var(--ink);white-space:nowrap}
.post-body td:first-child{font-weight:600}
.post-body table:has(th:nth-child(4)){min-width:36rem}  /* wide tables scroll sideways on phones instead of squeezing */

/* Call to action at the end of each post (same copy as the homepage) */
.cta{background:var(--ink);color:var(--paper);border-radius:22px;padding:clamp(22px,4vw,36px);margin:40px 0 0;max-width:820px}
.cta h2{font-size:clamp(1.6rem,4vw,2.2rem);line-height:1.05}
.cta h2 span{color:var(--orange)}
.cta p{color:var(--on-ink-muted);margin:12px 0 20px;max-width:44ch}
.btn{display:inline-flex;align-items:center;justify-content:center;font-family:var(--display);font-weight:700;font-size:1.1rem;background:var(--orange);color:var(--ink);border:0;border-radius:999px;padding:14px 26px;min-height:52px;text-decoration:none}
.btn:hover{box-shadow:0 3px 0 var(--paper)}
.back{display:inline-block;margin:28px 0 0;font-family:var(--display);font-weight:600;text-decoration:none;border-bottom:2px solid var(--orange)}

footer{padding:28px 0 40px;font-size:.92rem;color:var(--green)}
footer .wrap{display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between}
.foot-links{display:flex;gap:18px}
.foot-links a{text-decoration:underline}

/* Brand refresh (preview): tan page, square corners, Sora 400 headings, Inter labels and buttons */
body{background:var(--bg);background-image:none}
h1,h2,h3{font-weight:400}
.top{border-bottom:1px solid var(--grid)}
.top-link,.nav-link,.back,.meta b,th{font-family:var(--body)}
.card,.doc-card,.post-item a,.cta{border:0;border-radius:0;clip-path:polygon(0 0,calc(100% - 28px) 0,100% 28px,100% 100%,0 100%)}
.card,.doc-card{border-top:3px solid var(--orange)}
.card,.doc-card,.post-item a{background:var(--card)}
.updated,.meta,.empty{color:var(--muted)}
.post-item a{border-top:2px solid var(--orange)}
.post-item a:hover{background:var(--white)}
.cta{background:var(--ink)}
.cta h2{padding-right:28px}
.meta,.updated,.empty,footer{color:var(--green)}
.btn{border-radius:0;font-family:var(--body);font-weight:700;font-size:1.1875rem}
.btn:hover{box-shadow:none;background:var(--paper);color:var(--ink)}
.post-body img{border-radius:0}
.post-body blockquote{font-weight:400;border-left:2px solid var(--orange)}
.doc b,.tbl th{font-family:var(--body)}
.skip{border-radius:0}
:focus-visible{outline:2px solid var(--ink);border-radius:0}
