/* Main */
 .main{
     min-width:0;
}
/* Homepage column padding; the surrounding grid remains transparent. */
 .container:not(.no-sidebar) .main{
     position:relative;
     padding:28px;
}
/* Same load-order gotcha as the divider above: these used to live in grid.css's own
   max-width media queries, but grid.css loads *before* this file, so at equal specificity
   (identical selector, .container:not(.no-sidebar) .main) this file's unconditional 28px
   always won regardless of viewport - the tablet/mobile padding never actually applied.
   Declared here instead, after the base rule, so they win the way they're supposed to. */
 @media (max-width:1024px){
     .container:not(.no-sidebar) .main{
         padding:16px;
    }
}
 @media (max-width:768px){
     .container:not(.no-sidebar) .main{
         padding:12px;
    }
}
 .hero{
     text-align:left;
     padding:32.96px 0 24.72px;
     margin-bottom:20px;
     border:0;
     position:relative;
     overflow:hidden;
     background:transparent;
}
/* ASCII-noise hero background, standing in for a hand-writing-style texture image. */
 .hero-ascii{
     position:absolute;
     inset:0;
     z-index:0;
     pointer-events:none;
     opacity:.12;
     font-family:"Geist Mono", monospace;
     font-size:5.6px; /* 20% smaller than the original 7px */
     line-height:8px; /* scaled down with font-size to keep row density the same - backgrounds.js reads this off the computed style, no hardcoded value to keep in sync */
     letter-spacing:1px;
     white-space:pre;
     text-align:left;
     color:var(--foreground);
     overflow:hidden;
     display:none;
     padding:0;
     filter:contrast(1.1);
     -webkit-text-size-adjust:none;
     text-size-adjust:none;
}
 :is([data-theme="mono"],[data-color-scheme="dark"]) .hero-ascii{
     opacity:.104;
}
/* Homepage texture: shared desktop/mobile opacity, reduced another 15%. */
body.is-home .hero-ascii{opacity:.0918;}
:is([data-theme="mono"],[data-color-scheme="dark"]) body.is-home .hero-ascii{opacity:.07956;}
 .hero > *:not(.hero-ascii){
     position:relative;
     z-index:1;
     pointer-events:none;
     user-select:none;
}
 .hero-ascii pre{
     margin:0;
     width:100%;
     height:100%;
     overflow:hidden;
     white-space:pre;
     line-height:8px;
     padding:0;
     font-size:inherit;
     letter-spacing:inherit;
     -webkit-text-size-adjust:none;
     text-size-adjust:none;
}
 .hero-badge{
     font-family:var(--font);
     font-size:13px;
     letter-spacing:0;
     text-transform:none;
     color:var(--muted-foreground);
     margin-bottom:12px;
     display:block;
}
/* about.html puts the badge under the title instead of above it (matching the
   archive/tag/category heroes' title-then-subtext order) - margin-bottom above assumes
   it's the first child with something following; flip to margin-top/0 specifically when
   it directly follows the h1, without touching the shared class default other templates
   (notes.html) still rely on. */
 .hero h1 + .hero-badge{
     margin-top:8px;
     margin-bottom:0;
}
 .hero h1{
     margin:0;
     /* Shared quieter hero typography, independent of the selected palette. */
     font-family:var(--font);
     font-size:clamp(24.2px,3.52vw,35.2px);
     letter-spacing:-.02em;
     line-height:1.1;
     font-weight:600;
}
/* Photoshop-style "vertical scale: 95%" on the hero h1 - CSS has no such font property (only
   font-stretch, which is horizontal), so a transform is the actual equivalent: squashes the
   glyphs themselves rather than the line box, transform-origin:center so it compresses toward
   the visual middle instead of shifting the baseline. Home page only (.IsHome, baseof.html's
   body class) - .hero is shared with archive/tag/category lists, about, and notes, and this
   was only asked for the main page's h1. */
body.is-home .hero h1{
     transform:scaleY(.95);
     transform-origin:center;
}
 .hero p{
     margin:10px 0 0;
     color:var(--muted-foreground);
     font-size:calc(14px * var(--type-scale));
     max-width:560px;
     line-height:1.5;
}
 .hero-meta{
     font-family:var(--mono);
     font-size:calc(11px * var(--type-scale));
     color:var(--muted-foreground);
     margin-top:10px;
     letter-spacing:.06em;
}
