/* ==========================================
   Modern Editorial Dark Theme - jongauer.com
   ========================================== */

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

body {
  margin: 0;
  padding: 4rem 1.5rem 6rem 1.5rem;
  background-color: #09090b;
  color: #d4d4d8;
  font-family: Charter, "Bitstream Charter", Cambria, Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* Structural Components & Global Centering */
header, main, footer {
  width: 100%;
  max-width: 720px;
  text-align: center;
}

main {
  flex: 1;
}

section {
  margin-bottom: 4rem;
}

/* Header & Navigation */
header nav h1 {
  font-family: "Cinzel", "Playfair Display", Georgia, serif;
  font-size: 2.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fafafa;
  margin: 0 0 1.5rem 0;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 3.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem 1.25rem;
  flex-wrap: wrap;
}

nav ul li a {
  font-family: "Cinzel", "Playfair Display", Georgia, serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

nav ul li a:hover,
nav ul li a.active {
  color: #fafafa;
  border-bottom: 1px solid #fafafa;
  padding-bottom: 2px;
}

/* Headings */
h2, h3, h4, h5, h6 {
  color: #fafafa;
  font-family: "Cinzel", "Playfair Display", Georgia, serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.3;
}

h2 {
  font-size: 1.4rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
  display: inline-block;
}

h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* ==========================================
   Service Cards & Content Box Styling
   ========================================== */

.service-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 2rem;
  margin: 0.75rem 0 2.5rem 0;
  text-align: left;
}

/* More concise margins/padding for the Education box */
#education .service-card {
  padding: 1.25rem 2rem;
  margin: 0.5rem 0 1.5rem 0;
}

#education .service-card ul {
  margin: 0.25rem 0;
}

/* Center all headings inside any content box */
.service-card h2,
.service-card h4,
.service-card h5,
.service-card h6 {
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Center and constrain sub-heading widths so they wrap evenly on multiple lines */
.service-card h3 {
  text-align: center;
  display: block;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* Ensure the very first h3 inside a card has proper spacing */
.service-card > h3:first-child {
  margin-top: 0.5rem;
}

/* Center action buttons inside any content box */
.service-card .button {
  display: table;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Resume and service list formatting with concise vertical spacing */
.service-card ul, 
.service-card ol {
  text-align: left;
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.service-card li {
  text-align: left;
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

/* Nested sub-lists styling with slightly increased indent */
.service-card ul ul {
  padding-left: 2rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

/* Media Containers */
.media-container {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2.5rem 1rem;
  margin: 1.5rem 0;
  text-align: center;
}

.media-placeholder {
  margin: 0;
  font-size: 0.9rem;
  color: #71717a;
  font-family: monospace;
}

/* Responsive Media Embeds (YouTube, Vimeo, Images) */
img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 4px;
}

/* Testimonials / Blockquotes */
blockquote {
  margin: 2.5rem 0;
  font-style: italic;
  color: #f4f4f5;
  line-height: 1.8;
}

blockquote strong {
  display: block;
  font-style: normal;
  font-family: "Cinzel", "Playfair Display", Georgia, serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a1a1aa;
  margin-top: 0.75rem;
}

/* Links & Buttons */
a {
  color: #f4f4f5;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

.button {
  display: inline-block;
  background-color: #fafafa;
  color: #09090b;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: "Cinzel", "Playfair Display", Georgia, serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.5rem;
  transition: background-color 0.2s ease;
}

.button:hover {
  background-color: #d4d4d8;
  opacity: 1;
}

/* Footer */
footer {
  font-size: 0.85rem;
  color: #71717a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  margin-top: 4rem;
}
