body.home-page {
--home-content-width: var(--site-content-width);
}
.home-intro,
.home-feed,
.home-search-section {
margin-inline: auto;
}
.home-intro {
max-width: var(--home-content-width);
padding: 24px 0 56px;
}
.home-intro-eyebrow {
font-size: 1rem;
color: var(--text-secondary);
margin: 0 0 12px;
}
.home-intro-name {
position: relative;
font-family: 'Bricolage Grotesque', sans-serif;
font-size: 3rem;
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.1;
color: var(--text-primary);
margin: 0 0 22px;
}
.home-intro-bio {
font-size: 1.1rem;
line-height: 1.8;
color: var(--text-secondary);
max-width: 640px;
margin: 0 0 28px;
}
.home-feed-more {
position: relative;
display: inline-block;
padding-bottom: 2px;
text-decoration: none;
transition: color 0.25s ease;
}
.home-feed-more::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 1px;
background: currentColor;
transform: scaleX(0);
transform-origin: left center;
transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.home-feed-more:hover::after,
.home-feed-more:focus-visible::after {
transform: scaleX(1);
}
.home-feed {
max-width: var(--home-content-width);
padding-top: 8px;
}
.home-feed-header {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 16px;
padding-bottom: 12px;
border-bottom: 1px solid var(--accent-subtle);
}
.home-feed-title {
font-size: 1.3rem;
font-weight: 600;
color: var(--text-primary);
}
.home-feed-more {
color: var(--text-secondary);
font-size: 0.9rem;
}
.home-feed-more:hover,
.home-feed-more:focus-visible {
color: var(--accent-color);
}
@media (prefers-reduced-motion: reduce) {
.home-feed-more::after {
transition: none;
}
}
.home-feed-list {
list-style: none;
margin: 0;
padding: 0;
}
.home-feed-item {
border-bottom: 1px solid var(--accent-subtle);
}
.home-feed-item:last-child {
border-bottom: none;
}
.home-feed-link {
display: flex;
flex-direction: column;
gap: 8px;
padding: 20px 8px;
text-decoration: none;
color: inherit;
transition: background-color 0.2s ease;
}
.home-feed-link:hover {
background-color: var(--hover-bg);
}
.home-feed-post-title {
margin: 0;
font-size: 1.15rem;
font-weight: 600;
color: var(--text-primary);
line-height: 1.5;
transition: color 0.2s ease;
}
.home-feed-post-desc {
margin: 0;
font-size: 0.95rem;
line-height: 1.7;
color: var(--text-secondary);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.home-feed-link:hover .home-feed-post-title {
color: var(--accent-color);
}
.home-feed-meta {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 12px;
margin-top: 2px;
}
.home-feed-date {
color: var(--text-secondary);
font-size: 0.88rem;
font-variant-numeric: tabular-nums;
}
.home-feed-category {
font-size: 0.78rem;
color: var(--text-secondary);
border: 1px solid var(--accent-subtle);
border-radius: 999px;
padding: 3px 10px;
white-space: nowrap;
}
.home-search-section {
max-width: var(--home-content-width);
margin-top: 64px;
}
.home-search-box {
position: relative;
}
.home-search-form {
width: 100%;
}
.home-search-controls {
position: relative;
display: flex;
align-items: center;
width: 100%;
}
.home-search-input {
width: 100%;
min-height: 52px;
border-radius: 26px;
border: 1px solid var(--accent-subtle);
background: rgba(255, 255, 255, 0.05);
color: var(--text-primary);
padding: 0 64px 0 20px;
font: inherit;
transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.home-search-input::placeholder {
color: var(--text-secondary);
}
.home-search-input:focus {
outline: none;
border-color: var(--accent-color);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 78%);
}
.home-search-button {
position: absolute;
right: 4px;
top: 50%;
transform: translateY(-50%);
width: 44px;
height: 44px;
border: 0;
border-radius: 50%;
background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #fff 20%));
color: #fff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: opacity 0.2s ease;
}
.home-search-button:hover {
opacity: 0.9;
}
.home-search-results {
position: absolute;
bottom: calc(100% + 8px);
left: 0;
right: 0;
z-index: 100;
display: grid;
gap: 10px;
max-height: 400px;
overflow-y: auto;
background: var(--tile-bg-1);
border: 1px solid var(--accent-subtle);
border-radius: 14px;
padding: 12px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}
.home-search-results[hidden] {
display: none;
}
.home-search-empty {
margin: 0;
padding: 18px 20px;
border-radius: 12px;
background: color-mix(in srgb, var(--tile-bg-1), transparent 12%);
border: 1px dashed var(--accent-subtle);
color: var(--text-secondary);
}
.home-search-result {
display: grid;
gap: 12px;
padding: 18px 20px;
border-radius: 14px;
text-decoration: none;
color: inherit;
background: var(--tile-bg-1);
border: 1px solid var(--accent-subtle);
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-search-result:hover {
border-color: var(--accent-color);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.home-search-result-meta {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
color: var(--text-secondary);
font-size: 0.88rem;
}
.home-search-result-category {
display: inline-flex;
align-items: center;
padding: 4px 10px;
border-radius: 999px;
background: color-mix(in srgb, var(--accent-color), transparent 86%);
color: var(--text-primary);
}
.home-search-result-title {
margin: 0;
font-size: 1.08rem;
line-height: 1.5;
color: var(--text-primary);
}
.home-search-result-desc {
margin: 0;
color: var(--text-secondary);
line-height: 1.7;
font-size: 0.95rem;
}
.search-highlight {
background-color: var(--mark-bg, #fff3cd);
color: var(--mark-text, inherit);
padding: 0.1em 0.2em;
border-radius: 2px;
}
@media (max-width: 768px) {
.home-intro {
padding: 12px 0 40px;
}
.home-intro-name {
font-size: clamp(2.4rem, 11vw, 3.5rem);
}
.home-intro-bio {
font-size: 1rem;
}
.home-feed-link {
gap: 7px;
padding: 16px 4px;
}
.home-feed-date {
font-size: 0.8rem;
}
.home-search-input {
min-height: 48px;
padding: 0 56px 0 16px;
font-size: 16px;
}
.home-search-button {
width: 40px;
height: 40px;
}
.home-search-results {
max-height: 60vh;
}
}
@media (max-width: 480px) {
.home-intro-name {
font-size: clamp(2rem, 12vw, 2.6rem);
}
.home-intro-name::before {
font-size: clamp(2.9rem, 14vw, 3.9rem);
top: -0.28em;
}
}
