/* EstebanFrias.com — v3 light (bilingual) */
:root{
  --bg:#ffffff;
  --ink:#111214;
  --muted: rgba(17,18,20,.66);
  --hair: rgba(17,18,20,.10);
  --link: rgba(17,18,20,.82);
  --linkHover: rgba(17,18,20,1);

  --max: 1080px;
  --pad: 56px;

  --sans: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color: var(--link); text-decoration: none; }
a:hover{color:var(--linkHover)}
a.underline{text-decoration:none}
a.underline:hover{ text-decoration-color: rgba(17,18,20,.45); }

/* Memo body links: match nav-style hover (no default underline) */
.memo-body a,
.memo-content a{
  text-decoration: none;
  color: var(--link);
}
.memo-body a:hover,
.memo-content a:hover{color:var(--linkHover)}

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
@media (max-width: 820px){ :root{ --pad: 22px; } }

.skip{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  position:fixed; left:16px; top:16px; width:auto; height:auto;
  padding:10px 12px; background: #fff;
  border: 1px solid var(--hair); border-radius: 8px;
}

.header{ padding: 22px 0 0; }
.headerRow{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.brand{
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.nav{
  display:flex;
  gap: 18px;
  align-items:center;
  flex-wrap:wrap;
  font-size: 14px;
  color: var(--muted);
}
.nav a{
  /* All top-nav items share the same default tone + weight.
     Hover provides the only emphasis (turns black). */
  color: rgba(17,18,20,.55);
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover{
  color: var(--linkHover);
}
.nav a:focus-visible{
  outline: 2px solid rgba(17,18,20,.18);
  outline-offset: 3px;
  border-radius: 8px;
}
/* Keep all nav items equal weight + tone, even on the active page */
.nav a.active{ 
  color: rgba(17,17,17,0.65);
  font-weight: 500;
}
/* Language toggle matches all other nav links */
.nav a.lang{ 
  color: rgba(17,17,17,0.65);
  font-weight: 500;
}

.rule{ margin-top: 18px; border-top: 1px solid var(--hair); }

.hero{ padding: 86px 0 40px; }
@media (max-width: 820px){ .hero{ padding: 62px 0 32px; } }

/* Small-caps feel via uppercase + tracking */
.triad{
  font-size: 12px;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: rgba(17,18,20,.52);
  margin: 0 0 16px;
}
.kicker{
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(17,18,20,.44);
  margin: 0 0 18px; /* more separation from headline */
}

.h1{
  font-size: clamp(34px, 4.8vw, 56px);
  line-height:1.14;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 22ch; /* slightly tighter */
}
.lede{
  /* More breathing room between hero headline and the first paragraph */
  margin-top: 26px;
  color: rgba(17,18,20,.7);
  font-size: 18px;
  max-width: 76ch;
}

.flow{
  margin-top: 26px;
  color: rgba(17,18,20,.5);
  font-size: 14px;
}

.tabs{
  display:flex;
  gap: 22px;
  margin-top: 18px;
  padding-bottom: 14px;
}
.tabs a{
  color: rgba(17,18,20,.62);
  font-weight: 500;
}
.tabs a.active{ color: rgba(17,17,17,0.65); }

.section{
  padding: 36px 0 66px; /* slightly tighter */
}
@media (max-width: 820px){ .section{ padding: 30px 0 54px; } }

.h2{
  /* Increase separation between section heading and its first line */
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.p{
  margin: 0;
  color: rgba(17,18,20,.74);
  max-width: 86ch;
}
.p + .p{ margin-top: 12px; }

.quote{
  margin-top: 18px;
  border-left: 3px solid rgba(17,18,20,.18);
  padding: 14px 16px;
  color: rgba(17,18,20,.82);
  max-width: 86ch;
}
.quote p{ margin: 0; }
.quote p + p{ margin-top: 10px; }

.grid4{
  margin-top: 20px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 26px;
  max-width: 92ch;
}
@media (max-width: 820px){
  .grid4{ grid-template-columns: 1fr; }
}
.card{
  padding: 0;
}
.card .ct{
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(17,18,20,.92);
  margin: 0 0 6px;
}
.card .cb{
  margin: 0;
  color: rgba(17,18,20,.70);
}

.list{
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hair);
  max-width: 92ch;
}
.list li{
  padding: 16px 0;
  border-bottom: 1px solid var(--hair);
}
.list .title{
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(17,18,20,.92);
}
.list .meta{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(17,18,20,.55);
}

.footer{ padding: 40px 0 44px; }
.footerRow{
  display:flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hair);
  padding-top: 18px;
}
.smallLabel{
  font-size: 12px;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: rgba(17,18,20,.50);
  margin: 0 0 8px;
}
.small{
  margin: 0;
  font-size: 14px;
  color: rgba(17,18,20,.78);
}


/* Brand link should read like identity, not a hyperlink */
.brand a{ text-decoration:none; }
.brand a:hover{color:var(--linkHover)}

/* Force intentional line breaks for 2-sentence hero headlines */
.h1 .line{ display:block; }


/* v15 — make Executive profile + Perspective equally linkable */
.subnav a,
.tabs a,
.hero-tabs a {
  color: rgba(17,17,17,0.65);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 0;
  padding-bottom: 0;
}

.subnav a.active,
.tabs a.active,
.hero-tabs a.active,
.subnav a[aria-current="page"],
.tabs a[aria-current="page"],
.hero-tabs a[aria-current="page"] {
  color: rgba(17,17,17,0.65);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 0;
  padding-bottom: 0;
}

/* v17 — linkability: subtle by default, darker on hover, no underlines */
a {
  color: rgba(17,17,17,.70);
  text-decoration: none;
}

a:hover {
  color: rgba(17,17,17,1);
  text-decoration: none;
}

/* Keep footer/body links readable */
.footer a, footer a {
  color: rgba(17,17,17,.70);
}

/* Top nav + hero tabs: match Perspective hover behavior */
.nav a,
.hero-tabs a,
.subnav a,
.tabs a {
  color: rgba(17,17,17,.65);
  font-weight: 500;
  text-decoration: none !important;
  border-bottom: none !important;
}

.nav a:hover,
.hero-tabs a:hover,
.subnav a:hover,
.tabs a:hover {
  color: rgba(17,17,17,1);
}

.nav a[aria-current="page"],
.hero-tabs a[aria-current="page"],
.subnav a[aria-current="page"],
.tabs a[aria-current="page"] {
  color: rgba(17,17,17,0.65);
}


/* v18 — spacing + visual balance for hero tabs */
.hero-tabs,
.subnav,
.tabs {
  display: flex;
  gap: 24px;
}

.hero-tabs a,
.subnav a,
.tabs a {
  letter-spacing: .2px;
}


/* v19 — ensure ES exec enables section aligns with page grid */
.section { max-width: var(--maxw); margin-left: auto; margin-right: auto; }