/* ====================================================
   assets/css/main.css
   Modern rewrite — CSS custom properties + CSS Grid
   ==================================================== */

/* === 1. Font imports === */
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,700;1,300;1,700&family=Source+Sans+Pro:wght@900&display=swap");
@import url(fontawesome-all.min.css);

/* === 2. Design tokens === */
:root {
  --color-bg: #1e252d;
  --color-surface: #212931;
  --color-border: #eeeeee;
  --color-muted: #909498;
  --color-text: #3d4449;
  --color-heading: #083d7e;
  --color-accent: #1a60b5;
  --color-accent-hover: #2583f7;
  --color-white: #ffffff;

  --font-body: "Merriweather", Georgia, serif;
  --font-heading: "Source Sans Pro", Helvetica, sans-serif;
  --font-mono: "Courier New", monospace;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  --transition: 0.2s ease-in-out;
}

/* === 3. Modern reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
address,
cite,
code,
del,
em,
img,
ins,
kbd,
q,
s,
small,
strong,
sub,
sup,
b,
u,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  border: 0;
  margin: 0;
  padding: 0;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
mark {
  background-color: transparent;
  color: inherit;
}
input,
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
}

html {
  font-size: 12pt;
}

@media (max-width: 1280px) {
  html {
    font-size: 11pt;
  }
}
@media (max-width: 360px) {
  html {
    font-size: 10pt;
  }
}

@media (max-width: 480px) {
  html,
  body {
    min-width: 320px;
  }
}

/* === 4. Base typography === */

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: 0.075em;
  line-height: 1.5;
  margin: 0 0 var(--space-sm) 0;
  text-transform: uppercase;
}

h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

body.hero-heading h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1rem;
}
h5 {
  font-size: 0.9rem;
}
h6 {
  font-size: 0.8rem;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  border-bottom: 0;
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 var(--space-sm) 0;
  text-align: justify;
}

a {
  border-bottom: dotted 1px;
  color: var(--color-accent);
  text-decoration: none;
  transition:
    color var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

a:hover {
  border-bottom-color: transparent;
  color: var(--color-accent-hover);
}

strong,
b {
  color: var(--color-heading);
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

sub {
  font-size: 0.8rem;
  position: relative;
  top: 0.5rem;
}

sup {
  font-size: 0.8rem;
  position: relative;
  top: -0.5rem;
}

blockquote {
  border-left: solid 4px var(--color-border);
  font-style: italic;
  margin: 20px 0 4px 0;
  padding: 0.5rem 0 0.5rem 2rem;
}

code {
  background: rgba(220, 220, 220, 0.25);
  border: solid 2px var(--color-border);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin: 0 0.25rem;
  padding: 0.25rem 0.65rem;
}

pre {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin: 0 0 var(--space-lg) 0;
  overflow-x: auto;
}

pre code {
  display: block;
  line-height: 1.75;
  padding: var(--space-sm) var(--space-md);
}

hr {
  border: 0;
  border-bottom: solid 2px var(--color-border);
  margin: var(--space-xl) 0;
}

/* Section headers (not #header) */
header {
  cursor: default;
}
header > p {
  font-style: italic;
}

header > h1 + p {
  font-size: 1.1rem;
  line-height: 2;
  margin-top: -0.5rem;
}

header.major {
  margin: 0 0 4rem 0;
  text-align: center;
}

header.major > :last-child {
  margin-bottom: 0;
}
header.major > p {
  margin-top: 0;
}

/* === 5. Utilities === */

.align-left {
  text-align: left;
}
.align-center {
  text-align: center;
}
.align-right {
  text-align: right;
}
.pad-top {
  padding-top: var(--space-sm);
}
.pad-bottom {
  padding-bottom: var(--space-lg);
}
.mb-20 {
  margin-bottom: 20px;
}

/* === 6. Layout — CSS Grid === */

.row {
  align-items: start;
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(12, 1fr);
}

/* Default: every child spans all 12 columns */
.row > * {
  grid-column: span 12;
}

/* Named column spans used in the HTML */
.row > .col-7 {
  grid-column: span 7;
}
.row > .col-5 {
  grid-column: span 5;
}

/* === 7. Components === */

/* .btn (LinkedIn button) */
.btn {
  background: var(--color-accent);
  border-bottom: 0;
  border-radius: 6px;
  color: var(--color-white);
  display: inline-block;
  font-size: 1rem;
  margin-right: var(--space-sm);
  padding: 10px 20px;
  text-decoration: none;
  transition:
    background var(--transition),
    color var(--transition);
}

.btn:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
}

/* .button / native buttons */
button,
input[type="submit"],
input[type="reset"],
input[type="button"],
.button {
  appearance: none;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 2px var(--color-heading);
  color: var(--color-heading);
  cursor: pointer;
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 900;
  height: 3rem;
  letter-spacing: 0.075em;
  line-height: 3rem;
  padding: 0 2rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color var(--transition),
    box-shadow var(--transition),
    color var(--transition);
  white-space: nowrap;
}

button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.button:hover {
  box-shadow: inset 0 0 0 2px var(--color-accent);
  color: var(--color-accent);
}

button.disabled,
button:disabled,
.button.disabled,
.button:disabled {
  opacity: 0.25;
  pointer-events: none;
}

/* .box */
.box {
  border: solid 2px var(--color-border);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
}

.box > :last-child {
  margin-bottom: 0;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
}

table {
  margin: 0 0 var(--space-lg) 0;
  width: 100%;
}

table thead {
  border-bottom: solid 2px var(--color-border);
}

table th {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  padding: 0 0.75rem 0.75rem 0.75rem;
  text-align: left;
  text-transform: uppercase;
}

table tbody tr {
  border: solid 1px var(--color-border);
  border-left: 0;
  border-right: 0;
}

table tbody tr:nth-child(2n + 1) {
  background-color: rgba(220, 220, 220, 0.25);
}

table td {
  padding: 0.75rem;
}

table tfoot {
  border-top: solid 2px var(--color-border);
}

/* Profile image */
.clip-circle {
  clip-path: circle(40% at 50% 50%);
  display: block;
  max-width: 100%;
  width: 100%;
}

.clip-circle-container {
  align-items: center;
  display: flex;
  justify-content: center;
}

/* Lists */
ul {
  list-style: disc;
  margin: 0 0 var(--space-sm) 0;
  padding-left: var(--space-sm);
}

ul li {
  padding-bottom: var(--space-xs);
  padding-left: var(--space-xs);
}

ol {
  list-style: decimal;
  margin: 0 0 var(--space-lg) 0;
  padding-left: 1.25rem;
}

ol li {
  padding-left: 0.25rem;
}

/* Font Awesome icon helper */
.icon {
  border-bottom: none;
  position: relative;
  text-decoration: none;
}

.icon::before {
  display: inline-block;
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 1;
  text-rendering: auto;
  text-transform: none;
}

.icon > .label {
  display: none;
}
.icon.solid::before {
  font-weight: 900;
}
.icon.brands::before {
  font-family: "Font Awesome 5 Brands";
}

/* ul.icons (nav social links) */
ul.icons {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

ul.icons li {
  display: inline-block;
  padding: 0 0.5rem 0 0;
  vertical-align: middle;
}

ul.icons li:last-child {
  padding-right: 0;
}

ul.icons li .icon::before {
  border-radius: 100%;
  display: inline-block;
  font-size: 1.25rem;
  height: 2.25rem;
  line-height: 2.25rem;
  text-align: center;
  width: 2.25rem;
}

ul.icons.alt li .icon::before {
  box-shadow: inset 0 0 0 2px var(--color-border);
  font-size: 1rem;
  transition: box-shadow var(--transition);
}

ul.icons.alt li a.icon:hover::before {
  box-shadow: inset 0 0 0 2px var(--color-accent);
}

/* Form elements */
input,
select,
textarea {
  color: var(--color-heading);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
}

::placeholder {
  color: var(--color-muted);
  opacity: 1;
}

.fields {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.field {
  flex: 1 1 100%;
}

.field.half {
  flex: 1 1 calc(50% - var(--space-md) / 2);
  min-width: 0;
}

.field label {
  color: var(--color-heading);
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  background-color: transparent;
  border: solid 2px var(--color-border);
  color: var(--color-text);
  display: block;
  outline: none;
  padding: 0 var(--space-sm);
  transition: border-color var(--transition);
  width: 100%;
}

.field input[type="text"],
.field input[type="email"] {
  height: 3rem;
  line-height: 3rem;
}

.field textarea {
  line-height: 1.75;
  padding: var(--space-sm);
  resize: vertical;
}

.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field textarea:focus {
  border-color: var(--color-accent);
}

ul.actions {
  display: flex;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding-left: 0;
}

ul.actions li {
  padding: 0;
}

/* === 8. #wrapper === */

#wrapper {
  overflow: hidden;
  position: relative;
  transition: opacity 0.5s ease;
  z-index: 1;
}

/* === 9. .bg / .bg.fixed (JS-injected parallax layer) === */

#wrapper > .bg {
  background-attachment: scroll, scroll, scroll;
  background-color: var(--color-surface);
  background-image: url("../../images/overlay.png"), linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url("../../images/bg-c2.jpg");
  background-position:
    center,
    center,
    top center;
  background-repeat: repeat, no-repeat, no-repeat;
  background-size:
    auto,
    auto,
    100% auto;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -1;
}

#wrapper > .bg.fixed {
  height: 100vh;
  position: fixed;
  width: 100vw;
}

@media (orientation: portrait) {
  #wrapper > .bg {
    background-size:
      auto,
      auto,
      auto 175%;
  }
}

/* === 10. #header === */

#header {
  align-items: center;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  height: 6rem;
  justify-content: flex-end;
  padding-bottom: var(--space-lg);
  pointer-events: none;
  position: relative;
  text-align: center;
  user-select: none;
  z-index: 2;
}

#header a {
  border-bottom-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

#header a:hover {
  border-bottom-color: transparent;
  color: var(--color-accent);
}

/* Logo — hidden on desktop, shown on mobile */
#header .logo {
  border: solid 5px var(--color-white);
  color: var(--color-white);
  display: none;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  line-height: 1;
  padding: var(--space-sm) 1.75rem;
  pointer-events: auto;
  text-transform: uppercase;
  transition:
    border-color var(--transition),
    color var(--transition),
    opacity 0.5s ease;
}

#header .logo:hover {
  border-color: var(--color-white);
  color: var(--color-white);
}

/* === 11. #nav === */

#nav {
  background: rgba(255, 255, 255, 0.175);
  color: var(--color-white);
  display: flex;
  height: 4rem;
  line-height: 4rem;
  margin: -4rem auto 0;
  max-width: 72rem;
  overflow: visible;
  padding: 0 var(--space-lg) 0 0;
  position: relative;
  transition:
    transform 1s ease,
    opacity 1s ease;
  width: calc(100% - 4rem);
  z-index: 2;
}

#nav a {
  border-bottom-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

#nav a:hover {
  border-bottom-color: transparent;
  color: var(--color-accent);
}

#nav ul.links {
  display: flex;
  flex-grow: 1;
  flex-shrink: 1;
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: 0.075em;
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
  text-transform: uppercase;
}

#nav ul.links li {
  display: block;
  padding-bottom: 0;
  padding-left: 0;
}

#nav ul.links li a {
  align-items: center;
  border-bottom: 0;
  display: flex;
  font-size: 1rem;
  height: 100%;
  outline: none;
  padding: 0 var(--space-sm);
  transition:
    background-color var(--transition),
    color var(--transition);
  white-space: nowrap;
}

#nav ul.links li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: inherit;
}

#nav ul.links li.active {
  background-color: var(--color-white);
}

#nav ul.links li.active a {
  color: var(--color-bg);
}

#nav ul.links li.active a:hover {
  color: var(--color-accent);
}

/* Dropdown submenu */
#nav ul.links li.has-submenu {
  position: relative;
}

#nav ul.links li.has-submenu > a::after {
  content: " \25BE";
  font-size: 0.65em;
  opacity: 0.7;
}

#nav ul.links li.has-submenu > ul.submenu {
  background-color: var(--color-bg);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
  display: none;
  left: 0;
  list-style: none;
  margin: 0;
  min-width: 14rem;
  padding: 0.5rem 0;
  position: absolute;
  top: 100%;
  z-index: 100;
}

#nav ul.links li.has-submenu:hover > ul.submenu {
  display: block;
}

#nav ul.links li.has-submenu > ul.submenu li {
  background-color: transparent;
  display: block;
  padding: 0;
}

#nav ul.links li.has-submenu > ul.submenu li a {
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.75);
  display: block;
  font-size: 0.75rem;
  height: auto;
  padding: 0.6rem var(--space-md);
  transition:
    background-color var(--transition),
    color var(--transition);
}

#nav ul.links li.has-submenu > ul.submenu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

#nav ul.links li.has-submenu > ul.submenu li.active a {
  color: var(--color-white);
}

/* === 12. #navPanelToggle (JS-injected) === */

#navPanelToggle {
  border: 0;
  color: var(--color-white);
  display: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  padding: 0.375rem 1.25rem;
  position: fixed;
  right: 0.75rem;
  text-decoration: none;
  text-transform: uppercase;
  top: 0.75rem;
  transition:
    color var(--transition),
    background-color var(--transition),
    box-shadow var(--transition);
  z-index: 10001;
}

#navPanelToggle::before {
  content: "\f0c9";
  display: inline-block;
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-variant: normal;
  font-weight: 900;
  line-height: 1;
  margin-right: 0.5rem;
  text-rendering: auto;
  text-transform: none;
}

#navPanelToggle.alt {
  background-color: rgba(255, 255, 255, 0.875);
  box-shadow: 0 0.125rem 0.75rem 0 rgba(30, 37, 45, 0.25);
  color: var(--color-surface);
}

#navPanelToggle.alt:hover {
  background-color: var(--color-white);
}

/* === 13. #navPanel (JS-injected) === */

#navPanel {
  background: var(--color-white);
  box-shadow: none;
  color: var(--color-heading);
  display: none;
  height: 100%;
  max-width: 80%;
  overflow-y: auto;
  padding: var(--space-xl) var(--space-lg);
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(20rem);
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease,
    visibility 0.5s;
  visibility: hidden;
  width: 20rem;
  z-index: 10002;
}

#navPanel .links {
  list-style: none;
  padding-left: 0;
}

#navPanel .links li {
  border-top: solid 2px var(--color-border);
  padding: 0;
}

#navPanel .links li:first-child {
  border-top: 0;
}

#navPanel .links li a {
  border-bottom: 0;
  color: var(--color-heading);
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  padding: 0.75rem 0;
  text-decoration: none;
  text-transform: uppercase;
}

/* Submenu inside mobile panel — always visible */
#navPanel .links li.has-submenu > ul.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

#navPanel .links li.has-submenu > ul.submenu li {
  border-top: solid 1px #dddddd;
  padding: 0;
}

#navPanel .links li.has-submenu > ul.submenu li a {
  color: #666;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  padding: 0.6rem 0 0.6rem 1.25rem;
  text-transform: uppercase;
}

#navPanel .close {
  border: 0;
  color: var(--color-muted);
  cursor: pointer;
  display: block;
  height: 3.25rem;
  line-height: 3.25rem;
  padding-right: 1.25rem;
  position: absolute;
  right: 0;
  text-align: right;
  text-decoration: none;
  top: 0;
  transition: color var(--transition);
  width: 7rem;
}

#navPanel .close::before {
  content: "\f00d";
  display: inline-block;
  font-family: "Font Awesome 5 Free";
  font-size: 1.25rem;
  font-style: normal;
  font-variant: normal;
  font-weight: 900;
  line-height: 1;
  text-rendering: auto;
  text-transform: none;
}

#navPanel .close:hover {
  color: var(--color-heading);
}

/* === 14. .is-navPanel-visible === */

body.is-navPanel-visible #wrapper {
  opacity: 0.5;
}

body.is-navPanel-visible #navPanel {
  box-shadow: 0 0 1.5rem 0 rgba(0, 0, 0, 0.2);
  transform: translateX(0);
  visibility: visible;
}

/* === 15. #main === */

#main {
  background-color: var(--color-white);
  margin: 0 auto;
  max-width: 72rem;
  position: relative;
  width: calc(100% - 4rem);
  z-index: 2;
}

#main > * {
  border-top: solid 2px var(--color-border);
  margin: 0;
  padding: 4rem 4rem 2rem 4rem;
}

#main > *:first-child {
  border-top: 0;
}

#main > footer {
  text-align: center;
}

/* === 16. .post === */

#main > .post {
  padding: 4rem 8rem 3rem 8rem;
}

/* === 17. .subnav === */

nav.subnav {
  border-top: solid 2px var(--color-border);
  margin: 2.5rem 0 0;
  padding: var(--space-md) 0 0;
}

nav.subnav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.subnav ul li {
  display: block;
  padding: 0;
}

nav.subnav ul li a {
  border-bottom: solid 2px transparent;
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15rem;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color var(--transition),
    border-bottom-color var(--transition);
}

nav.subnav ul li a:hover {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent);
}

/* === 18. is-preload — disable all animations/transitions on page load === */

body.is-preload *,
body.is-preload *::before,
body.is-preload *::after {
  animation: none !important;
  transition: none !important;
}

/* === Footer === */

#footer {
  background-color: #f5f5f5;
  color: #909498;
  cursor: default;
  display: flex;
  margin: 0 auto;
  max-width: 72rem;
  position: relative;
  width: calc(100% - 4rem);
  z-index: 2;
}

#footer a {
  color: #909498;
  border-bottom-color: rgba(144, 148, 152, 0.5);
}

#footer a:hover {
  border-bottom-color: transparent;
  color: var(--color-accent);
}

#footer h1,
#footer h2,
#footer h3,
#footer h4,
#footer h5,
#footer h6 {
  color: #717981;
}

#footer > section {
  border-left: solid 2px #e2e2e2;
  flex: 1 1 50%;
  padding: 4rem 4rem 2rem 4rem;
}

#footer > section:first-child {
  border-left: 0;
}

/* === Copyright === */

#copyright {
  color: rgba(255, 255, 255, 0.25);
  cursor: default;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  line-height: 1.5;
  margin: 4rem auto 8rem;
  max-width: 72rem;
  position: relative;
  text-align: center;
  text-transform: uppercase;
  width: calc(100% - 4rem);
  z-index: 2;
}

#copyright a {
  border-bottom-color: inherit;
  color: inherit;
}

#copyright ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

#copyright ul li {
  border-left: solid 2px rgba(255, 255, 255, 0.25);
  display: inline-block;
  line-height: 1;
  margin-left: var(--space-sm);
  padding-left: var(--space-sm);
}

#copyright ul li:first-child {
  border-left: 0;
  margin-left: 0;
  padding-left: 0;
}

/* === 19. Media queries === */

@media (max-width: 980px) {
  #header {
    height: 14rem;
    padding-bottom: 4rem;
  }

  #header .logo {
    display: inline-block;
  }

  #nav {
    display: none;
  }

  #navPanelToggle {
    display: block;
  }

  #navPanel {
    display: block;
  }

  .row > .col-12-medium {
    grid-column: span 12;
  }

  .row > .col-5 {
    grid-column: span 12;
  }

  table th {
    font-size: 0.9rem;
  }

  #footer {
    display: block;
  }

  #footer > section {
    border-left: 0;
    border-top: solid 2px #e2e2e2;
    padding: 2rem 2rem 0.1rem 2rem;
  }

  #footer > section:first-child {
    border-top: 0;
    padding: 4rem 4rem 2rem 4rem;
  }
}

@media (max-width: 736px) {
  #header {
    padding-bottom: var(--space-xl);
  }

  #header .logo {
    border-width: 3px;
    font-size: 1.75rem;
  }

  /* General sections */
  #main > * {
    padding: 2rem 2rem 0.1rem 2rem;
  }

  /* Post sections get more room */
  #main > .post {
    padding: 4rem 2rem 2rem 2rem;
  }

  nav.subnav ul {
    align-items: center;
    flex-direction: column;
    gap: 0.75rem;
  }

  #navPanel {
    padding: 2.5rem 1.75rem;
  }

  #navPanel .close {
    height: 4rem;
    line-height: 4rem;
  }

  #navPanelToggle {
    font-size: 0.8rem;
    padding: 0.25rem var(--space-sm);
  }

  p {
    text-align: left;
  }

  .field.half {
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  #main {
    width: 100%;
  }

  #footer {
    width: 100%;
  }

  #copyright {
    width: 100%;
  }

  #copyright ul li {
    border-left: 0;
    display: block;
    margin: var(--space-sm) 0 0 0;
    padding-left: 0;
  }

  #copyright ul li:first-child {
    margin-top: 0;
  }
}

p.testimonial {
  font-weight: bold;
  margin-left: 20px;
  margin-bottom: 40px;
}
