/*
 * Base on top of GeneratePress: global rules and the approved utilities
 * (.container, .photo, .eyebrow, .section, .section-title, .section-head, skip-link, .sr-only).
 * Body font, size, colours and headings come from the Customizer (Typography and Colors).
 */

html{-webkit-text-size-adjust:100%;scroll-padding-top:var(--space-lg)}
body{-webkit-font-smoothing:antialiased}
:focus-visible{outline:3px solid var(--color-ochre);outline-offset:3px;border-radius:var(--radius-xs)}

/*
 * Reset of the approved sections only. Basic pages (legal, contact, archives) keep the
 * GeneratePress margins and lists. The scope is in :where() and the element in :is(), so
 * every rule weighs exactly one element (0,0,1): it beats GeneratePress' own element rules
 * (p{margin-bottom:1.5em}, ul{margin:0 0 1.5em 3em;list-style:disc}, h2{margin-bottom:20px}),
 * because this file loads after main.min.css, and any component class still wins.
 */
:where(.hero,.section,.trip-gallery,.includes,.contact-band,.site-footer,.textile-band) :is(h1,h2,h3,h4,p,ul,ol,li,dl,dt,dd,figure,blockquote){margin:0}
:where(.hero,.section,.trip-gallery,.includes,.contact-band,.site-footer) :is(ul,ol){padding:0;list-style:none}
:where(.hero,.section,.trip-gallery,.includes,.contact-band,.site-footer) :is(img){display:block;max-width:100%}
:where(.hero,.section,.trip-gallery,.includes,.contact-band,.site-footer) :is(a){color:inherit}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.container{width:min(100% - 2*var(--gutter), var(--container));margin-inline:auto}
/*
 * GeneratePress paints the content background with «.one-container .container» (0,2,0,
 * Customizer inline CSS), which also matches the approved .container of the sections and
 * the footer. GP's own containers always carry .grid-container (#page, header, navigation),
 * so only ours are made transparent; same weight, loaded later.
 */
.container:not(.grid-container){background-color:transparent}

/* Skip link: GeneratePress' native one («Saltar al contenido»), restyled */
.skip-link.screen-reader-text:focus{position:absolute;left:var(--space-md);top:var(--space-md);z-index:100000;width:auto;height:auto;clip:auto;clip-path:none;margin:0;padding:var(--space-sm) var(--space-md);background:var(--color-ochre);color:var(--color-night);font-family:var(--font-body);font-size:var(--fs-small);font-weight:700;line-height:1.2;text-decoration:none;border-radius:var(--radius-pill);box-shadow:none}

/*
 * Real photography: always fills its container and is reframed with object-position.
 * Works on an <img> and on a core/image <figure class="photo"> (the img inherits the framing).
 */
.photo{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;object-fit:cover;object-position:center;display:block;background-color:var(--color-night)}
.photo img{width:100%;height:100%;max-width:none;object-fit:cover;object-position:inherit;display:block}

/* Eyebrow: poster lettering (Russo One) */
/* line-height: the body's 1.6, also when the eyebrow is a heading (h2.eyebrow in the trip panel) and GP Typography would give it 1.08 */
.eyebrow{display:flex;align-items:center;gap:var(--space-sm);font-family:var(--font-accent);font-weight:400;font-size:var(--fs-eyebrow);line-height:1.6;letter-spacing:var(--ls-accent);text-transform:uppercase;color:var(--color-terracotta-dark);margin-bottom:var(--space-md)}
.eyebrow::before{content:"";width:9px;height:9px;background:var(--color-ochre);transform:rotate(45deg);border-radius:2px;flex:none}
.eyebrow--ochre{color:var(--color-ochre)}
.eyebrow--poster{color:var(--color-ochre);letter-spacing:var(--ls-poster)}
.eyebrow--poster::before{width:40px;height:2px;transform:none;border-radius:2px}

.section-title{font-family:var(--font-display);font-weight:600;font-size:var(--fs-h2);line-height:1.08;letter-spacing:-.015em;color:var(--color-night)}

/* Sections */
.section{position:relative;padding:var(--space-4xl) 0}
.section--sand{background:var(--color-sand)}
.section--night{background:var(--color-night);color:var(--color-sand)}
.section--night .section-title{color:var(--color-white)}
.section-head{display:grid;grid-template-columns:1.3fr 1fr;align-items:end;gap:var(--space-2xl);margin-bottom:var(--space-2xl)}
.section-head__intro{font-size:var(--fs-lead);line-height:1.5;color:var(--color-ink-muted);justify-self:end;max-width:420px}
.section--night .section-head__intro{color:rgba(244,236,221,.82)}
.section-foot{display:flex;justify-content:center;margin-top:var(--space-2xl)}

@media (max-width:767px){
  .eyebrow--poster::before{width:24px}
  .section{padding:var(--space-3xl) 0}
  .section-head{grid-template-columns:1fr;gap:var(--space-sm);margin-bottom:var(--space-xl)}
  .section-head__intro{justify-self:start;font-size:var(--fs-body)}
  .section-foot{margin-top:var(--space-xl)}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
