:root {
    /* Add styles here */
    --base-color: #2e2b27;
    --color-darkfloral: #2d2419;
    --color-darkgreen: #5d8982;
    --color-dimbrown: #766f66;
    --modal-color: hsl(33, 29%, 14%, 0.64);
    --bkg-light: #fff2e1;
    --bkg-medium: #f8f2e9; /* faf2e8 */
    --bkg-white: #fff;
    --green-base: #5d8982;
    --p-16: 16px;
    --pt-16: 24px;
    --text-centre: center;
    --m-0: 0px;
    --mt-0: 0px;
    --mt-8: 8px;
    --mt-16: 16px;
    --mt-32: 32px;
    --mb-8: 8px;
    --mb-12: 12px;
    --mb-16: 16px;
    --mb-32: 32px;
    --mb-64: 64px;
    --my-0: 0px;
    --radius-6: 6px;
    --w-full: 100%;
    --max-w-640: 640px;
    --font-small: 16px;
    --p-medium: 500;
    --text-opacity-32: rgba(0, 0, 0, 0.32);
    --gap-8: 8px;
    --gap-12: 12px;
    --gap-16: 16px;
    --gap-24: 24px;
    --gap-32: 32px;
    --gap-48: 48px;
    --gap-64: 64px;
}

/* --------------------------------------------------------------- */

a {
    text-underline-offset: 28%;
    text-decoration-thickness: 1px;
    text-decoration-color: rgb(0 0 0 / 16%);
    transition: text-decoration-color 0.1s, color 0.1s;
    color: var(--base-color);
}
a:visited {
    
}

a:hover {
    text-decoration-color: var(--color-darkgreen);
    color: var(--color-darkgreen);
}

/* Typography */
@font-face {
    font-family: "Archivio";
    src: url("fonts/Archivo-VariableFont_wdth,wght.woff2") format("woff2");
    font-weight: 200 800;
}
@font-face {
    font-family: "Archivio";
    src: url("fonts/Archivo-Italic-VariableFont_wdth,wght.woff2") format("woff2");
    font-style: italic;
}
@font-face {
    font-family: "Newsreader";
    src: url("fonts/Newsreader-VariableFont_opsz,wght.woff2") format("woff2");
}
@font-face {
    font-family: "Newsreader";
    src: url("fonts/Newsreader-Italic-VariableFont_opsz,wght.woff2") format("woff2");
    font-style: italic;
}
@font-face {
    font-family: "Poppins";
    src: url("fonts/Poppins-SemiBold.woff2") format("woff2");
    font-weight: 600;
}
@font-face {
    font-family: "Poppins";
    src: url("fonts/Poppins-Bold.woff2") format("woff2");
    font-weight: 700;
}

html {
    /* font-family: Archivo, sans-serif; */
    font-family: Newsreader, serif;
    font-size: 26px;
    font-weight: 400;
}

body {
    background-color: var(--bkg-light);
    margin: 0px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Poppins, sans-serif;
    margin-top: var(--mt-0);
    margin-bottom: var(--mb-8);
    line-height: 150%;
}
h1 {
    font-size: 48px;
}
hgroup {
    margin-bottom: var(--mb-64);
}
hgroup div {
    display: flex;
    flex-direction: row;
    gap: var(--gap-24);
}
hgroup > p {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: var(--mb-32);
}
h2, h3 {
    font-weight: normal;
}
h2 {
    font-size: 32px;
}
h3 {
    font-size: 28px;
}
h4 {
    font-weight: normal;
}

p {
    margin-top: var(--mt-0);
    margin-bottom: var(--mb-8);
    line-height: 170%;
}
/* .paragraph-large {
    max-width: var(--max-w-640);
    font-size: 28px;
    font-weight: 400;
} */
/* [role="doc-subtitle"] { 
    max-width: var(--max-w-640);
    font-size: 28px;
    font-weight: 400;
} */
.weight-medium {
    font-weight: var(--p-medium);
}
b {
    font-weight: 500;
}
s {
   text-decoration: none;
   position: relative;
}
s::before {
    content: '';
    width: 100%;
    position: absolute;
    right: 0;
    top: calc( 50% - 0px );
    border-bottom: 3px solid red;
}
/* Highlighting */
mark {
    background-color: #ffeea1;
    color: #000;
    font-weight: var(--p-medium);
}
blockquote {
    /* Add styles here */
}

nav {
    /* Add styles here */
}

header {
    /* Add styles here */
}

main {
    flex-direction: column;
    align-items: center;
    padding: 128px 64px;
    display: flex;
}

container {
    width: 100%;
    max-width: 640px;
    grid-row-gap: 24px;
    flex-direction: column;
    align-items: flex-start;
    display: flex;
}

section {
    grid-row-gap: 64px;
    display: flex;
    width: var(--w-full);
}

article {
    grid-row-gap: 16px;
    position: relative;
}

article > p {
    margin-bottom: var(--mb-32);
}

footer {
    /* Add styles here */
}

grid {
    /* Add styles here */
}

/* Figures */
figure {
    background-color: var(--bkg-medium);
    border-radius: var(--radius-6);
    padding: var(--p-16);
    margin: var(--m-0);
    cursor: zoom-in;
    font-size: var(--font-small);
    color: var(--text-opacity-32);
}
figcaption {
     padding-top: var(--pt-16);
     text-align: var(--text-centre);
}
/* Images */
img {
    width: 100%
}

/* Dialogues */
dialog {
    border-radius: var(--radius-6);
    border: none;
    padding: 16px;
    /* max-height: 84vh; */
    max-height: calc(100vh - 64px);
}
dialog::backdrop {
    background-color: hsl(33, 29%, 14%, 0.64);
    cursor: zoom-out;
}
dialog > button {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}
dialog > img {
    /* max-height: 80vh; */
    max-height: calc(100vh - 96px);
}

/* Forms */
formbox {
    position: relative;
    width: 100%;
}
form {
    font-family: Poppins, sans-serif;
    display: flex;
    flex-direction: column;
    /* width: 480px; */
    border-radius: var(--radius-6);
    padding: var(--p-16);
    gap: 16px;
    margin-top: var(--mt-32);
    /* background-color: var(--bkg-white);
    border: 2px solid #e7d7c1; */
    background-color: #f7fcfb;
    border: 2px solid #5d8982;
}
form > div > p, form > div > a {
    font-family: Archivio, sans-serif;
    font-size: 20px;
}
form + p {
    font-size: 16px;
    font-family: Archivio, sans-serif;
    text-align: var(--text-centre);
    width: 100%;
    margin-top: 16px;
    text-decoration: none;
    display: flex;
    justify-content: center;
    gap: 8px;
}
form + p a {
    color: #bdb2a6;
}
form + a:hover {
    text-decoration: underline;
}
form > input {
    
}
form > input:nth-of-type(1) {
    /* border: 2px solid black; */
    border: 2px solid #5d8982;
}
form > input:nth-of-type(1):hover {
    /* border: 2px solid #085146; */
}
form > input:nth-of-type(1):focus-visible {
    /* outline-color:#085146; */
    /* outline-style: solid; */
    /* outline-width: 2px; */
}
form > input:nth-of-type(2) {
    border: 0px;
    background-color: var(--color-darkgreen);
    color: var(--bkg-white);
    font-weight: 600;
    cursor: pointer;
}
form > input:nth-of-type(2):hover {
    background-color: #517c75;
}
div > label {
    font-size: 32px;
}
input,
optgroup,
select,
textarea {
    border-radius: var(--radius-6);
    height: 48px;
    padding: 0px 16px 0px 16px;
    font-size: 20px;
}
[type=checkbox],
[type=radio] {
    /* Add styles here */
}
label
[type=checkbox] {
   /* Add styles here */
}
[type=radio] {
    /* Add styles here */
}
[type=range] {
    /* Add styles here */
}

/* Lists */
ul, ol, ol-custom {
    width: 100%;
    grid-row-gap: 24px;
    background-color: var(--bkg-medium);
    border-radius: var(--radius-6);
    display: flex;
    flex-direction: column;
    margin-top: var(--mt-16);
    margin-bottom: var(--mb-16);
    padding: 16px 16px 16px 36px;
}
ol {
    padding: 16px 16px 16px 44px;
}
ol-custom {
    padding: 16px;
    grid-row-gap: 0px;
}
ol-custom > p:last-child {
    margin-bottom: 0;
}
li {
    color: #2e2b27;
    margin-bottom: 0;
    font-size: 24px;
    line-height: 150%;
}
ol-item {
    grid-column-gap: 16px;
    align-items: center;
    display: flex;
    margin-bottom: 12px;
}
ol-item > h4 {
    margin: var(--my-0);
    font-size: 28px;
}
ol-custom > p {
    margin-bottom: var(--mb-32);
}
ol-num {
    width: 36px;
    height: 36px;
    color: #fff;
    background-color: #2e2b27;
    border-radius: 100px;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 500;
    display: flex;
}

/* Resource boxes */
.resource-box {
    text-decoration-color: rgb(0, 0, 0, 0);
    transition: text-decoration-color 0.1s, background-color 0.1s;
    width: auto;
    grid-column-gap: 24px;
    background-color: #faf2e8;
    border-radius: 6px;
    align-items: center;
    padding: 24px;
    text-decoration: none;
    display: flex;
    color: var(--base-color);
}
.resource-box:hover {
    text-decoration: underline;
    text-underline-offset: 32%;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgb(46, 43, 39, 100);
    background-color: #f7ecde;
}
.resource-box > img {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 4px;
    flex: none;
    box-shadow: 0 1px 8px rgba(0,0,0,.16);
}
.resource-box > h4 {
    font-weight: 600;
}

/* Buttons */
button {
    /* Add styles here */
}

/* Code blocks */
pre,
code,
kbd,
samp {
    /* Add styles here */
}

aside {
    position: absolute;
    left: 704px;
    width: 256px;
    /* background-color: #f7e7d3; */
    background-color: #fcedda;
    padding: 16px;
    font-family: Archivo, sans-serif;
    font-size: 18px;
    line-height: 140%;
    border-radius: 6px;
    /* color: var(--color-dimbrown); */
    color: #a89884;
    transition: color 0.2s ease;
}
aside:hover {
    color: var(--color-darkfloral);
}
#note__1 {
    top: 460px;
}
#note__2 {
    top: 1350px;
}
#note__3 {
    top: 3365px;
}

::before,
::after {
    /* Add styles here */
}

/* Flexbox */
.flex-row {
    flex-direction: row;
    align-items: flex-start;
    display: flex;
}
.gap-8 {
    gap: var(--gap-8);
}
.gap-16 {
    gap: var(--gap-16);
}
readtime, tags {
    flex-direction: row;
    align-items: flex-start;
    display: flex;
    gap: var(--gap-12);
}
readtime {
    margin-bottom: var(--mb-32);
    margin-top: var(--mt-8);
    font-family: Archivo, sans-serif;
    font-size: 20px;
    color: #a89884;
}
tags > a {
    padding: 8px 16px 8px 16px;
    border-radius: 100px;
    background-color: red;
    text-decoration: none;
}

/* Tooltips */
/* Worth seeing if I can use the pico lib tooltips for this */

/* --------------------------------------------------------------- */

/* Breakpoints */
/* Small */
@media (max-width: 478px) {
    
}
/* Medium */
@media (max-width: 1279px) {
    
}
/* Large */
@media (min-width: 1280px) {
    
}

/* --------------------------------------------------------------- */

/* Light and dark modes */
/* On toggle, swap attribute on <html> el from 'data-theme="light"' to 'data-theme="dark"' and vise versa, via JS. Then, store store user pref via cookie/local storage */
[data-theme=light] {
    /* Add vars here */
}
[data-theme=dark] {
    /* Add vars here */
}