/*
  Start: Variables

  Reference: https://cdn.jsdelivr.net/npm/@picocss/pico@2.0.6/css/pico.css
*/
:root {
  --font-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji";
  --font-sans: system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    Helvetica, Arial, "Helvetica Neue", sans-serif, var(--font-emoji);
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace, var(--font-emoji);
  --color-text: #000;
  --color-bg: #fff;
  --color-border: #000;
}
/* End: Variables */

/* 
  Start: CSS reset 

  References:
  - https://www.joshwcomeau.com/css/custom-css-reset/
  - https://piccalil.li/blog/a-more-modern-css-reset/
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Remove default margin */
* {
  margin: 0;
}
/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
/*
  Typographic tweaks:

  - Set font family
  - Add accessible line-height
  - Improve text rendering
*/
body {
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
/* Remove built-in form typography styles */
input,
button,
textarea,
select {
  font: inherit;
}
/* Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  hyphens: auto;
}

input,
textarea {
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: var(--font-mono);
}

a:link,
a:visited {
  color: var(--color-text);
}

nav,
nav ol,
nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
nav ol,
nav ul {
  list-style: none;
  padding-left: 0;
  gap: 1rem;
}
/* End: CSS reset */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

header,
main,
footer {
  width: 100%;
  max-width: 48rem; /* 768px */
  margin-left: auto;
  margin-right: auto;
}

header,
footer {
  flex: none;
}

header {
  margin-bottom: 4rem;
}

main {
  flex: 1 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

footer {
  margin-bottom: 4rem;
  margin-top: 8rem;
}

section {
  margin-bottom: 4rem;
  width: 100%;
  max-width: 48rem; /* 768px */
}

h1,
h2,
h3 {
  opacity: 0.85;
  margin: 0;
}
h1 {
  margin: 2rem 0;
}
h2 {
  margin: 1rem 0;
}
h3,
h4,
h5,
h6 {
  margin: 0.875rem 0;
}

label {
  display: block;
  margin-top: 1rem;
  opacity: 0.8;
  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem; /* 20px */
}

button {
  width: 100%;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  margin: 0;
  padding: 0.5rem;
  margin-top: 1rem;
  cursor: pointer;
}

button:active,
button:hover {
  filter: brightness(95%);
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

input,
select,
textarea {
  width: 100%;
}

input[type="number"],
input[type="text"],
input[type="url"],
select,
textarea {
  border: 1px solid var(--color-border);
  padding: 0.25rem;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.card {
  text-align: center;
  padding: 1rem;
  border: 1px solid var(--color-border);
  font-size: 1.125rem; /* 18px */
  line-height: 1.75rem; /* 28px */
  background-color: var(--color-bg);
  text-decoration: none;
}

.card:hover,
.card:active {
  filter: brightness(95%);
  cursor: pointer;
}

.logo {
  font-size: 1.25rem; /* 20px */
  line-height: 1.75rem; /* 28px */
  font-weight: bold;
}

.logo a:link,
.logo a:visited {
  text-decoration: none;
}

.logo a:hover,
.logo a:active {
  text-decoration: underline;
}

.disclaimer {
  font-size: 1.125rem; /* 18px */
  line-height: 1.75rem; /* 28px */
  margin: 0.875rem 0;
  font-weight: bold;
}
