* {
    box-sizing: border-box;
}

/* --------------- body -------------- */
body {
    background: #EFF0EF;
    color: #1B3049;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    line-height: 1.5;
}

body>header,
main,
footer>section,
footer>nav {
    max-width: 1280px;
    margin: 0 auto;
}


@media (max-width: 1260px) {

    body>header,
    main,
    footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* --------------- Elements -------------- */
h1,
h2,
h3 {
    color: #036B98;
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: 6rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

a {
    font-weight: 700;
    color: #036B98;
}

a:focus {
    outline: none;
    text-decoration: none;
    background: #F6BA45;
    color: #000 !important;
    border-bottom: 4px solid #000;
}

/* --------------- typographic styles -------------- */
.lede {
    font-size: 3rem;
    font-weight: 800;
    max-width: 20em;
    line-height: 1.2;
}

h3,
p,
li {
    max-width: 870px;
}

/* --------------- skip link -------------- */
a[href="#main"] {
    display: block;
    width: 10.5em;
    clear: right;
    color: #000;
    outline: 0;
    padding: 4px 2px;
    margin-bottom: 1em;
}

a[href="#main"]:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* --------------- header -------------- */
header {
    margin-top: 74px;
}

body>header a {
    font-weight: 800;
    text-decoration: none;
}

header ul {
    list-style: none;
    padding-left: 0;
}

header li {
    display: inline-block;
    margin-right: 1em;
}

@media (min-width: 900px) {

    header ul {
        text-align: right;
    }

    header nav {
        margin-top: -54px;
    }
}

/* ------ 'logo' ------ */
header>a[href="/"] {
    color: #1B3049;
    font-size: 120%;
}

/* ------ selected nav link ------ */
a[aria-current="true"] {
    border-bottom: 4px solid #CC4A12;
}

/* --------------- footer -------------- */
footer {
    background: #DCDDDC;
    padding-top: 10px;
    padding-bottom: 100px;
}

footer h2 {
    color: #1C3049;
}

footer a {
    color: #1B3049;
    font-weight: 700;
}

footer nav {
    border-top: 4px solid #1C304A;
}

footer nav ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

footer nav li {
    display: inline-block;
    margin-right: 1em;
}

/* --------------- components -------------- */

/* ------ tiles ------ */
.tiles {
    list-style: none;
    padding-left: 0;
}

.tiles li {
    display: inline-block;
    background: #046A98;
    color: #FFFFFF;
    height: 5em;
    margin-bottom: 1em;
    padding: 1em;
    width: 100%;
}

@media (min-width: 600px) {

    .tiles li {
        width: 45%;
    }
}

.tiles li:last-child {
    background: #1B3049;
}

.tiles a {
    color: #FFFFFF;
    text-decoration: none;
}

/* ------ tiles ------ */
.organisations {
    list-style: none;
    padding-left: 0;
}

.organisations li {
    display: inline-block;
    width: 120px;
    height: 120px;
    margin: 2px;
    padding: 5px;
    background: #FFFFFF;
    text-align: center;
    vertical-align: middle;
}

/* --------------- utilities -------------- */
.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* --------------- Pages -------------- */

/* ------ Homepage ------ */
.updates {
    list-style: none;
    padding-left: 0;
    max-width: 900px;
}

.updates a {
    display: block;
    font-size: 32px;
    color: #1B3049;
    margin-top: 1em;
}

.updates time {
    display: block;
}

/* ------ Blog ------ */
.post {
    max-width: 900px;
}

.post h2 {
    margin-bottom: 0;
}

.post header p {
    margin-top: 0.5em;
}

.post strong {
    font-weight: 700;
}

/* ------ Speaking ------ */
.talk {
    max-width: 900px;
}

.talk h3 {
    margin-bottom: 0;
}

.talk + p {
    margin-top: 0.5em;
}

.talk a {
    color: #1B3049;
}


/* --------------- Mobile -------------- */
@media (max-width: 600px) {
    html {
      font-size: 13px;
    }

    h1 {
        font-size: 4rem;
        line-height: 1.1;
    }

    .lede {
        font-size: 2rem;
    }

    header li {
        margin-right: 0.3em;
    }

    header li:last-child {margin-right: 0}

    body>header,
    main,
    footer {
        padding-left: 10px;
        padding-right: 10px;
    }
  }