:root {
	--primary: #2e51ed;
	--secondary: white;
	--background: #f1f1f1;
	font-size: 1.2rem;
	-webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
	-webkit-tap-highlight-color: transparent;
	-webkit-text-size-adjust: 100%;
	   -moz-text-size-adjust: 100%;
	    -ms-text-size-adjust: 100%;
	        text-size-adjust: 100%;
}

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

body {
	padding: 0;
	margin: 0;
	font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
	line-height: 1.65;
}

body {
	display: grid;
	height: 100vh;
	grid-template-rows: auto 1fr auto;
	background-color: var(--background);
}

h1,h2,h3,h4,h5 {
	line-height: 1.25;
}

a[href],
a[href]:visited {
	color: var(--primary);
}

a[href]:not(:hover) {
	text-decoration: none;
}

img {
	max-width: 100%;
	height: auto;
}

.hero {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 2rem 0;
}

.hero-headshot {
	width: 7rem;
	height: 7rem;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid rgba(46, 81, 237, 0.18);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	flex-shrink: 0;
}

.hero-copy {
	max-width: 42rem;
}

@media (max-width: 720px) {
	.hero {
		flex-direction: column;
		text-align: center;
	}

	.hero-copy {
		width: 100%;
	}
}

body > * {
	padding: 1em;
}

pre {
	font-size: 14px;
	direction: ltr;
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	-moz-tab-size: 2;
	-o-tab-size: 2;
	   tab-size: 2;
	-webkit-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
	padding: 1em;
	margin: .5em 0;
}

/* Header Logo (style as h2) */
header > em {
	display: block;
	margin: .67em 0;
	font-weight: bold;
	font-style: normal;
}

/* Header Nav */
header nav ul {
	padding: 0;
	list-style: none;
}

header nav li {
	display: inline-block;
	margin: 0 1rem 0.25rem 0;
}

a[href][data-current="active"] {
	text-decoration: underline;
}

/* Posts List */
/* Target the article to remove extra spacing between items */
article {
  margin-bottom: 1.5rem; /* Space between different posts */
}

/* Remove default heading margins and control the spacing */
article h3 {
  margin: 0;              /* Removes the default space around the h3 */
  line-height: 1.2;       /* Keeps the title tight */
  font-size: 1.25rem;     /* Adjust to your preference */
}

/* Style the date metadata */
article time small {
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.02rem;
}



/* Post Tags */
a[rel="tag"] {
	text-transform: capitalize;
}
	

/* Contact Form */
form {
  display: grid;
	padding: 2em 0;
}

form label {
  display: none;
}

input,
textarea,
button {
  width: 100%;
  padding: 1em;
  margin-bottom: 1em;
	font-size: 1rem;
}

input,
textarea {
	border: 1px solid black;
}

button {
	border: 1px solid var(--primary);
	background-color: var(--primary);
	color: var(--secondary);
	cursor: pointer;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
}

.hero-headshot {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(46, 81, 237, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.hero-copy {
  max-width: 42rem;
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-copy {
    width: 100%;
  }
}

.footer-centered {
  text-align: center;
}