/*
Theme Name: vgcom26
Theme URI: https://vincentgonzalez.com
Author: Vincent Gonzalez
Author URI: https://vincentgonzalez.com
Tags: accessibility-ready, one-column, two-columns, custom-menu, featured-images, microformats, sticky-post, threaded-comments, translation-ready
Version: 2026.1
Requires at least: 5.2
Tested up to: 7.0.3
Requires PHP: 7.4
License: GNU General Public License v3 or Later
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: vgcom26

vgcom26 WordPress Theme 2011-2026
vgcom26 is distributed under the terms of the GNU GPL
*/

@import './css/sanitize/sanitize.css';
@import './css/sanitize/typography.css';

/* Accessibility utilities

   The theme used these — on the skip link and inside the "read more" links —
   without ever defining them, and got away with it because core's
   wp-block-library stylesheet happens to declare .screen-reader-text. That is
   someone else's stylesheet: dequeue it, or let core split block assets, and
   "Skip to the content" becomes a visible link at the top of every page while
   the read-more spans start printing post titles inline. style.css claims
   accessibility-ready in its tags, so the theme owns the rule. */

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* The skip link is the one that has to come back. A skip link nobody can see
   once they have tabbed to it is not a skip link. Everything hidden above is
   undone, so the anchor sits over the header at the top of the page. */
.skip-link:focus {
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  overflow: visible;
  top: var(--wp--preset--spacing--20);
  left: var(--wp--preset--spacing--20);
  z-index: 100000;
  padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--60);
  background-color: var(--wp--preset--color--base);
  color: var(--wp--preset--color--primary);
  font-weight: 600;
  text-decoration: underline;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

#wrapper {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#wrapper #container {
  flex: 1;
}

/* Header */
#header{
  display: flex;
  flex-direction: column;
  padding: var(--wp--preset--spacing--60);
  gap: var(--wp--preset--spacing--30);
}

#header .wp-block-site-title {
  margin-bottom: var(--wp--preset--spacing--20);
}

.home #header .wp-block-site-title {
  font-size: 3rem;
}

@media (max-width: 1024px) {
  .home #header .wp-block-site-title {
    font-size: 2rem;
  }
}

#header .wp-block-site-title a {
  text-decoration: none;
  color: inherit;
}

#header .wp-block-site-tagline {
  font-weight: 200;
  margin: 0;
}

.menu {
  display: flex;
  justify-content: space-between;
  margin: 0;
}

.menu li a {
  display: block;
  padding: var(--wp--preset--spacing--20) 0;
}

.menu li.current-menu-item {
  font-weight: 600;
  text-transform: uppercase;
}

/* Post */
.entry-header {
  padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60) 0;
}

.entry-content {
  display: grid;
  grid-template-columns:
    [full-start] var(--wp--preset--spacing--60)
    [content-start] minmax(0, var(--wp--style--global--content-size, 40rem)) [content-end]
    1fr [full-end];
  padding-inline: 0;
}
.entry-content > *          { grid-column: content; }
.entry-content > .alignfull { grid-column: full; }

.entry-content > .wp-block-separator {
  margin-left: 0;
  max-width: 20px;
}

.entry-content a {
  font-weight: 600;
}

.entry-title {
  font-size: 1.5rem;
  margin-block: 0;
}

.entry-title a {
  text-decoration: none;
}

#header a {
  text-decoration: none;
  color: inherit;
}

#header a:hover {
  text-decoration: underline;
}

.entry-meta {
  font-size: 0.875rem;
  margin: 0;
  gap: 0;
}

.entry-meta a {
  text-decoration: none;
  color: inherit;
  font-weight: inherit;
}

.entry-summary {
  max-width: 60ch;
  padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--60) var(--wp--preset--spacing--60);
  margin: 0;
  text-wrap: pretty;
}

.entry-footer {
  font-size: 0.875rem;
  margin-inline: var(--wp--preset--spacing--60);
  padding-block: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
  display: flex;
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .entry-featured-image {
    padding-inline: var(--wp--preset--spacing--60);
    
  }
  .entry-featured-image .wp-post-image {
    border-radius: 0.125rem;
    max-height: 94vh;
    width: auto;
    margin-inline: auto;
  }

  .feed .wp-block-post {
    display: grid;
    grid-template-columns: min(75%, 1024px) 1fr;
    grid-template-areas:
      "media header"
      "media summary";
    margin-block: var(--wp--preset--spacing--70);
  }

  .feed .entry-featured-image { grid-area: media;   align-self: center; }
  .feed .entry-header         { grid-area: header;  align-self: end; }
  .feed .entry-summary        { grid-area: summary; align-self: start; }
}

.feed .wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed .wp-block-post-featured-image {
  margin: 0;
}


/* Sidebar */
#sidebar {
  padding: var(--wp--preset--spacing--60);
}

#sidebar ul {
  display: flex;
  justify-content: space-between;
  max-width: 1024px;
  margin: 0 auto;
}

/* Wordpress Stuff */
.wp-block-search__label {
  font-weight: 600;
}

/* Post Navigation */
.post-navigation .nav-links,
.posts-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  padding: var(--wp--preset--spacing--60);
}

.post-navigation .nav-links a,
.posts-navigation .nav-links a {
  text-decoration: none;
  font-weight: 600;
}

/* Footer */

#footer {
  font-size: 0.875rem;
  padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60);
}

/* Visuals */
.visuals-filter {
  padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
  padding-inline: var(--wp--preset--spacing--60);
}

.visuals-filter ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--50);
  list-style: none;
  margin: 0;
  padding: 0;
}

.visuals-filter-link {
  text-decoration: none;
}

.visuals-filter-link:hover,
.visuals-filter-link:focus-visible {
  text-decoration: underline;
}

.visuals-filter-link.is-current {
  font-weight: 700;
  position: relative;
}

.visuals-filter-link.is-current::before {
  content: '♞';
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  color: var(--wp--preset--color--secondary);
}

.visuals.is-loading {
  opacity: 0.5;
  transition: opacity 150ms ease;
}

.visuals {
  display: grid;
  display: grid-lanes;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--wp--preset--spacing--40);
  padding-inline: var(--wp--preset--spacing--60);
  grid-template-rows: masonry;
}

.visuals img {
  display: block;
  height: auto;
  max-width: 100%;
  border-radius: 0.125rem;
}

.visuals article:focus {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.visuals-more {
  padding-block: var(--wp--preset--spacing--70);
  text-align: center;
}

.visuals-status {
  font-size: 0.875rem;
  margin-block-start: var(--wp--preset--spacing--40);
  min-height: 1.25em;
}

.btn {
  cursor: pointer;
  display: inline-block;
}

.btn[aria-busy="true"] {
  cursor: progress;
  opacity: 0.6;
}

.pagination {
  display: flex;
  gap: var(--wp--preset--spacing--40);
  padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
}

.wp-post-image {
  display: block;
  height: auto;
  max-width: 100%;
}

.wp-block-list li {
  margin-block-start: var(--wp--preset--spacing--20);
  margin-block-end: var(--wp--preset--spacing--20);
  list-style-type: disc;
}

.wp-block-image {
  max-width: none;
}

.is-style-normalize {
  font-family: var(--wp--preset--font-family--system);
  font-size: inherit;
}


#container:has(.not-found) {
  align-content: center;
  text-align: center;
  padding: 0 var(--wp--preset--spacing--60);
}

.not-found .entry-content {
  display: block;
}
