MedHorizon / style.css
DBD123's picture
Publish MedHorizon project page
cc98df6 verified
:root {
--ink: #14222b;
--muted: #5b6d76;
--paper: #fbf6e9;
--white: #fffdf8;
--line: rgba(20, 34, 43, 0.14);
--teal: #0b6f75;
--teal-dark: #064e55;
--blue: #286fb4;
--sky: #d6eef4;
--amber: #f2a23a;
--green: #87c9ae;
--shadow: 0 24px 70px rgba(9, 49, 62, 0.16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
color: var(--ink);
background:
radial-gradient(circle at 5% 8%, rgba(242, 162, 58, 0.20), transparent 26rem),
radial-gradient(circle at 92% 6%, rgba(40, 111, 180, 0.18), transparent 24rem),
linear-gradient(180deg, #fffaf0 0%, #f4fbfb 48%, #fffdf8 100%);
font-family: "Space Grotesk", "Aptos", sans-serif;
}
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { position: relative; overflow: hidden; padding-bottom: 56px; }
.hero::before {
content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
background-image: linear-gradient(rgba(20,34,43,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(20,34,43,.06) 1px, transparent 1px);
background-size: 34px 34px; mask-image: linear-gradient(180deg, #000, transparent 84%);
}
.nav { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 26px 0; z-index: 2; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, var(--teal), var(--blue)); box-shadow: inset 0 0 0 4px rgba(255,255,255,.34); }
.nav-links { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--teal-dark); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: end; padding: 72px 0 20px; }
.eyebrow { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.eyebrow span, .section-kicker { color: var(--teal-dark); background: rgba(11,111,117,.10); border: 1px solid rgba(11,111,117,.20); border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
h1, h2 { font-family: "Newsreader", Georgia, serif; letter-spacing: -0.055em; margin: 0; }
h1 { font-size: clamp(76px, 12vw, 154px); line-height: .82; color: var(--teal-dark); text-shadow: 0 1px 0 rgba(255,255,255,.7); }
h2 { font-size: clamp(32px, 5vw, 58px); line-height: .96; }
h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.03em; }
.subtitle { margin: 20px 0 0; font-size: clamp(25px, 4vw, 42px); line-height: 1.05; font-weight: 700; letter-spacing: -0.055em; max-width: 850px; }
.lead { margin: 22px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 770px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--teal-dark); color: white; font-weight: 700; border: 1px solid rgba(6,78,85,.24); box-shadow: 0 12px 30px rgba(6,78,85,.18); }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: rgba(255,255,255,.64); color: var(--teal-dark); }
.btn.disabled { background: #7d8e94; cursor: not-allowed; box-shadow: none; }
.hero-card { border: 1px solid var(--line); background: rgba(255,253,248,.76); backdrop-filter: blur(18px); border-radius: 34px; box-shadow: var(--shadow); padding: 26px; }
.metric-ring { width: 220px; height: 220px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: conic-gradient(var(--amber) 0 14deg, rgba(242,162,58,.20) 14deg 360deg); position: relative; }
.metric-ring::after { content: ""; position: absolute; inset: 18px; border-radius: inherit; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.metric-ring span, .metric-ring small { position: relative; z-index: 1; display: block; }
.metric-ring span { font-size: 42px; font-weight: 800; color: var(--teal-dark); }
.metric-ring small { margin-top: 6px; color: var(--muted); font-size: 13px; }
.mini-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini-metrics div { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 14px; }
.mini-metrics strong { display: block; color: var(--blue); font-size: 24px; }
.mini-metrics span { color: var(--muted); font-size: 13px; }
.teaser { margin-top: 8px; }
.teaser img, .paper-figure img { display: block; width: 100%; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); background: white; }
.caption, figcaption, .note { color: var(--muted); font-size: 14px; line-height: 1.55; }
.section { padding: 86px 0; }
.section-head { max-width: 850px; margin-bottom: 34px; }
.section-head .section-kicker { display: inline-flex; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 18px; line-height: 1.65; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: 0 18px 45px rgba(9,49,62,.08); }
.feature span { display: inline-flex; margin-bottom: 26px; color: var(--amber); font-weight: 800; }
.feature p { color: var(--muted); line-height: 1.6; }
.wide-band { padding: 70px 0; background: linear-gradient(135deg, rgba(11,111,117,.12), rgba(40,111,180,.10)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figure-split { display: grid; grid-template-columns: 1.3fr .7fr; gap: 26px; align-items: stretch; }
.paper-figure { margin: 0; }
.stats-panel, .download-card { border-radius: 30px; border: 1px solid var(--line); background: rgba(255,253,248,.82); padding: 30px; box-shadow: var(--shadow); }
dl { margin: 22px 0 0; display: grid; gap: 14px; }
dl div { border-top: 1px solid var(--line); padding-top: 14px; }
dt { color: var(--teal-dark); font-weight: 800; }
dd { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
.leaderboard { overflow-x: auto; border: 1px solid var(--line); border-radius: 28px; background: #fffdf8; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--teal-dark); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; background: rgba(214,238,244,.52); }
td:last-child { font-weight: 800; color: var(--blue); }
tr.best { background: rgba(242,162,58,.14); }
tr.sanity { background: rgba(135,201,174,.14); }
.figure-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.figure-grid .paper-figure { background: rgba(255,253,248,.72); border-radius: 30px; }
.figure-grid img { box-shadow: 0 12px 36px rgba(9,49,62,.10); }
.download-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: linear-gradient(135deg, #fffdf8, #e7f6f8); }
.download-card p { color: var(--muted); line-height: 1.65; }
pre { overflow-x: auto; margin: 0; padding: 24px; border-radius: 24px; background: #14222b; color: #f9f2df; line-height: 1.55; border: 1px solid rgba(255,255,255,.12); }
.footer { padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
@media (max-width: 900px) {
.nav { align-items: flex-start; gap: 14px; }
.nav-links { display: none; }
.hero-grid, .figure-split, .figure-grid { grid-template-columns: 1fr; }
.hero-grid { padding-top: 38px; }
.hero-card { max-width: 460px; }
.feature-grid { grid-template-columns: repeat(2, 1fr); }
.download-card { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
.shell { width: min(100% - 26px, 1180px); }
.feature-grid { grid-template-columns: 1fr; }
h1 { font-size: 70px; }
.section { padding: 62px 0; }
.mini-metrics { grid-template-columns: 1fr; }
}