:root {
  --base-font-size: 18px;
  --content-width: 1024px;
  --header-height: 80px;

  --column-space: 1.5rem;
  --column-space-x: 1.5rem;

  --color-bg: #fff;
  --color-fg: #333;
  --color-shadow: rgba(0, 0, 0, 0.05);
  --color-amber: #f59e0b;
  --color-red: #ef4444;
  --color-green: #10b981;
  --color-gray: #d1d5db;
  --color-carbon: #6b7280;

  --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-content: 'Crimson Text';
}

@media (min-width: 641px) {
  :root {
    --column-space: 2.75rem;
    --column-space-x: 4rem;
  }
}

@media (min-width: 1008px) {
  :root {
    --column-space-x: 8rem;
  }
}

/* Reset */

html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

/* General definitions */

body {
  background-color: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-main);
  font-size: var(--base-font-size);
  line-height: 1.5rem;

  border: 0;
  margin: 0 auto;
  padding: 0;
}

button {
  font-size: inherit;
}

h1,
h2,
h3 {
  text-align: center;
  font-weight: bold;
  line-height: 2.5rem;
}

h1 {
  margin-bottom: 2rem;
}

h2,
h3 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

a,
a:link,
a:active,
a:visited {
  color: var(--color-fg);
  text-decoration: underline;
  font-weight: bold;
}

a:hover {
  text-decoration: none;
}

blockquote,
p,
li,
dt,
dd {
  font-size: 1.5rem;
  line-height: 1.25;
}

blockquote {
  font-style: italic;
  background-color: #fafafa;
  margin: 0;
  padding: 2rem;
}

footer {
  text-align: center;
  font-size: 0.8rem;
}

/* Layout */

.wrap {
  align-self: center;
  max-width: var(--content-width);
  width: 100%;
}

.column {
  margin: var(--column-space) var(--column-space-x);
}

/* Extras */

.content {
  font-family: var(--font-content);
}

.content p {
  text-align: justify;
}

.content .callout {
  text-align: center;
}

.content ul {
  font-size: 1.5rem;
  line-height: 1.25;
}

.content li {
  margin-bottom: 0.5rem;
}

.content img {
  display: block;
  margin: 0 auto;
  max-width: 600px;
}

/* Input Forms */

form,
input,
select,
option,
label {
  font-family: var(--font-main);
}

label,
legend {
  display: block;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

input,
fieldset,
select,
option,
textarea {
  width: 100%;
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-top: 0.25rem;
  padding: 0.5rem 0.75rem;

  appearance: none;
  background-color: var(--color-bg);
  color: var(--color-fg);
  border: 1px solid var(--color-gray);
  border-radius: 2px;
}
input[type='checkbox'] {
  width: auto;
  appearance: auto;
}
select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2rem;
  color-adjust: exact;
}
::placeholder,
select:invalid {
  color: var(--color-gray);
}
textarea {
  resize: vertical;
  min-height: 4rem;
}

/* Global utilities */

.desktop {
  display: none;
}

@media (min-width: 641px) {
  .mobile {
    display: none !important;
  }
  .desktop {
    display: unset;
  }
}
