/* Web Fonts */
/* Vollkorn from Google Fonts */
/* Adobe Fonts from Typekit - add your font family names below */

/* Accessibility - Skip link */
.skip-link {
  position: absolute;
  top: -100px; /* Hide completely off-screen */
  left: 6px;
  background: #173561;
  color: #fffdf1;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
  opacity: 0; /* Also hide with opacity */
  transition: all 0.2s ease;
}

.skip-link:focus {
  top: 6px; /* Bring into view when focused */
  opacity: 1;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Vollkorn', serif;
  font-size: 18px; /* Reduced from 21px */
  line-height: 1.4; /* 120-145% of point size */
  color: #173561;
  background-color: #fffdf1;
  margin: 0;
  padding: 0;
}

/* Focus styles for accessibility */
a:focus, button:focus {
  outline: 2px solid #FF7272;
  outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'itc-avant-garde-gothic-pro', sans-serif;
  font-weight: 300;
  line-height: 1.1; /* Tighter for headings */
  margin-top: 1.5em; /* Space above headings */
  margin-bottom: 0.5em; /* Less space below */
  margin-left: 0;
  padding-left: 0;
}

/* First heading has no top margin */
h1:first-child, h2:first-child, h3:first-child {
  margin-top: 0;
}

h1 {
  font-size: 2.2rem; /* Reverted back */
  margin-bottom: 0.75em;
}

h2 {
  font-size: 1.6rem; /* Reverted back */
  margin-bottom: 1.5rem; /* More space under H2s */
}

h3 {
  font-size: 1.3rem; /* Reverted back */
}

p {
  margin-bottom: 1.2em; /* Paragraph spacing */
  line-height: 1.4; /* Consistent with body */
  max-width: 42em; /* Wider line length for better reading */
}

/* Proper paragraph spacing after headings */
h1 + p, h2 + p, h3 + p {
  margin-top: 0;
}

/* Lists - proper typographical alignment */
ul, ol {
  margin-bottom: 1.2em;
  padding-left: 1.2em; /* Less aggressive indentation */
  max-width: 42em; /* Same line length as paragraphs */
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

li {
  margin-bottom: 0.3em; /* Breathing room between items */
  line-height: 1.4;
  font-size: 18px; /* Same as body text */
}

/* Nested lists */
li ul, li ol {
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}

/* Images - greyscale with background color blend */
img {
  filter: grayscale(100%);
  mix-blend-mode: multiply;
  opacity: 0.85;
  transition: all 0.3s ease;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 2rem auto; /* Center images with space below */
}

/* iframes - basic styling */
iframe {
  max-width: 100%;
  display: block;
  margin: 0 auto 2rem auto; /* Center iframes with space below */
}

/* Video wrapper for YouTube embeds - apply filters without breaking fullscreen */
.video-wrapper {
  filter: grayscale(100%);
  mix-blend-mode: multiply;
  opacity: 0.85;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto 2rem auto;
}

.video-wrapper:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.video-wrapper iframe {
  margin: 0; /* Remove margin from iframe inside wrapper */
}

/* Non-YouTube and non-Vimeo iframes (Bandcamp, etc.) get filters directly */
iframe:not([src*="youtube"]):not([src*="youtu.be"]):not([src*="vimeo"]) {
  filter: grayscale(100%);
  mix-blend-mode: multiply;
  opacity: 0.85;
  transition: all 0.3s ease;
}

/* Constrain image sizes for different contexts */
/* .site-image rules are defined in the site header section */

/* About page images - portrait photos etc */
.about-section img, 
main > img:first-child {
  max-width: 15rem; /* Smaller for about page */
  max-height: 20rem;
  object-fit: cover;
  border-radius: 2px; /* Subtle rounding */
}

img:hover, iframe:not([src*="youtube"]):not([src*="youtu.be"]):not([src*="vimeo"]):hover {
  filter: grayscale(25%);
  opacity: 1;
}

/* Override for navigation lists */
.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Links */
a {
  color: #173561; /* Default dark blue */
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #FF7272; /* Coral on hover */
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 42rem; /* Wider column for better reading experience */
  margin: 0 auto;
  padding: 3rem 1.5rem; /* More generous white space */
}

/* Site Navigation */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4rem; /* More breathing room */
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(23, 53, 97, 0.3);
}

.nav-home {
  font-family: 'itc-avant-garde-gothic-pro', sans-serif;
  font-weight: 700;
  font-size: 1.5rem; /* Boosted from 1.1rem */
  text-transform: uppercase;
  letter-spacing: 0.05em; /* Subtle letter spacing for caps */
  color: #FF7272;
  text-decoration: none;
}

.nav-home:hover {
  text-decoration: none; /* Clean hover state */
  opacity: 0.8;
}

.nav-about {
  font-family: 'itc-avant-garde-gothic-pro', sans-serif;
  font-weight: 300;
  font-size: 1.2rem; /* Boosted from 0.9rem */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #173561;
  text-decoration: none;
}

.nav-about:hover {
  text-decoration: none;
  opacity: 0.7;
}

/* Header */
.site-header {
  margin-bottom: 4rem; /* More space before projects */
}

.site-image {
  width: 100%;
  max-width: 100%; /* Allow hero image to fill available space */
  height: auto;
  margin: 0 0 2.5rem 0;
  display: block;
}

.site-description {
  font-size: 18px; /* Same as body text */
  line-height: 1.4; /* Same as body text */
  margin-bottom: 0;
  max-width: 32em; /* Shorter line length for intro text */
}

/* Project list */
.projects-section {
  margin-top: 3rem;
}

.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none; /* Override list width restriction */
}

.project-list li {
  margin-bottom: 0.8rem; /* More space between projects */
  line-height: 1.3;
}

.project-list a {
  display: inline;
  padding: 0;
  font-size: 18px; /* Match body text */
}

.project-date {
  color: #173561;
  opacity: 0.6; /* More subtle */
  font-size: 0.9rem; /* Slightly smaller */
}

/* Homepage project list - add margin to dates */
.project-list .project-date {
  margin-left: 0.5rem; /* Space between title and date on homepage */
}

/* Project page */
.project-header {
  margin-bottom: 2rem;
}

.project-title {
  margin-bottom: 0.5rem;
}

.project-meta {
  font-size: 0.9rem;
  color: #173561;
  opacity: 0.7;
  margin-bottom: 1rem;
  margin-left: 0;
  padding-left: 0;
}

.project-image {
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
  display: block;
}

.project-content img {
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  display: block;
}

/* YouTube embeds */
.project-content iframe {
  max-width: 100%;
  margin: 1rem 0;
}

/* More info button */
.more-info-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background-color: #173561;
  color: #fffdf1;
  text-decoration: none;
  font-family: 'itc-avant-garde-gothic-pro', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.more-info-button:hover {
  background-color: #FF7272;
  color: #fffdf1;
  text-decoration: none;
}

/* Navigation */
.back-link {
  display: inline-block;
  margin: 2rem auto;
  font-size: 0.9rem;
  margin-left: 0;
  padding-left: 0;
  background: none;
  border: none;
  color: #173561;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
  font-family: inherit;
}

.back-link:hover {
  color: #FF7272;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: 5rem; /* More generous white space */
  padding-top: 2.5rem;
  border-top: 1px solid rgba(23, 53, 97, 0.3);
  font-size: 0.85rem; /* Smaller, less prominent */
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-link {
  color: #173561;
  text-decoration: none;
  opacity: 0.7; /* Subtle presence */
}

.footer-link:hover {
  opacity: 1;
  text-decoration: none;
}

.footer-contact {
  color: #173561;
  text-decoration: none;
  opacity: 0.7;
}

.footer-contact:hover {
  opacity: 1;
  text-decoration: none;
}

/* About page */
.about-section {
  margin-bottom: 3rem;
}

/* Responsive design - mobile first */
@media (max-width: 40rem) {
  body {
    font-size: 16px; /* Smaller on mobile */
  }
  
  li {
    font-size: 16px; /* Match body text on mobile */
  }
  
  .nav-home {
    font-size: 1.3rem; /* Scale down nav on mobile */
  }
  
  .nav-about {
    font-size: 1rem;
  }
  
  .container {
    padding: 2rem 1rem; /* Less padding on mobile */
  }
  
  .site-nav {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
  }
}

@media (min-width: 40rem) {
  .container {
    padding: 4rem 2rem; /* More generous on larger screens */
  }
  
  .site-description {
    font-size: 1.2rem;
  }
}
