@import url('/assets/brand/colors.css');

:root {
  --coffee: var(--huellario-ink);
  --terracotta: var(--huellario-brand);
  --cream: var(--huellario-paper);
  --line: var(--huellario-line);
  --muted: var(--huellario-muted);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--coffee); font: 1rem/1.75 var(--sans); }
a { color: inherit; text-underline-offset: .18em; }
a:hover { color: var(--terracotta); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 4px; }
.guide-skip { position: absolute; top: .75rem; left: .75rem; z-index: 1; transform: translateY(-160%); padding: .6rem 1rem; border-radius: 999px; background: var(--coffee); color: white; }
.guide-skip:focus { transform: translateY(0); }

.guide-topbar, .guide-footer {
  width: min(100% - 3rem, 76rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
}
.guide-topbar { min-height: 5.4rem; }
.guide-topbar img { display: block; width: clamp(7.5rem, 23vw, 10rem); height: auto; }
.guide-back { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .85rem; font-weight: 650; text-decoration: none; }

.guide-hero {
  padding: clamp(2.8rem, 7vw, 5.25rem) 0 clamp(3.5rem, 8vw, 6.5rem);
  border-block: 1px solid var(--line);
  background:
    url('/assets/brand/huellita-terracota.svg') no-repeat right max(7vw, 1rem) center / clamp(6rem, 16vw, 14rem),
    radial-gradient(ellipse at 85% 20%, #eddbd1, transparent 58%), var(--cream);
}
.guide-hero-inner { width: min(100% - 3rem, 64rem); margin-inline: auto; }
.guide-eyebrow { margin: 0 0 1rem; color: #84513f; font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
h1 { max-width: 18ch; font-size: clamp(2.55rem, 5.7vw, 5rem); margin: 0; }
.guide-lead { max-width: 38rem; margin: 1.2rem 0 0; color: var(--muted); font-size: clamp(.98rem, 2vw, 1.13rem); }

.guide-copy, .guide-related { width: min(100% - 3rem, 52rem); margin-inline: auto; }
.guide-copy {
  position: relative;
  margin-top: -2rem;
  padding: clamp(1.4rem, 5vw, 3.4rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: #fcfaf8;
  box-shadow: 0 22px 65px color-mix(in srgb, var(--coffee) 9%, transparent);
}
.guide-copy > :first-child { margin-top: 0; }
.guide-copy > :last-child { margin-bottom: 0; }
.guide-copy p, .guide-copy li { color: var(--muted); }
.guide-copy h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); margin: 1.8rem 0 .65rem; }
.guide-copy li { padding-bottom: .35rem; }
.guide-copy li::marker { color: #a25840; font-weight: 600; }
.guide-action { margin-top: 1.85rem; }
.guide-action a {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  padding: .65rem 1.15rem;
  border-radius: 999px;
  background: var(--coffee);
  color: white;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}
.guide-action a:hover { background: #40291f; }
.guide-related { margin-block: 2.75rem 3.5rem; }
.guide-related h2 { margin: 0 0 .7rem; font-size: 1.8rem; }
.guide-related ul { list-style: none; padding: 0; margin: 0; }
.guide-related li { border-bottom: 1px solid var(--line); }
.guide-related a { display: flex; justify-content: space-between; gap: .75rem; padding: .75rem 0; font-weight: 600; text-decoration: none; }
.guide-related a span:last-child { color: #a25840; }
.guide-footer { flex-wrap: wrap; border-top: 1px solid var(--line); padding-block: 1.2rem 1.6rem; font-size: .8rem; color: var(--muted); }
.guide-footer nav { display: flex; flex-wrap: wrap; gap: .35rem 1rem; }

@media (max-width: 900px) {
  .guide-hero { background: radial-gradient(ellipse at 88% 25%, #eddbd1, transparent 70%), var(--cream); }
}
@media (max-width: 480px) {
  .guide-topbar, .guide-footer, .guide-hero-inner, .guide-copy, .guide-related { width: calc(100% - 2rem); }
  .guide-topbar { min-height: 4.5rem; }
  .guide-back { font-size: .79rem; }
  .guide-copy { border-radius: 1rem; }
}
