/* obiefernandez.com — hand-written CSS reproducing the Squarespace template
   (Adirondack-family). Key values taken from the live site's site.css:
   - Site title: Oswald 400, uppercase, 46px
   - Nav: Helvetica 14px uppercase, #9c9c9c, hover #000
   - Body: Helvetica 13px / 1.6, #222; links #0085bd
   - Header & page padding: 30px 35px; footer margin 100px 0 30px */

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6em;
  color: #222;
  background: #fff;
}

a {
  color: #0085bd;
  text-decoration: none;
}
a:hover { text-decoration: underline; }

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

p {
  margin: 0 0 1em;
  line-height: 1.6em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.4em;
  margin: 1em 0 .5em;
}
h1 { font-size: 18px; }
h2 { font-size: 14.4px; }
h3 { font-size: 12px; }

blockquote {
  margin: 1.5em 0;
  padding-left: 1.25em;
  border-left: 3px solid #ddd;
  color: #555;
}

hr { border: 0; border-top: 1px solid #e5e5e5; margin: 2em 0; }

/* ---------- Layout ---------- */
#canvas {
  max-width: 1100px;
  margin: 0 auto;
}

#header { padding: 30px 35px 10px; }

#page { padding: 30px 35px; }

#mainContent { max-width: 860px; }

/* ---------- Header ---------- */
#logo { margin-right: 30px; }

h1.logo {
  margin: 0;
  font-family: 'Oswald', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 46px;
  line-height: 1.2em;
  letter-spacing: 0;
  text-transform: uppercase;
  display: inline-block;
}
h1.logo a { color: #000; text-decoration: none; }

.site-tagline {
  margin: 0 0 .75em;
  font-size: 13px;
  color: #9c9c9c;
  letter-spacing: 1px;
  text-transform: lowercase;
}

/* ---------- Navigation ---------- */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > ul > li {
  display: inline-block;
  position: relative;
  margin: 0 30px 0 0;
}

.main-nav a {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #9c9c9c;
  text-decoration: none;
  display: inline-block;
  padding: 13.6px 0;
  cursor: pointer;
}
.main-nav a:hover { color: #000; text-decoration: none; }

.main-nav li.active-link > a { color: #000; position: relative; }
.main-nav li.active-link > a::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 8px;
  height: 1px;
  background-color: #aaa;
  width: 50%;
  left: 25%;
}

/* Dropdown folders: white panel centered on the nav item, caret pointing back at it */
.main-nav .folder .subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
  padding: 10px 25px;
  z-index: 888;
  text-align: center;
}
.main-nav .folder .subnav::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  margin-left: -6px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #fff;
}
.main-nav .folder:hover .subnav,
.main-nav .folder:focus-within .subnav { display: block; }

.main-nav .subnav li { display: block; }
.main-nav .subnav a {
  display: block;
  padding: 9px 0;
  white-space: nowrap;
  font-size: 13px;
  color: #666;
}
.main-nav .subnav a:hover { color: #000; }

/* ---------- Social icons ---------- */
.social-icons { margin: 6px 0; }

.social-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 12px;
  color: #b3b3b3;
  vertical-align: middle;
}
.social-icon:hover { color: #000; }
.social-icon svg { width: 100%; height: 100%; display: block; }

/* ---------- Footer ---------- */
#footer {
  margin: 100px 0 30px;
  padding: 0 35px;
}

/* ---------- Posts / blog ---------- */
.entry-title {
  margin-top: 0;
  font-size: 18px;
}
.entry-title a { color: #222; }
.entry-title a:hover { color: #0085bd; text-decoration: none; }

article .meta,
article .meta a { color: #aaa; font-size: 12px; }
article .meta a:hover { color: #000; text-decoration: none; }

.meta-row { margin: 1em 0; }

.categories-title,
.tags-title { color: #aaa; }

.post-footer { margin-top: 2em; }

.pagination {
  margin-top: 34px;
  overflow: hidden;
}
.pagination a { display: block; font-size: 13px; }
.pagination .newer-posts { float: left; }
.pagination .older-posts { float: right; text-align: right; }
.pagination .older-posts:only-child { float: right; }

/* Blog index */
.article-list article {
  margin-bottom: 3.5em;
  padding-bottom: 2.5em;
  border-bottom: 1px solid #eee;
}
.article-list article:last-child { border-bottom: 0; }

.article-list .excerpt { margin-top: .5em; }

.category-nav {
  margin: 0 0 2.5em;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.category-nav a {
  color: #9c9c9c;
  margin-right: 18px;
}
.category-nav a:hover,
.category-nav a.active { color: #000; text-decoration: none; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 1em;
}

.gallery-item {
  margin: 0;
  background: #000;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.gallery-item figcaption {
  font-size: 12px;
  color: #666;
  padding: 6px 2px;
  background: #fff;
}

/* Homepage gallery gets full-width treatment like the live slideshow */
.homepage #mainContent { max-width: none; }
.homepage .gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.homepage .gallery-item img { height: 320px; }

/* ---------- Embeds ---------- */
iframe { max-width: 100%; }

/* ---------- Responsive ---------- */
@media only screen and (max-width: 800px) {
  #header, #page { padding: 20px; }
  #footer { padding: 0 20px; margin-top: 60px; }
  h1.logo { font-size: 30px; }
  .main-nav > ul > li { margin-right: 18px; }
  .main-nav a { padding: 8px 0; }
}

@media only screen and (max-width: 640px) {
  .main-nav > ul > li { display: block; margin: 0; }
  .main-nav .folder .subnav {
    display: block;
    position: static;
    box-shadow: none;
    padding: 0 0 0 16px;
  }
  .main-nav a { padding: 6px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Full-bleed homepage slideshow (Squarespace gallery-style-fill, fade transition) */
.homepage #page { padding: 0; }
.slideshow {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 100vh;
  min-height: 420px;
  background: #000;
  overflow: hidden;
}
.slideshow-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.slideshow-slide.is-active { opacity: 1; }
.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slideshow-slide figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 12px 35px;
  color: #fff;
  font-size: 12px;
  letter-spacing: .5px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  width: 100%;
  box-sizing: border-box;
}
.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: rgba(255,255,255,.75);
  font-size: 48px;
  line-height: 1;
  padding: 20px 14px;
  cursor: pointer;
  transition: color .2s;
}
.slideshow-arrow:hover { color: #fff; }
.slideshow-prev { left: 6px; }
.slideshow-next { right: 6px; }
@media (max-width: 640px) {
  .slideshow { height: 60vh; min-height: 300px; }
  .slideshow-slide figcaption { padding: 10px 20px; }
}


/* Homepage: full-viewport slideshow with header overlaid at bottom (matches Squarespace) */
.homepage #canvas { max-width: none; }
.homepage .slideshow { margin: 0; position: fixed; inset: 0; height: 100vh; }
.homepage #header {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 40px 60px 35px;
  background: linear-gradient(transparent, rgba(0,0,0,.45));
}
.homepage #header .site-tagline { display: none; }
.homepage #header h1.logo { font-size: 40px; margin: 0; }
.homepage #header h1.logo a { color: #fff; }
.homepage #logo { margin-right: 40px; }
.homepage #topNav { flex: 1; }
.homepage .main-nav > ul { margin: 0; }
.homepage .main-nav a { color: rgba(255,255,255,.85); }
.homepage .main-nav a:hover,
.homepage .main-nav .active-link > a { color: #fff; }
.homepage .main-nav .active-link > a::after { background: #fff; }
.homepage .social-icons a { color: rgba(255,255,255,.85); }
.homepage .social-icons a:hover { color: #fff; }
.homepage .social-icons svg { fill: currentColor; }
.homepage .main-nav .folder .subnav { bottom: 100%; top: auto; }
.homepage .main-nav .folder .subnav::before {
  top: auto;
  bottom: -6px;
  border-bottom: none;
  border-top: 6px solid #fff;
}
.homepage .main-nav .subnav a { color: #666; }
.homepage .main-nav .subnav a:hover { color: #000; }
.homepage #footer { display: none; }
.homepage .slideshow-slide figcaption { display: none; }
@media (max-width: 800px) {
  .homepage #header { flex-wrap: wrap; padding: 20px; }
}
