:root {
	--bg: #1D1D1D;     /* background */
	--fg: #FFD943;     /* text */
	--link: var(--fg); /* links same as text */
}

:root {
	--space-1: clamp(8px, 1.8vw, 12px);
	--space-2: clamp(12px, 2.4vw, 16px);
	--space-3: clamp(16px, 3vw, 24px);
	--space-4: clamp(20px, 4vw, 32px);
  
	--radius-2: 12px;
  
	/* fluid type */
	--fs-300: clamp(14px, 1.6vw, 16px);
	--fs-400: clamp(16px, 1.9vw, 18px);
	--fs-500: clamp(18px, 2.4vw, 22px);
	--fs-600: clamp(22px, 3.5vw, 32px);
}

:root {
	font-family: "Playfair Display", serif;
	font-optical-sizing: auto;
	line-height: 1.6;
	background-color: var(--bg);
	color: var(--fg);
	font-size: var(--fs-400);
}

html, body { 
	overscroll-behavior-y: none; 
}

@media (prefers-reduced-motion: reduce) {
	:root { transition: none; }
	a { transition: none; }
}


body {
	margin: 0;
	padding: 0;
	display: grid;                 /* why: simpler vertical stacking */
	grid-template-rows: auto 1fr auto;
	min-height: 100svh;            /* mobile safe viewport */
	background-color: var(--bg);
}

header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: var(--bg);
	border-bottom: 3px solid currentColor;
}

nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-2);
	flex-wrap: wrap;                 /* allow wrap on narrow screens */
	overflow-x: auto;                /* warning: enables horizontal scroll if too many items */
	-webkit-overflow-scrolling: touch;
}

/* Tap targets big enough on mobile */
nav a {
	text-decoration: none;
	color: var(--link);
	font-weight: 700;
	font-size: clamp(16px, 5vw, 20px);
	line-height: 1;
	padding: 10px 6px;               /* ~44px min height with line height */
	white-space: nowrap;
}

.home {
	display: grid;
	place-items: center;
	gap: var(--space-3);
	padding: var(--space-3);
	text-align: center;
}

#profile-pic {
	width: min(60vw, 220px);
	height: auto;
	border-radius: 50%;
	margin-bottom: var(--space-3);
	object-fit: cover;
	display: block;
}

.intro p,
.page-content {
  max-width: 68ch;                 /* readable line-length */
  margin: 0 auto;
  padding-inline: var(--space-2);
  font-size: var(--fs-400);
}

.page-content {
	padding-block: var(--space-3);
}
  
.page-content h1 {
	margin-top: 0;
	font-size: var(--fs-600);
}
  
.page-content p {
	 margin-bottom: var(--space-2);
}

footer {
	background-color: var(--bg);
	border-top: 3px solid currentColor;
	padding: var(--space-2) 0;
	display: flex;
	justify-content: center;
}

/* Mobile: footer in normal flow */
footer {
	position: static;
}

/* Desktop: fixed footer if you really want it */
@media (min-width: 1000px) {
	footer {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
	}
}

/* Footer nav uses same responsive rules */
footer nav {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: clamp(12px, 4vw, 40px);
	padding: 12px 16px;
	font-weight: bold;
}

footer nav a {
	text-decoration: none;
	line-height: 1;
	padding: 6px 2px;
	font-size: var(--fs-400);
}

@media (max-width: 420px) {
	footer nav {
		gap: 20px;
		padding: 14px 18px;
	}
	footer nav a {
		font-size: 1rem;
	}
}

@media (min-width: 700px) {
	nav {
	  gap: var(--space-3);
	  flex-wrap: nowrap;
	}
	nav a {
	  font-size: 20px;
	  padding: 12px 8px;
	}
}

.social-links a {
  margin: 0 0.5rem;
  display: inline-flex;
  width: 24px;
  height: 24px;
  text-decoration: none;
}

.social-links svg {
  width: 100%;
  height: 100%;
  fill: #333;
}

.social-links a:hover svg {
  fill: #007BFF;
}

.page-content {
  flex: 1;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 100px;
}

.page-content h1 {
  margin-top: 0;
}

.page-content p {
  margin-bottom: 1rem;
}

.quotes-list {
  list-style: none;
  padding-left: 0;
}

.quotes-list li {
  margin-bottom: 1rem;
}

.quote_section {
	margin-top: 50px;
}

.quote_title {
	font-weight: bold;
	font-size: 20px;
}

a {
	color: var(--link); 
}