/*
 Theme Name:   Hamilton Child
 Theme URI:    https://gabrielsenn.com/
 Description:  Child theme for Hamilton 2.1.2
 Author:       Gabriel Senn
 Author URI:   https://gabrielsenn.com/
 Template:     hamilton
 Version:      1.0.0
 Text Domain:  hamilton-child
*/

body, html {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 18px;
}

/* ——————————————————————— */
/* Make Gabriel Senn grey */
.site-header .site-title a {
	color: rgba(0, 0, 0, 0.55);
}


/* ——————————————————————— */
/* 1. Space between site title and post title – move both title and menu up together */
.site-header {
	padding: 60px 0; /* was 100px top and bottom; reduced to ~80% */
}

/* ——————————————————————— */
/* 2. Space between post title and post meta ("In…") */
.page-header h1.entry-title {
	margin-bottom: 0; /* was ~30px */
}

/* ——————————————————————— */
/* 3. Space between post meta and first content block */
.page-header {
	margin-bottom: 0 !important;
	padding-bottom: 40px !important; /* optional: control spacing without affecting layout flow */
}

/* Shift navigation overlay up to cover reduced header space */
.site-nav {
	margin-top: 150px; /* was 222px; reduce to match new .site-header height */
}

/* ——————————————————————— */
/* Reduce font size of "Theme by Anders Norén" in footer */
.site-footer p.theme-by {
	font-size: 14px;
}



/* Reduce space between content and footer */
.site-footer {
	padding: 50px 0;
}


/* ----- Override Hamilton's .section-inner.thin for single posts ----- */
.entry-content.section-inner.thin {
  /* whatever width you prefer: e.g., 800px or 70% or similar */
  max-width: 700px;
  /* optional: ensure it still centers nicely */
  width: 100%;
}



/* ----- Override Hamilton's <a> underline on the body ----- */
.entry-content a {
  text-decoration: none;
  border-bottom: none;
  background-image: repeating-linear-gradient(
    to right,
    rgba(0, 0, 0, 0.7) 0px,
    rgba(0, 0, 0, 0.7) 1px,
    transparent 1px,
    transparent 3px
  );
  background-repeat: repeat-x;
  background-position: 0 1.2em; /* vertical offset */
  background-size: auto 1px;
  padding-bottom: 2px;
}

.entry-content a:hover {
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 238, 0, 1) 0px,
    rgba(255, 143, 0, 1) 2px,
    transparent 1px,
    transparent 3px
  );
}


/* ----- Make overlays on images blur and blend ----- */
.preview-image:after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    backdrop-filter: blur(2px);
    
    background:
      linear-gradient(to bottom, white 0%, rgba(255,255,255,0) 8%, rgba(255,255,255,0) 92%, white 100%),
      linear-gradient(to right, white 0%, rgba(255,255,255,0) 8%, rgba(255,255,255,0) 92%, white 100%),
      rgba(43, 41, 36, 0.7);
    
    background-blend-mode: lighten; /* blends layers nicely */
}

.post-preview:hover .preview-image:after,
.show-preview-titles .post-preview .preview-image:after {
    opacity: 1;
}


/* ----- Make text in preview thumbnail narrower ----- */
.post-preview header {
    padding: 5% 10%; /* top/bottom: 5%, left/right: 10% */
}

/* ----- Change default flag icons ----- */

img[src*="en_CA.png"] {
  content: url("/gsc-content/themes/hamilton-child/custom-flags/en_CA.png") !important;
}

img[src*="fr_CA.png"] {
  content: url("/gsc-content/themes/hamilton-child/custom-flags/fr_CA.png") !important;
}


/* ----- Next? ----- */
