@import url("https://fonts.googleapis.com/css2?family=Lora:wght@500;600&display=swap"); /* variables */ :root { --color-accent: #7fa0aa; } /* general ---------------- */ *, *::before, *::after { box-sizing: border-box; } a { color: currentColor; text-decoration: none; } body { margin: 0; line-height: 1.5; font-family: "Lora", serif; } img { max-width: 100%; height: auto; display: block; } h1, h2, h3, h4, p { margin: 0; } ul { margin: 0; padding: 0; list-style: none; text-indent: 0; } /* utility ---------------- */ .container { width: 90%; max-width: 75rem; margin: 0 auto; } .spaced > * + * { margin-top: 1rem; } /* navigation bar ---------------- */ .navbar { position: sticky; top: 0; background: #fff; padding: 1rem 0; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); .container { margin: 0 auto; display: flex; justify-content: space-between; & > * { margin: auto 0; } } } .nav-menu { display: flex; gap: 1.25rem; width: auto; a:hover, a:focus { text-decoration: underline; } } .nav-item { text-decoration: none; color: currentColor; } .active { color: var(--color-accent, #7fa0aa); } @media (max-width: 600px) { .menu-toggle { background-color: transparent; padding: 0.1rem; transition: 0.3s; &:hover { cursor: pointer; background-color: #f0f0f0; } } .nav-menu { position: relative; .menu-navigation-container { position: absolute; top: 3.5rem; right: 0; padding: 1rem; border-radius: 0.25rem; background-color: #fff; display: none; } } .toggled .menu-navigation-container { display: flex; border: solid 1px #e5e5e5; padding: 0.5rem 1rem; ul { display: flex; flex-direction: column; row-gap: .5rem; white-space: nowrap; } } } /* hero ---------------- */ .hero { display: flex; height: calc(50vh); min-height: 26em; width: 100%; margin-bottom: 3.75rem; color: #fff; @supports (background-blend-mode: darken) { background-color: rgba(0, 0, 0, 0.2); background-attachment: fixed; background-size: cover; background-repeat: no-repeat; background-position: center; background-blend-mode: multiply; } } .layout { margin-top: 3.75rem; margin-bottom: 4.25rem; @media (min-width: 720px) { display: flex; column-gap: 4rem; .sidebar { width: 17rem; } } } .layout-single { margin-top: 0; flex-wrap: wrap; } .single-sidebar { width: 90%; max-width: 75rem; margin: 0 auto; margin-top: 2rem; } /* post container ---------------- */ .post-container { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; flex-wrap: wrap; align-content: start; @media (min-width: 1080px) { display: grid; grid-template-columns: 1fr 1fr; } } /* single container ---------------- */ .single-container { width: 100%; min-width: 100%; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); border-radius: 0.15rem; padding: 3rem 4.75rem; outline: 1px solid #e5e5e5; @media (max-width: 600px) { padding: 0.75rem 1.25rem; } blockquote { margin-left: 1rem; padding-left: 1rem; border-left: 2px solid #e5e5e5; } h1, h2, h3, h4, p { margin: 1.5rem 0; } ul { margin-left: 1rem; padding-left: 1rem; text-indent: 0.5rem; } a { text-decoration: underline; color: #7fa0aa; } a:visited { color: #6e89b3; } a:hover, a:focus { color: #536970; } } /* post element ---------------- */ .card { width: 100%; max-width: 420px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); outline-color: #ddd; transition: 0.3s; border-radius: 0.15rem; &:hover { box-shadow: 0 0 2rem 2px rgba(0, 0, 0, 0.2); outline: 1px solid #ddd; } } .post-title { a:hover, a:focus { text-decoration: underline; } } .post-content { padding: 1rem; display: flex; flex-direction: column; row-gap: 0.5rem; } .post-tags { color: var(--color-accent, #7fa0aa); font-size: 0.9rem; text-transform: uppercase; } .post-meta { display: flex; column-gap: 1rem; color: #666666; font-size: 0.8rem; } .post-large { max-width: 100%; grid-column-start: span 2; } .post-featured { margin: auto; text-align: left; padding-bottom: 3.75rem; margin-bottom: 0; hr { border: none; background: #fff; height: 1px; } & > * { color: currentColor; } .post-tags { font-size: 1.1rem; } .post-title { font-size: clamp(2em, 5vw + 1rem, 3em); font-weight: 400; line-height: 1.1; } } .hero-page { color: #000; background: #fff; background-size: auto; background-position: unset; background-attachment: unset; height: calc(35vh); min-height: 10em; hr { background: #000; } } .nav-links, .comments-area { margin: 3.75rem 0; } .comment-reply-title { margin-bottom: 2rem; } /* sidebar ---------------- */ .widget-container { margin-bottom: 3.5rem; a { text-decoration: underline; color: #7fa0aa; } a:visited { color: #6e89b3; } a:hover, a:focus { color: #536970; } } .widget-title { text-align: center; } .widget-item { margin-bottom: 1.75rem; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); .post-content { padding: 0.5rem; } .post-meta { justify-content: center; } } .widget-list { box-shadow: none; text-align: left; line-height: 2rem; } .widget-title { border: 1px solid #e5e5e5; font-weight: 400; padding: 0.75rem; margin-bottom: 1.25rem; } .autor-details { font-size: 0.875rem; } .author-more { padding-top: 0.5rem; font-size: 0.875rem; border-top: 1px solid #e5e5e5; a { color: var(--color-accent, #7fa0aa); text-decoration: none; } } .page-title { margin: 3rem 0; } /* footer ---------------- */ .site-footer { text-align: center; display: flex; flex-direction: column; align-items: center; margin-top: 1rem; & > * { width: 100%; } .nav-menu { justify-content: center; } .copyright { color: #666666; padding: 1.5rem 0; margin-top: 2rem; border-top: 1px solid #e5e5e5; } } /* animation ---------------- */ @media (min-width: 720px) and (prefers-reduced-motion: no-preference) { .fade-in { opacity: 0; transition: opacity 0.5s ease-in; } .fade-in.appear { opacity: 1; } }