:root {
    --accentcolour: #89154e;
    --fontsize: 16px;
    --lineheight: 21px;
}
body {
    background-color: white;
    color: black;
    margin-left: 2in;
    font-family: "alegreya", serif;
    font-size: var(--fontsize);
    line-height: var(--lineheight);
}
@media
    only screen and (min-resolution: 192dpi),
    only screen and (-webkit-min-resolution: 192dpi),
    only screen and (-o-min-resolution: 192dpi) {

    /* On a mobile device use bolder colours
     */
    body {
	background-color: yellow;
	/*
	--fontsize: 48px;
       --lineheight: 64px;
       */
       max-width: 30em;
    }
    body h1 {
	color: wheat;
    }
}

h1 {
    color: #DDD;
    font-size: calc( var(--fontsize) * 6 );
    line-height: calc( var(--lineheight) * 6);
    margin-top: -0.05em;
    margin-left: calc(0.1em - 2in);
    font-family: "callig", "Alegreya", sans-serif;
}
div.topics {
}
.topic {
    position: absolute;
    top: 17em;
    border-left: 2px solid var(--accentcolour);
    padding-top: 1em;
    margin-left: 0.5em;
    padding-left: 0.5em;
    transition: visibility 0s, opacity 2s linear;
    opacity: 0; /* transparent */
    transform: rotate(-5deg);
    transform-origin: top left;
    min-width: 12em;
    visibility: hidden;
    background-color: rgba(255,255,255,0.3);
}
.topic div.contents {
    display: flex;
    flex-wrap: wrap;
}
div.topic p {
    max-width: 25em;
}
div.topic.visible {
    visibility: visible;
    opacity: 1;
}
.visible {
    opacity: 1; /* opaque */
}
.selected {
    color: var(--accentcolour);
}

div.card {
    border-radius: 1em;
    border: 1px solid red;
    padding: 0.5em;
    margin: 0.5em 1em 0.5em 0em;
    max-width: 15em;
}
.card-about {
    background-color: #FFEEEE;
}
div.card h3 {
    margin-top: 0;
    padding-top: 0;
    border-bottom: 1px solid red;
}

.topic h2 {
    font-weight: bold;
    font-size: var(--fontsize);
    line-height: var(--lineheight);
    margin: 0;
    padding: 0;
    margin-top: calc( var(--lineheight) / 2);
    /* this is too loose:
     * margin-bottom: calc( var(--lineheight) / 2);
     *
     * */
}

p {
    margin-top: 0;
    margin-bottom: calc( var(--lineheight) / 2);
    line-height: var(--lineheight);
}

span.skill {
    font-style: italic;
}

ul.blobby {
    /* not really presented as a list: */
    list-style: none;
    list-style-position: outside;

    /* put it on top of the title: */
    position: fixed;
    top: 15em;

    /* make sure the content doesn't hide the nav menu: */
    z-index: 1000;

    /* establish a block context: */
    transform: translate(1px, 1px);

    /* make it blobby: */
    height: 1em;
    width: 1em;
    background-color: var(--accentcolour);
    border-radius: 0.5em;
    padding: 0;
}
ul.blobby li {
    width: 20em;
    margin: 0;
    margin-left: 0.5em; /* centre on the blob */
    padding-left: 2em;
    cursor: pointer;
    color: var(--accentcolour);
    font-style: italic;

    position: fixed;
    top: 0;
    transform-origin: left;
    width: -moz-max-content;
    width: -o-max-content;
    width: max-content;
    background-color: rgba(255,255,255,0.7);

}
ul.blobby li.active {
    color: #aaa;
}

ul.blobby li:nth-of-type(1) {
    /* transform: rotate(0deg); */
}
ul.blobby li:nth-of-type(2) {
    transform: rotate(-30deg);
}
ul.blobby li:nth-of-type(3) {
    transform: rotate(-60deg);
}
ul.blobby li:nth-of-type(4) {
    transform: rotate(-90deg);
}
ul.blobby li:nth-of-type(5) {
    transform: rotate(-120deg);
}
ul.blobby li:nth-of-type(6) {
    transform: rotate(-150deg);
}
ul.blobby li:nth-of-type(7) {
    transform: rotate(-180deg);
}
ul.blobby li:nth-of-type(7) {
    transform: rotate(-180deg);
}
ul.blobby li:nth-of-type(8) {
    transform: rotate(-210deg);
}
abbr {
    color: #444;
    text-decoration: none;
    font-variant: small-caps;
    text-transform: lowercase;
}

/* hamburger menu; make sure it's on top
 * and doesn't have an irrelevent grey box round it
 * drawn by the UA to show "focus"; this may
 * reduce accessibility by keyboard, so let's
 * do something else when it has focus
 */
nav {
    position: fixed;
    top: 1em;
    right: 0.5em;
    z-index: 2000;
    background: solid white;
}
nav:focus {
    outline: 0 !important;
}
nav details:focus {
    outline: 0 !important;
}
nav summary:focus {
    outline: 0 !important;
}
nav details {
    /*
    transition: opacity 1s ease;
    opacity: 0.3;
    */
}

nav details[open] {
    background: rgba(255,255,255,1.0);
    left: 5px;
    display: block;
    /* opacity: 1; */
}
nav details[open] summary ~ * {
    animation: sweep .667s ease-in-out;
}
@keyframes sweep {
          0%    {opacity: 0; margin-left: -100px}
        100%  {opacity: 1; margin-left: 0px}
}

nav summary {
    list-style-image: url("menu.svg");
    width: 4em;
    height: 3em;
    /* menu affordance on hovering (desktop etc) */
    cursor: pointer;
}
nav summary::-webkit-details-marker {
    background:  url("hamburger.svg") no-repeat; 
    color: transparent;
    width: 4em;
    height: 3em;
}
nav summary p {
    visibility: hidden;
}
nav details ul {
    /* connect the menu with the hamburger: */
    border-left: 1px solid #aaa;
    padding-left: 1em;

    /* no bullets */
    list-style: none;

    color: #999;
    font-weight: bold;
    padding-top: 0;
    margin-top: 0;
}
/* Space out the menu items, but not the lines
 * if a menu item wraps:
 */
nav details ul li {
    margin-bottom: 0.5em;
}
nav details ul li a,
nav details ul li .accent {
    text-decoration: none;
    color: var(--accentcolour);
}
csc {
    font-variant: small-caps;
}
sc {
    font-variant: small-caps;
    text-transform: lower-case;
}
