113113 .landing-columns { grid-template-columns : 1fr ; }
114114 .landing-posts .card-grid { grid-template-columns : 1fr ; }
115115}
116+
117+ /* ----- Landing page layout polish (match Book demo spacing) ----- */
118+
119+ /* Constrain and center the home content block like the demo */
120+ .landing-hero-head ,
121+ .landing-columns ,
122+ .landing-posts ,
123+ .landing-body {
124+ max-width : 1100px ;
125+ margin-left : auto;
126+ margin-right : auto;
127+ padding-left : 1rem ;
128+ padding-right : 1rem ;
129+ }
130+
131+ /* Create a larger blank gap under the header before the hero */
132+ .landing-hero-head {
133+ position : relative;
134+ margin-top : 3.5rem ; /* increase this to grow the whitespace */
135+ margin-bottom : 2.25rem ;
136+ display : block;
137+ }
138+
139+ /* Put the “hero” title on its own line and size it like the demo */
140+ .hero-title h1 {
141+ font-size : 3rem ;
142+ line-height : 1.15 ;
143+ letter-spacing : .01em ;
144+ margin : 0 0 .25rem ;
145+ }
146+ .hero-title p {
147+ margin : .25rem 0 0 ;
148+ opacity : .9 ;
149+ }
150+
151+ /* Move your social links to the top-right of the home content block,
152+ visually mimicking the demo’s header links */
153+ .hero-links {
154+ position : absolute;
155+ top : -2.25rem ; /* sits above the hero title, near the header */
156+ right : 1rem ;
157+ display : flex;
158+ gap : 1rem ;
159+ font-size : .95rem ;
160+ opacity : .9 ;
161+ }
162+ .hero-links a { text-decoration : none; }
163+ .hero-links a : hover { text-decoration : underline; }
164+
165+ /* Tidy the two-column section spacing like the demo cards row */
166+ .landing-columns {
167+ display : grid;
168+ grid-template-columns : repeat (2 , minmax (0 , 1fr ));
169+ gap : 2rem ;
170+ margin-bottom : 2.5rem ;
171+ }
172+
173+ /* “Latest posts” card grid spacing */
174+ .landing-posts .card-grid {
175+ display : grid;
176+ grid-template-columns : repeat (2 , minmax (0 , 1fr ));
177+ gap : 1rem ;
178+ }
179+ .landing-posts .card {
180+ border : 1px solid rgba (127 , 127 , 127 , .25 );
181+ border-radius : .6rem ;
182+ padding : 1rem ;
183+ }
184+ .landing-posts .section-head { margin : .25rem 0 1rem ; }
185+ .landing-posts .see-all { font-size : .95rem ; }
186+
187+ /* Responsive: stack nicely on small screens */
188+ @media (max-width : 900px ) {
189+ .hero-links { position : static; justify-content : center; margin-top : .75rem ; }
190+ .landing-columns ,
191+ .landing-posts .card-grid { grid-template-columns : 1fr ; }
192+ .hero-title h1 { font-size : 2.4rem ; }
193+ }
0 commit comments