@import "./var.css"; /* MAIN PAGE STYLES - focused on the hero and features */ :root { --main-max: 1200px; } /* Layout container for injected page content */ main[data-page-content] { margin: 0 auto; max-width: var(--main-max); padding: 2rem 1.25rem; box-sizing: border-box; } /* HERO */ .hero { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); box-shadow: var(--shadow); border-radius: 1rem; padding: clamp(2rem, 4.5vw, 3.5rem); color: var(--text); display: block; } .hero-inner { width: 100%; } .eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 0.6rem; } .hero-title { /* previously .hero h1 */ font-family: "Georgia", "Palatino Linotype", serif; font-size: clamp(3rem, 8vw, 5rem); line-height: 0.95; margin: 0 0 0.25rem; color: var(--text); } .hero-subtitle { font-size: clamp(1rem, 2.2vw, 1.3rem); color: var(--muted); margin: 0 0 1rem; font-weight: 600; } .lead { color: var(--muted); max-width: 68ch; margin: 0 0 1.25rem; } .hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; } .button { display: inline-flex; align-items: center; justify-content: center; padding: 0.8rem 1.2rem; border-radius: 999px; text-decoration: none; font-weight: 700; border: 1px solid transparent; } .button-primary { background: linear-gradient(145deg, var(--accent), var(--accent-strong)); color: #08101d; } .button-secondary { background: rgba(255,255,255,0.03); color: var(--text); } /* FEATURES - refined layout */ .features { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 420px; grid-auto-rows: minmax(120px, auto); gap: 1rem; } .features .card { background: rgba(255,255,255,0.02); padding: 1.25rem; border-radius: 0.75rem; box-shadow: 0 8px 22px rgba(2,6,23,0.45); transition: transform 180ms ease, box-shadow 180ms ease; } .features .card:first-child { grid-column: 1 / 2; grid-row: 1 / span 2; min-height: 220px; } .features .card + .card { /* second item */ grid-column: 2 / 3; } .features .card:nth-child(3) { grid-column: 2 / 3; } .features .card:nth-child(4) { grid-column: 1 / 3; } .features .card h2 { margin: 0 0 0.5rem; font-family: "Georgia", serif; } .features .card p { margin: 0; color: var(--muted); } .features .card:hover { transform: translateY(-6px); box-shadow: 0 22px 60px rgba(2,6,23,0.55); } @media (max-width: 980px) { .hero-title { font-size: clamp(2.2rem, 7vw, 4rem); } .features { grid-template-columns: 1fr; } .features .card { grid-column: auto; grid-row: auto; } } /* Focus states controlled by JS: when a card is focused it expands (spans both columns) and others collapse slightly so the focused card shows full content. */ .features[class*="focus-"] .card { transition: all 220ms ease; } .features.focus-1 .card:nth-child(1), .features.focus-2 .card:nth-child(2), .features.focus-3 .card:nth-child(3), .features.focus-4 .card:nth-child(4) { grid-column: 1 / 3; transform: none; box-shadow: 0 28px 80px rgba(2,6,23,0.7); z-index: 3; } .features.focus-1 .card:not(:nth-child(1)), .features.focus-2 .card:not(:nth-child(2)), .features.focus-3 .card:not(:nth-child(3)), .features.focus-4 .card:not(:nth-child(4)) { opacity: 0.95; transform: translateY(0) scale(0.98); } @media (max-width: 980px) { .features[class*="focus-"] .card { transform: none; box-shadow: none; opacity: 1; } .features[class*="focus-"] .card { grid-column: auto; } } /* small helper spacing */ .grid { display: block; }