diff --git a/content/credits.md b/content/credits.md
index a868538..bfc0f95 100644
--- a/content/credits.md
+++ b/content/credits.md
@@ -5,4 +5,7 @@ const eleventyNavigation = {
};
---
# Credits
-This website uses the font [Mister Twiggs Heavy](https://www.typeinnovations.com/fonts/mister-twiggs) by [Type Innovations](https://www.typeinnovations.com/)
\ No newline at end of file
+
+This website uses the font [Mister Twiggs Heavy](https://www.typeinnovations.com/fonts/mister-twiggs) by [Type Innovations](https://www.typeinnovations.com/)
+
+Built with [Eleventy](https://www.11ty.dev/) v3.1.2
\ No newline at end of file
diff --git a/css/index.css b/css/index.css
index 2c739ef..919a22e 100644
--- a/css/index.css
+++ b/css/index.css
@@ -60,7 +60,6 @@ body {
margin: 0 auto;
font-family: var(--font-family);
color: var(--text-color);
-
background-color: var(--background-color);
}
html {
@@ -74,6 +73,29 @@ body {
border: 2px dashed var(--color-gray-90);
}
+@media (max-width: 480px) {
+ html,
+ body {
+ padding: 8px;
+ }
+
+ body {
+ max-width: 95%;
+ }
+}
+
+@media (min-width: 481px) and (max-width: 768px) {
+ body {
+ max-width: 85%;
+ }
+}
+
+@media (min-width: 1441px) {
+ body {
+ max-width: 1200px;
+ }
+}
+
/* https://www.a11yproject.com/posts/how-to-hide-content/ */
.visually-hidden:not(:focus):not(:active) {
clip: rect(0 0 0 0);
@@ -220,11 +242,72 @@ header {
flex-grow: 1;
font-size: 1em; /* 16px /16 */
font-weight: 700;
+ max-width: 300px;
}
.home-link:link:not(:hover) {
text-decoration: none;
}
+.logo {
+ width: 100%;
+ height: auto;
+ max-width: 250px;
+ min-width: 180px;
+ display: block;
+ transition: filter 0.2s ease;
+}
+
+@media (max-width: 480px) {
+ header {
+ font-size: 1.5em;
+ gap: 3px;
+ padding: 3px;
+ }
+
+ .logo {
+ max-width: 200px;
+ min-width: 150px;
+ }
+
+ .nav {
+ gap: .3em .6em;
+ font-size: 0.9em;
+ }
+}
+
+@media (min-width: 481px) and (max-width: 768px) {
+ header {
+ font-size: 1.75em;
+ }
+
+ .logo {
+ max-width: 220px;
+ }
+}
+
+@media (min-width: 769px) and (max-width: 1024px) {
+ .logo {
+ max-width: 250px;
+ }
+}
+
+@media (min-width: 1025px) and (max-width: 1440px) {
+ .logo {
+ max-width: 280px;
+ }
+}
+
+@media (min-width: 1441px) {
+ .logo {
+ max-width: 320px;
+ }
+
+ header {
+ max-width: 1200px;
+ margin: 0 auto;
+ }
+}
+
/* Nav */
.nav {
display: flex;
@@ -232,6 +315,7 @@ header {
padding: 0;
margin: 0;
list-style: none;
+ flex-wrap: wrap;
}
.nav-item {
display: inline-block;
@@ -243,6 +327,24 @@ header {
text-decoration: underline;
}
+@media (max-width: 768px) {
+ header {
+ flex-direction: column;
+ align-items: stretch;
+ text-align: center;
+ }
+
+ .home-link {
+ align-self: center;
+ margin-bottom: 0.5em;
+ }
+
+ .nav {
+ justify-content: center;
+ gap: .4em .8em;
+ }
+}
+
/* Posts list */
.postlist {
counter-reset: start-from var(--postlist-index);
diff --git a/content/res/otomata_labs.svg b/public/otomata_labs.svg
similarity index 100%
rename from content/res/otomata_labs.svg
rename to public/otomata_labs.svg