
/* ==========================================
   TRAZANDO UN CAMINO — BLOG
   Editorial identity
========================================== */

:root {
    --branding-color: #ff7561;
    --brand-dark: #d95746;
    --primary-color: hsla(8, 100%, 69%, 0.129);
    --secondary-color: hsla(32, 88%, 68%, 0.267);

    --cream: #fff8f4;
    --sand: #fff0e6;
    --white: #ffffff;
    --ink: #383331;
    --muted: #6b6767;
    --line: #f0ded8;

    --font-serif: "Playfair Display", Georgia, serif;
    --font-sans: "Poppins", sans-serif;
    --font-script: "Arizonia", cursive;

    --content-width: 1160px;
}

/* RESET AND BASE */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.8;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--brand-dark);
    outline-offset: 4px;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1,
h2,
h3 {
    color: var(--ink);
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 400;
}

p {
    color: var(--muted);
}

.container {
    max-width: var(--content-width);
}

/* NAVIGATION */

.site-header {
  position: relative;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header .navbar {
  min-height: 82px;
  padding-block: 14px;
}

.site-header .navbar > .editorial-container {
  display: flex;
  align-items: center;
}

.site-logo {
  display: flex;
  align-items: center;
  margin-right: 28px;
  padding: 0;
}

.site-logo img {
  width: auto;
  max-height: 42px;
  object-fit: contain;
}

.site-logo .logo-mobile {
  display: none;
}

.site-header .navbar-nav {
  align-items: center;
  gap: 22px;
}

.site-header .nav-link {
  padding: 8px 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--brand-dark);
}

.site-header .nav-link.active {
  position: relative;
}

.site-header .nav-link.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--branding-color);
  content: "";
}

.site-header .navbar-toggler {
  border-color: var(--line);
  box-shadow: none;
}

/* EDITORIAL HERO */

.blog-hero {
    padding: 90px 0 60px;
    background: var(--cream);
}

.eyebrow,
.section-label {
    display: block;
    margin-bottom: 16px;
    color: var(--brand-dark);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.8;
    text-transform: uppercase;
}

.blog-hero h1 {
    max-width: 900px;
    margin: 0 0 25px;
    font-size: clamp(42px, 6.2vw, 78px);
    line-height: 1.12;
    letter-spacing: -1.7px;
}

.blog-hero h1 span {
    color: var(--branding-color);
}

.hero-description {
    max-width: 560px;
    margin: 0 0 24px;
    font-family: var(--font-serif);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.8;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-dark);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: gap 200ms ease, color 200ms ease;
}

.text-link:hover {
    gap: 14px;
    color: var(--ink);
}

.hero-image {
    position: relative;
    margin-top: 45px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: clamp(260px, 43vw, 480px);
    object-fit: cover;
    transition: transform 700ms ease;
}

.hero-image:hover img {
    transform: scale(1.025);
}

.image-caption {
    display: block;
    padding-top: 12px;
    color: var(--muted);
    font-family: var(--font-serif);
    font-size: 12px;
    font-style: italic;
}

/* TOPIC NAVIGATION */

.topic-section {
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.topic-section .container {
    padding-top: 26px;
    padding-bottom: 26px;
}

.topic-section .section-label {
    margin-bottom: 12px;
    font-size: 9px;
}

.topic-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
}

.topic-links a {
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 17px;
    transition: color 200ms ease;
}

.topic-links a span {
    color: var(--branding-color);
    font-family: var(--font-sans);
    font-size: 12px;
}

.topic-links a:hover {
    color: var(--brand-dark);
}

/* GENERAL SECTION SPACING */

.section-space {
    padding: 100px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 42px;
}

.section-heading .section-label {
    margin-bottom: 10px;
}

.section-heading h2,
.resources-inner h2,
.about-content h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
}

.section-heading > p {
    max-width: 360px;
    margin: 0;
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.8;
}

/* STORY GRID */

.story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 52px 32px;
}

.story-card {
    min-width: 0;
}

.story-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 42px;
    align-items: center;
    padding-bottom: 45px;
    border-bottom: 1px solid var(--line);
}

.story-image {
    display: block;
    overflow: hidden;
    background: var(--sand);
}

.story-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 500ms ease;
}

.story-featured .story-image img {
    height: 390px;
}

.story-image:hover img {
    transform: scale(1.04);
}

.story-content {
    padding-top: 18px;
}

.story-featured .story-content {
    padding-top: 0;
}

.story-category {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--brand-dark);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.story-date {
    margin: 0 0 12px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.story-content h3 {
    margin: 0 0 15px;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.3;
}

.story-featured .story-content h3 {
    font-size: clamp(32px, 4vw, 46px);
}

.story-content h3 a {
    transition: color 200ms ease;
}

.story-content h3 a:hover {
    color: var(--brand-dark);
}

.story-content > p:not(.story-date) {
    margin-bottom: 20px;
    font-family: var(--font-serif);
    font-size: 15px;
    line-height: 1.9;
}

/* REFLECTION SECTION */

.reflection-section {
    padding: 85px 0;
    background: var(--sand);
}

.reflection-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.reflection-inner .section-label {
    margin-bottom: 25px;
}

.reflection-quote {
    margin: 0 auto 22px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 43px);
    font-style: italic;
    line-height: 1.5;
}

.reflection-description {
    max-width: 610px;
    margin: 0 auto 25px;
    font-size: 13px;
    line-height: 2;
}

/* FREE RESOURCES */

.resources-section {
    background: var(--white);
}

.resources-inner {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    align-items: center;
    gap: 50px;
    padding: 50px;
    border: 1px solid var(--line);
    background: var(--cream);
}

.resources-inner h2 {
    max-width: 500px;
    margin-bottom: 20px;
}

.resources-inner > div:first-child > p {
    max-width: 560px;
    margin-bottom: 20px;
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.9;
}

.resource-note {
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--branding-color);
    color: var(--brand-dark);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.resource-illustration {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 210px;
    color: var(--brand-dark);
    text-align: center;
}

.resource-illustration i {
    font-size: 78px;
}

.resource-illustration span {
    font-family: var(--font-script);
    font-size: 30px;
}

/* ABOUT ASTRID */

.about-section {
    background: var(--cream);
}

.about-inner {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    align-items: center;
    gap: 70px;
    max-width: 900px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    object-fit: cover;
}

.about-content h2 {
    margin-bottom: 20px;
}

.about-content > p {
    margin-bottom: 22px;
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.95;
}

/* FOOTER */

.site-footer {
    padding: 55px 0 25px;
    background: var(--white);
    text-align: center;
}

.footer-brand {
    color: var(--ink);
    font-family: var(--font-script);
    font-size: 36px;
}

.footer-brand:hover {
    color: var(--brand-dark);
}

.footer-description {
    margin: 4px 0 20px;
    font-family: var(--font-serif);
    font-size: 14px;
    font-style: italic;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-bottom: 32px;
}

.footer-socials a {
    color: var(--brand-dark);
    font-size: 18px;
    transition: color 200ms ease, transform 200ms ease;
}

.footer-socials a:hover {
    color: var(--ink);
    transform: translateY(-3px);
}

.copyright {
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-family: var(--font-sans);
    font-size: 10px;
}

/* RESPONSIVE */

@media (max-width: 991px) {
  .site-header .navbar {
    min-height: 72px;
  }

  .site-header .navbar-nav {
    align-items: flex-start;
    gap: 4px;
    padding: 18px 0 10px;
  }

  .site-header .nav-link.active::after {
    right: auto;
    width: 30px;
  }

    .section-space {
        padding: 75px 0;
    }

    .story-featured {
        gap: 28px;
    }

    .story-featured .story-image img {
        height: 330px;
    }

    .resources-inner {
        padding: 35px;
        gap: 30px;
    }

    .about-inner {
        gap: 40px;
    }
}

@media (max-width: 767px) {
    .site-header .navbar {
        min-height: 70px;
    }

    .site-logo .logo-desktop {
        display: none;
    }

    .site-logo .logo-mobile {
        display: block;
        max-height: 40px;
        max-width: 45px;
    }

    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: block;
        max-height: 42px;
    }

    .blog-hero {
        padding: 60px 0 40px;
    }

    .blog-hero h1 {
        letter-spacing: -0.8px;
    }

    .hero-image {
        margin-top: 30px;
    }

    .hero-image img {
        height: 280px;
    }

    .topic-links {
        gap: 10px 20px;
    }

    .topic-links a {
        font-size: 15px;
    }

    .section-space {
        padding: 60px 0;
    }

    .section-heading {
        display: block;
        margin-bottom: 30px;
    }

    .section-heading > p {
        margin-top: 18px;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-featured {
        grid-column: auto;
        grid-template-columns: 1fr;
        gap: 12px;
        padding-bottom: 35px;
    }

    .story-image img,
    .story-featured .story-image img {
        height: 270px;
    }

    .story-content,
    .story-featured .story-content {
        padding-top: 12px;
    }

    .story-content h3,
    .story-featured .story-content h3 {
        font-size: 30px;
    }

    .reflection-section {
        padding: 65px 0;
    }

    .resources-inner {
        grid-template-columns: 1fr;
        padding: 28px 22px;
        gap: 15px;
    }

    .resource-illustration {
        min-height: 140px;
    }

    .resource-illustration i {
        font-size: 58px;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image img {
        max-width: 240px;
        aspect-ratio: 1 / 1;
    }

    .about-content {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}