@import "base.css"; nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(var(--backdrop-blur)); background-color: color-mix(in srgb, var(--surface), transparent 20%); padding: 1rem; & > div { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr; align-items: center; @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) { grid-row: 2; grid-column: 1/ span 2; display: flex; justify-content: center; align-items: center; } & > a { font-size: 1.25rem; color: var(--on-background); text-decoration: none; &[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]) { color: var(--primary); padding-bottom: 8px; 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-weight: lighter; font-size: 0.75rem; } } & > :nth-child(2) a { flex-direction: column; align-items: flex-start; } & a { font-size: 0.875rem; color: var(--on-background); display: flex; flex-direction: row; align-items: center; justify-content: flex-start; text-decoration: none; margin: 1rem 0; & > div { display: flex; align-items: center; justify-content: center; } } & h4 { color: var(--primary); } & svg { margin-right: 0.5rem; } }