/*
Theme Name: Natalia Prieto Portfolio
Theme URI: https://natsprieto.com
Author: Natalia Prieto
Description: A refined, editorial portfolio theme for Natalia Prieto. Includes editable pages, case studies, Notes, and a discreet Advisory page.
Version: 1.10.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: natalia-prieto
*/

:root {
  --np-ink: #171714;
  --np-paper: #ffffff;
  --np-soft: #f3f1ec;
  --np-line: #d8d5ce;
  --np-accent: #171714;
  --np-muted: #65635e;
  --np-display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --np-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--np-paper) !important; color: var(--np-ink) !important; font-family: var(--np-body); }
body, p, li { font-size: clamp(1rem, .97rem + .15vw, 1.12rem); line-height: 1.7; }
img { height: auto; max-width: 100%; }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
.wp-site-blocks { min-height: 100vh; }
.np-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.np-reading { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.np-display, .np-display a { font-family: var(--np-display); font-weight: 400; letter-spacing: -.035em; }
.np-kicker { font-size: .75rem !important; font-weight: 700; letter-spacing: .15em; line-height: 1.3; text-transform: uppercase; }
.np-muted { color: var(--np-muted); }
.np-section { padding-block: clamp(64px, 8vw, 120px); }
.np-section-tight { padding-block: clamp(46px, 7vw, 88px); }
.np-rule { border-top: 1px solid var(--np-line); }
.np-soft { background: var(--np-soft); }

/* WordPress applies a default block gap as margin-block-start to consecutive
   Group children. Custom CSS grids already define their own gap, so that
   margin shifts every child except the first and makes equal cells look
   uneven. Reset it on every custom layout container. */
.np-hero > *,
.np-grid-3 > *,
.np-split > *,
.np-stats > *,
.np-offer > *,
.np-cta > *,
.np-work-samples > *,
.np-metric-row > *,
.np-card-body > * {
  margin-block-end: 0 !important;
  margin-block-start: 0 !important;
}

.np-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--np-line); position: sticky; top: 0; z-index: 30; }
.np-header-inner { align-items: center; display: flex; justify-content: space-between; min-height: 70px; }
.np-brand a { color: var(--np-ink); font-family: var(--np-display); font-size: 1.62rem; line-height: 1; text-decoration: none; }
.np-nav .wp-block-navigation-item__content { color: var(--np-ink); font-size: .92rem; font-weight: 600; text-decoration: none; }

.np-hero { display: grid; grid-template-columns: 1.08fr .92fr; }
.np-hero-copy { align-items: flex-start; display: flex; flex-direction: column; justify-content: flex-start; padding: clamp(38px, 5vw, 68px) clamp(30px, 6vw, 90px); }
.np-hero-title { font-size: clamp(2.8rem, 4.8vw, 5.35rem); line-height: .98; margin: 0 0 18px; max-width: 11.5ch; }
.np-hero-support { font-size: clamp(1.08rem, 1rem + .35vw, 1.34rem); line-height: 1.55; margin: 0; max-width: 620px; }
.np-hero-media { min-height: 460px; overflow: hidden; position: relative; }
.np-hero-media img { height: 100%; object-fit: cover; width: 100%; }
.np-button .wp-block-button__link { border-radius: 999px; font-size: .9rem; font-weight: 700; padding: .86rem 1.3rem; }
.np-button-outline .wp-block-button__link { background: transparent; border: 1px solid var(--np-ink); color: var(--np-ink); }

.np-expertise { border-bottom: 1px solid var(--np-line); border-top: 1px solid var(--np-line); }
.np-expertise .wp-block-group__inner-container, .np-expertise-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.np-expertise p { border-right: 1px solid var(--np-line); font-size: .87rem; font-weight: 650; margin: 0; padding: 16px 22px; text-align: center; }
.np-expertise p:last-child { border-right: 0; }

.np-section-title { font-size: clamp(2.5rem, 4.2vw, 4.6rem); line-height: 1; margin: .2em 0 .5em; }
.np-intro { font-size: clamp(1.1rem, 1rem + .4vw, 1.38rem); line-height: 1.55; max-width: 760px; }
.np-grid-3 { align-items: stretch; display: grid; gap: 22px; grid-auto-rows: 1fr; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.np-card { border: 1px solid var(--np-line); box-sizing: border-box; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; height: 100%; min-height: 420px; padding: clamp(28px, 4vw, 44px); }
.np-card h2, .np-card h3 { align-self: end; font-family: var(--np-display); font-size: clamp(1.8rem, 2.6vw, 2.7rem); font-weight: 400; line-height: 1.06; margin: 1.5rem 0 0; }
.np-card a { color: var(--np-ink); }
.np-card-index { color: var(--np-accent); font-size: .78rem !important; font-weight: 700; letter-spacing: .12em; margin: 0; text-transform: uppercase; }
.np-card-meta { color: var(--np-muted); font-size: .82rem !important; line-height: 1.5; margin: .9rem 0 0; min-height: 2.5em; }
.np-card-link { font-size: .9rem !important; font-weight: 700; margin: 1.5rem 0 0; }
.np-project-card { grid-template-rows: auto minmax(0, 1fr); min-height: 0; overflow: hidden; padding: 0; }
.np-card-image { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--np-line); margin: 0; overflow: hidden; }
.np-card-image a { display: block; height: 100%; }
.np-card-image img { display: block; height: 100%; object-fit: cover; transition: transform .35s ease; width: 100%; }
.np-project-card:hover .np-card-image img { transform: scale(1.015); }
.np-card-body { box-sizing: border-box; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; height: 100%; padding: clamp(24px, 3vw, 36px); }
.np-card-body h2, .np-card-body h3 { align-self: end; }

.np-split { align-items: start; display: grid; gap: clamp(42px, 7vw, 100px); grid-template-columns: .82fr 1.18fr; }
.np-stats { border-bottom: 1px solid var(--np-line); border-top: 1px solid var(--np-line); display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 54px; }
.np-stat { align-items: stretch; display: flex; padding: 26px 18px; }
.np-stat > p { display: grid; grid-template-rows: auto 1fr; margin: 0; width: 100%; }
.np-stat + .np-stat { border-left: 1px solid var(--np-line); }
.np-stat strong { display: block; font-family: var(--np-display); font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 400; line-height: 1; }
.np-stat span { align-self: start; color: var(--np-muted); display: block; font-size: .8rem; line-height: 1.45; margin-top: .55rem; }

.np-page-hero { padding-block: clamp(64px, 8vw, 108px) clamp(48px, 6vw, 76px); }
.np-page-title { font-size: clamp(2.85rem, 5.7vw, 5.55rem); line-height: .96; margin: .12em 0 .28em; }
.np-contact-hero { padding-block: clamp(74px, 11vw, 150px) clamp(52px, 8vw, 100px); }
.np-contact-title { font-size: clamp(4rem, 10vw, 9.5rem); line-height: .9; }
.np-copy h2 { font-family: var(--np-display); font-size: clamp(2rem, 4vw, 3.7rem); font-weight: 400; letter-spacing: -.025em; line-height: 1.04; margin: 2.1em 0 .55em; }
.np-copy h3 { font-size: 1rem; letter-spacing: .08em; margin: 3em 0 .7em; text-transform: uppercase; }
.np-copy ul { padding-left: 1.1em; }
.np-copy li { margin-bottom: .4em; }
.np-copy .np-lede { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); line-height: 1.5; }
.np-about-photo { margin-bottom: clamp(32px, 6vw, 72px); }
.np-about-photo img { max-height: 720px; width: 100%; }

.np-offer { border-top: 1px solid var(--np-line); display: grid; gap: 40px; grid-template-columns: 100px 1fr; padding-block: clamp(48px, 7vw, 84px); }
.np-offer-number { color: var(--np-accent); font-family: var(--np-display); font-size: 3.3rem !important; line-height: 1; margin: 0; }
.np-offer h2 { font-family: var(--np-display); font-size: clamp(2.2rem, 4vw, 4.2rem); font-weight: 400; line-height: 1; margin: 0 0 24px; }
.np-offer h3 { font-size: .78rem; letter-spacing: .13em; margin-top: 2.2rem; text-transform: uppercase; }
.np-offer ul { columns: 2; column-gap: 42px; padding-left: 1.1em; }
.np-offer-outcome { border-left: 2px solid var(--np-ink); margin-top: 2.2rem; padding: 4px 0 4px 22px; }
.np-offer-outcome h3 { margin-top: 0; }
.np-service-links { font-size: .88rem; line-height: 1.65; margin-top: 2rem; }
.np-service-cta { margin-top: 1.5rem; }
.np-service-cta a { text-decoration: underline; text-underline-offset: 4px; }
.np-price { font-family: var(--np-display); font-size: clamp(2.5rem, 5vw, 4.6rem) !important; font-weight: 400; letter-spacing: -.04em; line-height: .95; margin: 1.6rem 0 !important; }
.np-booking-button { margin-top: 2rem; }
.np-sprint-list { border-top: 1px solid var(--np-line); margin-top: 2.2rem; }
.np-sprint { border-bottom: 1px solid var(--np-line); padding: 28px 0 30px; }
.np-sprint h3 { margin-top: 0; }
.np-sprint p { margin-bottom: .8rem; }
.np-clarity-summary { border-bottom: 1px solid var(--np-line); border-top: 1px solid var(--np-line); display: grid; gap: 24px; grid-template-columns: minmax(180px, .42fr) 1fr; padding-block: 28px; }
.np-clarity-summary .np-price { margin: 0 !important; }
.np-clarity-summary > p { align-self: center; margin: 0; }
.np-process { border-top: 1px solid var(--np-line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1.4rem; }
.np-process > p { border-bottom: 1px solid var(--np-line); margin: 0; padding: 22px 24px 22px 0; }
.np-process > p:nth-child(even) { border-left: 1px solid var(--np-line); padding-left: 24px; }
.np-faq { border-top: 1px solid var(--np-line); margin-top: 1.4rem; }
.np-faq h3 { border-top: 1px solid var(--np-line); margin: 0; padding-top: 24px; }
.np-faq h3:first-child { border-top: 0; }
.np-faq p { margin-top: .6rem; padding-bottom: 20px; }
.np-focused-projects { border-top: 1px solid var(--np-line); margin-top: 3rem; padding-top: 26px; }
.np-focused-projects > h3 { margin-top: 0; }
.np-focused-project { border-top: 1px solid var(--np-line); padding: 18px 0; }
.np-focused-project h4 { font-size: 1rem; margin: 0 0 .5rem; }
.np-focused-project p { font-size: .92rem; line-height: 1.55; margin: 0; }

.np-cta { align-items: stretch; display: grid; grid-template-columns: 1fr 1fr; }
.np-cta-copy { background: var(--np-ink); color: #fff; display: flex; flex-direction: column; justify-content: center; min-height: 520px; padding: clamp(44px, 8vw, 110px); }
.np-cta-copy h2 { color: #fff; font-family: var(--np-display); font-size: clamp(3rem, 6vw, 6.4rem); font-weight: 400; letter-spacing: -.035em; line-height: .94; margin: 0 0 30px; }
.np-cta-copy a { color: #fff; }
.np-cta-media { background: #ddd8ce; min-height: 520px; position: relative; }
.np-cta-media img { height: 100%; object-fit: cover; width: 100%; }
.np-cta-single { grid-template-columns: 1fr; }
.np-cta-single .np-cta-copy { min-height: 360px; }
.np-image-note { bottom: 20px; color: var(--np-muted); font-size: .72rem !important; left: 22px; position: absolute; }

.np-case-cover { background: var(--np-soft); border: 1px solid var(--np-line); display: grid; min-height: 500px; place-items: center; }
.np-case-cover p { color: var(--np-muted); font-size: .8rem !important; letter-spacing: .12em; text-transform: uppercase; }
.np-case-cover img { height: 100%; object-fit: cover; width: 100%; }
.np-case-cover figcaption { background: rgba(255,255,255,.9); bottom: 0; box-sizing: border-box; font-size: .75rem; margin: 0; padding: 10px 14px; position: absolute; width: 100%; }
.wp-block-image.np-case-cover { position: relative; }
.np-work-samples { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: 30px 48px; }
.np-work-sample { margin: 0; }
.np-work-sample img { background: var(--np-soft); height: auto; width: 100%; }
.np-work-sample figcaption { color: var(--np-muted); font-size: .76rem; line-height: 1.45; }
.np-note-image { margin-bottom: 26px; }
.np-note-image img { object-fit: cover; width: 100%; }
.np-metric-row { border-bottom: 1px solid var(--np-line); border-top: 1px solid var(--np-line); display: grid; grid-template-columns: repeat(4, 1fr); }
.np-metric { align-items: flex-start; display: flex; min-width: 0; padding: 24px; }
.np-metric > p { margin: 0 !important; width: 100%; }
.np-metric + .np-metric { border-left: 1px solid var(--np-line); }
.np-metric strong { display: block; font-family: var(--np-display); font-size: 2.4rem; font-weight: 400; line-height: 1; margin-bottom: .55rem; }
.np-metric span { color: var(--np-muted); font-size: .78rem; }
.np-case-proof { border-top: 1px solid var(--np-line); margin-top: clamp(52px, 7vw, 84px); padding-top: 28px; }
.np-case-proof h2 { margin-top: 0; }
.np-case-cta { background: var(--np-soft); margin-top: clamp(48px, 7vw, 80px); padding: clamp(28px, 5vw, 46px); }
.np-case-cta h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin: 0 0 16px; }
.np-case-cta p:last-child { margin-bottom: 0; }

.np-footer { border-top: 1px solid var(--np-line); padding-block: 40px; }
.np-footer-inner { align-items: center; display: flex; justify-content: space-between; }
.np-footer p, .np-footer a { font-size: .78rem; }

@media (max-width: 900px) {
  .np-hero { grid-template-columns: 1fr; }
  .np-hero-copy { min-height: auto; }
  .np-hero-media { min-height: 48svh; order: -1; }
  .np-grid-3 { grid-auto-rows: auto; grid-template-columns: 1fr; }
  .np-card { min-height: 320px; }
  .np-project-card { min-height: 0; }
  .np-split { grid-template-columns: 1fr; }
  .np-cta { grid-template-columns: 1fr; }
  .np-cta-media { min-height: 440px; }
  .np-offer { grid-template-columns: 64px 1fr; }
  .np-offer ul { columns: 1; }
  .np-clarity-summary { grid-template-columns: 1fr; }
  .np-expertise .wp-block-group__inner-container, .np-expertise-row { grid-template-columns: 1fr 1fr; }
  .np-expertise p:nth-child(2) { border-right: 0; }
  .np-expertise p:nth-child(-n+2) { border-bottom: 1px solid var(--np-line); }
  .np-metric-row { grid-template-columns: 1fr 1fr; }
  .np-metric:nth-child(3) { border-left: 0; }
  .np-metric:nth-child(-n+2) { border-bottom: 1px solid var(--np-line); }
}

@media (max-width: 560px) {
  .np-shell, .np-reading { width: min(100% - 28px, 1180px); }
  .np-header-inner { min-height: 60px; }
  .np-brand a { font-size: 1.42rem; }
  .np-nav { font-size: .83rem; }
  .np-hero-copy { padding: 48px 24px 56px; }
  .np-hero-title { font-size: clamp(2.55rem, 11.5vw, 3.75rem); }
  .np-hero-media { min-height: 420px; }
  .np-page-hero { padding-block: 44px 38px; }
  .np-page-title { font-size: clamp(2.25rem, 10vw, 2.75rem); line-height: 1; overflow-wrap: break-word; }
  .np-page-hero .np-intro { font-size: 1.08rem; line-height: 1.55; }
  .np-contact-title { font-size: clamp(4rem, 15vw, 5.2rem); }
  .np-header .wp-block-navigation__responsive-container.is-menu-open { border-left: 1px solid var(--np-line); box-shadow: -18px 0 50px rgba(0,0,0,.08); height: 100dvh; inset: 0 0 0 auto; max-width: 360px; padding: 24px; width: 86vw; }
  .np-header .wp-block-navigation__responsive-container-content { align-items: flex-start !important; padding-top: 56px !important; }
  .np-header .wp-block-navigation__container { align-items: flex-start !important; gap: 24px !important; width: 100%; }
  .np-header .wp-block-navigation-item { align-items: flex-start; width: 100%; }
  .np-header .wp-block-navigation-item__content { font-size: 1.1rem; text-align: left; }
  .np-expertise .wp-block-group__inner-container, .np-expertise-row { grid-template-columns: 1fr; }
  .np-expertise p { border-bottom: 1px solid var(--np-line); border-right: 0; }
  .np-stats { grid-template-columns: 1fr; }
  .np-stat + .np-stat { border-left: 0; border-top: 1px solid var(--np-line); }
  .np-work-samples { grid-template-columns: minmax(0, 1fr); }
  .np-work-sample img { aspect-ratio: auto !important; height: auto !important; object-fit: contain !important; }
  .wp-block-image.np-case-cover { aspect-ratio: auto !important; display: block; min-height: 0; overflow: hidden; width: min(100% - 28px, 1180px); }
  .wp-block-image.np-case-cover img { aspect-ratio: auto !important; display: block; height: auto !important; max-width: 100%; object-fit: contain !important; width: 100%; }
  .np-case-cover figcaption { position: static; }
  .np-metric { min-width: 0; padding: 20px 16px; }
  .np-metric strong { font-size: 2rem; line-height: 1; }
  .np-metric span { display: block; line-height: 1.4; overflow-wrap: anywhere; }
  .np-offer { display: block; }
  .np-offer-number { margin-bottom: 20px; }
  .np-process { grid-template-columns: 1fr; }
  .np-process > p, .np-process > p:nth-child(even) { border-left: 0; padding-left: 0; padding-right: 0; }
  .np-footer-inner { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: reduce) { .np-card-image img { transition: none; } }
