/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text);
  line-height: 1.5;
}

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

h1, h2 {
  margin-top: 0;
}

a {
  color: inherit;
}

/* ==========================================================================
   Custom properties
   ========================================================================== */

:root {
  --color-nav-bg: #B7C9E2;
  --color-panel-blue: #EEF2F8;
  --color-panel-gray: #F5F5F5;
  --color-text: #212529;
  --content-max-width: 1140px;
}

/* ==========================================================================
   Layout primitives (replace Bootstrap's container/row/col/btn/img-thumbnail)
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.container-fluid {
  width: 100%;
  padding: 0 1rem;
}

/* Card grids: portfolio + personal-interests thumbnails.
   auto-fit/minmax reflows continuously with viewport width instead of
   relying on fixed column-count breakpoints. */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem 2rem;
}

.grid-3 p {
  margin-top: 0.5rem;
}

/* Image-plus-text layout: bio section, each interests.html topic section */
.split-media-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.split-media-content > .media {
  flex: 1 1 260px;
  max-width: 100%;
}

.split-media-content > .content {
  flex: 2 1 400px;
  min-width: 0;
}

.split-media-content .content p,
.split-media-content .content ul li {
  color: var(--color-text);
  text-align: justify;
  font-family: "IBM Plex Sans", sans-serif;
}

/* Section heading strip (was: row > col-sm-12 with inline background) */
.panel-band {
  background-color: var(--color-panel-blue);
  padding: 0.5rem 1rem;
  margin-bottom: 25px;
}

.panel-band h2 {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--color-text);
  border-radius: 0.25rem;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 1.1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background-color: var(--color-text);
  color: #fff;
}

.img-thumbnail {
  max-width: 100%;
  height: auto;
  display: block;
  padding: 0.25rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}

/* Portrait-aspect thumbnails used for the interests-page topic images
   (replaces inline style="height:400px;width:600px" which both overflowed
   on narrow viewports and force-cropped these portrait-oriented photos
   into a landscape box) */
.interest-thumb {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  background-color: rgba(183, 201, 226, 0.9);
  padding: 0.75rem 1rem;
}

.nav-brand {
  display: inline-flex;
  line-height: 0;
}

.nav-brand img {
  width: 48px;
  height: 48px;
}

.nav-toggle {
  background: none;
  border: none;
  padding: 0.25rem;
  margin: 0;
  cursor: pointer;
  line-height: 0;
  color: var(--color-text);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.nav-menu {
  list-style: none;
  display: none;
  flex-direction: column;
  width: 100%;
  margin: 0.5rem 0 0;
  padding: 0;
  gap: 0.25rem;
}

.nav-menu.is-open {
  display: flex;
}

.nav-menu li {
  width: 100%;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0;
  color: #000;
  text-decoration: none;
}

.nav-menu a:hover {
  color: darkgray;
}

.nav-icon {
  display: inline-flex !important;
  align-items: center;
  padding: 0.25rem 0 !important;
}

.nav-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

/* ==========================================================================
   Hero (index.html only)
   ========================================================================== */

#background {
  position: relative;
  background-image: url("img/mountain-sm-two.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: var(--color-nav-bg);
  height: 70vh;
  min-height: 320px;
}

#name {
  position: absolute;
  left: 4%;
  bottom: 6%;
  width: 92%;
  background-color: rgba(255, 255, 255, 0.55);
  padding: 1rem 1.25rem;
}

#name h1 {
  text-align: left;
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  margin-bottom: 0.5rem;
}

#name .hero-tagline {
  margin: 0;
}

/* ==========================================================================
   Page sections
   ========================================================================== */

#biography,
#portfolio,
#resume,
#interests,
#social,
#geo,
#fishing,
#boxing,
#paranormal,
#books,
#coming-soon {
  margin-top: 50px;
}

#biography {
  margin-bottom: 25px;
}

#resume {
  text-align: center;
  outline: 5px solid var(--color-nav-bg);
  padding: 25px;
  background-color: var(--color-panel-gray);
}

#resume p {
  color: var(--color-text);
  font-family: "IBM Plex Sans", sans-serif;
  margin: 25px 0;
}

#interests {
  margin-bottom: 50px;
}

#coming-soon {
  text-align: center;
  color: var(--color-text);
  font-family: "IBM Plex Sans", sans-serif;
  margin-bottom: 25px;
}

#copyright {
  margin-top: 50px;
  text-align: center;
  outline: 5px solid var(--color-nav-bg);
  padding: 25px;
  background-color: var(--color-panel-gray);
}

/* ==========================================================================
   Mobile-first breakpoints
   ========================================================================== */

@media (min-width: 480px) {
  #name {
    left: 2%;
    width: 70%;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    width: auto;
    margin: 0;
    gap: 1.75rem;
  }

  .nav-menu li {
    width: auto;
  }
}

@media (min-width: 1024px) {
  #background {
    background-image: url("img/mountain.jpg");
    height: 100vh;
  }

  #name {
    width: 50%;
    left: 4%;
  }
}
