/* GrailStitch utilities: a hand-built static replacement for the Tailwind CDN. Only the classes the site uses. */
*,::before,::after{box-sizing:border-box;border:0 solid currentColor}
html{line-height:1.5;-webkit-text-size-adjust:100%;scroll-behavior:auto}
body,h1,h2,h3,p,ul,figure{margin:0}
ul{padding:0;list-style:none}
h1,h2,h3{font-size:inherit;font-weight:inherit}
a{color:inherit;text-decoration:inherit}
img,svg{display:block;max-width:100%}
img{height:auto}
button{font:inherit;color:inherit;background:none;padding:0;cursor:pointer}
body{font-family:"Hanken Grotesk",system-ui,sans-serif}
.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.font-sans{font-family:"Hanken Grotesk",system-ui,sans-serif}
.font-serif{font-family:"Instrument Serif",Georgia,serif}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}
.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}
.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}
.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}
.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-10{gap:2.5rem}.gap-12{gap:3rem}
.space-y-2>:not([hidden])~:not([hidden]){margin-top:.5rem}
.space-y-6>:not([hidden])~:not([hidden]){margin-top:1.5rem}
.sticky{position:sticky}.top-0{top:0}.z-50{z-index:50}
.mx-auto{margin-inline:auto}
.my-6{margin-block:1.5rem}.my-8{margin-block:2rem}
.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-7{margin-top:1.75rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}
.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}
.p-3{padding:.75rem}.p-5{padding:1.25rem}
.px-4{padding-inline:1rem}
.py-2{padding-block:.5rem}.py-3{padding-block:.75rem}.py-8{padding-block:2rem}.py-10{padding-block:2.5rem}
.pt-12{padding-top:3rem}.pb-8{padding-bottom:2rem}
.w-10{width:2.5rem}.h-10{height:2.5rem}.w-full{width:100%}.h-auto{height:auto}
.max-w-6xl{max-width:72rem}.max-w-prose{max-width:65ch}.max-w-sm{max-width:24rem}
.overflow-x-auto{overflow-x:auto}.whitespace-nowrap{white-space:nowrap}
.rounded-full{border-radius:9999px}
.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}
.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}
.text-center{text-align:center}
.font-medium{font-weight:500}.font-bold{font-weight:700}.italic{font-style:italic}
.leading-tight{line-height:1.25}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}
.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}
.hover\:underline:hover{text-decoration-line:underline}
.\!mb-1{margin-bottom:.25rem!important}.\!mb-4{margin-bottom:1rem!important}
.\!text-sm{font-size:.875rem!important;line-height:1.25rem!important}.\!text-base{font-size:1rem!important;line-height:1.5rem!important}
.\!leading-relaxed{line-height:1.625!important}
@media (min-width:640px){.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:text-5xl{font-size:3rem;line-height:1}.md\:text-6xl{font-size:3.75rem;line-height:1}}
@media (min-width:1024px){.lg\:flex{display:flex}.lg\:grid-cols-\[1fr_300px\]{grid-template-columns:1fr 300px}.lg\:sticky{position:sticky}.lg\:top-24{top:6rem}}

/* Site components */
.font-serif{font-weight:400!important;letter-spacing:-.01em}
h1.font-serif{font-size:clamp(2.6rem,6vw,4.25rem)!important;line-height:1.05!important}
h2.font-serif.text-2xl,h3.font-serif.text-xl{font-size:1.9rem;line-height:1.1}
h2.font-serif.text-3xl{font-size:2.6rem;line-height:1.05}
a[aria-label="GrailStitch home"]{font-size:2rem!important;line-height:1;padding-bottom:2px;border-bottom:2px dashed var(--accent)}
.hero{background:#14161a;color:#f2efe8}
.hero p{color:#c9c6bf}
.hero h1.font-serif{font-size:clamp(3.2rem,8vw,6rem)!important;line-height:.98!important;letter-spacing:-.025em}
.btn-hero{display:inline-block;background:#e59aa3;color:#14161a;font-weight:600;padding:.85rem 1.5rem}
.btn-hero:hover{filter:brightness(1.08)}
.hero a:focus-visible{outline-color:#e59aa3}
.stitch-frame{border:2px dashed #e59aa3;padding:12px}
.tile{display:block;padding:1.1rem 1.25rem;border:1px solid var(--line);background:var(--surface);transition:border-color .2s}
.tile:hover{border-color:var(--accent)}
.tile-n{display:block;font-family:"Instrument Serif",Georgia,serif;font-size:2.6rem;line-height:1;color:var(--accent)}
.tile-d{display:block;margin-top:.4rem;font-size:.9rem;color:var(--muted)}

/* Mobile */
.grid>*{min-width:0}
@media (max-width:767px){
header.sticky>div{flex-wrap:wrap;gap:.5rem 1rem}
header.sticky nav{order:3;flex:1 1 100%}
header.sticky nav ul{justify-content:flex-start;gap:1.5rem}
a[aria-label="GrailStitch home"]{font-size:1.6rem!important}
.ad[style*="728px"]{height:100px!important}
.ad[style*="336px"]{height:250px!important}
h2.font-serif.text-3xl{font-size:2.1rem}
}

/* Long-form text pages */
.prose-gs p,.prose-gs li{font-size:1.125rem;line-height:1.75}
.prose-gs p{margin:0 0 1.25rem}
.prose-gs h2{font-family:"Instrument Serif",Georgia,serif;font-size:2.1rem;font-weight:400;line-height:1.15;margin:2.25rem 0 .9rem}
.prose-gs ul{margin:0 0 1.25rem 1.25rem;list-style:disc}
.prose-gs a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.callout{border-inline-start:4px solid var(--accent)}
