/*
Theme Name: Ponelo Pelo 2026
Theme URI: https://ponelopelo.org/
Author: Ponelo Pelo / Website Starter Kit
Author URI: https://ponelopelo.org/
Description: A lightweight, easy-to-maintain WordPress theme starter for the Ponelo Pelo project (2026). Built for the WordPress block editor (Gutenberg) with simple, accessible templates.
Version: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ponelo-pelo-2026
Tags: accessibility-ready, blog, custom-logo, custom-menu, featured-images, one-column, two-columns, responsive-layout

This theme is provided as a starter kit. Customize as needed.
*/

:root{
  --pp-container: 1120px;
  --pp-gutter: 16px;

  --pp-bg: #ffffff;
  --pp-text: #111827;
  --pp-muted: #4b5563;
  --pp-border: #e5e7eb;

  --pp-link: #0f766e;
  --pp-link-hover: #115e59;

  --pp-surface: #f9fafb;
  --pp-surface-2: #f3f4f6;
  --pp-accent: #0f766e;

  --pp-radius: 14px;
  --pp-shadow: 0 10px 30px rgba(0,0,0,.08);

  --pp-font: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: var(--pp-font);
  color: var(--pp-text);
  background: var(--pp-bg);
  line-height: 1.6;
}
a{color:var(--pp-link); text-decoration: none}
a:hover, a:focus{color: var(--pp-link-hover); text-decoration: underline}
img{max-width:100%; height:auto}

.container{
  width: min(var(--pp-container), calc(100% - (var(--pp-gutter) * 2)));
  margin-inline: auto;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--pp-border);
  border-radius: 10px;
  z-index: 100000;
}

.site-header{
  border-bottom: 1px solid var(--pp-border);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 9999;
}
.header-inner{
  display:flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.site-brand{
  display:flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
}
.site-title{
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  margin: 0;
}
.site-tagline{
  margin: 0;
  color: var(--pp-muted);
  font-size: .9rem;
}
.custom-logo{
  max-height: 42px;
  width: auto;
}
.primary-nav{
  display:flex;
  align-items:center;
  gap: 12px;
}
.primary-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.primary-nav a{
  display:inline-block;
  padding: 8px 10px;
  border-radius: 999px;
}
.primary-nav .current-menu-item > a,
.primary-nav a:focus-visible{
  outline: none;
  background: var(--pp-surface-2);
  text-decoration: none;
}
.menu-toggle{
  display:none;
}

.site-main{
  padding: 26px 0 56px;
}

.page-header{
  padding: 20px 0 10px;
}
.page-title{
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}
.page-intro{
  margin: 0;
  color: var(--pp-muted);
  max-width: 72ch;
}

.card-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin: 26px 0;
}
.card{
  grid-column: span 12;
  background: var(--pp-surface);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  padding: 16px;
  box-shadow: var(--pp-shadow);
}
.card h3{margin-top:0}
@media (min-width: 740px){
  .card{grid-column: span 6}
}
@media (min-width: 1024px){
  .card{grid-column: span 4}
}

.hero{
  background: linear-gradient(180deg, var(--pp-surface) 0%, rgba(255,255,255,0) 100%);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  padding: 26px;
  box-shadow: var(--pp-shadow);
}
.hero h1{
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.hero p{
  margin: 0 0 16px;
  color: var(--pp-muted);
  max-width: 70ch;
}
.actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--pp-border);
  background: #fff;
  color: var(--pp-text);
  font-weight: 650;
  text-decoration:none !important;
}
.btn:hover{background: var(--pp-surface-2)}
.btn.primary{
  background: var(--pp-accent);
  border-color: var(--pp-accent);
  color: #fff;
}
.btn.primary:hover{filter: brightness(0.95)}
.btn:focus-visible{
  outline: 3px solid rgba(15,118,110,.25);
  outline-offset: 2px;
}

.post-list{
  display:grid;
  gap: 16px;
  margin-top: 18px;
}
.post-item{
  padding: 16px;
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  background: #fff;
}
.post-meta{
  color: var(--pp-muted);
  font-size: .9rem;
}

.entry-content > *{max-width: 80ch}
.entry-content > .alignwide{max-width: min(1100px, 100%)}
.entry-content > .alignfull{max-width: none}

.site-footer{
  border-top: 1px solid var(--pp-border);
  padding: 22px 0;
  background: var(--pp-surface);
}
.footer-inner{
  display:flex;
  flex-wrap: wrap;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
}
.footer-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-small{
  color: var(--pp-muted);
  font-size: .9rem;
}

/* WordPress core alignments */
.alignleft{float:left;margin:0 1.25em 1.25em 0}
.alignright{float:right;margin:0 0 1.25em 1.25em}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.wp-caption{max-width:100%}
.wp-caption-text{color:var(--pp-muted);font-size:.9rem}
