/* Styles for / only (from index.html). Moved out of an inline <style> block
   on 2026-10-17 so the Content Security Policy can forbid inline styles. */
/* Hero */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 6rem 2rem 4rem; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(ellipse at 50% 50%, var(--gold-glow) 0%, transparent 50%);
    pointer-events: none;
}
.hero-content { position: relative; max-width: 720px; }
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700;
    letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 1.5rem;
}
.hero h1 span {
    background: linear-gradient(135deg, var(--brand), var(--brand-lift));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p {
    font-size: 1.2rem; color: var(--text-secondary); max-width: 540px;
    margin: 0 auto 2.5rem; font-weight: 300; line-height: 1.7;
}
.hero-tags { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.hero-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 100px; font-size: 0.8rem; color: var(--text-secondary); font-weight: 500;
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-icons {
    display: flex; justify-content: center; align-items: flex-end;
    gap: 1.5rem; margin-top: 3.5rem; perspective: 800px;
}
.hero-icon {
    position: relative;
    isolation: isolate;
    width: 80px; height: 80px; border-radius: 18px; overflow: hidden;
    box-shadow: var(--shadow-icon);
    transition: transform 0.4s ease, box-shadow 0.4s ease; flex-shrink: 0;
}
/* Brand-tint overlay: mix-blend-mode 'color' takes the icon's
   luminance and replaces hue+saturation with #004080, so each
   icon reads as a navy silhouette of itself at rest. Hover fades
   the overlay out to reveal full colour.
   border-radius: inherit on the overlay (and on the img below)
   is belt-and-braces against the mix-blend-mode clip-flash that
   briefly squares the icons mid-transition on some browsers —
   when the GPU re-rasterises the blended layer, the parent's
   overflow:hidden round-clip can flash off; making each child
   individually rounded keeps the shape stable. */
.hero-icon::after {
    content: '';
    position: absolute; inset: 0;
    background: var(--brand);
    border-radius: inherit;
    mix-blend-mode: color;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.hero-icon:hover::after { opacity: 0; }
.hero-icon:nth-child(1) { transform: translateY(-6px) rotate(-4deg); }
.hero-icon:nth-child(2) { transform: translateY(-16px) rotate(-2deg); }
.hero-icon:nth-child(3) { transform: translateY(-22px) rotate(0deg); width: 96px; height: 96px; border-radius: 22px; }
.hero-icon:nth-child(4) { transform: translateY(-22px) rotate(0deg); width: 96px; height: 96px; border-radius: 22px; }
.hero-icon:nth-child(5) { transform: translateY(-22px) rotate(0deg); width: 96px; height: 96px; border-radius: 22px; }
.hero-icon:nth-child(6) { transform: translateY(-16px) rotate(2deg); }
.hero-icon:nth-child(7) { transform: translateY(-6px) rotate(4deg); }
.hero-icon:hover {
    transform: translateY(-30px) rotate(0deg) scale(1.1);
    box-shadow: var(--shadow-hero);
}
.hero-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* Section + product-grid styles live in style.css now —
 * shared with the /<category>/index.html listing pages. */

/* Home-page only: pin the curated grids to a clean 3-up. */
.home-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* "See all..." trailing line under each curated section. */
.see-all {
    text-align: center;
    margin: 2.5rem auto 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.see-all.align-right { text-align: right; }
.see-all a { color: var(--brand); text-decoration: none; }
.see-all a:not(.btn):hover { text-decoration: underline; }

/* Recent notes: each row gets a calendar-page date badge to
   the left of the title+summary. Modelled on the macOS
   Calendar icon (blue header strip with day-of-week, big
   day number, smaller month line) but in our brand navy.
   The whole row is one anchor — block-level children inside
   <a> are valid HTML5 — so a click anywhere on the row goes
   to the post. Subtle hover background highlights the
   active row. */
.home-recent-notes { list-style: none; padding: 0; margin: 0; }
.home-recent-notes .note-item {
    border-bottom: 1px solid var(--border);
}
.home-recent-notes .note-item:last-child { border-bottom: 0; }
.home-recent-notes .note-row-link {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    margin: 0 -1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}
.home-recent-notes .note-row-link:hover {
    background: var(--bg-card);
}
.home-recent-notes .note-date-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-chip);
    flex-shrink: 0;
    text-align: center;
    font-feature-settings: 'tnum' 1;
}
.home-recent-notes .note-date-card .dow {
    width: 100%;
    background: var(--brand);
    color: var(--on-brand);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 0 4px;
}
.home-recent-notes .note-date-card .day {
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    padding: 9px 0 2px;
    font-feature-settings: 'tnum' 1, 'lnum' 1;
}
.home-recent-notes .note-date-card .month {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 0 6px;
}
.home-recent-notes .note-body { flex: 1; min-width: 0; }
.home-recent-notes .note-body h2 {
    margin: 0 0 0.5rem; font-size: 1.25rem; font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    transition: color 0.2s ease;
}
.home-recent-notes .note-row-link:hover .note-body h2 {
    color: var(--gold);
}
.home-recent-notes .note-body p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Overrides for homepage */
.divider { max-width: 1200px; }
footer { max-width: 1200px; }

/* Responsive */
@media (max-width: 768px) {
    .hero { min-height: auto; padding: 5.5rem 1.25rem 3rem; }
    .hero h1 { font-size: 1.75rem; }
    .hero p { font-size: 0.95rem; }
    .hero-icons { gap: 0.5rem; }
    .hero-icon { width: 40px; height: 40px; border-radius: 10px; }
    .hero-icon:nth-child(1) { transform: translateY(-3px) rotate(-3deg); }
    .hero-icon:nth-child(2) { transform: translateY(-8px) rotate(-1.5deg); }
    .hero-icon:nth-child(3),
    .hero-icon:nth-child(4),
    .hero-icon:nth-child(5) { transform: translateY(-10px) rotate(0deg); width: 48px; height: 48px; border-radius: 12px; }
    .hero-icon:nth-child(6) { transform: translateY(-8px) rotate(1.5deg); }
    .hero-icon:nth-child(7) { transform: translateY(-3px) rotate(3deg); }
    .home-grid-3 { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    section { padding: 3.5rem 1.25rem; }
    .section-header { margin-bottom: 2rem; }
    .product-card { padding: 1.25rem; }
    .see-all.align-right { text-align: center; }
    .home-recent-notes .note-item { gap: 1rem; padding: 1.25rem 0; }
    .home-recent-notes .note-date-card { width: 52px; }
    .home-recent-notes .note-date-card .day { font-size: 1.4rem; padding-top: 7px; }
    .home-recent-notes .note-body h2 { font-size: 1.05rem; }
    .home-recent-notes .note-body p { font-size: 0.9rem; }
}
