body > nav { position: sticky; z-index: 50; top: 0; padding: 1rem; background-color: color-mix(in srgb, var(--surface), transparent 20%); backdrop-filter: blur(var(--backdrop-blur)); & > div { display: grid; align-items: center; grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr; & img { width: 20rem; } @media (max-width: 768px) { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; & > .btn { grid-column: 2; grid-row: 1; } } & > :last-child { justify-self: end } & > div { display: flex; align-items: center; gap: 2rem; @media (max-width: 768px) { display: flex; align-items: center; justify-content: center; grid-row: 2; grid-column: 1/ span 2; } & > a { font-size: 1.25rem; font-weight: bold; text-decoration: none; color: var(--on-background); &[href] { font-weight: 200; transition: color 0.2s; &:hover { color: var(--primary); } } /* The main selected link doesn't have a href attribute, so we can use that for styles */ &:not([href]) { padding-bottom: 8px; color: var(--primary); border-bottom: 2px solid var(--primary); } } } } } footer { display: grid; grid-template-columns: 3fr 2fr 2fr; gap: 1rem; @media (max-width: 768px) { grid-template-columns: 1fr; } & > :first-child { display: flex; flex-direction: column; justify-content: space-between; & p { font-size: 0.875rem; } & > :last-child { font-size: 0.75rem; font-weight: lighter; } } & > :nth-child(2) a { align-items: flex-start; flex-direction: column; } & a { font-size: 0.875rem; display: flex; align-items: center; flex-direction: row; justify-content: flex-start; margin: 1rem 0; text-decoration: none; color: var(--on-background); & > div { display: flex; align-items: center; justify-content: center; } } & h4 { color: var(--primary); } & svg { margin-right: 0.5rem; } }