/* @import url('https://fonts.googleapis.com/css2?family=Indie+Flower&display=swap'); */ @import url('https://fonts.googleapis.com/css2?family=Indie+Flower&family=New+Tegomin&family=Shippori+Mincho&display=swap'); .indie-flower-regular { font-family: "Indie Flower", cursive; font-weight: 400; font-style: normal; } .new-tegomin-regular { font-family: "New Tegomin", serif; font-weight: 400; font-style: normal; } .shippori-mincho-regular { font-family: "Shippori Mincho", serif; font-weight: 400; font-style: normal; } :root { --primary-bg-color: #fffcf5; --primary-accent-color: #6f3b17; --text-color:#87340a; --link-color:#a64819; --link-border-bottom-style: 1px dashed var(--link-color); --link-border-bottom-hovered: 1px solid var(--link-color); --content-width: 100vw; --content-max-width: 600px; --content-horiz-padding: 1em; } *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } body { /* Set core body defaults */ min-height: 100vh; line-height: 1.5; background-color: var(--primary-bg-color); /* max-width: 500px; */ width: 100vw; min-height: 100vh; display: flex; flex-direction: column; margin: 0 auto; /* padding: 0 1em; */ } h1 { color: var(--primary-accent-color); } p, a, li { font-family: "Shippori Mincho", serif; font-weight: 400; font-style: normal; color: var(--text-color); } p { margin: 1em 0; } ul { list-style-position: inside; } li { line-height: 1.5em; margin: 0.3em 0; } a { color: var(--link-color); border-bottom: var(--link-border-bottom-style); text-decoration: none; transition: 0.2s all; } a.nounderline, a.nounderline:hover { border-bottom: none; } a:hover { border-bottom: var(--link-border-bottom-hovered); } abbr { cursor: help; } main { flex-grow: 1; max-width: var(--content-max-width); width: var(--content-width); margin: 0 auto; padding: 0 var(--content-horiz-padding); } footer { max-width: var(--content-max-width); width: var(--content-width); margin: 4em auto 2em; padding: 0 var(--content-horiz-padding); /* flex-shrink: 0; */ text-align: center; display: flex; justify-content: space-between; color: var(--text-color); font-family: "Shippori Mincho", serif; font-weight: 400; font-style: normal; font-size: 0.8em; } footer > * { opacity:60%; } footer > *:hover { opacity: 100%; } /* footer a { text-decoration: none; } footer a:hover { text-decoration: underline; } */ #navBackground { margin: 2em 0 0; height: fit-content; width: 100vw; position: sticky; top:0; /* border: 1px solid red; */ } #navBackground:has(nav.scrolled) { background-color: #fff8; /* the -webkit-* version must be before the unprefixed version so lightningcss doesn't remove the unprefixed version due to whati believe is a bug. see https://github.com/parcel-bundler/lightningcss/issues/785 */ -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent); mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent); } nav { color: var(--text-color); display: flex; justify-content: space-between; align-items: center; /* gap: 2.5em; */ height: 100%; max-width: var(--content-max-width); width: var(--content-width); margin: 0 auto; padding: 1em var(--content-horiz-padding) 3em; } nav a { font-family: "Indie Flower", cursive; font-weight: 400; font-style: normal; font-size: 20px; color: inherit; border-bottom: none; text-decoration: none; transition: 0.2s all; } nav a:hover { border-bottom: none; text-decoration: underline; transform: rotate(-10deg) scale(1.1); } body:has(#target.scrolled) > nav { background-color: #fff5; } #home { color: var(--primary-accent-color); /* font-weight: bold; */ /* transform: scale(1.1); */ } #about { color: rgb(214, 104, 70); } #art { color: #13593b; } #blog { color: #b760b4; } #links { color: #40a3b3; } nav a.current-page { position: relative; } nav a.current-page:hover { text-decoration: none; transform: none; } nav a.current-page:before { content:""; position:absolute; top:0.3em; left:-0.2em; border: 2px solid var(--primary-accent-color); border-top-color: transparent; border-left-color: transparent; border-right-color: transparent; transform:rotate(-3deg); border-radius:0 0 0 0.25em; opacity:0.5; width:120%; height:1em; } nav a.current-page:after { content:""; position:absolute; top:0.45em; left:0.1em; border: 2px solid var(--primary-accent-color); border-top-color: transparent; border-left-color: transparent; border-right-color: transparent; transform:rotate(-5deg); border-radius:0 0.25em; opacity:0.5; width:130%; height:1em; }