@font-face { font-family: 'ServerMono'; src: url('./fonts/ServerMono-Regular.otf'); } :root { --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif; } @media (prefers-color-scheme: light) { :root { --text: #17141f; --background: #faf9fb; --primary: #000000; --secondary: #000000; --accent: #000000; } } @media (prefers-color-scheme: dark) { :root { --text: #e3e0eb; --background: #050406; --primary: #ffffff; --secondary: #ffffff; --accent: #ffffff; } } * { box-sizing: border-box; } * { font-family: var(--font-family); } html { display: flex; justify-content: center; align-items: center; } html, body { margin: 0; padding: 1rem; font-family: var(--font-family); color: var(--text); background-color: var(--background); } div { /*border: solid 1px;*/ } h1 { color: var(--primary); } h2 { color: var(--primary); } .main { flex: 1; padding: 2rem; min-width: 100%; } .controls { padding-bottom: 1rem; padding-top: 1rem; } .address { min-width: 100%; background: transparent; background-color: var(--background); color: var(--text); border: none; border-bottom: 0.01px solid var(--text); outline: none; font-size: 1.5rem; font-weight: 500; -webkit-app-region: no-drag; /* Allow interaction */ } .cards { min-height: 100%; min-width: 100%; display: grid; grid-template-columns: 1fr; grid-template-rows: auto; grid-gap: 20px; } @media only screen and (min-width: 500px) { .cards { grid-template-columns: 1fr 1fr; } } @media only screen and (min-width: 850px) { .cards { grid-template-columns: 1fr 1fr 1fr 1fr; } } .card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); padding-bottom: 1rem; padding-top: 1rem; cursor: pointer; } .card:hover { /*outline: gray 1px solid;*/ /*box-shadow: 0 4px 5px rgba(0,0,0,0.2);*/ } .card article { display: flex; flex: 1; justify-content: space-between; flex-direction: column; } /*.card .thumb {*/ .card { background-size: cover; background-position: center center; } .card p { flex: 1; /* make p grow to fill available space*/ line-height: 1.4; } .card title { background-color: var(--primary); } .card span { font-size: 12px; font-weight: bold; color: var(--text); text-transform: uppercase; letter-spacing: .05em; margin: 2em 0 0 0; }