/* Fraunces (SIL Open Font License), self-hosted Latin subset: variable roman (500-700) + italic 500. Loaded only on /guides. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/Fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Fraunces-Italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   Portugalia – Guides landing page (/guides)
   Everything is scoped under .pg-guides so nothing leaks
   into the rest of the theme.
   Fonts: Fraunces (headings) + Poppins (already on the site).
   ========================================================= */

.pg-guides{
  --pg-ink:#2a211c; --pg-muted:#6b5d54; --pg-cream:#fbf6ee; --pg-line:#eadfce;
  --pg-azul:#1d4e89; --pg-red:#b3262e;
  --pg-wine:#6e1f31; --pg-port:#8c4a1c; --pg-coffee:#3f2b21; --pg-recipe:#1f5e3b;
  --pg-serif:'Fraunces',Georgia,'Times New Roman',serif;
  font-family:Poppins,system-ui,sans-serif;
  color:var(--pg-ink);
  font-size:16px;
  line-height:1.65;
}
.pg-guides *,.pg-guides *::before,.pg-guides *::after{box-sizing:border-box}
.pg-guides a{color:inherit;text-decoration:none}
.pg-guides a:hover{text-decoration:none}

/* ---------- Hero ---------- */
.pg-guides .pg-hero{
  position:relative;overflow:hidden;
  background:var(--pg-cream);
  border:1px solid var(--pg-line);
  border-radius:18px;
  padding:56px 48px;
  margin:0 0 40px;
}
.pg-guides .pg-hero::after{
  content:"";position:absolute;right:0;top:0;bottom:0;width:42%;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Crect width='80' height='80' fill='%23fbf6ee'/%3E%3Cg fill='none' stroke='%231d4e89' stroke-width='2.2'%3E%3Ccircle cx='40' cy='40' r='14'/%3E%3Cpath d='M40 6 Q52 22 40 26 Q28 22 40 6Z M40 74 Q52 58 40 54 Q28 58 40 74Z M6 40 Q22 28 26 40 Q22 52 6 40Z M74 40 Q58 28 54 40 Q58 52 74 40Z'/%3E%3Cpath d='M0 0 Q12 4 10 10 Q4 12 0 0Z M80 0 Q68 4 70 10 Q76 12 80 0Z M0 80 Q12 76 10 70 Q4 68 0 80Z M80 80 Q68 76 70 70 Q76 68 80 80Z'/%3E%3C/g%3E%3Ccircle cx='40' cy='40' r='5' fill='%23b3262e'/%3E%3C/svg%3E");
  background-size:80px;
  -webkit-mask-image:linear-gradient(to right,transparent,#000 45%);
          mask-image:linear-gradient(to right,transparent,#000 45%);
  opacity:.55;
}
.pg-guides .pg-hero-inner{position:relative;z-index:1}
.pg-guides .pg-eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--pg-red);
}
.pg-guides .pg-eyebrow::before{content:"";width:28px;height:2px;background:var(--pg-red)}
.pg-guides .pg-title{
  font-family:var(--pg-serif);font-weight:700;
  font-size:clamp(34px,5vw,54px);line-height:1.08;letter-spacing:-.01em;
  color:var(--pg-ink);margin:14px 0 18px;max-width:14ch;
}
.pg-guides .pg-title em{font-style:italic;font-weight:500;color:var(--pg-azul)}
.pg-guides .pg-lede{font-size:18px;color:var(--pg-muted);max-width:52ch;margin:0}
.pg-guides .pg-since{
  display:inline-flex;align-items:center;gap:10px;margin-top:26px;
  font-size:14px;font-weight:500;background:#fff;border:1px solid var(--pg-line);
  border-radius:999px;padding:8px 16px 8px 8px;
}
.pg-guides .pg-since b{background:var(--pg-azul);color:#fff;border-radius:999px;padding:3px 10px;font-weight:600;white-space:nowrap}

/* ---------- Cards ---------- */
.pg-guides .pg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.pg-guides .pg-card{
  display:flex;flex-direction:column;border-radius:18px;overflow:hidden;
  background:#fff;border:1px solid var(--pg-line);
  box-shadow:0 1px 2px rgba(42,33,28,.04);
  transition:transform .2s ease,box-shadow .2s ease;
}
.pg-guides .pg-card:hover,.pg-guides .pg-card:focus-visible{
  transform:translateY(-4px);box-shadow:0 18px 40px -18px rgba(42,33,28,.35);
}
.pg-guides .pg-card:focus-visible{outline:3px solid var(--pg-azul);outline-offset:3px}

.pg-guides .pg-art{position:relative;height:190px;display:flex;align-items:flex-end;padding:22px 26px;color:#fff;overflow:hidden}
.pg-guides .pg-art::before{
  content:"";position:absolute;inset:0;opacity:.13;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1.6'%3E%3Ccircle cx='28' cy='28' r='10'/%3E%3Cpath d='M28 4 Q36 15 28 18 Q20 15 28 4Z M28 52 Q36 41 28 38 Q20 41 28 52Z M4 28 Q15 20 18 28 Q15 36 4 28Z M52 28 Q41 20 38 28 Q41 36 52 28Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size:56px;
}
/* Optional: drop a real photo in via <img class="pg-photo"> inside .pg-art */
.pg-guides .pg-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pg-guides .pg-art:has(.pg-photo)::before{background:linear-gradient(to top,rgba(0,0,0,.45),transparent 60%);opacity:1}
.pg-guides .pg-icon{position:absolute;right:22px;bottom:-6px;width:150px;height:150px;opacity:.95}
.pg-guides .pg-tag{
  position:relative;z-index:1;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);padding:5px 12px;border-radius:999px;
}
.pg-guides .pg-wine   .pg-art{background:linear-gradient(135deg,#8a2a40,var(--pg-wine))}
.pg-guides .pg-port   .pg-art{background:linear-gradient(135deg,#a75d27,var(--pg-port))}
.pg-guides .pg-coffee .pg-art{background:linear-gradient(135deg,#5a3e2f,var(--pg-coffee))}
.pg-guides .pg-recipe .pg-art{background:linear-gradient(135deg,#2c7a4f,var(--pg-recipe))}

.pg-guides .pg-body{padding:24px 26px 26px;display:flex;flex-direction:column;flex:1}
.pg-guides .pg-card-title{
  font-family:var(--pg-serif);font-weight:700;font-size:27px;line-height:1.2;
  margin:0 0 10px;color:var(--pg-ink);
}
.pg-guides .pg-body p{margin:0 0 18px;color:var(--pg-muted);font-size:16px}
.pg-guides .pg-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px;padding:0;list-style:none}
.pg-guides .pg-chips li{
  margin:0;font-size:13px;font-weight:500;background:var(--pg-cream);
  border:1px solid var(--pg-line);border-radius:999px;padding:4px 12px;color:var(--pg-ink);
}
.pg-guides .pg-cta{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:18px;border-top:1px dashed var(--pg-line)}
.pg-guides .pg-cta-text{font-weight:600;font-size:15px}
.pg-guides .pg-arrow{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:#fff;transition:transform .2s;flex:none}
.pg-guides .pg-card:hover .pg-arrow{transform:translateX(4px)}
.pg-guides .pg-wine   .pg-cta-text{color:var(--pg-wine)}   .pg-guides .pg-wine   .pg-arrow{background:var(--pg-wine)}
.pg-guides .pg-port   .pg-cta-text{color:var(--pg-port)}   .pg-guides .pg-port   .pg-arrow{background:var(--pg-port)}
.pg-guides .pg-coffee .pg-cta-text{color:var(--pg-coffee)} .pg-guides .pg-coffee .pg-arrow{background:var(--pg-coffee)}
.pg-guides .pg-recipe .pg-cta-text{color:var(--pg-recipe)} .pg-guides .pg-recipe .pg-arrow{background:var(--pg-recipe)}

/* ---------- Share-a-recipe strip ---------- */
.pg-guides .pg-share{
  background:var(--pg-azul);color:#fff;border-radius:18px;margin:40px 0 24px;padding:30px 34px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
}
.pg-guides .pg-share-title{font-family:var(--pg-serif);font-weight:700;font-size:24px;margin:0 0 4px;color:#fff}
.pg-guides .pg-share p{margin:0;opacity:.85}
.pg-guides .pg-btn{background:#fff;color:var(--pg-azul);font-weight:600;padding:12px 22px;border-radius:999px;white-space:nowrap}
.pg-guides .pg-btn:hover{background:var(--pg-cream);color:var(--pg-azul)}

/* ---------- Mobile ---------- */
@media (max-width:767px){
  .pg-guides .pg-hero{padding:40px 24px;border-radius:14px}
  .pg-guides .pg-hero::after{width:100%;opacity:.12;-webkit-mask-image:none;mask-image:none}
  .pg-guides .pg-grid{grid-template-columns:1fr;gap:20px}
  .pg-guides .pg-art{height:150px}
  .pg-guides .pg-icon{width:120px;height:120px}
  .pg-guides .pg-share{padding:26px 24px}
  /* Narrow screens: badge above the text so the line isn't squeezed into a tall pill */
  .pg-guides .pg-since{flex-direction:column;align-items:flex-start;gap:8px;border-radius:14px;padding:10px 14px;line-height:1.45}
}

@media (prefers-reduced-motion:reduce){
  .pg-guides .pg-card,.pg-guides .pg-arrow{transition:none}
  .pg-guides .pg-card:hover{transform:none}
}
