contining modify on h1

This commit is contained in:
2025-08-21 07:26:20 +00:00
parent 779c77bf66
commit 8b93b19087

View File

@@ -15,7 +15,6 @@ body {
position: relative; /* allows overlay title */ position: relative; /* allows overlay title */
margin: 0; margin: 0;
padding: 0; padding: 0;
/* Do NOT set line-height:0 here or the H1 may vanish */
} }
.site-header img { .site-header img {
display: block; /* removes inline image gap */ display: block; /* removes inline image gap */
@@ -23,41 +22,40 @@ body {
height: auto; height: auto;
} }
/* Overlay title on the banner */ /* Readability overlay for bright images (subtle) */
.site-title { .site-header::after {
font-size: clamp(2rem, 4vw + 1rem, 6rem); content: "";
line-height: 1;
position: absolute; position: absolute;
left: 50%; inset: 0;
bottom: 10%; /* nudge higher/lower as needed */ background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 60%);
transform: translateX(-50%); pointer-events: none;
margin: 0; }
/* Overlay title on the banner (desktop defaults) */
.site-title {
font-family: 'Iceland', sans-serif;
font-size: clamp(3rem, 6vw, 6rem); /* ~48px96px */
text-align: center; text-align: center;
color: #ffd700; /* gold */
margin: 0;
text-shadow: 0 4px 12px rgba(0,0,0,0.6); /* elegant shadow for depth */
/* overlay positioning */
position: absolute;
left: 35%; /* your desktop tweak */
bottom: 3%; /* your desktop tweak */
transform: translateX(-50%);
z-index: 1; z-index: 1;
/* start hidden; animate in and stay */ /* fade-in animation */
opacity: 0; opacity: 0;
animation: fadeSlideIn 1.2s ease-out forwards, goldShine 4s ease-in-out infinite; animation: fadeIn 1s ease-out forwards;
animation-delay: 0s, 1.2s;
/* gold shine */
background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
background-size: 200% auto;
-webkit-background-clip: text;
background-clip: text;
color: transparent;
-webkit-text-fill-color: transparent;
text-shadow: 0 1px 2px rgba(0,0,0,.35); /* subtle contrast on light banner zones */
} }
/* Keyframes */ /* Absolute-positioned slide uses combined translate */
@keyframes fadeSlideIn { @keyframes fadeIn {
0% { opacity: 0; transform: translate(-50%, -16px); } from { opacity: 0; transform: translate(-50%, -10px); }
100% { opacity: 1; transform: translate(-50%, 0); } to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes goldShine {
0% { background-position: 200% center; }
100% { background-position: -200% center; }
} }
/* Sticky nav under header */ /* Sticky nav under header */
@@ -91,3 +89,45 @@ body {
/* Content + footer */ /* Content + footer */
.content { max-width: 1000px; margin: 2rem auto; padding: 0 1rem 3rem; } .content { max-width: 1000px; margin: 2rem auto; padding: 0 1rem 3rem; }
.site-footer { text-align: center; color: #bdbdbd; padding: 1.5rem 1rem 3rem; } .site-footer { text-align: center; color: #bdbdbd; padding: 1.5rem 1rem 3rem; }
/* ---------------------------- */
/* Responsive title adjustments */
/* ---------------------------- */
/* Tablet */
@media (max-width: 1024px) {
.site-title {
left: 50%; /* center on tablet */
bottom: 8%;
font-size: clamp(2.5rem, 6vw, 5rem);
}
}
/* Mobile */
@media (max-width: 640px) {
.site-title {
left: 50%; /* center on mobile */
bottom: 12%; /* lift it for safe spacing */
font-size: clamp(2rem, 8vw, 3.25rem);
line-height: 1.05;
padding: 0 .25rem; /* avoid edge clipping */
}
/* Optional: ensure banner has enough vertical room on short screens */
.site-header {
min-height: 40vh;
}
}
/* Very small phones */
@media (max-width: 380px) {
.site-title {
bottom: 14%;
font-size: clamp(1.8rem, 9vw, 2.8rem);
}
}
/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
.site-title { animation: none; opacity: 1; transform: translate(-50%, 0); }
}