:root {
  --gutter: 360px;
  --transition-time: 0.2s;
}

html {
  font: 150% / 1.4 'Lora', 'Georgia', serif;
  box-sizing: border-box;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

body {
  --bg-colour: white;
  --text-colour-head: #000;
  --text-colour-body: hsla(0, 0%, 0%, 0.73);
  --icon-colour: #999;
  --link-colour: #1759B9;
  --pop-gradient: linear-gradient(45deg, #F28469 0%, #FF5283 100%);
  margin: 0;
  padding-top: 48px;
  background-color: var(--bg-colour);
  color: var(--text-colour-body);
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 400;
  word-wrap: break-word;
  font-kerning: normal;
  -moz-font-feature-settings: "kern", "liga", "clig", "calt";
  -ms-font-feature-settings: "kern", "liga", "clig", "calt";
  -webkit-font-feature-settings: "kern", "liga", "clig", "calt";
  font-feature-settings: "kern", "liga", "clig", "calt";
  transition: color var(--transition-time), background var(--transition-time);
}

body[data-theme="dark"] {
  --bg-colour: #151515;
  --text-colour-head: white;
  --text-colour-body: #F5F5F5;
  --icon-colour: #DDD;
  --link-colour: #6DA1EC;
}

header {
  position: fixed;
  box-sizing: border-box;
  top: 0;
  left: 0;
  width: 100vw;
  padding: 12px;
  display: flex;
  justify-content: space-between;
}

h1 {
  margin: 0 0 0.5em 0;
  color: #F28469;
  width: fit-content;
  background: var(--pop-gradient);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h4 {
  color: var(--text-colour-head);
  margin: 0;
}

#lightswitch {
  user-select: none;
  cursor: pointer;
  transition: color var(--transition-time);
  color: var(--icon-colour);
}

#lightswitch:hover {
  color: var(--text-colour-head);
}

#hero, main, footer {
  margin: auto;
  margin-bottom: 2em;
  width: calc(100vw - var(--gutter));
  max-width: 800px;
}

#hero {
  color: var(--text-colour-head);
  font-size: 1.5rem;
  line-height: 1.2;
}

main {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

main > img {
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

main p {
  margin-bottom: 0.5em;
}

.copy p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: lighter;
  line-height: 1.3;
  margin-bottom: 0.6em;
}

figcaption {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: lighter;
  font-style: italic;
}

.copy p + h4 {
  margin-top: 0.6em;
}

figure {
  margin: 1em 0;
  text-align: center;
}

figure img {
  margin: auto;
  max-width: 80vw;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

p {
  margin: 0;
}

a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  color: var(--link-colour);
  transition: all var(--transition-time);
}

a:hover {
  opacity: 0.8;
}

mark {
  color: white;
  background-image: var(--pop-gradient);
  border-radius: 6px;
  padding: 3px 6px;
  white-space: nowrap;
}

footer {
  font-size: smaller;
  display: flex;
  justify-content: flex-end;
}

@media screen and (max-width: 900px) {
  :root {
    --gutter: 200px;
  }
}

@media screen and (max-width: 700px) {
  :root {
    --gutter: 60px;
  }
}

/* Mobile */
@media (max-width: 420px) {
  :root {
    --gutter: 40px;
  }

  html {
    font-size: 90%;
  }

  #hero {
    margin-bottom: 1em;
  }

  main {
    flex-direction: column;
    gap: 1em;
  }

  #logo {
    width: 160px;
    height: 160px;
  }

  mark {
    padding: 2px 4px;
  }

  a {
    text-underline-offset: 2px;
  }

  .copy h4, .copy p {
    font-size: 120%;
  }
}