/*
Theme Name: Maya Talk
Theme URI: https://blog.mayaescobar.com
Author: Casa Blue
Author URI: https://casablue.com
Description: A quiet editorial theme for blog.mayaescobar.com, built to match mayaescobar.com. Fixed wordmark bar, full-bleed hero, a second menu for blog sections, and a single reading column. Proxima Nova via Adobe Fonts.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mayatalk
Tags: blog, one-column, custom-menu, custom-header, featured-images, translation-ready, accessibility-ready
*/

/* ==========================================================================
   Tokens — measured from mayaescobar.webflow.io
   ========================================================================== */

:root {
  --ink:       #222;      /* headings, body copy, active nav */
  --wordmark:  #2e2e2e;
  --muted:     #6f6f6f;   /* nav links, tagline, meta */
  --rule:      #eee;
  --rule-2:    #e8e8e8;
  --bg:        #fff;
  --nav-h:     102px;     /* .nav-bar */
  --nav-h-s:   72px;
  --gutter:    35px;      /* .nav-inner */
  --gutter-s:  20px;
  --measure:   740px;     /* reading column when there is no sidebar */
  --wide:      1040px;    /* content canvas, footer */
  --rail:      286px;     /* sidebar */
  --gap:       74px;      /* reading column to sidebar */
  --font:      proxima-nova, "Proxima Nova", Arial, Helvetica, sans-serif;
}

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

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

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

body {
  margin: 0;
  padding-top: var(--nav-h);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; border: 0; }

a { color: var(--ink); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.25em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

p { margin: 0 0 1.1em; }

/* Visible focus. Never remove this without replacing it. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed !important;
  top: 8px; left: 8px;
  z-index: 9999;
  width: auto; height: auto;
  clip: auto; clip-path: none;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   Nav bar — .nav-bar / .nav-inner / .nav-link
   ========================================================================== */

.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 8000;
  height: var(--nav-h);
  background: var(--bg);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--gutter);
}

.nav-brand { display: flex; flex-flow: column; align-items: flex-start; }

.wordmark {
  color: var(--wordmark);
  font-size: 28px;
  font-weight: 400;
  line-height: 1em;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
}

.nav-tagline {
  color: var(--muted);
  font-size: 15px;
  line-height: 1em;
  margin-top: 0.75em;
}

.nav-menu { display: flex; align-items: center; }
.nav-menu ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-menu li { margin: 0; }

.nav-link {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  line-height: 2em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 1.5em;
  padding: 0 0 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.nav-menu li:last-child .nav-link { margin-right: 0; }

.nav-link:hover,
.nav-link:focus,
.nav-link[aria-current],
.current-menu-item > .nav-link,
.current_page_item > .nav-link {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
}
.nav-toggle:hover { color: var(--ink); }
.nav-toggle span {
  display: block;
  width: 22px; height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

/* Sized by aspect ratio, not a fixed height, so the whole image is always
   visible. header.php passes the image's real ratio in --hero-ar; the default
   below only applies if WordPress can't report the dimensions. A fixed height
   would crop a wide header badly on a phone. max-height stops an unusually
   tall image from eating the screen. */
.hero {
  width: 100%;
  aspect-ratio: var(--hero-ar, 1998 / 699);
  max-height: 70vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #f4f4f4;
}

/* ==========================================================================
   Layout — reading column left, sidebar right, on a 1040px canvas
   ========================================================================== */

.site-content {
  display: flex;
  align-items: flex-start;
  gap: 0 var(--gap);
  max-width: var(--wide);
  margin: 0 auto;
  padding: 5em var(--gutter) 0;
}

.content-area { flex: 1 1 auto; min-width: 0; }

.widget-area {
  flex: 0 0 var(--rail);
  width: var(--rail);
}

/* No widgets: the reading column centres itself instead of hugging the left. */
.no-sidebar .content-area { max-width: var(--measure); margin: 0 auto; }

.page-heading {
  margin: 0 0 3em;
  padding: 0 0 1.4em;
  border-bottom: 1px solid var(--rule);
}
.page-heading__title {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.page-heading__meta { color: var(--muted); font-size: 14px; margin: 0.6em 0 0; }

/* ==========================================================================
   Posts
   ========================================================================== */

.post-item {
  margin: 0 0 4.5em;
  padding: 0 0 4.5em;
  border-bottom: 1px solid var(--rule-2);
}
/* :last-of-type, not :last-child — the pagination is a sibling, so :last-child
   never matches and the final post keeps a rule that doubles up with the
   pagination's own top border. */
.post-item:last-of-type { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

.entry-header { margin-bottom: 1.4em; }

.entry-title {
  font-size: 42px;
  font-weight: 300;
  line-height: 1.2em;
  margin: 0 0 0.4em;
}
.entry-title a { color: var(--ink); transition: color 0.25s; }
.entry-title a:hover, .entry-title a:focus { color: var(--muted); }

.entry-meta {
  font-size: 12px;
  line-height: 1.6em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.entry-meta a { color: var(--muted); transition: color 0.25s; }
.entry-meta a:hover, .entry-meta a:focus { color: var(--ink); }
.entry-meta .sep { margin: 0 0.4em; }

.entry-thumb { display: block; margin: 0 0 1.6em; }
.entry-thumb img { display: block; width: 100%; }

.entry-content { color: var(--ink); font-size: 15px; line-height: 1.6em; }

.entry-content h1 { font-size: 32px; margin: 1.8em 0 0.6em; }
.entry-content h2 { font-size: 26px; margin: 1.8em 0 0.6em; }
.entry-content h3 { font-size: 20px; margin: 1.8em 0 0.6em; }
.entry-content h4 { font-size: 17px; margin: 1.8em 0 0.6em; }

/* .project-body a — solid underline, greys out on hover */
.entry-content a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: border-color 0.25s, color 0.25s;
}
.entry-content a:hover,
.entry-content a:focus { color: var(--muted); border-bottom-color: var(--muted); }

/* Links wrapping media never get a rule */
.entry-content a:has(img),
.entry-content a:has(figure),
.entry-content .wp-block-image a,
.entry-content .gallery a { border-bottom: 0; }

.entry-content ul, .entry-content ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.entry-content li { margin: 0 0 0.4em; }

.entry-content blockquote {
  font-size: 24px;
  line-height: 1.4em;
  color: var(--ink);
  border: 0;
  margin: 1.6em 0;
  padding: 0;
}
.entry-content blockquote p { font-size: inherit; line-height: inherit; }
.entry-content blockquote cite {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
  margin-top: 1em;
}

.entry-content figure { margin: 2em 0; }
.entry-content figcaption,
.entry-content .wp-caption-text {
  font-size: 13px;
  line-height: 1.5em;
  color: var(--muted);
  margin-top: 0.7em;
}

.entry-content hr,
.entry-content .wp-block-separator {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3em 0;
}

.entry-content pre {
  overflow-x: auto;
  background: #fafafa;
  border: 1px solid var(--rule);
  padding: 1.2em;
  font-size: 13px;
  line-height: 1.5em;
}
.entry-content code { font-size: 13px; }

.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: 14px; }
.entry-content th, .entry-content td { text-align: left; padding: 0.7em 0.8em; border-bottom: 1px solid var(--rule); }
.entry-content th { font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }

/* Alignments */
.alignleft  { float: left;  margin: 0.3em 1.6em 1.2em 0; }
.alignright { float: right; margin: 0.3em 0 1.2em 1.6em; }
.aligncenter { display: block; margin: 2em auto; }
.alignwide, .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.alignfull img { width: 100%; }

/* Read more. Needs to out-specify `.entry-content a`, which would otherwise
   give it a permanent solid underline. */
.entry-content .more-link,
.more-link {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}
.entry-content .more-link:hover, .entry-content .more-link:focus,
.more-link:hover, .more-link:focus { color: var(--ink); border-bottom-color: var(--ink); }

/* Tags / categories under a single post */
.entry-footer {
  margin-top: 2.5em;
  padding-top: 1.6em;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.entry-footer a { color: var(--muted); border-bottom: 1px solid transparent; transition: border-color 0.25s, color 0.25s; }
.entry-footer a:hover, .entry-footer a:focus { color: var(--ink); border-bottom-color: var(--ink); }
.entry-footer__row { margin: 0 0 0.5em; }

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
  margin: 4em 0 0;
  padding-top: 2em;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 1.2em; align-items: center; }
.pagination a, .pagination .current {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}
.pagination a:hover, .pagination a:focus { color: var(--ink); border-bottom-color: var(--ink); }
.pagination .current { color: var(--ink); border-bottom-color: var(--ink); }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 2em;
  margin: 4em 0 0;
  padding-top: 2em;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post-nav a { color: var(--muted); transition: color 0.25s; }
.post-nav a:hover, .post-nav a:focus { color: var(--ink); }

/* ==========================================================================
   Search form
   ========================================================================== */

.search-form { display: flex; }
.search-field {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 0;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
}
.search-submit {
  height: 44px;
  padding: 0 20px;
  margin-left: -1px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
}
.search-submit:hover, .search-submit:focus { background: var(--muted); border-color: var(--muted); }

/* ==========================================================================
   Sidebar — the blog's own nav lives here
   ========================================================================== */

.widget-area .widget { margin: 0 0 3em; font-size: 14px; line-height: 1.6em; }
.widget-area .widget:last-child { margin-bottom: 0; }

/* .widget-title is what classic widgets emit. The block widget editor emits a
   plain heading inside .widget_block instead, so both are styled the same. */
.widget-area .widget-title,
.widget-area .widget_block > h2,
.widget-area .widget_block > h3,
.widget-area .widget > .wp-block-heading:first-child {
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1.2em;
  padding: 0 0 0.6em;
  border-bottom: 1px solid var(--rule);
}

.widget-area .widget ul { list-style: none; margin: 0; padding: 0; }
.widget-area .widget li { margin: 0 0 0.85em; line-height: 1.4em; }
.widget-area .widget li:last-child { margin-bottom: 0; }
.widget-area .widget ul ul { margin: 0.85em 0 0 1em; }

.widget-area .widget a {
  display: inline-block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4em;
  letter-spacing: 0.05em;
  padding: 0 0 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}
.widget-area .widget a:hover,
.widget-area .widget a:focus,
.widget-area .widget .current-menu-item > a,
.widget-area .widget .current-cat > a {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Search in the rail: the button would crowd it, so Enter submits.
   Covers the classic Search widget and the Search block. */
.widget-area .search-form,
.widget-area .wp-block-search__inside-wrapper { display: block; }
.widget-area .search-field,
.widget-area .wp-block-search__input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
}
.widget-area .search-submit,
.widget-area .wp-block-search__button { display: none; }

/* Block widgets bring their own margins and list bullets. */
.widget-area .widget_block ul,
.widget-area .wp-block-list { list-style: none; margin: 0; padding: 0; }
.widget-area .widget_block p:last-child { margin-bottom: 0; }
.widget-area .wp-block-page-list,
.widget-area .wp-block-categories { list-style: none; margin: 0; padding: 0; }

/* Embeds (Facebook, Instagram) carry fixed pixel widths that overflow the rail. */
.widget-area iframe,
.widget-area .fb_iframe_widget,
.widget-area .fb_iframe_widget span,
.widget-area .fb_iframe_widget iframe[style] { max-width: 100% !important; }

/* ==========================================================================
   Comments
   ========================================================================== */

.comments-area { margin: 5em 0 0; padding-top: 3em; border-top: 1px solid var(--rule); }
.comments-title, .comment-reply-title { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 2em; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list ol.children { list-style: none; margin: 1.6em 0 0 2em; padding: 0; }
.comment-body { padding: 0 0 1.6em; margin: 0 0 1.6em; border-bottom: 1px solid var(--rule); }
.comment-meta { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8em; }
.comment-meta a { color: var(--muted); }
.comment-content p { margin: 0 0 0.8em; }
.comment-content a { border-bottom: 1px solid var(--ink); }
.comment-respond { margin-top: 3em; }
.comment-form label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5em;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 0;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
}
.comment-form p { margin: 0 0 1.2em; }
.comment-form .submit {
  padding: 12px 24px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
}
.comment-form .submit:hover, .comment-form .submit:focus { background: var(--muted); border-color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: 6em;
  padding: 4em var(--gutter) 3.5em;
  border-top: 1px solid var(--rule);
}
.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5em 4em;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-widgets { display: flex; flex-wrap: wrap; gap: 2.5em 4em; }
.footer-widgets .widget { max-width: 260px; font-size: 14px; line-height: 1.6em; }
.footer-widgets .widget-title {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1em;
  padding: 0 0 0.6em;
  border-bottom: 1px solid var(--rule);
}
.footer-widgets ul { list-style: none; margin: 0; padding: 0; }
.footer-widgets li { margin: 0 0 0.7em; }
.footer-widgets a,
.site-credit a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}
.footer-widgets a:hover, .footer-widgets a:focus,
.site-credit a:hover, .site-credit a:focus { color: var(--ink); border-bottom-color: var(--ink); }

.site-credit {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Galleries (core + Jetpack tiled)
   ========================================================================== */

.entry-content .gallery { display: grid; gap: 12px; margin: 2em 0; }
.entry-content .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.entry-content .gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.entry-content .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.entry-content .gallery-item { margin: 0; }
.entry-content .gallery img { display: block; width: 100%; }
.entry-content .gallery-caption { font-size: 12px; color: var(--muted); margin-top: 0.4em; }

/* Video embeds keep their aspect ratio */
.entry-content .wp-block-embed__wrapper,
.entry-content .w-richtext-figure-type-video > div {
  position: relative;
  padding-top: 56.25%;
}
.entry-content .wp-block-embed__wrapper > iframe,
.entry-content .w-richtext-figure-type-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ==========================================================================
   Responsive — Webflow collapses its nav at 991px, so this does too
   ========================================================================== */

@media screen and (max-width: 991px) {

  body { padding-top: var(--nav-h-s); }

  .nav-bar { height: var(--nav-h-s); }
  .nav-inner { height: var(--nav-h-s); padding: 0 var(--gutter-s); }

  .wordmark { font-size: 20px; letter-spacing: 1.5px; }
  .nav-tagline { font-size: 12px; margin-top: 0.5em; }

  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-h-s); left: 0;
    width: 100%;
    max-height: calc(100vh - var(--nav-h-s));
    overflow-y: auto;
    padding: 0.8em var(--gutter-s) 1.6em;
    background: var(--bg);
    border-top: 1px solid var(--rule);
    box-shadow: 0 10px 24px rgba(0,0,0,0.07);
  }
  .nav-menu.is-open { display: block; }
  .nav-menu ul { display: block; }

  .nav-link {
    display: block;
    color: var(--ink);
    margin-right: 0;
    padding: 0.9em 0;
    border-bottom: 1px solid #f2f2f2;
  }
  .nav-link:hover, .nav-link:focus,
  .nav-link[aria-current] { border-bottom-color: #f2f2f2; }

  /* Sidebar unstacks and drops below the posts. */
  .site-content {
    display: block;
    padding: 3em var(--gutter-s) 0;
  }
  .no-sidebar .content-area { max-width: 100%; }

  .widget-area {
    width: 100%;
    margin: 4em 0 0;
    padding: 3em 0 0;
    border-top: 1px solid var(--rule-2);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.6em 5%;
    align-items: start;
  }
  .widget-area .widget { margin: 0; }

  .site-footer { padding: 3.5em var(--gutter-s) 3em; }

  .alignwide, .alignfull { margin-left: 0; margin-right: 0; max-width: 100%; }
}

@media screen and (max-width: 620px) {
  .entry-title { font-size: 30px; }
  .entry-content blockquote { font-size: 20px; }
  .entry-content .gallery-columns-3,
  .entry-content .gallery-columns-4 { grid-template-columns: repeat(2, 1fr); }
  .alignleft, .alignright { float: none; margin: 2em 0; display: block; }
  .footer-inner { flex-direction: column; }
  .widget-area { grid-template-columns: 1fr; }
}

@media screen and (max-width: 479px) {
  .nav-tagline { display: none; }   /* crowds the wordmark on phones */
  .entry-title { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
